/* Brazos Valley Speech Therapy — static site styles */

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin.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: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-italic.woff2") format("woff2");
}

:root {
  --cream: #fbf8f3;
  --sand: #f3ede4;
  --paper: #ffffff;
  --ink: #1e2a36;
  --ink-2: #2a3845;
  --text: #3d4652;
  --muted: #5f6874;       /* >= 4.8:1 on cream, sand and white */
  --control-border: #80868e; /* >= 3:1 against field/card backgrounds (WCAG 1.4.11) */
  --line: #e6dfd4;
  --blue: #1269af;
  --blue-dark: #0d4f86;
  --error: #b3261e;
  --success: #1e7b34;
  /* Accents sampled from the header banner (darkened so white icons stay legible). */
  --teal: #16808d;
  --orange: #c96f1c;
  --magenta: #b3306a;
  --purple: #6b3d91;
  --banner-gradient: linear-gradient(90deg, var(--teal), var(--orange), var(--magenta), var(--purple));
  --font-body: "Work Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30,42,54,.05), 0 8px 24px rgba(30,42,54,.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px, but scales with the visitor's browser font setting */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink); line-height: 1.15; margin: 0 0 .6em;
  font-weight: 600; letter-spacing: -.01em;
  font-variation-settings: "opsz" 72;
}
h3 { font-variation-settings: "opsz" 24; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer;
  background: var(--blue); color: #fff; text-decoration: none;
  border: 2px solid var(--blue); padding: 15px 28px; border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--blue-dark); border-color: var(--blue-dark); color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18,105,175,.25);
}
.btn:active { transform: none; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(30,42,54,.25); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(30,42,54,.05); }

.nav-bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.mark { display: block; flex: none; border-radius: 50%; transition: transform .3s ease; }
.mark svg { display: block; width: 44px; height: 44px; }
.mark:hover { transform: rotate(-8deg); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  position: relative; display: block; padding: 10px 14px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); }
/* Active page: a text-width underline (desktop) / left bar (mobile menu). */
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 1px; background: var(--blue);
}

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; margin-left: 4px; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 28px; height: 28px; display: block; }

/* The banner art hangs from the header like a row of speech bubbles. */
.art-band {
  height: clamp(64px, 14vw, 220px);
  background: url("/assets/img/header-bg.png") top center / max(100%, 700px) auto no-repeat;
  margin-bottom: calc(clamp(64px, 14vw, 220px) * -0.35); /* let the bubble tails overlap the next section */
  position: relative; z-index: 1; pointer-events: none;
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-cta { margin-left: auto; padding: 9px 16px; font-size: 14px; }
  .nav-bar { gap: 12px; min-height: 64px; }
  .site-nav {
    display: none; margin: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(30,42,54,.08);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a { padding: 14px 24px; font-size: 17px; }
  .site-nav a[aria-current="page"] { background: rgba(18,105,175,.06); }
  .site-nav a[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}

/* ---------- Sections ---------- */

main { display: block; }
.section { padding: 88px 0; position: relative; }
.section-title { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 16px;
  border-radius: 2px; background: var(--banner-gradient);
}
.section-lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.centered { text-align: center; }
.centered .section-title::after { margin-left: auto; margin-right: auto; }
.centered .section-lead { margin-left: auto; margin-right: auto; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* Home: hero */
.hero { padding: clamp(56px, 7vw, 96px) 0 24px; text-align: center; position: relative; z-index: 2; }
/* Name lockup: both lines at equal size and weight, set tight so the full
   practice name reads as one mark. */
.hero-title {
  margin: 0; font-weight: 600; font-size: clamp(2.75rem, 6.4vw, 5rem);
  line-height: .98; letter-spacing: -.03em; font-variation-settings: "opsz" 144;
}
.hero-title .light, .hero-title .bold { display: block; }
.tagline {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text); margin: 0;
}
.tagline::before {
  content: ""; display: block; width: 56px; height: 3px; margin: 26px auto 20px;
  border-radius: 2px; background: var(--banner-gradient);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* Home: intro + pillars */
.intro { padding-top: 56px; }
.intro-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.intro-text p { margin: 0 0 1.2em; }
/* Desktop: the text stays in view while the taller column of cards scrolls past. */
@media (min-width: 960px) { .intro-text { position: sticky; top: 110px; } }
.intro-text .lede {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5;
  color: var(--ink); font-variation-settings: "opsz" 36;
}

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature .icon {
  width: 52px; height: 52px; padding: 13px; border-radius: 50%;
  color: var(--blue); background: rgba(18,105,175,.1);
}
.feature:nth-child(1) .icon { color: var(--teal); background: rgba(22,128,141,.12); }
.feature:nth-child(2) .icon { color: var(--orange); background: rgba(201,111,28,.12); }
.feature:nth-child(3) .icon { color: var(--purple); background: rgba(107,61,145,.12); }
.feature h2 { font-size: 21px; margin: 4px 0 8px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.65; }

/* Home: services */
.services { background: var(--ink); color: #d5dbe1; overflow: hidden; }
.services .section-title { color: #fff; }
.service-grid {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  --accent: var(--blue);
  position: relative; overflow: hidden;
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 36px 30px 32px; text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent);
}
.service-card:nth-child(1) { --accent: var(--teal); }
.service-card:nth-child(2) { --accent: var(--magenta); }
.service-card:nth-child(3) { --accent: var(--purple); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,.3); border-color: rgba(255,255,255,.16); }
.service-card .badge {
  width: 60px; height: 60px; border-radius: 16px; background: var(--accent);
  color: #fff; display: grid; place-items: center; margin: 0 0 24px;
}
.service-card .badge svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 23px; color: #fff; margin: 0 0 10px; }
.service-card p { margin: 0; font-size: 15.5px; color: #b9c2cb; }

/* Inner page title band */
.page-head { padding: clamp(48px, 7vw, 88px) 0 8px; position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0; font-variation-settings: "opsz" 144; }
.page-head h1::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 18px;
  border-radius: 2px; background: var(--banner-gradient);
}
.page-head + .section { padding-top: 48px; }

/* About */
.about-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.35fr 1fr; gap: 72px; } }
.about-name { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 4px; }
.about .role { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 28px; }
.about-photo { margin: 0; position: relative; max-width: 440px; justify-self: center; }
.about-photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 20px;
  background: var(--banner-gradient); opacity: .9;
}
.about-photo img { position: relative; width: 100%; border-radius: 20px; filter: grayscale(1); box-shadow: var(--shadow); }
@media (min-width: 960px) { .about-photo { position: sticky; top: 110px; } }

/* FAQ */
.faq-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 1fr 340px; gap: 48px; } }
.faq { display: grid; gap: 12px; }
.faq-aside { padding: 32px; position: relative; overflow: hidden; }
.faq-aside::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--banner-gradient); }
.faq-aside h2 { font-size: 26px; margin: 0 0 10px; }
.faq-aside p { margin: 0 0 20px; color: var(--muted); }
.faq-aside .btn { width: 100%; margin-top: 10px; }
@media (min-width: 960px) { .faq-aside { position: sticky; top: 110px; } }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(18,105,175,.35); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 64px 22px 26px; font-family: var(--font-display); font-weight: 600;
  font-size: 20px; color: var(--ink); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: rgba(18,105,175,.1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231269af' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq .answer { padding: 0 26px 24px; }
.faq .answer p { margin: 0 0 .8em; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer img { margin: 8px 0 4px; width: 160px; }

/* ---------- Contact ---------- */

.contact-section { background: var(--sand); }
.contact-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.ci-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--blue); border: 1px solid var(--line);
}
.ci-icon svg { width: 18px; height: 18px; }
.contact-list li > a, .contact-list li > span:not(.ci-icon) { padding-top: 7px; line-height: 1.5; }

.contact-form { padding: clamp(24px, 4vw, 40px); }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend {
  display: block; font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 8px; padding: 0;
}
.req { color: var(--error); }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset .row-2 > div { margin-bottom: 0; }
.sublabel { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--control-border); border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.contact-form select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); background-color: var(--paper);
  box-shadow: 0 0 0 3px rgba(18,105,175,.45);
}
.contact-form [aria-invalid="true"] { border-color: var(--error); background-color: #fdf5f4; }
.contact-form ::placeholder { color: var(--muted); opacity: 1; }

/* Insurance as selectable chips (still plain radio inputs). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label {
  cursor: pointer; padding: 9px 16px; border-radius: 999px; font-size: 15px;
  background: var(--cream); border: 1px solid var(--control-border); color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chips label:hover { border-color: var(--blue); }
.chips input:checked + label { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; margin-top: 8px; }
@media (min-width: 600px) { .contact-form .btn { width: auto; } }
.form-note { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f4ea; color: var(--success); border: 1px solid #b7dfc1; }
.form-status.err { background: #fbeaea; color: var(--error); border: 1px solid #efc2c2; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #b9c2cb; padding: 72px 0 0; font-size: 15px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--banner-gradient);
}
.site-footer a { color: #e6eaee; }
.footer-grid {
  display: grid; gap: 40px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.footer-name {
  font-family: var(--font-display); font-size: 24px; line-height: 1.2; color: #fff; margin: 0 0 20px; font-weight: 600;
}
.social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.08); transition: background .2s ease, transform .2s ease;
}
.social a:hover, .social a:focus-visible { color: #fff; transform: translateY(-2px); }
.social .fb:hover, .social .fb:focus-visible { background: #3b5998; }
.social .ig:hover, .social .ig:focus-visible { background: #bc2a8d; }
.social .li:hover, .social .li:focus-visible { background: #0077b5; }
.social svg { width: 20px; height: 20px; }

.reviews .name { font-weight: 600; color: #fff; font-size: 16px; margin-bottom: 4px; }
.reviews .stars { color: #f2a93b; font-weight: 600; letter-spacing: 1px; }
.reviews .cta {
  display: inline-block; margin-top: 12px; color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-weight: 500; border: 1px solid rgba(255,255,255,.25);
  transition: background .2s ease, border-color .2s ease;
}
.reviews .cta:hover, .reviews .cta:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }

.nap { font-style: normal; }
.nap a { text-decoration: none; }
.nap a:hover { text-decoration: underline; }
.nap p { margin: 0 0 10px; display: flex; gap: 10px; }
.nap svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: #8793a0; }

.site-info {
  margin-top: 56px; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 28px;
  font-size: 13px; color: #8793a0;
}
.site-info .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Simple utility pages */
.notice-page { text-align: center; padding: 96px 0 120px; position: relative; z-index: 2; }
.notice-page .section-title::after { margin-left: auto; margin-right: auto; }
.notice-page p { max-width: 560px; margin: 0 auto 1em; }

/* ---------- Motion ---------- */

/* Scroll fade-in. site.js adds .reveal only to elements that start below the
   fold (and never when reduced motion is requested), so nothing is hidden
   without JS. */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
  .service-card:hover, .btn:hover, .btn:focus-visible, .social a:hover { transform: none; }
}
