/* ===================================================
   APDAILOS BRIGADA — Exact layout replica of gmcontractors.co.uk
   Font: Barlow (sub for nudista-web)
   Colors: exact match to gm_theme
   =================================================== */

/* ---- Reset & Base -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: #0C1017;
  font-family: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #55585D;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { border-style: none; display: block; max-width: 100%; }
a { background-color: transparent; text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---- Grid / Container ---------------------------- */
.grid-container {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.grid-x { display: flex; flex-wrap: wrap; }
.cell { min-width: 0; }

/* ---- Typography Utilities ------------------------ */
.text-sm   { font-size: 0.875rem; }
.text-lg   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.75rem; }
.text-3xl  { font-size: 2rem; }
.text-5xl  { font-size: 3.25rem; }

.text-bold      { font-weight: 600; }
.text-white     { color: #fefefe; }
.text-black     { color: #0C1017; }
.text-gray-lt   { color: #C2C3C5; }
.text-gray-md   { color: #9E9FA2; }
.text-gray-dk   { color: #55585D; }
.text-uppercase { text-transform: uppercase; }
.text-center    { text-align: center; }

.leading-tight   { line-height: 1.25; }
.leading-tighter { line-height: 1.1; }
.tracking-wide   { letter-spacing: 0.1em; }

.bg-gray-ltr { background-color: #F5F5F6; }
.bg-gray-dkst { background-color: #1B1E25; }

/* Line heading: small horizontal red bar before text */
.line-heading {
  display: inline-flex;
  align-items: center;
}
.line-heading::before {
  content: '';
  width: 2rem;
  height: 2px;
  margin: 0 0.75rem 0 0;
  background: #AB2B30;
}
.line-heading + .text-5xl  { margin-top: 1.5rem; }
.line-heading + .text-3xl  { margin-top: 1rem; }

/* ---- Buttons ------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn:hover::before { transform: scaleX(1); }

.btn span { position: relative; z-index: 1; }

/* Stroke white */
.btn.btn-stroke { border: 1px solid; }
.btn.btn-stroke.btn-white { color: #fefefe; border-color: #fefefe; }
.btn.btn-stroke.btn-white::before { background: #fefefe; }
.btn.btn-stroke.btn-white:hover { color: #0C1017; }

/* Stroke black */
.btn.btn-stroke.btn-black { color: #0C1017; border-color: #0C1017; }
.btn.btn-stroke.btn-black::before { background: #0C1017; }
.btn.btn-stroke.btn-black:hover { color: #fefefe; }

/* Primary red */
.btn.btn-primary { color: #fefefe; background: #AB2B30; }
.btn.btn-primary::before { background: #8c2025; }

/* ---- HEADER -------------------------------------- */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 5vw;
}

/* White bg slides in on scroll */
.site-header::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #fefefe;
  opacity: 0;
  transform: translateY(-100%);
  transition:
    transform 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s linear;
  z-index: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.site-header.header-shrunk::after {
  opacity: 1;
  transform: translateY(0);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8.9rem;
  transition: height 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.header-shrunk .header-inner { height: 5.4rem; }

/* Logo */
.site-header .logo {
  display: inline-block;
  height: 3.5rem;
  width: 90px;
}

.logo-full {
  width: 100%;
  height: 100%;
}

/* Logo path animate on load */
.logo-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLogo 1.2s ease forwards;
  animation-delay: 0.3s;
}

.logo-path:nth-child(2) { animation-delay: 0.6s; }

@keyframes drawLogo {
  to { stroke-dashoffset: 0; }
}

/* When header shrinks, logo paths turn dark */
.site-header.header-shrunk .logo-full .logo-path { stroke: #0C1017; }

/* Desktop Nav */
.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  margin: -0.3rem 0 0 0;
  list-style: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.desktop-nav ul li {
  position: relative;
  margin: 0 1.25rem;
}

.desktop-nav ul li:last-child { margin-right: 0; }

.desktop-nav ul li a {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  opacity: 0.75;
  color: #fefefe;
  transition: all 0.6s ease;
}

/* Small vertical line indicator from above nav link */
.desktop-nav ul li a::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 2px;
  height: 3rem;
  background: #fefefe;
  transform-origin: top;
  transform: translateX(-50%) scaleY(0);
  transition: transform 0.3s ease;
}

.desktop-nav ul li a:hover { opacity: 1; }
.desktop-nav ul li a:hover::before { transform: translateX(-50%) scaleY(1); }

/* When header shrinks — nav links turn dark */
.site-header.header-shrunk .desktop-nav ul li a { color: #0C1017; opacity: 1; }
.site-header.header-shrunk .desktop-nav ul li a::before { background: #0C1017; }

/* Burger button */
.menu-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-top, .burger-middle, .burger-bottom {
  display: block;
  height: 2px;
  background-color: #fefefe;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.burger-top, .burger-bottom { width: 1.75rem; }
.burger-middle { width: 1.25rem; margin: 0.25rem 0; }

.site-header.header-shrunk .burger-top,
.site-header.header-shrunk .burger-middle,
.site-header.header-shrunk .burger-bottom { background-color: #0C1017; }

/* ---- MOBILE MENU --------------------------------- */
.menu {
  position: fixed;
  z-index: 250;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 25rem;
  background: #fefefe;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.menu.is-open { transform: translateX(0); }

.menu .menu-close {
  position: absolute;
  top: 2rem;
  right: 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #0C1017;
}

.menu .menu-close i { font-size: 2rem; }

.menu .top {
  flex: 1;
  display: flex;
  align-items: center;
}

.menu .top nav ul {
  padding: 2.5rem;
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.menu .top nav ul li a {
  position: relative;
  display: inline-block;
  padding: 0.375rem 0;
  color: #0C1017;
}

.menu .top nav ul li.active a { color: #AB2B30; }

.menu .top nav ul li.active a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -5rem;
  width: 4rem;
  height: 2px;
  margin-top: -1px;
  background: #AB2B30;
}

.menu .bottom .menu-contact {
  display: flex;
  border-top: 1px solid rgba(158,159,162,0.2);
}

.menu .bottom .menu-contact a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  color: #9E9FA2;
  border-right: 1px solid rgba(158,159,162,0.2);
  font-size: 1.1rem;
}

.menu .bottom .menu-contact a:last-child { border: none; }

.menu .bottom .menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fefefe;
  background: #AB2B30;
}

/* Menu mask overlay */
.menu-mask {
  position: fixed;
  z-index: 200;
  top: 0; right: 0; bottom: 0; left: 0;
  display: none;
  background: rgba(12, 16, 23, 0.5);
}

/* ---- HERO ---------------------------------------- */
.home-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  padding: 0 5vw;
  background: #0C1017;
  overflow: hidden;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 11rem 0 5rem 0;
}

.home-hero-inner .grid-container { padding: 0; }

.home-hero-content {
  width: 100%;
  max-width: 45rem;
}

.home-hero-content h1 {
  margin: 0;
  font-size: 3.25rem;
}

.home-hero-content h2 {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
}

/* Play button */
.home-hero-play {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.home-hero-play .icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  color: #fefefe;
  border-radius: 50%;
  background: #AB2B30;
}

.home-hero-play .icon i { position: relative; z-index: 1; }

.home-hero-play .icon::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 50%;
  background: #AB2B30;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.home-hero-play:hover .icon::after { transform: scale(1.2); }

.home-hero-play .text {
  margin-left: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fefefe;
  font-size: 0.875rem;
}

/* Slides (background images) */
.home-hero-slides {
  position: absolute;
  z-index: 0;
  top: 0; right: 0; bottom: 0; left: 0;
}

/* Every slide fills the container absolutely.
   First slide is visible before JS loads; others are hidden.
   JS transitions opacity after init. */
.home-hero-slides .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  z-index: 0;
}

/* LCP guarantee: first slide is visible from first paint, before JS initialises */
.home-hero-slides:not(.slider-initialized) .slide:first-child {
  opacity: 0.3;
  z-index: 1;
}

/* <picture> must be block-level and fill the slide to host the img correctly */
.home-hero-slides .slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero-slides .slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slick dots for hero */
.home-hero-slides .slick-dots {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  width: 3rem;
  margin: 0;
  overflow: hidden;
  list-style: none;
  transform: translateY(-50%);
}

/* Hide right-edge slider indicator line */
.home-hero-slides .slick-dots {
  display: none !important;
}

.home-hero-slides .slick-dots li { display: block; padding: 0.5rem 0; }

.home-hero-slides .slick-dots li button {
  display: flex;
  width: 3rem;
  height: 2px;
  text-indent: -9999px;
  background: #fefefe;
  opacity: 0.5;
  transform-origin: right;
  transform: scaleX(0.5);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.home-hero-slides .slick-dots li.slick-active button {
  opacity: 1;
  transform: scaleX(1);
}

/* ---- HOME ABOUT ---------------------------------- */
.home-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 5vw;
  background-color: #1B1E25;
}

.home-about .image {
  width: 100%;
  height: 50vw;
  max-height: 70vh;
  margin: 0 0 3.75rem 0;
  background: gray;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-about .text {
  display: flex;
  justify-content: center;
  width: 100%;
}

.home-about .text .inner {
  width: 100%;
  max-width: 35rem;
}

.home-about .text .inner p {
  margin-top: 1.875rem;
}

.home-about .text .inner .btn {
  margin-top: 1.5rem;
}

/* ---- HOME SERVICES ------------------------------- */
.home-services {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  background: #0C1017;
}

/* Shared full-bg image per service (desktop) */
.home-services .home-services-image {
  position: absolute;
  z-index: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.home-services .home-services-image.is-visible { opacity: 0.3; }

.home-services a {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: left;
  text-transform: uppercase;
  color: #fefefe;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}

.home-services a .inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto;
  padding: 2.5rem 2.5rem;
  text-align: left;
}

.home-services a .inner h2 {
  font-weight: 600;
  font-size: 1.5rem;
  opacity: 1;
  color: #fefefe;
  transition: opacity 0.3s ease;
  margin: 0 0 0.75rem;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Service description */
.service-desc {
  margin: 0;
  text-align: left;
  width: 100%;
}

.home-services a .inner .service-desc p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 0.5rem;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400;
  line-height: 1.5;
}

.home-services a .inner .service-desc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-services a .inner .service-desc ul li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400;
  padding: 0.22rem 0 0.22rem 1.1rem;
  position: relative;
  line-height: 1.4;
}

.service-desc ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #AB2B30;
}

/* "Sužinoti daugiau" button — in flow on mobile */
.home-services a .inner button {
  position: static;
  margin-top: 1.5rem;
  opacity: 1;
  transform: none;
  transition: all 0.3s ease;
  display: inline-flex;
}

/* The small background image within each service item (mobile only) */
.home-services a .image {
  position: absolute;
  z-index: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0.3;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ---- PROJECTS ------------------------------------ */
.content {
  padding: 5rem 5vw;
}

.home-projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.home-projects-header h2 { margin: 0; }

.card-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1.25rem;
  list-style: none;
  padding: 0;
}

.darbai-fullwidth {
  margin: 0;
  width: 100%;
}

.darbai-fullwidth .card {
  padding: 0;
}

.darbai-fullwidth .card a .image {
  padding-bottom: 48%;
}

@media (min-width: 640px) {
  .darbai-fullwidth .card { width: 33.33%; }
}

.card-list .card {
  width: 100%;
  padding: 1.25rem;
}

.card-list .card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fefefe;
  text-decoration: none;
}

.card-list .card a .image {
  position: relative;
  z-index: 1;
  padding-top: 80%;
  background: #0C1017;
}

.card-list .card a .image .inner {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 1;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.3s ease;
}

.card-list .card a .text {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 2.5rem;
  text-align: center;
  background: #fefefe;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.card-list .card a .text .top h2 { margin: 0 0 0.5rem; }

.card-list .card a .text .bottom {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 0 2.5rem 2.5rem 2.5rem;
}

.card-list .card a .text .bottom .btn { width: 100%; }

.card-list .card a:hover .image .inner { opacity: 0.5; }
.card-list .card a:hover .text { transform: translateY(-6rem); }

/* Category tags */
.category-list {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.category-list button {
  margin: 0 0.125rem;
  padding: 0.25rem 0.375rem;
  outline: none;
  font-family: inherit;
  font-size: 0.75rem;
  color: #9E9FA2;
  border-radius: 0.125rem;
  border: 1px solid rgba(158,159,162,0.2);
  background: rgba(158,159,162,0.05);
  cursor: default;
}

/* ---- CONTACT CTA --------------------------------- */
.contact-cta {
  position: relative;
  padding: 7.5rem 5vw;
  background-color: gray;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-cta::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0.5;
  background: #0C1017;
}

.contact-cta .grid-container { position: relative; z-index: 1; }
.contact-cta .inner { position: relative; z-index: 1; }

.contact-cta h2 { margin: 0 0 1.5rem; }
.contact-cta .btn { margin-top: 0; }

/* ---- CONTACT FORM SECTION ------------------------ */
.contact-section {
  background: #fefefe;
  padding: 7.5rem 5vw;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-text h2 {
  margin: 1rem 0;
  color: #0C1017;
}

.contact-text > p {
  max-width: 36ch;
  margin: 0 0 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0C1017;
}

.contact-link i { color: #9E9FA2; font-size: 1.2rem; }

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #55585D;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(158,159,162,0.3);
  background: #f8f8f8;
  color: #0C1017;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0C1017;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; }

/* ---- FOOTER -------------------------------------- */
.site-footer {
  padding: 7.5rem 5vw 2.5rem 5vw;
  background: #0C1017;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.footer-logo-svg {
  display: block;
  width: 64px;
  height: auto;
  margin: 0;
}

.site-footer .footer-nav-wrap { padding-left: 2rem; }

.site-footer nav {
  display: flex;
  flex-direction: column;
  margin: 0 0 3rem 0;
}

.site-footer nav ul {
  width: 100%;
  margin: 0;
  padding: 0 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  list-style: none;
}

.site-footer nav ul li {
  margin-bottom: 0.5rem;
}

.site-footer nav ul li:last-child { margin-bottom: 0; }

.site-footer nav ul li a {
  color: #fefefe;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.site-footer nav ul li a:hover { opacity: 0.5; }

.site-footer nav ul.secondary li a { color: #9E9FA2; }

.footer-cta-wrap {
  display: flex;
  align-items: flex-start;
}

.footer-legal-wrap {
  flex: 1;
  padding-left: 0;
}

.footer-legal {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 1rem;
  align-items: center;
}

.footer-legal li:nth-child(1) { text-align: left; }
.footer-legal li:nth-child(2) { text-align: center; }
.footer-legal li:nth-child(3) { text-align: right; }

.footer-legal li a {
  display: inline-block;
  white-space: nowrap;
  color: #9E9FA2;
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.3s ease;
}

.footer-legal li a:hover { opacity: 0.6; }

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.copyright {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  list-style: none;
  color: #55585D;
  font-size: 0.875rem;
}

.copyright li { margin-bottom: 0.25rem; }

.copyright li::after {
  content: '•';
  margin: 0 0.5rem;
}

.copyright li:last-child::after { display: none; }

.copyright li a {
  position: relative;
  color: #55585D;
}

.copyright li a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: border 0.3s ease;
}

.copyright li a:hover::after { border-bottom: 1px solid #55585D; }

.social {
  display: flex;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
}

.social li { margin: 0 0.5rem; }
.social li:first-child { margin-left: 0; }

.social li a {
  color: #9E9FA2;
  transition: color 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.social li a:hover { color: #fefefe; }

/* ---- SCROLL REVEAL (fade-up) --------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---------------------------------- */

/* Medium (640px+) */
@media (min-width: 640px) {
  .text-2xl  { font-size: 2rem; }
  .text-3xl  { font-size: 2.5rem; }
  .text-5xl  { font-size: 4rem; }

  .card-list .card { width: 50%; }

  .home-hero-content h1 { font-size: 4rem; }

  .form-row { flex-direction: row; gap: 1.25rem; }
  .form-row .form-group { flex: 1; }

  .copyright {
    flex-direction: row;
    gap: 0;
  }

  .footer-bottom { flex-direction: row; align-items: center; }
}

/* Large (1024px+) */
@media (min-width: 1024px) {

  /* Header: show desktop nav, hide burger */
  .menu-trigger { display: none; }
  .desktop-nav { display: block; }

  .header-inner { height: 8.9rem; }
  .site-header.header-shrunk .header-inner { height: 5.4rem; }

  /* About: centered full width */
  .home-about {
    flex-direction: column;
    padding: 7.5rem 0;
    align-items: center;
  }

  .home-about .text {
    width: 100%;
    padding: 0;
  }

  .home-about .text .inner { max-width: 52rem; }

  /* Services: 4 columns */
  .home-services a {
    width: 25%;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
  }

  .home-services a:nth-child(even) { /* reset — all have right border */ }
  .home-services a:last-of-type { border-right: none; }

  .home-services a .inner {
    height: 80vh;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4rem 2rem 4rem 0.75rem;
    text-align: left;
  }

  /* On desktop restore the hover-reveal button behaviour */
  .home-services a .inner button {
    position: absolute;
    bottom: 3rem;
    margin-top: 0;
    opacity: 0;
    transform: translateY(2rem);
  }

  /* Dim all h2 when hovering the container */
  .home-services:hover a h2 { opacity: 0.2; }
  .home-services:hover a:hover h2 { opacity: 1; }
  .home-services:hover a:hover button {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hide individual service bg images on desktop (use shared one) */
  .home-services a .image { display: none; }

  /* Projects: 3 columns */
  .card-list .card { width: 33.33%; }
  .darbai-fullwidth .card { width: 33.33%; }

  /* Contact grid: side by side */
  .contact-grid {
    flex-direction: row;
    gap: 5rem;
  }
  .contact-text { flex: 1; }
  .contact-form { flex: 1.4; }

  /* Footer nav row */
  .site-footer nav {
    flex-direction: row;
    margin: 0 0 3rem 0;
  }

  .site-footer nav ul {
    width: 12.5rem;
    border-left: 1px solid rgba(255,255,255,0.1);
  }

  .site-footer nav ul li { text-align: left; }

  .footer-top { align-items: center; }

  .footer-logo-svg { margin: 0; }

  .footer-legal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
  }

  .copyright {
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin: 0;
  }

  .copyright li::after { display: inline; }

  /* Hero: larger text */
  .home-hero-content h1 { font-size: 4rem; }
}

/* Mac half-screen fix: keep "Darbai" sections in desktop-style layout */
@media (hover: hover) and (pointer: fine) and (min-width: 640px) and (max-width: 1023px) {
  .home-services a {
    width: 25%;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
  }

  .home-services a:last-of-type { border-right: none; }

  .home-services a .inner {
    height: 80vh;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4rem 2rem 4rem 0.75rem;
    text-align: left;
  }

  .home-services a .inner button {
    position: absolute;
    bottom: 3rem;
    margin-top: 0;
    opacity: 0;
    transform: translateY(2rem);
  }

  .home-services:hover a h2 { opacity: 0.2; }
  .home-services:hover a:hover h2 { opacity: 1; }
  .home-services:hover a:hover button {
    opacity: 1;
    transform: translateY(0);
  }

  .home-services a .image { display: none; }

  .darbai-fullwidth .card { width: 33.33%; }
}

@media (max-width: 760px) {
  .footer-top { gap: 0.75rem; }
  .footer-logo-svg { width: 52px; }
  .footer-legal li a {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }
}

/* Extra large (1280px+) */
@media (min-width: 1280px) {
  .home-hero-content h1 { font-size: 4rem; }
  .text-5xl { font-size: 4rem; }
}

/* ---- BLOG TEXT-ONLY -------------------------------- */
#blog .card a .image {
  display: none;
}

#blog .card a .text {
  text-align: left;
  padding: 2rem;
  transform: none;
}

#blog .card a .text .top h2 {
  margin: 0;
}

#blog .card a .text .bottom {
  position: static;
  padding: 1.25rem 0 0;
}

#blog .card a .text .bottom .btn {
  width: auto;
}

#blog .card a:hover .text {
  transform: none;
}
