:root {
  --navy: #102238;
  --navy-2: #183856;
  --ink: #18202b;
  --muted: #4f5d6a;
  --line: #d8d2c6;
  --paper: #f5f2ec;
  --soft: #ebeef0;
  --white: #ffffff;
  --green: #137f49;
  --timber: #95582b;
  --timber-light: #d49a62;
  --shadow: 0 22px 60px rgba(16, 34, 56, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(245, 242, 236, 0.94);
  border-bottom: 1px solid rgba(16, 34, 56, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-size: 28px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 800;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(16, 34, 56, 0.08);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(92svh - 73px);
  padding: clamp(46px, 8vw, 108px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 58px);
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: #091625;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/portfolio/hero-lounge.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 15, 26, 0.9) 0%, rgba(6, 15, 26, 0.68) 42%, rgba(6, 15, 26, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 15, 26, 0.42), rgba(6, 15, 26, 0.08));
}

.hero-content {
  width: 100%;
  max-width: 860px;
  min-width: 0;
}

.hero .eyebrow {
  color: var(--timber-light);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--timber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.2;
}

.lead {
  width: 100%;
  max-width: 680px;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible,
.contact-card a:hover,
.contact-card a:focus-visible,
.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.button.primary {
  color: var(--navy);
  background: var(--white);
}

.button.whatsapp {
  color: var(--white);
  background: var(--green);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 660px);
  margin: clamp(30px, 5vw, 58px) 0 0;
  background: rgba(255, 255, 255, 0.22);
}

.hero-stats div {
  padding: 18px;
  background: rgba(6, 15, 26, 0.58);
}

.hero-stats dt {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(16, 34, 56, 0.12);
}

.trust-band div {
  min-height: 176px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
}

.icon,
.service-grid span,
.process-grid span {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-weight: 900;
}

.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.trust-band strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 18px;
  text-transform: uppercase;
}

.trust-band p,
.service-grid p,
.featured-work p,
.quote-copy p,
.process-grid p,
.contact p {
  color: var(--muted);
}

.featured-work,
.services,
.portfolio-gallery,
.video-section,
.process,
.quote-section,
.contact {
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 24px;
  max-width: none;
  align-items: end;
}

.section-heading.split > p {
  margin-bottom: 8px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(220px, 0.65fr));
  gap: 16px;
}

.showcase-grid article {
  display: grid;
  align-content: start;
  min-height: 290px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(16, 34, 56, 0.1);
  border-radius: 8px;
}

.showcase-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.showcase-grid article:not(.showcase-large) {
  padding-bottom: 18px;
}

.showcase-grid article:not(.showcase-large) h3,
.showcase-grid article:not(.showcase-large) p {
  padding: 0 18px;
}

.showcase-grid article:not(.showcase-large) h3 {
  margin-top: 16px;
}

.showcase-large {
  position: relative;
  grid-row: span 2;
  min-height: 596px;
  color: var(--white);
}

.showcase-large img {
  height: 100%;
}

.showcase-large::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(6, 15, 26, 0.86), rgba(6, 15, 26, 0.12) 62%);
}

.showcase-large > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 26px;
}

.showcase-large h3 {
  max-width: 620px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 46px);
}

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.service-grid article {
  min-height: 235px;
  padding: 24px;
  background: #faf9f6;
  border: 1px solid rgba(16, 34, 56, 0.1);
  border-radius: 8px;
}

.service-grid span {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  background: var(--timber);
}

.portfolio-gallery {
  background: var(--paper);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(16, 34, 56, 0.14);
  border-radius: 8px;
  font-weight: 900;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--white);
  background: var(--navy);
}

.gallery-shell {
  position: relative;
}

.gallery-grid {
  position: relative;
  height: clamp(360px, 58vw, 660px);
  max-height: min(72vh, 720px);
  overflow: hidden;
  background: #07111e;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(6, 15, 26, 0.18);
  touch-action: pan-y;
}

.gallery-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #111;
  border: 0;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px) scale(0.985);
  transition: opacity 220ms ease, transform 260ms ease;
}

.gallery-item.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  background: #07111e;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(6, 15, 26, 0.72), rgba(6, 15, 26, 0) 60%);
}

.gallery-item span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  font-weight: 900;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.slider-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 62px;
  place-items: center;
  color: var(--white);
  background: rgba(16, 34, 56, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.slider-control.prev {
  left: 10px;
}

.slider-control.next {
  right: 10px;
}

.slider-control:hover,
.slider-control:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.slider-control:disabled {
  cursor: default;
  opacity: 0.34;
  transform: translateY(-50%);
}

.gallery-counter {
  position: absolute;
  top: 14px;
  right: 76px;
  z-index: 6;
  margin: 0;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(16, 34, 56, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.video-section {
  background: var(--navy);
}

.video-section h2,
.video-section .eyebrow {
  color: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
}

.process {
  background: var(--soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.process-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(16, 34, 56, 0.1);
  border-radius: 8px;
}

.process-grid span {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  background: var(--navy-2);
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
  background: #f9f7f2;
}

.quote-copy {
  max-width: 620px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid rgba(16, 34, 56, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfbfa;
  border: 1px solid rgba(16, 34, 56, 0.18);
  border-radius: 8px;
  text-transform: none;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form .full {
  grid-column: 1 / -1;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: center;
  color: var(--white);
  background: var(--navy);
}

.contact h2,
.contact .eyebrow {
  color: var(--white);
}

.contact p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-card {
  display: grid;
  gap: 12px;
}

.contact-card a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  color: var(--navy);
  background: var(--white);
  border-radius: 8px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-card a > span:first-child {
  display: grid;
  width: 54px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-size: 14px;
}

.contact-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox {
  width: min(96vw, 1180px);
  padding: 0;
  overflow: hidden;
  background: #07111e;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #07111e;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--white);
  font-weight: 900;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  font-weight: 900;
}

.mobile-contact-bar {
  display: none;
}

footer {
  padding: 22px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #07111e;
}

footer p {
  margin: 0;
}

@media (max-width: 1120px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .showcase-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  }
}

@media (max-width: 900px) {
  .section-heading.split,
  .quote-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .showcase-grid,
  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-large {
    grid-row: span 1;
    min-height: 420px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 82px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .nav a {
    min-width: 0;
    padding: 10px 6px;
    overflow: hidden;
    font-size: 14px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(16, 34, 56, 0.06);
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(6, 15, 26, 0.92), rgba(6, 15, 26, 0.68)),
      linear-gradient(0deg, rgba(6, 15, 26, 0.44), rgba(6, 15, 26, 0.1));
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .trust-band,
  .showcase-grid,
  .service-grid,
  .process-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: 26px;
  }

  .gallery-grid {
    height: 430px;
    max-height: 68vh;
  }

  .slider-control {
    width: 46px;
    height: 54px;
    font-size: 32px;
  }

  .gallery-counter {
    right: 64px;
  }

  .trust-band div,
  .service-grid article {
    min-height: auto;
  }

  .brand small {
    font-size: 10px;
  }

  .filter-group {
    justify-content: flex-start;
  }

  .floating-whatsapp {
    display: none;
  }

  .mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 8px;
    background: rgba(7, 17, 30, 0.94);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.18);
  }

  .mobile-contact-bar a {
    display: grid;
    min-width: 0;
    min-height: 58px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 7px 2px;
    color: var(--white);
    background: var(--navy-2);
    border-radius: 8px;
    font-size: clamp(11px, 2.8vw, 13px);
    font-weight: 900;
  }

  .mobile-contact-bar svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.35;
  }

  .mobile-contact-bar .whatsapp-logo {
    fill: currentColor;
    stroke: none;
  }

  .mobile-contact-bar span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-contact-bar a[data-track="mobile-whatsapp"] {
    background: var(--green);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 44px;
  }

  .gallery-grid {
    height: 330px;
  }
}
