/* ---------- Base ---------- */

:root {
  --black: #0b0d0c;
  --dark: #121815;
  --green: #173d32;
  --gold: #caa969;
  --light-gold: #e2c78f;
  --white: #f5f1e8;
  --gray: #aaa9a4;
  --border: rgba(202, 169, 105, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 0.9rem;
}

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

ul {
  list-style: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(12, 15, 14, 0.84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar {
  width: min(1320px, 90%);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-transform: uppercase;
}

.logo-main {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.28rem;
}

.logo-sub {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.12rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-button {
  padding: 12px 20px;
  color: var(--black);
  background: var(--gold);
  border: 1px solid var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  color: var(--gold);
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 170px 8% 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 45%, rgba(28, 72, 58, 0.48), transparent 38%),
    linear-gradient(135deg, #0b0d0c 0%, #111815 55%, #0a0b0b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(202, 169, 105, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 169, 105, 0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: linear-gradient(to right, black, transparent 85%);
  mask-image: linear-gradient(to right, black, transparent 85%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 430px;
  height: 430px;
  background: rgba(176, 138, 66, 0.14);
  border-radius: 50%;
  filter: blur(100px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-label,
.section-kicker {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.hero-label {
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.35rem;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}

.hero-description {
  max-width: 640px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.service-area {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.hero-side-text {
  position: absolute;
  right: -45px;
  bottom: 80px;
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 800;
  letter-spacing: 0.4rem;
  line-height: 1;
  writing-mode: vertical-rl;
  pointer-events: none;
}

/* ---------- Content sections ---------- */

.content-section {
  padding: 110px 8%;
}

.section-dark {
  background: var(--dark);
}

.content-section h2 {
  max-width: 850px;
  margin: 16px 0 24px;
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.12rem;
  text-transform: uppercase;
}

.section-copy {
  max-width: 720px;
  color: var(--gray);
  font-size: 0.82rem;
  line-height: 1.9;
}

.section-copy-intro {
  margin-bottom: 8px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: none;
  margin-top: 8px;
}

.about-grid .section-copy {
  max-width: none;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  color: var(--gold);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04rem;
}

.stat-label {
  color: var(--gray);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.service-card {
  min-height: 200px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(145deg, rgba(23, 61, 50, 0.75), rgba(18, 24, 21, 0.96));
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.72rem;
  line-height: 1.7;
}

/* Individual accent variation per card, cycling through the palette */
.service-card:nth-child(4n+1) { background: linear-gradient(145deg, rgba(23, 61, 50, 0.75), rgba(18, 24, 21, 0.96)); }
.service-card:nth-child(4n+2) { background: linear-gradient(145deg, rgba(45, 39, 22, 0.65), rgba(18, 24, 21, 0.96)); }
.service-card:nth-child(4n+3) { background: linear-gradient(145deg, rgba(18, 30, 34, 0.75), rgba(18, 24, 21, 0.96)); }
.service-card:nth-child(4n+4) { background: linear-gradient(145deg, rgba(35, 24, 24, 0.6), rgba(18, 24, 21, 0.96)); }

/* ---------- Before / After ---------- */

.before-after {
  margin-top: 48px;
  max-width: 860px;
}

.ba-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  background: #000;
}

.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.ba-after-wrap .ba-image {
  position: absolute;
  inset: 0;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(202, 169, 105, 0.6);
}

.ba-range {
  width: 100%;
  margin-top: 18px;
  accent-color: var(--gold);
  cursor: ew-resize;
}

.ba-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--gray);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

/* ---------- Project gallery ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  text-align: left;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 5%;
  background: rgba(6, 7, 6, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: min(1000px, 100%);
  max-height: 90vh;
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.lightbox-figure figcaption {
  margin-top: 16px;
  color: var(--gray);
  font-size: 0.78rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 5%;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--border);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- Contact ---------- */

.contact-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(23, 61, 50, 0.7), transparent 35%),
    var(--black);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.contact-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-meta-label {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.contact-meta-value {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 8%;
  border-top: 1px solid var(--border);
  color: var(--gray);
  text-align: center;
  font-size: 0.72rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .navbar {
    min-height: 76px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-button {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    padding: 22px 5%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: rgba(11, 13, 12, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: 100svh;
    padding: 140px 7% 70px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.5rem);
    letter-spacing: -0.18rem;
  }

  .hero-description {
    font-size: 0.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-side-text {
    display: none;
  }

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

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ba-frame {
    aspect-ratio: 3 / 4;
  }

  .content-section {
    padding: 85px 7%;
  }

  .stat-row {
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-main {
    font-size: 1rem;
  }

  .logo-sub {
    font-size: 0.44rem;
    letter-spacing: 0.1rem;
  }

  .hero-label,
  .section-kicker,
  .service-area {
    letter-spacing: 0.12rem;
  }
}
