/* a1waterdamagerestorationaustin.com
   Direction (Ryan, 2026-10-08, from the Hydro board): dark navigation and hero, the big-type hero layout, bento tiles
   down the page. Eerie Black #121923, Brandeis Blue #0D67F7, Bright Gray #E4EDF4, Geist.
   System: one 1200px container with 32px gutters (20px under 768px), a 12-column grid with a 24px gap, one left edge
   (the logo's), spacing from 4/8/16/24/32/48/64/96 only, one size per type level, one 52px button, one 24px radius,
   no 1px rules, no decorative pseudo-elements. Measure comes from grid columns, never from max-width. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-var.woff2") format("woff2"); }

:root {
  --container: 1200px;
  --gutter: 32px;
  --gap: 24px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --section: var(--s8);

  --canvas: #ffffff;
  --ink: #121923;
  --ink-2: #3b4656;
  --muted: #4f5b6b;
  --night: #121923;
  --night-2: #1d2735;
  --on-dark: #c3cedb;
  --sky: #8db8ff;
  --brand: #0d67f7;
  --brand-deep: #0a55cf;
  --brand-text: #0a55cf;
  --on-blue: #e3edff;
  --band: #e4edf4;
  --field: #f4f8fb;
  --field-edge: #6b7686;
  --r: 24px;

  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --hw: 500;
  --t-body: 18px;
  --t-lede: 20px;
  --t-label: 16px;
  --t-h3: 24px;
  --t-h2: 40px;
  --t-h1: 60px;
  --t-display: 88px;
  --btn-h: 52px;
}
@media (max-width: 1023px) { :root { --t-h1: 48px; --t-h2: 36px; --t-display: 68px; } }
@media (max-width: 767px) { :root { --gutter: 20px; --section: var(--s7); --t-h1: 38px; --t-h2: 30px; --t-h3: 22px; --t-display: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }

/* Type: one rule per level */
h1, h2, h3 { font-family: var(--font); font-weight: var(--hw); color: var(--ink); margin: 0; text-align: left; letter-spacing: -0.03em; }
h1 { font-size: var(--t-h1); line-height: 1.06; margin-bottom: var(--s4); }
h2 { font-size: var(--t-h2); line-height: 1.1; margin-bottom: var(--s4); }
h3 { font-size: var(--t-h3); line-height: 1.25; margin-bottom: var(--s2); letter-spacing: -0.02em; }
p { margin: 0 0 var(--s3); }
ul, ol { margin: 0 0 var(--s3); padding-left: var(--s4); }
li { margin-bottom: var(--s2); }
.lede p { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); }
.label { font-size: var(--t-label); font-weight: 500; line-height: 1.5; color: var(--brand-text); margin: 0 0 var(--s3); }
.dateline { font-size: var(--t-label); color: var(--muted); margin: 0 0 var(--s3); }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--brand-text); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip-link { position: absolute; top: -100px; left: var(--s2); background: var(--canvas); color: var(--ink); padding: var(--s2) var(--s3); z-index: 100; }
.skip-link:focus { top: var(--s2); }

/* Container and grid */
.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-10 { grid-column: span 10; } .span-12 { grid-column: span 12; }
@media (max-width: 900px) { .grid > .span-4, .grid > .span-5, .grid > .span-6, .grid > .span-7, .grid > .span-8, .grid > .span-10 { grid-column: 1 / -1; } }

/* One button */
.btn { display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h); padding: 0 var(--s4); border: 0; border-radius: var(--r);
  background: var(--brand); color: #fff; font-family: var(--font); font-size: 18px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* Dark surfaces: header, hero, page heads, dark tiles, footer */
.dark { background: var(--night); color: #fff; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p, .dark .lede p, .dark .dateline { color: var(--on-dark); }
.dark .label { color: var(--sky); }
.dark a:not(.btn) { color: #fff; text-decoration-color: var(--sky); }
.dark a:not(.btn):hover { color: var(--sky); }
.dark .btn-secondary { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.dark .btn-secondary:hover { background: #fff; color: var(--ink); }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--night); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: #fff; flex: none; }
.mark { display: block; width: 56px; height: 56px; flex: none; }
.mark svg { display: block; width: 100%; height: 100%; }
.word { font-family: var(--font); font-weight: var(--hw); font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { display: none; align-items: center; height: 44px; padding: 0 var(--s3); border-radius: var(--r); box-shadow: inset 0 0 0 2px #fff; color: #fff; font-weight: 500; cursor: pointer; }
.nav > ul { display: flex; align-items: center; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a:not(.btn), .nav .parent { font-size: 18px; line-height: 1.4; color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer; }
.nav a:not(.btn):hover, .nav .parent:hover { color: var(--sky); }
.nav .has-sub { position: relative; }
.nav .sub { display: none; position: absolute; top: 100%; left: calc(-1 * var(--s4)); min-width: 360px; list-style: none; margin: 0; padding: var(--s3) var(--s4);
  background: var(--night-2); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
.nav .sub li { margin: 0; }
.nav .sub a { display: block; padding: var(--s2) 0; white-space: normal; }
@media (max-width: 1199px) { .nav > ul { gap: var(--s4); } }
@media (max-width: 1099px) {
  .bar { height: 80px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); padding: 0 var(--gutter) var(--s5); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3); }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:focus-visible + .menu-btn { outline: 3px solid var(--brand); outline-offset: 2px; }
  .nav > ul { display: block; }
  .nav > ul > li { padding: var(--s2) 0; }
  .nav .parent { display: block; font-weight: 500; color: var(--sky); padding: var(--s2) 0; }
  .nav .sub { display: block; position: static; box-shadow: none; padding: 0 0 0 var(--s3); min-width: 0; background: transparent; }
  .nav a:not(.btn) { display: flex; align-items: center; min-height: 44px; }
  .nav-cta { padding-top: var(--s3) !important; }
}
@media (max-width: 480px) { .bar { height: 64px; } .mark { width: 48px; height: 48px; } .word { font-size: 16px; } }

/* Sections */
section { padding: var(--section) 0; }
.band { background: var(--band); }
/* Two white sections in a row share one gap, so the bento rows sit one section apart */
section:not(.band):not(.dark) + section:not(.band):not(.dark) { padding-top: 0; }
.sec-head { margin-bottom: var(--s6); }
.sec-head h2 { margin-bottom: var(--s3); }
.sec-head .intro p:last-child { margin-bottom: 0; }
.intro p { font-size: var(--t-lede); color: var(--ink-2); }

/* Tiles: the bento pieces. Dark, blue, gray, white, and photo tiles share the one radius. */
.tile { position: relative; border-radius: var(--r); overflow: hidden; padding: var(--s6); }
.tile > :last-child, .tile-body > :last-child { margin-bottom: 0; }
.tile-dark { background: var(--night); color: #fff; }
.tile-blue { background: var(--brand); color: #fff; }
.tile-blue h2, .tile-blue h3, .tile-blue .tile-title { color: #fff; }
.tile-blue p, .tile-blue li { color: #fff; }
.tile-blue .label { color: var(--on-blue); }
.tile-blue a:not(.btn) { color: #fff; text-decoration-color: #fff; }
.tile-blue a:not(.btn):hover { color: var(--on-blue); }
.tile-gray { background: var(--band); }
.tile-photo { padding: 0; min-height: 360px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-title { font-weight: var(--hw); font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 var(--s4); }
@media (max-width: 767px) { .tile { padding: var(--s4); } .tile-photo { padding: 0; min-height: 0; aspect-ratio: 4 / 3; } }

/* Home hero: big type on the dark band, lede and buttons on one row, then a photo tile and a blue steps tile that
   straddle the dark band and the white page */
.hero { padding: var(--s6) 0 0; }
.hero-h h1 { font-size: var(--t-display); font-weight: 400; line-height: 1; letter-spacing: -0.045em; margin-bottom: var(--s6); }
.hero-lede { grid-column: 1 / span 6; }
.hero-lede p:last-child { margin-bottom: 0; }
.hero-cta { grid-column: 8 / span 5; align-self: end; }
.hero-cta .btn-row { margin-top: 0; justify-content: flex-end; }
.hero-row { padding-top: var(--s7); background: linear-gradient(to bottom, var(--night) 50%, var(--canvas) 50%); }
.hero-row .tile-photo { grid-column: span 8; min-height: 520px; }
.hero-steps { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; }
.hero-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.hero-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: baseline; margin: 0; font-size: var(--t-lede); font-weight: var(--hw); line-height: 1.3; letter-spacing: -0.01em; }
.hero-steps li span { color: var(--on-blue); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .hero-lede, .hero-cta { grid-column: 1 / -1; }
  .hero-cta .btn-row { justify-content: flex-start; margin-top: var(--s2); }
  .hero-row { background: linear-gradient(to bottom, var(--night) calc(var(--s7) + (100vw - 2 * var(--gutter)) * 0.28), var(--canvas) 0); }
  .hero-row .tile-photo, .hero-steps { grid-column: 1 / -1; }
  .hero-row .tile-photo { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .hero { padding-top: var(--s5); }
  .hero-h h1 { margin-bottom: var(--s5); }
  .hero-row { padding-top: var(--s6); background: linear-gradient(to bottom, var(--night) calc(var(--s6) + (100vw - 2 * var(--gutter)) * 0.375), var(--canvas) 0); }
  .hero-row .tile-photo { aspect-ratio: 4 / 3; }
}
.hero-row + section, .page-head + .page-body { padding-top: var(--section); }

/* Card tiles (cause and guide lists): photo on top, title and text rows shared through subgrid */
.cards { row-gap: var(--gap); }
.card { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; margin: 0; background: var(--band); border-radius: var(--r); overflow: hidden; }
.band .card { background: var(--canvas); }
.card-link { display: grid; grid-template-rows: subgrid; grid-row: span 2; color: var(--ink); text-decoration: none; }
.cards { container-type: inline-size; }
.card { --n: 3; --r: .75; }
.cards-3 > .card { --n: 4; --r: .5625; }
.card-link img { width: 100%; height: calc(((100cqw + var(--gap)) * var(--n) / 12 - var(--gap)) * var(--r)); object-fit: cover; }
.card h3 { padding: var(--s4) var(--s4) 0; margin-bottom: var(--s2); }
.card-link:hover h3 { color: var(--brand-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card p { margin: 0; padding: 0 var(--s4) var(--s4); color: var(--ink-2); }
@media (max-width: 1023px) { .cards-4 > .span-3, .cards-3 > .span-4 { grid-column: span 6; --n: 6; } }
@media (max-width: 767px) { .cards-4 > .span-3, .cards-3 > .span-4 { grid-column: 1 / -1; --n: 12; } }

/* Process bento: a dark tile with the moisture map, two steps beside it, three under it */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.process-head { grid-column: 1 / span 2; grid-row: 1 / span 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s6); align-items: center; }
.process-head h2 { margin-bottom: var(--s3); }
.process-head .intro p { color: var(--on-dark); }
.process-head .intro p:last-child { margin-bottom: 0; }
.mmap { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s4); list-style: none; margin: var(--s3) 0 0; padding: 0; color: var(--on-dark); font-size: var(--t-label); }
.legend li { display: flex; align-items: center; gap: var(--s2); margin: 0; }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: var(--r); }
.legend .wet { background: var(--brand); }
.legend .drying { background: var(--brand); transform: scale(0.6); }
.legend .dry { box-shadow: inset 0 0 0 2px #4d6282; }
.step-list { display: contents; }
.step-list > li { list-style: none; }
.step { margin: 0; padding: var(--s5); background: var(--band); border-radius: var(--r); }
.step-n { display: block; font-weight: var(--hw); font-size: 40px; line-height: 1; letter-spacing: -0.03em; color: var(--brand-text); margin-bottom: var(--s4); font-variant-numeric: tabular-nums; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 1023px) {
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .process-head { grid-column: auto; grid-row: auto; grid-template-columns: minmax(0, 1fr); row-gap: var(--s5); }
  .step { padding: var(--s4); }
}

/* Two-tile rows (claim, service area) */
.pair { align-items: stretch; }
.pair > .tile-photo { min-height: 480px; }
.pair .tile-body { display: flex; flex-direction: column; }
.pair .tile-body p:last-of-type { margin-bottom: 0; }
.pair .tile-body .btn-row { margin-top: auto; padding-top: var(--s5); }
@media (max-width: 900px) { .pair > .tile-photo { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 767px) { .pair > .tile-photo { aspect-ratio: 4 / 3; } }

/* FAQ: one light blue-gray tile, questions and answers all open */
.faq-tile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s6); padding: var(--s7); }
.faq-head h2 { margin-bottom: 0; }
.faq-list { display: grid; row-gap: var(--s6); }
.qa h3 { margin-bottom: var(--s3); }
.qa p:last-child { margin-bottom: 0; }
@media (max-width: 1023px) { .faq-tile { grid-template-columns: minmax(0, 1fr); row-gap: var(--s6); padding: var(--s6); } }
@media (max-width: 767px) { .faq-tile { padding: var(--s4); row-gap: var(--s5); } .faq-list { row-gap: var(--s5); } }

/* Inner pages: a dark head continues the header */
.page-head { padding: var(--s6) 0 var(--s7); }
.page-head .grid { align-items: center; }
.head-text .lede p:last-child { margin-bottom: 0; }
.head-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0 0 var(--s4); padding: 0; font-size: var(--t-label); color: var(--on-dark); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--on-dark); }
.dark .crumbs a { color: var(--on-dark); }
.page-body { padding-bottom: var(--section); }
.prose-sec { padding: 0; margin-bottom: var(--s6); }
.prose-sec:last-child { margin-bottom: 0; }
.prose h2 { font-size: 32px; }
.guide-intro { margin-bottom: var(--s6); }
.guide-intro p { font-size: var(--t-lede); color: var(--ink-2); }
.sources ul { padding-left: var(--s4); }
.aside { align-self: start; position: sticky; top: var(--s4); }
.aside-box { background: var(--band); border-radius: var(--r); padding: var(--s5); margin-bottom: var(--s4); }
.aside-box .btn-row { margin-top: var(--s3); }
.aside-title { font-family: var(--font); font-weight: var(--hw); font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 var(--s2); }
.aside-box > p:last-child, .aside-box > ul:last-child { margin-bottom: 0; }
.aside-note { margin: var(--s3) 0 0; }
.aside-box p a { padding: var(--s3) 0; }  /* a 44px tap area for a link inside a sentence */
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links li { margin: 0; }
.aside-links a { display: flex; align-items: center; min-height: 44px; }
.town-list { columns: 2; column-gap: var(--gap); }
@media (max-width: 900px) { .aside { position: static; } }
@media (max-width: 767px) { .aside-box { padding: var(--s4); } }

.other-causes { padding: var(--section) 0; }
.link-tiles li { margin: 0; }
.link-tile { display: flex; align-items: flex-end; height: 100%; min-height: 112px; padding: var(--s4); background: var(--band); border-radius: var(--r);
  color: var(--ink); font-size: var(--t-lede); font-weight: var(--hw); line-height: 1.3; letter-spacing: -0.01em; text-decoration: none; }
.link-tile:hover { background: var(--brand); color: #fff; }
@media (max-width: 1023px) { .link-tiles > .span-3 { grid-column: span 6; } }
@media (max-width: 600px) { .link-tiles > .span-3 { grid-column: 1 / -1; } .link-tile { min-height: 72px; } }

/* Form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: var(--hw); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 18px; color: var(--ink); background: var(--field); border: 2px solid var(--field-edge); border-radius: var(--r); padding: 0 var(--s4); height: var(--btn-h); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23121923' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s4) center; padding-right: var(--s6); }
.field textarea { height: auto; padding: var(--s3) var(--s4); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box:empty { display: none; }
.form-status { margin: 0; min-height: 1.6em; }
.form-status.is-error { color: #b42318; font-weight: 600; }
.form .btn-row { margin-top: 0; }
.form-sent { background: var(--band); border-radius: var(--r); padding: var(--s5); }
.sent-title { font-family: var(--font); font-weight: var(--hw); font-size: var(--t-h3); margin: 0; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: var(--s7) 0 var(--s5); }
.site-footer .brand { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer a:not(.btn):not(.brand) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { text-decoration: underline; text-decoration-color: var(--sky); }
.site-footer .btn-row { margin-top: var(--s4); }
.footer-base { margin: var(--s6) 0 0; }
@media (max-width: 1023px) { .site-footer .grid > .span-3 { grid-column: span 6; } }
@media (max-width: 600px) { .site-footer .grid > .span-3 { grid-column: 1 / -1; } }

/* Tap targets */
.crumbs a, .aside-note a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs ol { align-items: center; margin-bottom: var(--s3); }
