/* ============================================================
   APEX NORTH BUILDERS — Main Stylesheet
   Brand: Navy #081f41 | Amber #d97706 | Steel #616263
   Font: Inter (body) + Fraunces (headings)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&display=swap');

:root {
  --navy:        #081f41;
  --navy-mid:    #0c2a56;
  --navy-light:  #112f5e;
  --amber:       #d97706;
  --amber-light: #f59e0b;
  --amber-pale:  #fef3c7;
  --steel:       #616263;
  --steel-light: #8a8b8c;
  --cream:       #f2efe9;
  --warm-white:  #faf9f7;
  --white:       #ffffff;
  --text-dark:   #0f1923;
  --text-body:   #374151;
  --text-muted:  #6b7280;
  --border:      rgba(8, 31, 65, 0.1);
  --border-med:  rgba(8, 31, 65, 0.18);

  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif:  'Fraunces', Georgia, serif;

  --nav-h:      76px;
  --section-px: clamp(20px, 6vw, 96px);
  --section-py: clamp(56px, 8vw, 112px);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--text-dark); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── Typography ── */
.t-eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--steel); }
.t-eyebrow--white { color: rgba(255,255,255,0.55); }
.t-h1 { font-family: var(--serif); font-size: clamp(48px,5.5vw,80px); font-weight: 400; line-height: 1.08; color: var(--text-dark); letter-spacing: -0.02em; }
.t-h2 { font-family: var(--serif); font-size: clamp(32px,3.5vw,52px); font-weight: 400; line-height: 1.12; color: var(--text-dark); letter-spacing: -0.01em; }
.t-h2--white { color: var(--white); }
.t-h3 { font-family: var(--serif); font-size: clamp(20px,2vw,28px); font-weight: 400; line-height: 1.25; color: var(--text-dark); }
.t-body { font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.75; color: var(--text-body); }
.t-body--white { color: rgba(255,255,255,0.85); }
.t-small { font-family: var(--sans); font-size: 13.5px; font-weight: 400; line-height: 1.65; color: var(--text-muted); }
.t-small--white { color: rgba(255,255,255,0.65); }

/* ── Eyebrow rule ── */
.eyebrow-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.eyebrow-rule { width: 32px; height: 2px; background: var(--amber); flex-shrink: 0; }
.eyebrow-rule--white { background: rgba(255,255,255,0.35); }
.eyebrow-rule--navy  { background: var(--navy); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 32px; transition: all var(--transition);
  white-space: nowrap; cursor: pointer;
}
.btn svg { transition: transform var(--transition); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

.btn--navy { background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.btn--navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

.btn--amber { background: var(--amber); color: var(--white); border: 2px solid var(--amber); }
.btn--amber:hover { background: var(--amber-light); border-color: var(--amber-light); }

.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.55); }
.btn--outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--ghost { background: transparent; color: var(--text-dark); border: none; padding-left: 0; padding-right: 0; }
.btn--ghost:hover { color: var(--navy); }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  background: #ffffff;
  border-bottom: 1px solid rgba(8,31,65,0.08);
  transition: box-shadow var(--transition);
}
.nav.is-scrolled { box-shadow: 0 2px 20px rgba(8,31,65,0.09); }
.nav__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--section-px); max-width: 1440px; margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: #0f1923;
  letter-spacing: 0.01em; position: relative; padding-bottom: 3px;
  transition: color var(--transition);
}
.nav__link::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--navy); font-weight: 600; }
.nav__cta { margin-left: 12px; }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all var(--transition); transform-origin: center; }
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px var(--section-px) 20px;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(8,31,65,0.10); z-index: 499;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: var(--text-dark); padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--navy); }

/* ── Page Hero ── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 56px) var(--section-px) 68px;
}
.page-hero__inner { max-width: 1440px; margin: 0 auto; }
.page-hero__tag { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.page-hero__tag span { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.page-hero__tag-bar { width: 28px; height: 2px; background: var(--amber); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(38px,5vw,68px); font-weight: 400; color: var(--white); line-height: 1.08; max-width: 700px; letter-spacing: -0.01em; }
.page-hero p { font-family: var(--sans); font-size: 17px; font-weight: 400; line-height: 1.75; color: rgba(255,255,255,0.72); max-width: 560px; margin-top: 18px; }

/* ── Section ── */
.section { padding: var(--section-py) var(--section-px); }
.section__inner { max-width: 1440px; margin: 0 auto; }

/* ── Marquee ── */
.marquee { background: var(--navy); padding: 15px 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 24px; padding: 0 24px; font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.marquee__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--amber); flex-shrink: 0; opacity: 0.7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Process section ── */
.process-section { background: var(--navy); }
.process-section .process-step h3 { color: var(--white); }
.process-section .process-step p  { color: rgba(255,255,255,0.72); }
.process-section .process-step__num { color: rgba(255,255,255,0.28); }

/* ── CTA Band ── */
.cta-band { background: var(--navy); padding: 88px var(--section-px); }
.cta-band h2 { color: var(--white); }
.cta-band h2 em { color: rgba(255,255,255,0.45); font-style: italic; }
.cta-band p { color: rgba(255,255,255,0.68); }

/* ── Footer ── */
.footer {
  background: #081f41;
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 110%, rgba(255,255,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% -10%, rgba(255,255,255,0.03) 0%, transparent 55%);
  padding: 72px var(--section-px) 32px;
}
.footer__grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 56px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand-name { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--white); margin-bottom: 6px; }
.footer__brand-tagline { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); opacity: 0.8; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__about { font-family: var(--sans); font-size: 14px; line-height: 1.78; color: rgba(255,255,255,0.62); max-width: 290px; }
.footer__col-title { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a { font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,0.62); transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--white); }
.footer__contact p { font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,0.62); margin-bottom: 8px; line-height: 1.6; }
.footer__contact a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer__contact a:hover { color: var(--white); }
.footer__bottom { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-top: 24px; }
.footer__copy { font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,0.35); }
.footer__social { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.social-btn:hover { border-color: var(--amber); background: rgba(217,119,6,0.15); transform: translateY(-2px); }
.social-btn svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.55); fill: none; stroke-width: 1.6; transition: stroke var(--transition); }
.social-btn:hover svg { stroke: var(--amber); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-22px); }
.reveal--right { transform: translateX(22px); }
.reveal--left.in, .reveal--right.in { transform: none; }

/* ── Utilities ── */
.text-navy  { color: var(--navy); }
.text-white { color: var(--white); }
.text-steel { color: var(--steel); }
.text-amber { color: var(--amber); }
.bg-navy    { background: var(--navy); }
.bg-cream   { background: var(--cream); }
.bg-white   { background: var(--white); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer { padding: 48px var(--section-px) 24px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer__about { max-width: 100%; }
  .cta-band { padding: 64px var(--section-px); }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: calc(var(--nav-h) + 36px) var(--section-px) 48px; }
}
