/* =========================================================
   Urban Green Homes — "McKinley Masters" style replication
   Dark charcoal + gold, sharp corners, full-bleed photography
   ========================================================= */

:root {
  --ink: #1c2b1f;
  --ink-soft: #24361f;
  --charcoal: #16301f;
  --gold: #c17c46;
  --gold-light: #d99a5f;
  --cream: #f3ecdc;
  --paper: #fffdf8;
  --grey-text: #5c6b58;
  --line: rgba(28,64,41,0.14);

  /* logo brand greens, sampled directly from the Urban Green Homes logo */
  --leaf: #3ab54d;
  --leaf-deep: #2f9a41;
  --leaf-light: #8dc540;

  --ff-display: "Space Grotesk", sans-serif;
  --ff-serif: "Bodoni Moda", serif;
  --ff-accent: "Bodoni Moda", serif;
  --ff-body: "Figtree", sans-serif;

  --container: 1280px;
  --shadow-soft: 0 20px 50px -20px rgba(18,36,26,0.35);
  --shadow-lift: 0 24px 55px -18px rgba(18,36,26,0.45);
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  display: block;
  font-family: var(--ff-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--leaf-deep);
  margin-bottom: 16px;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.82); }
.eyebrow.gold { color: var(--gold-light); }

p { line-height: 1.85; color: var(--grey-text); font-size: 16px; font-weight: 300; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  background: var(--gold);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  transition: background 0.35s ease, box-shadow 0.35s ease, letter-spacing 0.35s ease;
}
.btn:hover { background: #96552e; box-shadow: var(--shadow-lift); }
.btn svg { transition: transform 0.35s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline.on-dark { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline.on-dark:hover { background: #fff; color: var(--ink); }

/* ---------------- Nav ---------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 26px 0;
  transition: all 0.4s ease;
}
.site-nav.scrolled {
  padding: 14px 0;
  background: rgba(28,43,31,0.94);
  box-shadow: 0 10px 30px -18px rgba(18,36,26,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0%; height: 1px;
  background: var(--leaf);
  transition: width 0.35s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .phone { color: #fff; font-family: var(--ff-display); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta .phone { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 8px;
  }
  .nav-toggle span { width: 26px; height: 2px; background: #fff; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}
.hero .bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(18,36,26,0.42) 0%, rgba(18,36,26,0.92) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 24px;
}
.hero .badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.hero .badge {
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 18px;
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}
.hero .eyebrow {
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  margin-bottom: 6px;
}
.hero h1 {
  color: #fff;
  font-family: var(--ff-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 118px);
  letter-spacing: 0.005em;
  line-height: 1.05;
}
.hero h1 em, .page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #3cb54a;
}
.scroll-cue {
  position: absolute;
  bottom: 42px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(8px);} }

/* ---------------- Section basics ---------------- */
section { position: relative; padding: 130px 0; }
.section-tight { padding: 90px 0; }
.tight-bottom { padding-bottom: 40px; }
.tight-top { padding-top: 40px; }
.bg-dark { background: var(--ink); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: rgba(255,255,255,0.65); }
.bg-cream { background: var(--cream); }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); }

/* ---------------- Statement / intro ---------------- */
.statement {
  text-align: center;
}
.statement .section-head { margin: 0 auto 36px; max-width: 900px; }
.statement p { max-width: 780px; margin: 0 auto 20px; font-size: 17px; }
.statement .btn { margin-top: 20px; }

/* ---------------- About split ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.about-grid.reverse { grid-template-columns: 1.05fr 0.95fr; }
.about-grid.reverse .about-media { order: 2; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-media .frame-line {
  position: absolute; inset: 18px;
  border: 1px solid rgba(58,181,77,0.55);
  pointer-events: none;
}
.about-copy p { margin-bottom: 18px; }
.warranty-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
}
.warranty-logos:empty { display: none; }
.warranty-logos img { max-height: 48px; width: auto; opacity: 0.9; }

@media (max-width: 960px) {
  .about-grid, .about-grid.reverse { grid-template-columns: 1fr; }
  .about-grid.reverse .about-media { order: 0; }
}

/* ---------------- Discover cards (4-up) ---------------- */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.discover-card {
  position: relative;
  aspect-ratio: 3/4.4;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.discover-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s ease;
}
.discover-card:hover img { transform: scale(1.08); }
.discover-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,36,26,0) 35%, rgba(18,36,26,0.85) 100%);
}
.discover-card .txt {
  position: relative; z-index: 2;
  padding: 30px 26px;
  color: #fff;
}
.discover-card h3 {
  color: #fff; font-size: 26px; margin-bottom: 12px;
}
.discover-card a.learn {
  font-family: var(--ff-display);
  font-size: 13px;
  color: var(--gold-light);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
}
.discover-cta { text-align: center; padding: 50px 0; background: var(--ink); }

@media (max-width: 1000px) {
  .discover-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .discover-grid { grid-template-columns: 1fr; }
}

/* ---------------- CTA band ---------------- */
.cta-band {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cta-band .bg-img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%;
  object-fit: cover; z-index: 0;
}
.cta-band .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(18,36,26,0.55), rgba(18,36,26,0.82));
  z-index: 1;
}
.cta-band .content { position: relative; z-index: 2; color: #fff; max-width: 680px; padding: 0 24px; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.cta-band p { color: rgba(255,255,255,0.75); margin: 18px auto 30px; }

/* ---------------- Values grid ---------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-item {
  background: var(--paper);
  padding: 40px 34px;
}
.value-item .idx { font-family: var(--ff-display); color: var(--leaf-deep); font-size: 13px; margin-bottom: 14px; display: block; }
.value-item h4 { font-family: var(--ff-serif); font-weight: 400; font-size: 21px; margin-bottom: 10px; }
.value-item p { font-size: 14.5px; margin: 0; }

@media (max-width: 900px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ---------------- Gallery strip ---------------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-strip .g-item { overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.gallery-strip .g-item:nth-child(2n) { aspect-ratio: 3/4.6; margin-top: 40px; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.gallery-strip .g-item:hover img { transform: scale(1.08); }

@media (max-width: 960px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip .g-item:nth-child(2n) { margin-top: 0; }
}

/* ---------------- Process steps ---------------- */
.process-list { border-top: 1px solid var(--line); }
.process-item {
  display: grid;
  grid-template-columns: 90px 220px 1fr;
  gap: 30px;
  align-items: start;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
.process-item .num { font-family: var(--ff-serif); font-size: 44px; color: var(--gold); }
.process-item h4 { font-family: var(--ff-serif); font-weight: 400; font-size: 24px; }
.process-item p { margin: 0; max-width: 620px; }

@media (max-width: 800px) {
  .process-item { grid-template-columns: 60px 1fr; }
  .process-item h4 { grid-column: 2; }
  .process-item p { grid-column: 1 / -1; }
}

/* ---------------- FAQ accordion ---------------- */
.faq-list { border-top: 1px solid var(--line); max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 4px;
  cursor: pointer;
  font-family: var(--ff-serif);
  font-size: 19px;
}
.faq-q .plus { font-size: 22px; color: var(--leaf-deep); transition: transform 0.3s ease; font-family: var(--ff-body); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 24px; }
.faq-a p { margin: 0; padding-right: 40px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.68);
  padding: 90px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 46px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; max-width: 280px; }
.footer-col h4 {
  color: #fff; font-family: var(--ff-display); font-size: 14px; letter-spacing: 0.05em;
  margin-bottom: 22px; font-weight: 400;
}
.footer-col li { margin-bottom: 13px; font-size: 14.5px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--leaf); border-color: var(--leaf); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 26px;
  font-size: 12.5px; flex-wrap: wrap; gap: 10px;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------------- Page hero (projects.html) ---------------- */
.page-hero {
  min-height: 58vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1f3a26 0%, var(--ink) 62%, var(--charcoal) 100%);
}
.page-hero .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero .overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(18,36,26,0.1) 0%, rgba(18,36,26,0.5) 55%, rgba(16,28,20,0.86) 100%);
  z-index: 2;
  pointer-events: none;
}
.page-hero .content { position: relative; z-index: 3; padding-top: 90px; text-align: center; margin: 0 auto; }
.page-hero h1 { color: #fff; font-family: var(--ff-accent); font-style: italic; font-weight: 400; font-size: clamp(46px, 6.8vw, 84px); letter-spacing: 0.005em; }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 560px; margin: 18px auto 0; }

.projects-list { display: flex; flex-direction: column; }
.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.project-row:nth-child(even) .project-media { order: 2; }
.project-media { overflow: hidden; aspect-ratio: 4/3; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.project-row:hover .project-media img { transform: scale(1.06); }
.project-index { font-family: var(--ff-display); font-size: 14px; color: var(--gold); letter-spacing: 0.06em; }
.project-row h3 { font-size: clamp(28px, 3vw, 40px); margin-top: 14px; }
.project-date { font-size: 13px; color: var(--grey-text); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px; display: block; }
.project-row p { margin-top: 18px; max-width: 460px; }
.project-row .btn { margin-top: 26px; }

@media (max-width: 900px) {
  .project-row, .project-row:nth-child(even) { grid-template-columns: 1fr; }
  .project-row:nth-child(even) .project-media { order: 0; }
}

/* ---------------- Per-house photo galleries ---------------- */
.houses-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.house-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 42px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s ease;
}
.house-block:hover { box-shadow: var(--shadow-lift); }

.house-block-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.house-index-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.house-block-title { min-width: 0; }
.house-block-title .project-index { margin-bottom: 4px; }
.house-block-head h3 { font-size: clamp(26px, 3vw, 38px); }
.house-photo-count {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey-text);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  white-space: nowrap;
}

.house-main {
  overflow: hidden;
  aspect-ratio: 16/9.5;
  cursor: pointer;
  margin-bottom: 18px;
  border-radius: 16px;
}
.house-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.house-main:hover img { transform: scale(1.05); }

.house-mini-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.house-mini-scroll .g-item {
  flex: 0 0 170px;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  border-radius: 12px;
}
.house-mini-scroll img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.house-mini-scroll .g-item:hover img { transform: scale(1.08); }
.house-mini-scroll::-webkit-scrollbar { height: 6px; }
.house-mini-scroll::-webkit-scrollbar-track { background: transparent; }
.house-mini-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.house-cta { margin-top: 26px; }

@media (max-width: 720px) {
  .house-block { padding: 28px 22px; border-radius: 20px; }
  .house-photo-count { margin-left: 66px; }
}

@media (max-width: 600px) {
  .house-mini-scroll .g-item { flex-basis: 130px; }
}

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(16,28,20,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 40px;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 86vh; box-shadow: var(--shadow-soft); }
.lightbox-close {
  position: absolute; top: 30px; right: 40px;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* ---------------- Reveal utility ---------------- */
.reveal { opacity: 0; transform: translateY(46px); }
.reveal-img { clip-path: inset(0 0 100% 0); }
.icon { width: 20px; height: 20px; }

/* =========================================================
   Animation upgrade layer — 3D + complex scroll + gallery
   ========================================================= */

/* ---- Hero particle canvas (home) ---- */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---- Page-hero interactive 3D canvases (portfolio / about) ---- */
#portfolio-hero-3d, #about-hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero .hero-content { z-index: 2; }

/* ---- Split text reveal ---- */
.split .line { display: block; overflow: hidden; }
.split .word {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}

/* ---- 3D tilt elements ---- */
.tilt-el {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
}
.tilt-el img { transition: transform 0.5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.discover-card.tilt-el, .value-item.tilt-el, .project-media.tilt-el {
  box-shadow: 0 0 0 rgba(193,124,70,0);
}
.tilt-el:hover {
  box-shadow: 0 30px 60px -25px rgba(18,36,26,0.45);
  z-index: 5;
}
.value-item.tilt-el:hover { box-shadow: inset 0 0 0 1px var(--leaf); }

/* ---- Horizontal pinned gallery ---- */
.hscroll-wrap {
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.hscroll-track {
  display: flex;
  align-items: center;
  gap: 28px;
  will-change: transform;
  padding-left: 40px;
}
.hscroll-track .g-item {
  flex: 0 0 380px;
  height: 62vh;
  aspect-ratio: auto;
  overflow: hidden;
  perspective: 900px;
}
.hscroll-track .g-item.tall { height: 74vh; }
.hscroll-track .g-item img { width: 100%; height: 100%; object-fit: cover; }
.hscroll-hint {
  text-align: center;
  font-family: var(--ff-display);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-top: -10px;
  padding-bottom: 40px;
}

@media (max-width: 720px) {
  .hscroll-wrap { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
  .hscroll-track { padding: 0 20px; }
  .hscroll-track .g-item { flex: 0 0 78vw; height: 52vh; scroll-snap-align: center; }
  .hscroll-track .g-item.tall { height: 52vh; }
}

/* ---- Process connector line ---- */
.process-list { position: relative; }
.process-line {
  position: absolute;
  left: 44px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.12);
  z-index: 0;
}
.process-line-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 0%;
  background: var(--gold);
  transform-origin: top;
}
.process-item { position: relative; z-index: 1; background: transparent; }

/* ---- Magnetic buttons ---- */
.btn { will-change: transform; }

/* ---- Lightbox nav + transition ---- */
.lightbox img {
  transform: scale(0.88);
  filter: blur(10px);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.45s ease;
}
.lightbox.active img { transform: scale(1); filter: blur(0); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.lightbox-nav:hover { background: var(--gold); border-color: var(--gold); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
.lightbox-counter {
  position: absolute;
  bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

/* ---- 3D flip reveal base state (set before GSAP takes over) ---- */
.flip-reveal { opacity: 0; }

/* =========================================================
   Contact section — rounded cards (matches original layout)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 46px 40px;
}
.contact-info-card h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 12px;
}
.contact-info-card > p {
  color: rgba(255,255,255,0.68);
  margin: 0;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.contact-row .ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(58,181,77,0.16);
  color: var(--leaf-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row strong { display: block; font-size: 14px; color: #fff; font-family: var(--ff-display); font-weight: 400; margin-bottom: 3px; }
.contact-row span { font-size: 13.5px; color: rgba(255,255,255,0.62); }

.form-card {
  background: var(--paper);
  border-radius: 28px;
  padding: 44px;
  box-shadow: var(--shadow-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(193,124,70,0.14);
}
.form-card .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Nav dropdown menu — "Home" quick-scroll panel
   ========================================================= */
.nav-item { position: relative; }
.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-top .chevron {
  transition: transform 0.3s ease;
  display: inline-flex;
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 240px;
  background: rgba(28,43,31,0.98);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 50;
  visibility: hidden;
}
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(28,43,31,0.98);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}
.dropdown-panel a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0.7;
  flex-shrink: 0;
}
.dropdown-panel a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding-left: 18px;
}
.dropdown-panel a::after { display: none; }

@media (max-width: 960px) {
  .dropdown-panel {
    position: static;
    left: 0;
    min-width: 0;
    background: rgba(255,255,255,0.04);
    box-shadow: none;
    border: none;
    margin-top: 6px;
    display: none;
  }
  .dropdown-panel::before { display: none; }
  .nav-item.open .dropdown-panel { display: block; }
  .dropdown-panel a { color: rgba(255,255,255,0.75); }
}

/* ---------------- Page hero eyebrow inline gap fix ---------------- */
.page-hero .content { max-width: 640px; }

/* ---------------- Stats band ---------------- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.stat {
  flex: 1;
  min-width: 150px;
  text-align: center;
}
.stat .num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 46px;
  color: var(--gold-light);
  font-weight: 500;
}
.stat .lbl {
  display: block;
  font-family: var(--ff-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-text);
}
