/* a11y.css - Fab Shutters & Blinds accessibility layer (WCAG 2.2 AA). v20261130v5
   Loaded straight after style.css. Only nudges what failed; the look stays the same. */

/* 1. Focus rings. Gold #B8873A was 2.75-3.2:1 on ivory/stone/white (needs 3:1).
      Light backgrounds: dark gold #8A6224 (4.6-5.5:1). Dark backgrounds: pale gold #D6B272 (8-9:1). */
:focus-visible{outline:2px solid var(--gold-text);outline-offset:3px}
:is(.section--dark,.site-header,.site-footer,.hero,.page-hero,.lp-hero,.band,.cta,.mobile-bar,.menu-panel,.wow-trust-band,.trust-bar,.callout,.cc,.lightbox) :focus-visible{outline-color:var(--gold-2)}
.chip input:focus-visible + span,.msf-card input:focus-visible + span,.sf-opt input:focus-visible + .sf-card,.reviews-cards:focus-visible,.addr-manual-link:focus-visible,.addr-find:focus-visible,.wow-ba__stage:has(.wow-ba__range:focus-visible){outline-color:var(--gold-text)}
.section--dark .reviews-cards:focus-visible,.section--dark .wow-ba__stage:has(.wow-ba__range:focus-visible){outline-color:var(--gold-2)}

/* 2. Form fields. Border #CFC5B6 was 1.6:1 against the field/ivory (needs 3:1 to see the box).
      Warm taupe #8F8473 = 3.4:1 on ivory, 3.7:1 on white. Focus ring now a crisp dark-gold edge. */
.field input[type="text"],.field input[type="tel"],.field input[type="email"],.field input[type="date"],.field select,.field textarea,.addr-line input{border-color:#8F8473}
.chip span::before{border-color:#8F8473}
.field input:focus,.field select:focus,.field textarea:focus,.msf-slot select:focus,.msf-slot input:focus,.addr-line input:focus{border-color:var(--gold-text);box-shadow:0 0 0 1px var(--gold-text),0 0 0 4px rgba(184,135,58,.18)}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:var(--danger)}
.field.invalid input:focus,.field.invalid select:focus,.field.invalid textarea:focus{border-color:var(--danger);box-shadow:0 0 0 1px var(--danger),0 0 0 4px rgba(163,38,27,.14)}
.field.valid input{border-color:#5E8C68}

/* 3. Text over photos. Measured pixel-by-pixel behind the text on bright white-shutter photos:
      phone hero eyebrow 1.3:1, gold italic 1.2:1, trust labels 1.3:1, page-hero eyebrows 2-3:1,
      desktop reviews/gallery/contact headline italics 1.5-2.4:1, gallery captions 2.3-2.7:1.
      Fix: a slightly deeper ink veil where the words sit, and a lighter champagne gold
      (#E2C68C, same hue as #D6B272) for small gold words on photos. */
@media (max-width:899px){
.hero .hero-shade{background:linear-gradient(180deg,rgba(8,15,27,.76) 0%,rgba(8,15,27,.74) 32%,rgba(8,15,27,.9) 66%,rgba(8,15,27,.96) 100%)}
.page-hero .hero-shade{background:linear-gradient(180deg,rgba(8,15,27,.72) 0%,rgba(8,15,27,.7) 40%,rgba(8,15,27,.9) 100%)}
.band .hero-shade{background:linear-gradient(180deg,rgba(8,15,27,.68) 0%,rgba(8,15,27,.85) 100%)}
}
@media (min-width:900px){
.page-hero .hero-shade{background:linear-gradient(90deg,rgba(8,15,27,.88) 0%,rgba(8,15,27,.74) 45%,rgba(8,15,27,.5) 80%,rgba(8,15,27,.32) 100%),linear-gradient(0deg,rgba(8,15,27,.6),rgba(8,15,27,0) 50%)}
}
:is(.hero,.page-hero) :is(.eyebrow,h1 em,.hero-slogan,.wow-trust__k),.band :is(.eyebrow,.statement em),.cta :is(.eyebrow,h2 em){color:#E2C68C}
:is(.book-card,.form) :is(.eyebrow,h2 em,h3 em){color:var(--gold-text)}
.hero .wow-trust__s,.page-hero .wow-trust__s{color:rgba(255,255,255,.82)}
.tile::after{background:linear-gradient(180deg,rgba(8,15,27,0) 30%,rgba(8,15,27,.55) 58%,rgba(8,15,27,.9) 100%)}
.cta .hero-media img{opacity:.24}
.scroll-cue{color:#FFFFFF}
.masonry figcaption{background:linear-gradient(180deg,rgba(8,15,27,0) 0,rgba(8,15,27,.74) 34px,rgba(8,15,27,.9) 100%)}

/* 4. Converted headings (h3 -> h2 for a correct outline) keep the h3 look. */
h2.a11y-h3,.prose h2.a11y-h3,.alt-card h2.a11y-h3{font-size:clamp(1.45rem,2.2vw,1.85rem);line-height:1.15;font-weight:500;letter-spacing:-.008em}
.prose h2.a11y-h3{font-size:1.5rem;margin-top:1.4em}
.callout h2.a11y-h3{color:var(--white)}
.alt-card h2.a11y-h3{margin:0 0 .3em}

/* 5. Never let fixed bars hide the focused item (WCAG 2.4.11). */
@media (max-width:1079px){html{scroll-padding-bottom:96px}}
html.cc-open{scroll-padding-bottom:320px}
@media (max-width:599px){html.cc-open{scroll-padding-bottom:min(62vh,460px)}}
.float-cta:focus-visible{opacity:1;transform:none;pointer-events:auto}
.mobile-bar:focus-within{transform:none}

/* 6. Open mobile menu: page behind it can't take keyboard focus (it's covered). */
body.nav-open > :not(.site-header):not(.menu-panel):not(.skip):not(.cc):not(.cb-dialog):not(.lightbox){visibility:hidden;transition:visibility 0s .4s}

/* 7. Cookie choices: 24px tick boxes (WCAG 2.5.8 target size). */
.cc-opt input{width:24px;height:24px}

/* 8. Motion: the scroll cue line stops after ~5 seconds (WCAG 2.2.2). */
.scroll-cue::after{animation-iteration-count:2}

/* 9. Keyboard-scrollable photo strips and comparison tables show where focus is. */
.motion-grid[tabindex]:focus-visible{outline-offset:6px}
.compare[tabindex]:focus-visible{outline-offset:2px}

/* 10. Plain text links inside dark sections: dark gold #8A6224 on ink was 3.35:1 -> pale gold 9:1. */
.section--dark :is(p,li) a:not([class]){color:var(--gold-2)}
.section--dark :is(p,li) a:not([class]):hover{color:var(--white)}
