/* ==========================================================
   CORINTHIAN ESTATE GROUP — shared light theme
   Warm White / Rich Espresso / Deep Gold / Champagne Gold
   Used by: /about, /projects (always), and the homepage
   (applied once the header scrolls past the hero via #header.light)
   ========================================================== */

:root{
  --pg-bg:        var(--ivory);   /* Warm White */
  --pg-bg-alt:    #F2ECDF;        /* Warm White, one step darker - alternates with --pg-bg so sections separate without divider lines */
  --pg-text:      #1C1209;        /* Rich Espresso (brand doc: Midnight) */
  --pg-text-dim:  rgba(28,18,9,.6);
  --pg-text-faint:rgba(28,18,9,.4);
  --pg-line:      rgba(28,18,9,.14);
  --pg-gold:      var(--gold);      /* Deep Gold #A37648 */
  --pg-champagne: var(--gold-lt);   /* Champagne Gold (brand doc: Light Gold) */
}

body.light-page{background:var(--pg-bg);color:var(--pg-text)}

/* ── HEADER: solid light bar, dark-on-light nav ──────────
   Applies always on light-page bodies, and on the homepage
   once #header picks up the .light toggle class on scroll.
   Excluded on body.has-hero: those pages (About) have their own
   dark photo hero under the header and drive #header.light purely
   from scroll, exactly like the homepage - see about.js. Without
   this exclusion the header would be a solid light bar from the
   very top, with no transparent/over-the-photo state at all. */
body.light-page:not(.has-hero) #header,
#header.light{
  background:var(--pg-bg);border-bottom:1px solid var(--pg-line);
}
/* Crossfade: dark-ink mark shows once the header is on a light surface
   (scrolled past the hero on the homepage, or always on light-page bodies);
   the light/gold mark (default, for the dark hero) fades out. Also the
   "scrolled" compact size, since the trigger is the same header.light state. */
body.light-page:not(.has-hero) .nav-logo,
#header.light .nav-logo{--logo-h:40px}
body.light-page:not(.has-hero) .logo-img--light,
#header.light .logo-img--light{opacity:0}
body.light-page:not(.has-hero) .logo-img--dark,
#header.light .logo-img--dark{opacity:1}
@media(max-width:1024px){
  body.light-page:not(.has-hero) .nav-logo,
  #header.light .nav-logo{--logo-h:34px}
}
@media(max-width:768px){
  body.light-page:not(.has-hero) .nav-logo,
  #header.light .nav-logo{--logo-h:28px}
}
body.light-page:not(.has-hero) .nav-links a,
#header.light .nav-links a{color:var(--pg-text-dim)}
body.light-page:not(.has-hero) .nav-links a:hover,
body.light-page:not(.has-hero) .nav-links a.active,
#header.light .nav-links a:hover,
#header.light .nav-links a.active{color:var(--pg-gold)}
body.light-page:not(.has-hero) .nav-cta,
#header.light .nav-cta{color:var(--pg-gold);border-color:rgba(163,118,72,.4)}
body.light-page:not(.has-hero) .nav-cta:hover,
#header.light .nav-cta:hover{background:var(--pg-gold);border-color:var(--pg-gold);color:var(--pg-bg)}
body.light-page:not(.has-hero) .nav-burger span,
#header.light .nav-burger span{background:var(--pg-text)}

/* Mobile overlay — light-page bodies only (homepage mobile menu stays dark,
   it's a full-screen takeover independent of scroll position) */
body.light-page .mob-overlay{background:var(--pg-bg)}
body.light-page .mob-link{color:var(--pg-text)}
body.light-page .mob-link:hover{color:var(--pg-gold)}
body.light-page .mob-wrap{border-bottom:1px solid var(--pg-line)}
body.light-page .mob-footer{border-top:1px solid var(--pg-line)}
body.light-page .mob-footer p{color:var(--pg-text-faint)}

/* Ghost button variant for light backgrounds (the base .btn-ghost in
   style.css is tuned for dark hero backgrounds) */
.btn-ghost-dark{background:transparent;color:var(--pg-text);border:1px solid var(--pg-line)}
.btn-ghost-dark:hover{border-color:var(--pg-gold);color:var(--pg-gold)}
