/* friscotxwaterdamage.com
   Tokens follow design-system/water-damage-frisco/MASTER.md:
   trust blue, deep navy, orange reserved for call/estimate actions,
   Lexend headings, Source Sans 3 body. */

:root {
  --primary: #1E40AF;
  --primary-dark: #1E3A8A;
  --secondary: #3B82F6;
  --sky: #29ABD9;            /* logo cyan, decorative only */
  --accent: #C2410C;         /* calls to action; white text = 5.2:1 */
  --accent-dark: #9A3412;
  --deep: #0B1F3A;
  --ink: #10213D;
  --ink-soft: #475569;
  --bg: #FFFFFF;
  --tint: #EFF6FF;
  --muted: #E9EEF6;
  --line: #D6E2F3;
  --ok: #15803D;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06);
  --shadow-md: 0 6px 18px rgba(11, 31, 58, .08);
  --shadow-lg: 0 18px 40px rgba(11, 31, 58, .14);
  --max: 1180px;
  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; overflow-x: clip; font: 400 1.0625rem/1.65 var(--font-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--deep); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--deep); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--sm { width: 1.05em; height: 1.05em; }
.ico--xs { width: .85em; height: .85em; }
.hide-sm { display: none; }
@media (min-width: 760px) { .hide-sm { display: inline; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.1 var(--font-head); text-decoration: none; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(194, 65, 12, .28); }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(11,31,58,.25); }
.btn--ghost-light:hover { background: #fff; color: var(--deep); }
.btn--light { background: #fff; color: var(--deep); border-color: var(--line); }
.btn--light:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- top bar + header */
.topbar { background: var(--deep); color: #DCE6F5; font-size: .92rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .5em; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar .ico { color: #FDBA74; }
.topbar__call { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar__call:hover { color: #FDBA74; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); }
.brand img { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); }
.brand__text strong { font-size: 1.08rem; font-weight: 700; }
.brand__text span { font-size: .82rem; font-weight: 500; color: var(--primary); }
.nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--deep); cursor: pointer; }
.nav__toggle .ico { width: 24px; height: 24px; }
.nav__links { list-style: none; display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 8px 20px 20px; }
.nav__links.open { display: block; }
.nav__links > li > a, .nav__drop { display: flex; align-items: center; gap: .4em; width: 100%; padding: 12px 4px; color: var(--deep); font: 500 1rem var(--font-head); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.nav__links > li > a:hover, .nav__drop:hover { color: var(--primary); }
.dropdown { list-style: none; display: none; padding: 0 0 8px 8px; }
.has-dropdown.open .dropdown { display: block; }
.dropdown a { display: flex; align-items: center; gap: .55em; padding: 9px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.dropdown a:hover { background: var(--tint); color: var(--primary); }
.dropdown .ico { color: var(--primary); }
.dropdown__all a { font-weight: 600; color: var(--primary); }
.nav__cta { margin-top: 8px; }
.nav__cta .btn { width: 100%; }
@media (min-width: 1000px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; align-items: center; gap: 4px; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav__links > li { position: relative; }
  .nav__links > li > a, .nav__drop { padding: 10px 12px; width: auto; border-radius: 8px; }
  .has-dropdown .nav__drop .ico { transition: transform .18s var(--ease); }
  .has-dropdown.open .nav__drop .ico { transform: rotate(180deg); }
  .dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
  .dropdown--wide { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
  .has-dropdown:hover .dropdown--wide, .has-dropdown:focus-within .dropdown--wide, .has-dropdown.open .dropdown--wide { display: grid; }
  .dropdown--wide .dropdown__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
  .nav__cta { margin: 0 0 0 10px; }
  .nav__cta .btn { width: auto; }
}

/* ---------- hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--deep); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,31,58,.86) 0%, rgba(11,31,58,.62) 45%, rgba(11,31,58,.2) 100%); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero__lead { font-size: 1.2rem; color: #E3EBF7; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #E3EBF7; font-weight: 600; }
.hero__trust li { display: flex; align-items: center; gap: .45em; }
.hero__trust .ico { color: #7DD3FC; }
.hero--short .hero__grid { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 80px; padding-bottom: 80px; }
}

.eyebrow { display: inline-flex; align-items: center; gap: .45em; margin: 0 0 12px; font: 600 .8rem/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.eyebrow--light { color: #BAE6FD; }
.eyebrow:has(.ico)::before { display: none; }

/* ---------- forms */
.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form--dark { box-shadow: none; }
.form__title { font: 700 1.35rem/1.2 var(--font-head); color: var(--deep); margin: 0 0 4px; }
.form__sub { color: var(--ink-soft); font-size: .95rem; margin: 0 0 16px; }
.form__fine { font-size: .82rem; color: var(--ink-soft); margin: 12px 0 0; }
.form-row { display: grid; gap: 12px; }
@media (min-width: 520px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 4px; color: var(--deep); }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #C7D3E3; border-radius: var(--radius-sm); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,64,175,.18); }
.hp { position: absolute; left: -9999px; }

/* ---------- sections */
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
@media (min-width: 960px) { .section { padding: 88px 0; } }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.page-head { background: linear-gradient(180deg, var(--tint), #fff); padding: 48px 0 24px; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 65ch; }
.crumbs { font-size: .9rem; border-bottom: 1px solid var(--line); background: #fff; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; color: var(--ink-soft); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #9AA9BD; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }

/* split text + image */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.split__copy { max-width: 64ch; }
.prose p { color: #24364F; }
.split__media img { border-radius: 18px; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split__cta { margin-top: 20px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .split--flip .split__media { order: -1; }
  .split--single { grid-template-columns: 1fr; }
}

/* cards */
.cards { display: grid; gap: 20px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
a.card:hover { box-shadow: var(--shadow-lg); border-color: #AFC6EA; color: inherit; }
.card__media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .4s var(--ease); }
a.card:hover .card__media img { transform: scale(1.03); }
.card__media { overflow: hidden; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body p { color: var(--ink-soft); margin: 0; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--primary); margin-bottom: 6px; }
.card__icon .ico { width: 24px; height: 24px; }
.card__more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: .35em; font: 600 .95rem var(--font-head); color: var(--primary); }

/* features */
.features { display: grid; gap: 20px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } .features--2 { grid-template-columns: repeat(2, 1fr); } }
.feature { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; }
.feature__icon .ico { width: 24px; height: 24px; }

/* steps */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step p { margin: 0; color: var(--ink-soft); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--deep); color: #fff; font: 700 1.05rem var(--font-head); margin-bottom: 14px; }

/* checklist */
.checklist { list-style: none; display: grid; gap: 12px; max-width: 820px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.checklist .ico { color: var(--ok); margin-top: .15em; }

/* costs */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.costs { width: 100%; border-collapse: collapse; min-width: 560px; }
.costs th, .costs td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.costs thead th { border-top: 0; background: var(--muted); font: 600 .85rem var(--font-head); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.costs tbody th { font-weight: 600; color: var(--deep); }
.costs td:nth-child(2) { font: 700 1.05rem var(--font-head); color: var(--primary); white-space: nowrap; }
.note { font-size: .92rem; color: var(--ink-soft); margin-top: 14px; max-width: 75ch; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font: 600 1.05rem/1.35 var(--font-head); color: var(--deep); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__caret { transition: transform .2s var(--ease); color: var(--primary); margin-top: .2em; }
.faq__item[open] .faq__caret { transform: rotate(180deg); }
.faq__a { padding: 0 20px 18px; color: #24364F; }
.faq__a p { margin: 0; }

/* areas */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--deep); font: 500 1rem var(--font-head); text-decoration: none; transition: border-color .18s var(--ease), color .18s var(--ease); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip .ico { color: var(--primary); }

/* cta band */
.cta-band { background: radial-gradient(1200px 400px at 10% 0%, #16346A 0%, var(--deep) 60%); color: #DCE6F5; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #C9D6EA; }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 960px) { .cta-band__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* article / legal */
.article { max-width: 760px; }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1em; }
.article li { margin: .35em 0; }
.article__lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.article__date { font-size: .9rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; background: var(--tint); border-radius: var(--radius); padding: 18px 20px; }
.contact-list strong { font: 600 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.contact-list a { font: 700 1.25rem var(--font-head); text-decoration: none; }
.contact-list span { color: var(--ink-soft); }
.narrow { max-width: 620px; }

/* footer */
.site-footer { background: var(--deep); color: #B9C7DC; padding: 64px 0 120px; font-size: .97rem; }
.site-footer a { color: #DCE6F5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-h { font: 600 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.brand--light { color: #fff; margin-bottom: 14px; }
.brand--light .brand__text span { color: #7DD3FC; }
.footer__call { display: inline-flex; align-items: center; gap: .4em; font: 700 1.2rem var(--font-head); color: #fff !important; }
.footer-disclosure { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; max-width: 95ch; }
.footer-copy { font-size: .85rem; color: #8FA3BF; }
@media (min-width: 1000px) { .site-footer { padding-bottom: 64px; } }

/* mobile call bar */
.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,31,58,.1); }
.mobilebar .btn { min-height: 50px; }
@media (min-width: 1000px) { .mobilebar { display: none; } }

/* motion */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
