/* ============================================================
   770 BUILD MANAGEMENT GROUP — Design System
   Luxury residential project management
   ============================================================ */

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

:root {
  /* Palette */
  --black:      #0A0A0A;   /* page base */
  --ink:        #111111;
  --char:       #161616;   /* raised panels on dark */
  --char-2:     #1E1E1E;
  --bone:       #F4F0E8;   /* light section */
  --paper:      #FBF9F4;
  --gold:       #C0A062;   /* champagne brass */
  --gold-soft:  #D8C290;
  --gold-deep:  #9C7E45;

  /* Text */
  --on-dark:        #F4F0E8;
  --on-dark-dim:    rgba(244,240,232,0.62);
  --on-dark-faint:  rgba(244,240,232,0.40);
  --on-light:       #1A1A1A;
  --on-light-dim:   #5A5750;

  /* Lines */
  --line-dark:  rgba(244,240,232,0.14);
  --line-light: rgba(26,26,26,0.14);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--on-dark);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--black); }

/* ─── Typography primitives ─── */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--dim { color: var(--on-light-dim); }
.lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--on-dark-dim);
  max-width: 58ch;
}

/* ─── Layout ─── */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(24px, 5vw, 72px); padding-right: clamp(24px, 5vw, 72px); }
.section { padding: clamp(72px, 11vw, 160px) 0; }
.section--light { background: var(--bone); color: var(--on-light); }
.section--char { background: var(--char); }
.divider { height: 1px; background: var(--line-dark); border: 0; }
.section--light .divider { background: var(--line-light); }

.section-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 32px;
}
.section-label::before { content: ''; width: 38px; height: 1px; background: var(--gold); display: inline-block; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all 0.35s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-dark { background: transparent; color: var(--on-light); border-color: var(--line-light); }
.btn-ghost-dark:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-arrow::after { content: '→'; font-size: 0.95rem; transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(5px); }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 72px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
  padding-top: 16px; padding-bottom: 16px;
}
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); list-style: none; }
.nav-links a {
  color: var(--on-dark); text-decoration: none;
  font-size: 0.72rem; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase;
  position: relative; padding: 4px 0; transition: color 0.3s var(--ease); white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-inquire {
  padding: 12px 26px !important; border: 1px solid var(--gold) !important; color: var(--gold) !important;
  letter-spacing: 0.2em !important;
}
.nav-inquire::after { display: none !important; }
.nav-inquire:hover { background: var(--gold); color: var(--black) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 1100; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: var(--on-dark); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 360px);
    background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 0 48px; transform: translateX(100%); transition: transform 0.45s var(--ease);
    border-left: 1px solid var(--line-dark);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; letter-spacing: 0.16em; }
  .nav-inquire { margin-top: 12px; }
}

/* ─── HERO (shared base) ─── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  padding: 0 0 clamp(64px, 9vh, 120px); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.6) 40%, rgba(10,10,10,0.25) 100%),
    linear-gradient(0deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.1) 55%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-title { font-size: clamp(2.8rem, 7vw, 6rem); color: var(--on-dark); margin: 22px 0; }
.hero-title em { font-style: italic; color: var(--gold); }

/* page hero (interior pages, shorter) */
.pagehero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; padding: 0 0 clamp(48px,7vh,90px); overflow: hidden; }
.pagehero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pagehero::after { content:''; position:absolute; inset:0; z-index:1; background: linear-gradient(0deg, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.35) 60%, rgba(10,10,10,0.55) 100%); }
.pagehero .wrap { position: relative; z-index: 2; width: 100%; }
.pagehero-title { font-size: clamp(2.4rem, 5.5vw, 4.6rem); color: var(--on-dark); margin-top: 18px; }

/* ─── Service / feature cards ─── */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.tile {
  background: var(--black); padding: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--on-dark);
  transition: background 0.4s var(--ease);
}
.tile:hover { background: var(--char); }
.tile-img { aspect-ratio: 4/3; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.7s var(--ease); filter: brightness(0.82); }
.tile:hover .tile-img img { transform: scale(1.06); filter: brightness(1); }
.tile-body { padding: 28px 26px 34px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-icon {
  width: 58px; height: 58px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #000; margin-bottom: 4px; transition: border-color 0.4s var(--ease);
}
.tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile-icon { border-color: var(--gold-soft); }
.tile-num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-style: italic; }
.tile-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.tile-desc { font-size: 0.82rem; color: var(--on-dark-dim); line-height: 1.7; }

@media (max-width: 980px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

/* ─── Generic two-column ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--media-right { direction: ltr; }
.split img { width: 100%; height: 100%; object-fit: cover; }
.split-media { aspect-ratio: 4/5; overflow: hidden; }
.split-media img { transition: transform 0.9s var(--ease); }
.split-media:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.12; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; }
.body-copy { font-size: 1rem; font-weight: 300; line-height: 1.9; color: var(--on-dark-dim); }
.section--light .body-copy { color: var(--on-light-dim); }
.body-copy + .body-copy { margin-top: 18px; }

/* pull quote */
.pull {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.3; letter-spacing: -0.01em;
}
.pull .accent { color: var(--gold); }

/* stat / list rows */
.statement-list { list-style: none; display: grid; gap: 0; }
.statement-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--line-dark);
}
.section--light .statement-list li { border-top-color: var(--line-light); }
.statement-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.section--light .statement-list li:last-child { border-bottom-color: var(--line-light); }
.statement-list .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.2rem; }
.statement-list .st-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.statement-list .st-desc { font-size: 0.9rem; color: var(--on-dark-dim); margin-top: 6px; }
.section--light .statement-list .st-desc { color: var(--on-light-dim); }

/* service capability columns */
.cap-cols { columns: 2; column-gap: 48px; }
.cap-cols li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line-dark); list-style: none;
  font-size: 0.9rem; color: var(--on-dark-dim); letter-spacing: 0.02em; }
.section--light .cap-cols li { border-bottom-color: var(--line-light); color: var(--on-light-dim); }
@media (max-width: 620px) { .cap-cols { columns: 1; } }

/* ─── CTA band ─── */
.cta-band { background: var(--char); text-align: center; }
.cta-band .h2 { max-width: 18ch; margin: 0 auto 18px; }

/* ─── FOOTER ─── */
.footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: clamp(56px,7vw,84px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-logo img { height: 30px; margin-bottom: 22px; }
.footer-tag { font-size: 0.85rem; color: var(--on-dark-dim); max-width: 36ch; line-height: 1.8; }
.footer-col h4 { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 400; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a, .footer-col p { color: var(--on-dark-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 30px; }
.footer-bottom p, .footer-bottom a { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ─── utilities ─── */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.maxw-sm { max-width: 620px; } .maxw-md { max-width: 760px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.text-gold { color: var(--gold); }
