/**
 * Ahyiresu Farmhouse — Brand Design Tokens
 *
 * Single source of truth for all brand colours, fonts, and spacing.
 * Loaded first in header.php before style.css, booking.css, and the
 * Tailwind CDN config — so every layer reads from these variables.
 *
 * To change a brand colour, update it here only.
 *
 * ── Where these values come from ───────────────────────────────────────
 * "Ahyiresu FarmHouse Brand Guide", Pg 25 (PRIMARY COLORS) for the five
 * hundreds, and Pg 26 (Color Tints & Shades) for the 75/50/25/10 ladder.
 * The tints are each colour mixed with white at the stated percentage,
 * which is the construction the guide's own page uses.
 *
 * Every value below is the guide's. Nothing here is hand-mixed, and
 * nothing outside this ladder is a brand colour — if a design needs a
 * shade that is not here, it needs a different step, not a new colour.
 */

:root {
  /* ── Brand palette — Pg 25 ───────────────────────────────────────────
     These were previously approximations: green was #1b4d3e, bronze
     #cd7f32, champagne #f7e7ce, coyote #81613c. None matched the guide. */
  --green-100:      #204938;   /* Brunswick Green */
  --coyote-100:     #876345;   /* Coyote Brown    */
  --champagne-100:  #F1DFC6;   /* Champagne       */
  --bronze-100:     #B7833E;   /* Bronze          */
  --blue-100:       #788AA3;   /* Shadow Blue     */

  /* ── Tint ladder — Pg 26 ───────────────────────────────────────────── */
  --green-75:       #58776A;
  --green-50:       #90A49C;
  --green-25:       #C7D2CD;
  --green-10:       #E9EDEB;

  --coyote-75:      #A58A74;
  --coyote-50:      #C3B1A2;
  --coyote-25:      #E1D8D1;
  --coyote-10:      #F3EFEC;

  --champagne-75:   #F5E7D4;
  --champagne-50:   #F8EFE3;
  --champagne-25:   #FCF7F1;
  --champagne-10:   #FEFCF9;

  --bronze-75:      #C9A26E;
  --bronze-50:      #DBC19F;
  --bronze-25:      #EDE0CF;
  --bronze-10:      #F8F3EC;

  /* Shadow Blue is not on the tints page; the same mix, same steps. */
  --blue-75:        #9AA7BA;
  --blue-50:        #BCC5D1;
  --blue-25:        #DDE2E8;
  --blue-10:        #F2F3F6;

  /* ── Names used across the codebase ──────────────────────────────────
     Aliases of the 100% step, so the hundreds of existing
     var(--brunswick-green) references keep working. */
  --brunswick-green:  var(--green-100);
  --bronze:           var(--bronze-100);
  --champagne:        var(--champagne-100);
  --coyote-brown:     var(--coyote-100);
  --shadow-blue:      var(--blue-100);
  --brand-bronze:     var(--bronze-100);   /* was referenced but never defined */

  /* ── The page ground ─────────────────────────────────────────────────
     What a section sits on when it is not carrying a band of its own.
     This was #fff, repeated in 22 section rules; it is the warm champagne
     step the Two-Column Media band already used on the residence page.
     One token, so the whole site's ground moves together. */
  --page-ground:      var(--champagne-50);

  /* ── Neutrals ────────────────────────────────────────────────────────
     Mapped onto the ladder rather than invented. The old values
     (#F5F1ED, #E8E4DF, #D4CECA) were close to these but off-guide. */
  /* champagne-50, not 25: the page itself is champagne-25, so a "cream"
     section set to the same step would be invisible. This is the soft warm
     wash a section asks for; the paper is one step lighter. */
  --luxe-cream:       var(--champagne-50);
  --luxe-light:       var(--coyote-25);
  --luxe-gray:        var(--coyote-50);
  --luxe-accent:      var(--coyote-75);
  --luxe-dark:        #3D3D3A;             /* body ink */

  /* ── Derived ─────────────────────────────────────────────────────────
     Darker steps, for gradients and hover states. Not on the guide's
     page, which only goes lighter — these are the same colour with
     black mixed in at 15%, used sparingly. */
  --green-shade:          #1B3E30;
  /* Coyote at full strength cannot carry this site's band text: white at the
     .65 the small print uses lands on 3.3:1. Darkened on the same hue it
     reaches 4.9:1, and still reads unmistakably as the warm brown. */
  --coyote-shade:         #5E432F;
  --brunswick-green-dark: var(--green-shade);
  --bronze-shade:         #9C6F35;
  --bronze-hover:         var(--bronze-shade);

  /* ── Semantic ────────────────────────────────────────────────────────
     Surfaces and states, so components stop reaching for raw hexes.
     Status colours are the nearest brand relatives: green for success,
     bronze for warning. Only the error red sits outside the palette,
     because nothing in a warm green-and-gold guide reads as "stop". */
  --surface:        #ffffff;
  --surface-sunk:   var(--champagne-25);
  --border:         var(--coyote-25);
  --border-strong:  var(--coyote-50);
  --ink:            var(--luxe-dark);
  --ink-muted:      rgba(61, 61, 58, .66);
  --ink-faint:      rgba(61, 61, 58, .45);

  --success-bg:     var(--green-10);
  --success-ink:    var(--green-100);
  --warning-bg:     var(--bronze-10);
  --warning-ink:    var(--coyote-100);
  --error-bg:       #FBEDEC;
  --error-ink:      #8E2B21;
  --info-bg:        var(--blue-10);
  --info-ink:       var(--blue-100);

  /* ── Typography ─────────────────────────────────────────────────────
     Open Sans throughout — the brand guide's typeface for web (p.33).
     --font-serif is referenced 21 times in style.css and was never
     defined, so every section-pack heading fell back to Georgia. */
  --font-heading: 'Open Sans', system-ui, sans-serif;
  /* Used by the reviews band only — a quote set in the body face reads as
     the resort talking about itself rather than as somebody quoted. */
  --font-quote:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui:      'Open Sans', system-ui, sans-serif;
  --font-serif:   'Open Sans', system-ui, sans-serif;

  /* ── Layout ──────────────────────────────────────────────────────── */
  --site-max:   1280px;
  --site-wide:  1560px;

  /* ── Spacing scale ───────────────────────────────────────────────── */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   32px;
  --space-lg:   64px;
  --space-xl:   96px;
  --space-2xl:  140px;

  /* ── Shadow scale ────────────────────────────────────────────────── */
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl:    0 24px 80px rgba(0,0,0,0.20);
  --shadow-green: 0 8px 28px rgba(32,73,56,0.14);
}
