/* ============================================================
   AAC Architects — warm-neutral architectural system
   Palette keyed to the brand's gold wordmark.
   ============================================================ */

:root {
  --bg:        #14110E;
  --surface:   #1F1B16;
  --surface-3: #28231C;
  --surface-2: #F6F1E9;
  --paper:     #FBF8F2;
  --text:      #F3EEE6;
  --text-dark: #211C16;
  --muted:     #A99E8C;
  --muted-dark:#6F6555;
  --primary:   #CBA85B;
  --secondary: #B8985A;
  --accent:    #E2C77F;
  --border:    #3A332A;
  --border-lt: #E4DACA;
  --focus:     #E2C77F;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* ---------- type primitives ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: .01em; }
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.h-section {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
}
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--primary);
  display: inline-block;
}
.eyebrow.center::before { display: none; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); font-weight: 300; }
.serif-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 132px); }
.bg-dark   { background: var(--bg); color: var(--text); }
.bg-surface{ background: var(--surface); color: var(--text); }
.bg-light  { background: var(--surface-2); color: var(--text-dark); }
.bg-paper  { background: var(--paper); color: var(--text-dark); }
.hairline { height: 1px; background: var(--border); border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 0 1.9rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--primary); color: #1A150C; }
.btn-gold:hover { background: var(--accent); }
.btn-outline { border: 1px solid currentColor; color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-outline.on-light { color: var(--text-dark); }
.btn-outline.on-light:hover { background: var(--text-dark); color: var(--surface-2); }
.btn-ghost { color: var(--primary); padding-inline: 0; min-height: auto; }
.btn-ghost .arr { transition: transform .3s var(--ease); }
.btn-ghost:hover .arr { transform: translateX(5px); }

.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #25c264; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: rgba(8, 7, 5, 0.5);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 18px;
}
.site-header.scrolled {
  background: rgba(20, 17, 14, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--border);
}
.site-header.scrolled .wrap { padding-block: 11px; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 124px; width: auto; margin: -28px 0; transition: height .4s var(--ease); }
.site-header.scrolled .brand img { height: 100px; }

.nav-desktop { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.nav-desktop a {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding: .4rem 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width .35s var(--ease);
}
.nav-desktop a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 1.4rem; }

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle span {
  position: relative; width: 26px; height: 1.5px; background: var(--text);
  transition: background .2s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 1.5px; background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after  { top: 8px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* mobile menu */
.nav-mobile {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 96px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
}
body.menu-open .nav-mobile { transform: translateY(0); visibility: visible; }
.nav-mobile nav { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.nav-mobile nav a {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 1rem;
}
.nav-mobile nav a .idx { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--primary); }
.nav-mobile .m-actions { margin-top: auto; display: grid; gap: 12px; padding-top: 28px; }
.nav-mobile .m-contact { margin-top: 22px; font-size: .82rem; color: var(--muted); letter-spacing: .04em; display: grid; gap: 6px; }
.nav-mobile .m-contact a { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(8,7,5,0.94) 0%, rgba(8,7,5,0.82) 24%, rgba(8,7,5,0.56) 48%, rgba(8,7,5,0.34) 76%, rgba(8,7,5,0.46) 100%),
    linear-gradient(90deg, rgba(8,7,5,0.34), rgba(8,7,5,0.12));
}
.hero .wrap { padding-bottom: clamp(52px, 9vh, 104px); padding-top: 120px; width: 100%; }
.hero-inner { max-width: 940px; }
.hero h1 { margin: 18px 0 0; color: #fff; }
.hero h1 .em { color: var(--accent); font-style: italic; }
.hero .lede { color: rgba(243,238,230,.82); max-width: 620px; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 52px);
  margin-top: 52px; padding-top: 30px;
  border-top: 1px solid rgba(226,199,127,.26);
}
.hero-meta .stat { min-width: 0; }
.hero-meta .stat b { font-family: var(--serif); font-size: 1.85rem; font-weight: 500; color: var(--accent); display: block; line-height: 1; }
.hero-meta .stat span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 1;
  font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px;
}
.scroll-hint::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--primary), transparent); }
@media (max-width: 860px) { .scroll-hint { display: none; } }

/* ============================================================
   INTRO / POSITIONING
   ============================================================ */
.intro-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-statement { font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.24; font-weight: 500; color: var(--text-dark); }
.intro-statement .accent { color: var(--secondary); font-style: italic; }
.intro-body { display: grid; gap: 1.3rem; }
.intro-body p { color: var(--muted-dark); font-size: 1.05rem; }
.intro-disc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.intro-disc span {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dark);
  border: 1px solid var(--border-lt); padding: 9px 15px; border-radius: 2px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.section-head { display: grid; gap: 18px; max-width: 760px; }
.section-head.spread { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head h2 { margin: 0; }

.svc-group { margin-top: clamp(40px, 6vw, 72px); }
.svc-group + .svc-group { margin-top: clamp(44px, 6vw, 76px); }
.svc-group-head {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.svc-group-head .n { font-family: var(--serif); font-style: italic; color: var(--primary); font-size: 1.1rem; }
.svc-group-head h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.svc-group-head .meta { margin-left: auto; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.svc-card {
  background: var(--bg); padding: 32px 28px 36px;
  transition: background .4s var(--ease);
  min-height: 220px; display: flex; flex-direction: column;
}
.bg-surface .svc-card { background: var(--surface); }
.svc-card:hover { background: var(--surface-3); }
.svc-card .num { font-family: var(--serif); font-style: italic; color: var(--primary); font-size: .95rem; opacity: .8; }
.svc-card h4 { font-size: 1.55rem; margin: 16px 0 12px; }
.svc-card p { color: var(--muted); font-size: .96rem; }
.svc-card .glyph { margin-top: auto; padding-top: 22px; color: var(--primary); opacity: .55; transition: opacity .4s, transform .4s var(--ease); }
.svc-card:hover .glyph { opacity: 1; transform: translateX(4px); }

.svc-note { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 26px 30px; border: 1px solid var(--border); border-radius: 3px; }
.svc-note p { color: var(--muted); font-size: .95rem; max-width: 60ch; }
.svc-note .types { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-note .types span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--border); padding: 6px 12px; border-radius: 2px; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.proj-list { margin-top: clamp(40px, 6vw, 70px); display: grid; gap: clamp(40px, 6vw, 80px); }
.proj {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.proj:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.proj:nth-child(even) .proj-text { order: 2; }
.proj-figure { position: relative; overflow: hidden; border-radius: 3px; cursor: pointer; aspect-ratio: 4 / 3; }
.proj-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proj-figure:hover img { transform: scale(1.05); }
.proj-figure .ph-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 22px; gap: 12px;
  background: linear-gradient(to top, rgba(20,17,14,.55), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.proj-figure:hover .ph-overlay { opacity: 1; }
.proj-figure .view-pill {
  display: inline-flex; align-items: center; gap: .6em;
  background: rgba(20,17,14,.7); backdrop-filter: blur(6px);
  color: #fff; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 11px 16px; border-radius: 2px; border: 1px solid rgba(226,199,127,.4);
}
.proj-figure .count { color: var(--accent); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; align-self: flex-end; }
.proj-num { font-family: var(--serif); font-style: italic; color: var(--primary); font-size: 1.1rem; }
.proj-text h3 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 12px 0 6px; }
.proj-loc { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.proj-desc { color: var(--muted); margin: 20px 0 24px; font-size: 1.02rem; }
.proj-specs { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 26px; }
.proj-specs .spec b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--text); display: block; line-height: 1; }
.proj-specs .spec span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.proj-thumbs { display: flex; gap: 8px; }
.proj-thumbs button { flex: 1; aspect-ratio: 1; overflow: hidden; border-radius: 2px; opacity: .72; transition: opacity .3s; }
.proj-thumbs button:hover { opacity: 1; }
.proj-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   WHY
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-lt); border: 1px solid var(--border-lt); margin-top: clamp(36px, 5vw, 64px); }
.why-card { background: var(--paper); padding: 36px 28px; }
.why-card .n { font-family: var(--serif); font-style: italic; color: var(--secondary); font-size: 1rem; }
.why-card h4 { font-size: 1.4rem; margin: 18px 0 12px; color: var(--text-dark); }
.why-card p { color: var(--muted-dark); font-size: .95rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-figure { position: relative; }
.about-figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 3px; }
.about-badge {
  position: absolute; left: -1px; bottom: 28px; background: var(--primary); color: #1A150C;
  padding: 18px 26px; border-radius: 0 3px 3px 0;
}
.about-badge b { font-family: var(--serif); font-size: 2rem; font-weight: 600; display: block; line-height: 1; }
.about-badge span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.about-text h2 { margin: 18px 0 0; }
.about-text .body { display: grid; gap: 1.2rem; margin-top: 22px; }
.about-text .body p { color: var(--muted); font-size: 1.04rem; }
.about-text .body p strong { color: var(--text); font-weight: 400; }
.about-quote { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--accent); line-height: 1.32; border-left: 2px solid var(--primary); padding-left: 22px; margin-top: 10px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); margin-top: clamp(36px, 5vw, 60px); }
.form-field { display: grid; gap: 8px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.form-field label .req { color: var(--primary); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 2px;
  padding: 14px 16px; width: 100%; min-height: 52px; transition: border-color .25s, background .25s;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A99E8C' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); background: var(--surface-3); outline: none; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-dark); }
.form-field.error input, .form-field.error select, .form-field.error textarea { border-color: #C9603F; }
.field-msg { font-size: .74rem; color: #E08A6B; min-height: 0; display: none; }
.form-field.error .field-msg { display: block; }
.form-submit { margin-top: 6px; width: 100%; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none; flex-direction: column; gap: 14px; text-align: center;
  padding: 48px 32px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface);
}
.form-success.show { display: flex; }
.form-success .tick { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--primary); display: grid; place-items: center; margin: 0 auto; color: var(--primary); }
.form-success h3 { font-size: 1.8rem; }
.form-success p { color: var(--muted); }

.contact-info { display: grid; gap: 30px; align-content: start; }
.info-block .lab { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.info-block a, .info-block p { font-size: 1.05rem; color: var(--text); }
.info-block a:hover { color: var(--accent); }
.info-block .sub { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.contact-channels { display: grid; gap: 10px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 3px; transition: border-color .3s, background .3s; }
.channel:hover { border-color: var(--primary); background: var(--surface); }
.channel .ico { width: 24px; height: 24px; flex-shrink: 0; color: var(--primary); }
.channel .ico.wa { color: #2ecc71; }
.channel b { font-size: .98rem; font-weight: 400; }
.channel span { font-size: .76rem; color: var(--muted); display: block; letter-spacing: .04em; }
.map-ph {
  margin-top: 4px; border: 1px dashed var(--border); border-radius: 3px;
  min-height: 180px; display: grid; place-items: center; text-align: center; gap: 6px;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(226,199,127,.045) 14px, rgba(226,199,127,.045) 28px),
    var(--surface);
  padding: 28px;
}
.map-ph .ttl { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.map-ph .addr { font-size: .9rem; color: var(--text); }
.map-ph .note { font-size: .74rem; color: var(--muted-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #100D0A; color: var(--text); padding-top: clamp(56px, 8vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); padding-bottom: 56px; }
.footer-brand img { height: 168px; width: auto; margin: -34px 0 4px -10px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 38ch; }
.footer-col h5 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; font-family: var(--sans); font-weight: 500; }
.footer-col nav, .footer-col .fc { display: grid; gap: 11px; }
.footer-col a, .footer-col p { font-size: .92rem; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 26px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: .8rem; color: var(--muted-dark); letter-spacing: .03em; }
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom .links a { font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ============================================================
   FLOATING WHATSAPP + MOBILE ACTION BAR
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1FA855; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(31,168,85,.4), 0 2px 8px rgba(0,0,0,.3);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }

.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 65;
  display: none; grid-template-columns: 1fr 1fr 1fr;
  background: rgba(20,17,14,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 60px; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text);
}
.mobile-bar a + a { border-left: 1px solid var(--border); }
.mobile-bar a svg { width: 20px; height: 20px; }
.mobile-bar a.wa { color: #2ecc71; }
.mobile-bar a.enq { color: var(--primary); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; }
.lightbox.open { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(12,10,8,.96); backdrop-filter: blur(6px); }
.lightbox-inner { position: relative; height: 100%; display: flex; flex-direction: column; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); z-index: 2; }
.lb-title b { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.lb-title span { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.lb-close { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background .3s, border-color .3s; }
.lb-close:hover { background: var(--surface); border-color: var(--primary); }
.lb-stage { flex: 1; position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 3vw, 64px); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(31,27,22,.8); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; transition: background .3s; z-index: 3; }
.lb-nav:hover { background: var(--primary); color: #1A150C; }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }
.lb-bottom { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px var(--gutter) 26px; flex-wrap: wrap; }
.lb-bottom button { width: 64px; height: 44px; border-radius: 2px; overflow: hidden; opacity: .42; transition: opacity .3s, outline-color .2s; outline: 1.5px solid transparent; outline-offset: 2px; }
.lb-bottom button img { width: 100%; height: 100%; object-fit: cover; }
.lb-bottom button.active { opacity: 1; outline-color: var(--primary); }
.lb-counter { position: absolute; bottom: 18px; right: var(--gutter); font-size: .76rem; letter-spacing: .16em; color: var(--muted); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-desktop, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .proj, .proj:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .proj:nth-child(even) .proj-text { order: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 440px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .brand img { height: 96px; margin: -22px 0; }
  .site-header.scrolled .brand img { height: 80px; }
  .footer-brand img { height: 130px; margin: -26px 0 2px -8px; }
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .mobile-bar { display: grid; }
  .wa-float { display: none; }
  body { padding-bottom: 60px; }
  .hero { min-height: 92svh; }
  .lb-bottom button { width: 48px; height: 36px; }
  .about-badge { padding: 14px 18px; }
}
@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .hero-meta { gap: 16px 26px; }
}
