/* Woods of Haltom - hand-written, WCAG 2.1 AA oriented stylesheet. */
@font-face { font-family: "Merriweather"; src: url("/fonts/merriweather.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("/fonts/merriweather-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/roboto.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("/fonts/assistant.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --text: #494d59;          /* live text color, 8.4:1 on white */
  --teal: #447f87;          /* live #468189 darkened slightly: white text on it now 4.5:1 */
  --ink: #1b1f3b;           /* focus ring */
  --error: #b00020;
  --field-bg: #f3f8fb;
  --field-border: #6b7780;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Assistant", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; color: var(--text); background: #fff; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .75rem; color: var(--text); }
p { margin: 0 0 1rem; }
a { color: var(--teal); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

/* Visible keyboard focus everywhere (dark ring plus white halo works on light and teal backgrounds) */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; box-shadow: 0 0 0 6px #fff; border-radius: 2px; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; box-shadow: 0 0 0 5px #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: .75rem; top: -4rem; z-index: 100; background: #fff; color: var(--ink); padding: .75rem 1rem; font: 700 1rem var(--sans); border: 3px solid var(--ink); border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: .75rem; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

/* Buttons */
.btn { display: inline-block; background: var(--teal); color: #fff; font: 700 1rem/1.2 var(--serif); padding: .9rem 1.6rem; border: 2px solid var(--teal); border-radius: 10px; text-decoration: none; text-align: center; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.28); }
.btn:hover { background: #386b72; border-color: #386b72; }
.btn--sans { font-family: var(--sans); font-size: 1rem; padding: .85rem 1.5rem; }
.btn--outline { border-color: #fff; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.btn--light { background: #dbf9ff; color: #000; border-color: #dbf9ff; border-radius: 6px; padding: .9rem 2.25rem; }
.btn--light:hover { background: #c4f1fb; border-color: #c4f1fb; }
/* The focus halo must beat each button variant's own shadow, or the ring loses its white outer edge on photos */
.btn:focus-visible, .btn--outline:focus-visible, .btn--light:focus-visible, .form-submit:focus-visible { box-shadow: 0 0 0 6px #fff; }
.btn--light small { display: block; font: 700 .8125rem/1.4 var(--sans); color: #595959; margin-top: .15rem; }
.btn--light .btn-title { display: block; font-size: 1.0625rem; }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.18); position: relative; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.brand { font: 500 2rem/1.1 var(--serif); color: var(--text); text-decoration: none; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.phone-link { font: 700 .9375rem var(--sans); color: var(--text); text-decoration: underline; padding: .5rem 0; }

/* Hero */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; min-height: min(80vh, 48rem); padding: 4rem 1.25rem; background: #3b3b3b url("/images/hero-building-exterior.webp") center / cover no-repeat; box-shadow: inset 0 -6px 8px -6px rgba(0,0,0,.4); }
.hero-box { background: rgba(0,0,0,.66); max-width: 48rem; padding: 1.5rem 2rem; margin-bottom: 2rem; }
.hero h1 { color: #fff; font-weight: 400; font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0 0 .5rem; }
.hero h1 .tagline { display: block; margin-top: 1.25rem; font-size: clamp(2.1rem, 6vw, 3.4rem); }
.hero-sub { font-size: clamp(1.15rem, 3.2vw, 1.875rem); margin: 0; color: #fff; }

/* Intro */
.intro { padding: 4rem 0; }
.intro .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.intro h2 { font-size: clamp(2rem, 5vw, 3.125rem); margin-bottom: .5rem; }
.intro .subtitle { font: 500 clamp(1.4rem, 3vw, 2rem)/1.25 var(--serif); color: var(--teal); margin: 0 0 2rem; }
.intro p.lead { font-size: 1.0625rem; }
.intro-photos { display: grid; gap: 6px; }
.intro-photos img { width: 100%; }

/* CTA band */
.cta-band { background: var(--teal); color: #fff; padding: 1.75rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 3.5rem; }
.cta-band p { margin: 0; font: 700 1.25rem var(--serif); }

/* Generic sections */
.section { padding: 3.5rem 0; }
.section > .wrap > h2 { text-align: center; font-size: clamp(2rem, 5vw, 3.125rem); margin-bottom: 2rem; }
.copy { max-width: 72rem; margin: 0 auto; text-align: center; font-family: var(--body); font-size: 1.1875rem; }
.copy p { margin-bottom: 2rem; }

.plans { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.plans li { background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.28); padding: 1.5rem; }
.plans img { margin: 0 auto; }

.amenities h3 { text-align: center; text-decoration: underline; font-weight: 700; font-size: 1.75rem; margin: 0 0 1.25rem; }
.amenities ul { max-width: 72rem; margin: 0 auto 2rem; padding-left: 2.5rem; font-size: 1.25rem; }
.amenities li { margin-bottom: .6rem; }
.fine-print { max-width: 72rem; margin: 0 auto; font-style: italic; font-size: .9375rem; }

.gallery { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 2rem; }
.gallery li { break-inside: avoid; margin: 0 0 1.5rem; }
.gallery img { width: 100%; box-shadow: 0 2px 8px rgba(0,0,0,.35); }

.community .logo-heart { margin: 0 auto 1.5rem; max-width: 300px; }
.community .copy { margin-bottom: 2rem; }
.community .copy p { margin-bottom: 1.5rem; }
.community-photos { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: center; }
.community-photos li { box-shadow: 0 2px 8px rgba(0,0,0,.28); background: #fff; border-radius: 4px; overflow: hidden; }
.community-photos img { width: 100%; }
.center { text-align: center; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.125rem); }
.contact address { font-style: normal; margin-bottom: 2rem; }
.hours p { margin-bottom: .25rem; }
.office-phone { font: 500 1.0625rem var(--serif); }

form.lead-form { max-width: 34rem; font-family: var(--sans); font-size: .9375rem; }
.form-intro { font-family: var(--sans); font-size: .9375rem; margin-bottom: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; color: #000; margin-bottom: .35rem; font-size: 1rem; }
.field .req { color: var(--error); font-weight: 700; }
.field input, .field textarea { width: 100%; font: 400 1rem var(--sans); color: #2a3135; background: var(--field-bg); border: 2px solid var(--field-border); border-radius: 4px; padding: .75rem .8rem; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.hint { display: block; font-size: .875rem; color: #4a5560; margin-top: .25rem; }
.error { display: block; color: var(--error); font-weight: 700; font-size: .9375rem; margin-top: .3rem; }
.error:empty { display: none; }
.error::before { content: "Error: "; }
.form-submit { font: 700 1rem var(--sans); background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: .85rem 2.25rem; cursor: pointer; }
.form-submit:hover { background: #2d3363; }
.form-submit[disabled] { opacity: .75; cursor: progress; }
.form-status { margin-top: 1rem; padding: 0; font-weight: 500; }
.form-status.is-error, .form-status.is-ok { padding: .85rem 1rem; border-left: 6px solid; background: #f6f6f6; }
.form-status.is-error { border-color: var(--error); color: #7a0016; }
.form-status.is-ok { border-color: #1d6b3a; color: #14502b; }
.error-summary { border: 3px solid var(--error); padding: 1rem 1.25rem; margin-bottom: 1.25rem; background: #fff; }
.error-summary[hidden] { display: none; }
.error-summary h3 { font: 700 1.0625rem var(--sans); color: var(--error); margin: 0 0 .5rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--teal); color: #fff; padding: 2rem 1.25rem; text-align: center; font-family: var(--sans); font-size: .875rem; font-weight: 500; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer a { color: #fff; font-weight: 700; }

/* Accessibility / text pages */
.page { padding: 3rem 0 4rem; }
.page .wrap { max-width: 52rem; }
.page h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.page h2 { font-size: 1.5rem; margin-top: 2rem; }
.page { font-family: var(--body); font-size: 1.1875rem; }

@media (max-width: 62rem) {
  .intro .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .plans, .community-photos { grid-template-columns: 1fr; max-width: 28rem; margin-left: auto; margin-right: auto; }
  .gallery { columns: 2; }
  .contact .wrap { gap: 2rem; }
}
@media (max-width: 36rem) {
  .gallery { columns: 1; }
  .brand { font-size: 1.6rem; }
  .hero-box { padding: 1.25rem 1rem; }
  .amenities ul { padding-left: 1.5rem; font-size: 1.125rem; }
  .cta-band .wrap { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (forced-colors: active) {
  .btn, .form-submit { border: 2px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
}
