@charset "UTF-8";
/* ==========================================================================
   Glass Verandas UK - design system
   Palette derived from the client's reference board (Pillow extraction) and
   the brand green sampled from the logo wordmark (#105820).

   Shape system (locked, two values only):
     interactive (buttons, pills) .... 999px
     everything else ................. 20px
   Accent lock: one action accent (orange). Yellow is a surface tint used
   for guide-price highlights only, never as a second CTA colour.
   ========================================================================== */

/* --- fonts (self-hosted, latin subset) ---------------------------------- */
@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;
  src:url('../fonts/geist-400.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;
  src:url('../fonts/geist-500.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;
  src:url('../fonts/geist-600.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

@font-face{font-family:'Geist';font-style:normal;font-weight:700;font-display:swap;
  src:url('../fonts/geist-700.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;
  src:url('../fonts/playfair-display-500.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* --- tokens ------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --bg:            #FBF7EC;
  --surface:       #FFFFFF;
  --surface-2:     #F4EEE0;
  --surface-sink:  #EFE7D5;

  --ink:           #12321C;   /* dark forest bands, footer */
  --ink-2:         #0B1D10;

  --brand:         #105820;   /* sampled from logo */
  --brand-hover:   #0C4419;
  --brand-soft:    #E4EEE3;

  --accent:        #C74F14;   /* action accent. Deepened from #E85C18 so
                                 white button text reaches WCAG AA 4.61:1 */
  --accent-hover:  #B04512;
  --accent-soft:   #FDE7DA;

  --highlight:     #F2F58A;   /* guide-price tint only */

  --fg:            #16201A;
  --fg-2:          #4C5A4C;
  --fg-3:          #667165;   /* 4.77:1 on cream, 5.10:1 on white */
  --on-dark:       #F2F0E6;
  --on-dark-2:     #B4C0B2;
  --on-accent:     #FFFFFF;   /* label colour on an accent background */

  --line:          rgba(18, 50, 28, .14);
  --line-strong:   rgba(18, 50, 28, .26);
  --line-dark:     rgba(242, 240, 230, .18);

  --r:             20px;   /* surfaces */
  --r-pill:        999px;  /* interactive */

  --shadow-sm: 0 1px 2px rgba(18, 50, 28, .05), 0 2px 8px rgba(18, 50, 28, .04);
  --shadow-md: 0 4px 14px rgba(18, 50, 28, .07), 0 14px 38px rgba(18, 50, 28, .06);

  --wrap:   1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sect:   clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0E1511;
    --surface:      #16201A;
    --surface-2:    #1B2720;
    --surface-sink: #101A14;

    --ink:          #0A100C;
    --ink-2:        #060A07;

    --brand:        #6FBF82;
    --brand-hover:  #8AD09B;
    --brand-soft:   #1B2C1F;

    --accent:       #FF8347;
    --accent-hover: #FF9A67;
    --accent-soft:  #2E1B10;

    --highlight:    #D8DE5A;

    --fg:           #ECEFE7;
    --fg-2:         #AFBCAD;
    --fg-3:         #879385;   /* was an 8-digit hex, which silently
                                  applied 60% opacity and failed contrast */
    --on-dark:      #ECEFE7;
    --on-dark-2:    #AFBCAD;
    --on-accent:    #0B1D10;   /* dark label on the bright orange */

    --line:         rgba(236, 239, 231, .14);
    --line-strong:  rgba(236, 239, 231, .26);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 14px 38px rgba(0, 0, 0, .45);
  }
}

/* --- base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--fg-2); line-height: 1.62; }

/* Playfair italic descenders clip at tight leading; reserve space. */
em, .em {
  font-style: italic;
  color: var(--brand);
  line-height: 1.14;
  padding-bottom: .06em;
  display: inline-block;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: .85rem 1.25rem; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* --- layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sink { background: var(--surface-sink); }
.section--surface { background: var(--surface-2); }

.stack > * + * { margin-top: 1rem; }

/* Eyebrow. Budget: max one per three sections (anti-template rule). */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px;
  background: var(--accent); transform: rotate(45deg); flex: none;
}
.on-dark .eyebrow { color: var(--highlight); }

/* --- buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: var(--r-pill);
  font: inherit; font-weight: 600; font-size: .95rem;
  white-space: nowrap;               /* CTA labels never wrap */
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), transform .12s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover { --btn-bg: var(--accent-hover); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--fg);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--surface); --btn-fg: var(--fg); }

.on-dark .btn--ghost { --btn-fg: var(--on-dark); border-color: var(--line-dark); }
.on-dark .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #fff; }

.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }

/* --- surfaces ----------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
}
.on-dark { background: var(--ink); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }
.on-dark p, .on-dark .lede { color: var(--on-dark-2); }

.media { border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }

.price-tag {
  display: inline-block;
  background: var(--highlight); color: #22280A;
  padding: .3rem .8rem; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}

/* --- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }

.site-header__inner {
  height: 72px;                       /* nav height cap */
  display: flex; align-items: center; gap: 1.5rem;
}
.site-header__logo { flex: none; display: flex; align-items: center; }
/* The wordmark is ~19:1, so it must be sized by WIDTH. Sizing by height
   pushes it past 500px and blows out narrow viewports. */
.site-header__logo img { width: clamp(186px, 24vw, 280px); height: auto; }

.nav { margin-left: auto; }
.nav ul {
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem);
  list-style: none; margin: 0; padding: 0;
  white-space: nowrap;                /* single line at desktop */
}
.nav a {
  position: relative; text-decoration: none;
  font-size: .93rem; font-weight: 500; color: var(--fg-2);
  transition: color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -7px;
  width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--accent); border-radius: 50%;
}
.site-header .btn { flex: none; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); padding: .55rem .9rem;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--fg); cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header__inner > .btn { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.75rem;
    transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: .9rem 0; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
}

/* --- footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.site-footer .foot-h {
  font-family: "Geist", sans-serif; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .93rem; }
.site-footer__logo img { width: clamp(190px, 22vw, 240px); height: auto; margin-bottom: 1.1rem; }
.site-footer__legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .84rem; color: var(--on-dark-2);
}
/* Agency credit runs on inline, straight after the copyright. */
.site-footer__credit a {
  color: var(--on-dark); text-decoration: underline;
  text-decoration-color: rgba(242, 240, 230, .4); text-underline-offset: 2px;
}
.site-footer__credit a:hover { color: #fff; text-decoration-color: currentColor; }
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* --- motion (MOTION_INTENSITY 5) ---------------------------------------- */
/* Reveal-on-scroll. Driven by IntersectionObserver, never a scroll listener. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); }
  .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
