/* GF Real Estate — shared shell and design foundation
 *
 * Loaded on every deployed route through the `gf:shell:head` marker region.
 *
 * ADDITIVE BY CONSTRUCTION. This file may only contain:
 *   1. custom-property declarations on :root, which set no styles by themselves;
 *   2. selectors namespaced `.gf-*`, a prefix that appeared zero times in the
 *      HTML corpus before this file existed;
 *   3. focus-visible rules scoped to the shared shell chrome (#site-nav,
 *      #mobile-menu, #nav-toggle, .gf-footer-scope).
 * Nothing here matches page content, page stylesheets, or any of the nine form
 * types. A rule that would restyle existing markup does not belong in this file
 * — it belongs in a visual phase with its own approval.
 *
 * The tokens below are DESCRIPTIVE. They record the constants the site already
 * uses so future work has one place to read them from; adopting them in page
 * markup is a later phase, not this one.
 *
 * Colour authority: brand/gf-design-tokens.json, which encodes
 * docs/GF_VISUAL_IDENTITY_SYSTEM_REV4.md (ratified 2026-08-01, PD-2026-08-01-REV4).
 * Only tokens carrying the `public-web` profile appear here.
 *
 * Created August 20, 2026 — CC Phase 3A.
 */

:root {
  /* ── Colour — public-web approved tokens only ─────────────────────── */
  --gf-midnight-navy: #0E1A2B;      /* primary ink, structural authority     */
  --gf-deep-slate: #243447;         /* secondary structural field            */
  --gf-body-ink: #111827;           /* dense body text on light              */
  --gf-limestone: #FAFAF7;          /* page/canvas/wrapper surface           */
  --gf-white: #FFFFFF;              /* cards, panels, tables                 */
  --gf-cool-wash: #F6F7F8;          /* page wash                             */
  --gf-subtle-separation: #F2F4F7;  /* band separation                       */
  --gf-thesis-wash: #EEF2FB;        /* thesis / pull-quote field             */
  --gf-cool-border: #E1E5EA;        /* general hairline                      */
  --gf-gf-blue: #3261C2;            /* action on light                       */
  --gf-gf-blue-on-navy: #5A82D6;    /* action and focus on dark              */
  --gf-muted-slate: #5B6675;        /* secondary text on light               */
  --gf-fog-blue: #A7B7C7;           /* tertiary text on light                */
  --gf-success: #2A6E3B;
  --gf-warning: #B45309;
  --gf-error: #9B2C2C;

  /* ── Type — the two approved families ─────────────────────────────── */
  --gf-font-display: 'Playfair Display', serif;   /* sparing, editorial      */
  --gf-font-body: 'Montserrat', sans-serif;       /* functional and body     */

  /* Role sizes, read off the deployed corpus rather than invented.
     The site is eyebrow-led: 9–13px at wide tracking carries most of it. */
  --gf-type-eyebrow: 10px;
  --gf-type-caption: 11px;
  --gf-type-meta: 12px;
  --gf-type-body: 13px;
  --gf-type-body-lg: 15px;
  --gf-type-lead: 18px;
  --gf-type-title: 22px;
  --gf-type-display-sm: 28px;
  --gf-type-display: 36px;

  --gf-tracking-eyebrow: 0.18em;
  --gf-tracking-label: 0.14em;
  --gf-tracking-nav: 0.12em;
  --gf-tracking-body: 0.06em;

  --gf-leading-tight: 1.25;
  --gf-leading-body: 1.82;

  /* ── Space — 4px base, at the steps the site actually uses ────────── */
  --gf-space-1: 4px;
  --gf-space-2: 8px;
  --gf-space-3: 12px;
  --gf-space-4: 16px;
  --gf-space-6: 24px;
  --gf-space-8: 32px;
  --gf-space-12: 48px;
  --gf-space-16: 64px;
  --gf-space-20: 80px;
  --gf-space-25: 100px;
  --gf-space-30: 120px;

  /* ── Layout ───────────────────────────────────────────────────────── */
  --gf-container: 1400px;           /* 343 of 379 max-width declarations    */
  --gf-measure: 760px;              /* comfortable reading column           */
  --gf-gutter: 80px;                /* desktop section inset                */
  --gf-gutter-mobile: 24px;

  /* Breakpoints are recorded for reference. Custom properties cannot be
     used in @media conditions, so the values are repeated literally below;
     if one changes, both must change. */
  --gf-bp-desktop: 1024px;
  --gf-bp-mobile: 767px;
  --gf-bp-small: 430px;

  /* ── Focus ────────────────────────────────────────────────────────── */
  --gf-focus-ring: 2px solid #5A82D6;
  --gf-focus-offset: 3px;
}

/* ═══ Shell: skip link ══════════════════════════════════════════════════
   New markup introduced by this phase. Off-screen until focused, so it is
   invisible to a pixel comparison of the unfocused page. */
.gf-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: #0E1A2B;
  color: #FAFAF7;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #5A82D6;
}

.gf-skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ═══ Shell: keyboard focus ═════════════════════════════════════════════
   Scoped to shared chrome. Page content and every form field are left to
   their own stylesheets — a site-wide focus ring is a visual-phase decision,
   not a shell one. :focus-visible keeps pointer interaction unchanged. */
#site-nav a:focus-visible,
#mobile-menu a:focus-visible,
#nav-toggle:focus-visible,
.gf-footer-scope a:focus-visible {
  outline: 2px solid #5A82D6;
  outline-offset: 3px;
}

/* ═══ Design foundation ═════════════════════════════════════════════════
   Structural primitives available to later phases. Nothing on the site
   references them yet; they carry no visual effect until markup opts in. */

/* Containers */
.gf-container { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: 80px; padding-right: 80px; }
.gf-container--narrow { max-width: 760px; }
.gf-measure { max-width: 760px; }

/* Sections */
.gf-section { padding-top: 100px; padding-bottom: 100px; }
.gf-section--tight { padding-top: 64px; padding-bottom: 64px; }
.gf-section--navy { background: #0E1A2B; }
.gf-section--wash { background: #F6F7F8; }
.gf-section--limestone { background: #FAFAF7; }
.gf-rule { border: 0; border-top: 1px solid #E1E5EA; margin: 0; }

/* Grids */
.gf-grid { display: grid; gap: 24px; }
.gf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gf-stack > * + * { margin-top: 24px; }
.gf-stack--tight > * + * { margin-top: 12px; }

/* Type roles */
.gf-eyebrow {
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.gf-kicker {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.gf-display {
  font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 400;
  line-height: 1.25; letter-spacing: 0.01em;
}
.gf-title {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 400;
  line-height: 1.35;
}
.gf-lead {
  font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 300;
  line-height: 1.7; letter-spacing: 0.02em;
}
.gf-body {
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 400;
  line-height: 1.82; letter-spacing: 0.06em;
}
.gf-meta {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 400;
  letter-spacing: 0.08em;
}

/* Actions */
.gf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border: 1px solid transparent; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.gf-btn--primary { background: #3261C2; color: #FFFFFF; }
.gf-btn--primary:hover { background: #243447; }
.gf-btn--ghost { background: transparent; color: #0E1A2B; border-color: #E1E5EA; }
.gf-btn--ghost:hover { border-color: #0E1A2B; }
.gf-btn--on-navy { background: transparent; color: #FAFAF7; border-color: rgba(250,250,247,0.35); }
.gf-btn--on-navy:hover { border-color: #5A82D6; color: #5A82D6; }

.gf-link {
  color: #3261C2; text-decoration: none;
  border-bottom: 1px solid rgba(50,97,194,0.35);
  transition: border-color 0.25s;
}
.gf-link:hover { border-bottom-color: #3261C2; }
.gf-link--on-navy { color: #5A82D6; border-bottom-color: rgba(90,130,214,0.35); }
.gf-link--on-navy:hover { border-bottom-color: #5A82D6; }

/* Modules */
.gf-card { background: #FFFFFF; border: 1px solid #E1E5EA; padding: 32px 28px; }
.gf-card--navy { background: #243447; border-color: rgba(250,250,247,0.10); }
.gf-card--flush { padding: 0; }
.gf-panel { background: #F2F4F7; padding: 32px 28px; }
.gf-thesis { background: #EEF2FB; padding: 32px 28px; border-left: 2px solid #3261C2; }

/* Utility */
.gf-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Responsive — literals mirror --gf-bp-* above */
@media (max-width: 1024px) {
  .gf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .gf-container { padding-left: 24px; padding-right: 24px; }
  .gf-section { padding-top: 64px; padding-bottom: 64px; }
  .gf-section--tight { padding-top: 48px; padding-bottom: 48px; }
  .gf-grid--2,
  .gf-grid--3,
  .gf-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .gf-display { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .gf-btn,
  .gf-link,
  .gf-link--on-navy { transition: none; }
}
