/* Sugar Land Public Adjuster — site stylesheet.
   Palette carried over from the original site's Elementor kit. */
:root {
  --ink: #2E073F;
  --purple: #7A1CAC;
  --accent: #AD49E1;
  --lavender: #EBD3F8;
  --lavender-2: #F6EEFB;
  --paper: #ffffff;
  --gray: #f5f4f7;
  --text: #2a2233;
  --muted: #625a6b;
  --line: #e4dcea;
  --green: #12a150;
  --red: #c62828;
  --amber: #b26a00;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(46, 7, 63, .10);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Roboto", system-ui, sans-serif;
  --font-slab: "Roboto Slab", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(880px, 100% - 32px); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--purple); margin-bottom: .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.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: .5em; font: 700 .98rem/1.2 var(--font); padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .15s, box-shadow .2s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 6px 18px rgba(122, 28, 172, .3); }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lavender); color: var(--ink); }
.btn-outline { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--ink); color: #eadff1; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-left: 18px; }
.topbar a:hover { color: var(--lavender); }
.topbar svg { width: 15px; height: 15px; fill: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(46,7,63,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand img { width: 210px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 10px 12px; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); text-decoration: none; border-radius: 8px; }
.site-nav > ul > li.active > a, .site-nav > ul > li > a:hover { color: var(--purple); }
.site-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 7px; }
.site-nav .sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .93rem; }
.site-nav .sub a:hover { background: var(--lavender-2); color: var(--purple); }
.sub-toggle { display: none; }
.nav-cta { padding: .8em 1.3em; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 3px; transition: .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: var(--nav-top, 66px); left: 0; right: 0; bottom: 0; z-index: 49; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 8px 16px 96px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; gap: 12px; border-top: 1px solid var(--line); }
  .nav-open .site-nav { transform: none; visibility: visible; transition: transform .25s; }
  .nav-cta { width: 100%; margin-top: 8px; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .site-nav > ul > li > a { flex: 1; padding: 14px 6px; }
  .site-nav .has-sub > a::after { display: none; }
  .sub-toggle { display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
  .sub-toggle::before { content: ""; position: absolute; left: 17px; top: 15px; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: .2s; }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); top: 19px; }
  .site-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; width: 100%; display: none; padding: 0 0 10px 10px; min-width: 0; }
  .site-nav .sub.open { display: block; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 700px) {
  .topbar-note, .topbar .hide-sm { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar a { margin: 0 9px; }
  .brand img { width: 170px; }
  .header-inner { min-height: 66px; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(46,7,63,.95) 0%, rgba(46,7,63,.75) 50%, rgba(122,28,172,.55) 100%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero h1 { color: #fff; }
.hero .lead { color: #eee3f5; font-size: 1.2rem; }
.hero .eyebrow { color: var(--lavender); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; padding: 0; list-style: none; }
.hero-badges li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }
.hero-badges li::before { content: "✓ "; color: var(--lavender); font-weight: 900; }
.hero-card { background: #fff; color: var(--text); border-radius: 18px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hero-card h2 { font-size: 1.4rem; margin-bottom: .3em; }
.hero-card > p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 32px; } }

/* Page hero (interior) */
.page-hero { background: linear-gradient(135deg, var(--ink), #4b0f66 60%, var(--purple)); color: #fff; padding: 46px 0 52px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero .lead { color: #eee3f5; max-width: 780px; }
.page-hero .eyebrow { color: var(--lavender); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .86rem; }
.breadcrumbs li { color: #d9c7e6; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #b89acb; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: .95rem; }
.byline img { width: 48px; height: 48px; border-radius: 50%; }
.byline a { color: #fff; font-weight: 700; }
.byline div { display: flex; flex-direction: column; }
.byline-meta { color: #d9c7e6; font-size: .88rem; }

/* Sections */
.section { padding: 76px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--gray); }
.section-lav { background: var(--lavender-2); }
.section-dark { background: var(--ink); color: #eadff1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-title { text-align: center; max-width: 820px; margin-inline: auto; }
.section-intro { text-align: center; max-width: 760px; margin: 0 auto 40px; color: var(--muted); }
.section-dark .section-intro { color: #d9c7e6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-60 { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 900px) { .split, .split-60 { grid-template-columns: 1fr; gap: 32px; } .section { padding: 56px 0; } }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 0 rgba(46,7,63,.02); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.card h3 { margin-bottom: .4em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card.linked { position: relative; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--lavender); display: grid; place-items: center; margin-bottom: 16px; font-size: 1.6rem; }
.card-lav { background: var(--lavender); border: 2px solid var(--accent); text-align: center; }
.card-lav .icon { background: #fff; margin-inline: auto; }
.card-more { font-weight: 700; color: var(--purple); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; font-size: .8rem; display: grid; place-items: center; }
.checklist.x li::before { content: "✕"; background: var(--red); }
.checklist.purple li::before { background: var(--purple); }

/* Process */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); counter-increment: step; }
.step img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.step-body { padding: 20px 22px 24px; }
.step h3::before { content: counter(step, decimal-leading-zero) "  "; color: var(--accent); font-family: var(--font-slab); }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); }
.stat strong { display: block; font-family: var(--font-slab); font-size: 2.2rem; color: #fff; line-height: 1.1; }
.stat span { font-size: .92rem; color: #d9c7e6; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Author / team */
.team-card { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.team-card img { border-radius: 50%; width: 240px; height: 240px; }
@media (max-width: 760px) { .team-card { grid-template-columns: 1fr; text-align: center; } .team-card img { margin-inline: auto; width: 180px; height: 180px; } }
.author-box { display: flex; gap: 22px; align-items: flex-start; background: var(--lavender-2); border: 1px solid var(--lavender); border-radius: var(--radius); padding: 24px; margin-top: 44px; }
.author-box img { width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0; }
.author-box .eyebrow { margin-bottom: .2em; }
.author-name { font-weight: 700; font-size: 1.1rem; margin-bottom: .4em; }
.author-name a { color: var(--ink); }
.author-links { margin: 0; font-size: .95rem; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* Prose */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 110px; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: 12px; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--lavender-2); border-left: 4px solid var(--purple); border-radius: 0 12px 12px 0; }
.prose table, .data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td, .data-table th, .data-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th, .data-table th { background: var(--lavender-2); color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.callout { background: var(--lavender-2); border: 1px solid var(--lavender); border-left: 5px solid var(--purple); border-radius: 12px; padding: 18px 22px; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }
.callout-warn { background: #fff8ec; border-color: #f5ddb0; border-left-color: var(--amber); }
.post-layout, .content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 48px 0 70px; align-items: start; }
@media (max-width: 980px) { .post-layout, .content-layout { grid-template-columns: 1fr; } }
.post-featured { margin: 0 0 28px; }
.post-featured img { border-radius: 16px; width: 100%; }
.toc { background: var(--gray); border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: .4em; }
.toc ol { margin: 0; }
.toc li { margin: 4px 0; font-size: .97rem; }
.inline-cta { background: var(--ink); color: #fff; border-radius: 14px; padding: 22px 24px; margin: 2em 0; }
.inline-cta p { margin-bottom: 14px; }
.inline-cta .btn-outline { border-color: #fff; color: #fff; }
.inline-cta .btn-outline:hover { background: #fff; color: var(--ink); }

/* Sidebar */
.sidebar { position: sticky; top: 100px; display: grid; gap: 20px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.side-card h2 { font-size: 1.2rem; }
.side-card-dark { background: linear-gradient(160deg, var(--ink), var(--purple)); color: #eadff1; border: 0; }
.side-card-dark h2 { color: #fff; }
.side-card-dark .btn { margin-top: 10px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border: 0; }
.side-links a { display: block; padding: 9px 0; text-decoration: none; font-weight: 500; }
.side-author { display: flex; gap: 14px; align-items: center; }
.side-author img { width: 70px; height: 70px; border-radius: 50%; }
.side-author p { margin: 0; font-size: .92rem; }
@media (max-width: 980px) { .sidebar { position: static; } }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-img img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--purple); }
.post-card p { font-size: .95rem; color: var(--muted); }
.post-meta { font-size: .82rem !important; color: var(--muted); margin-bottom: .5em; }
.read-more { margin-top: auto; font-weight: 700; text-decoration: none; }

/* FAQ */
.faq-list { display: grid; gap: 12px; margin: 1em 0; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--lavender); color: var(--purple); display: grid; place-items: center; font-weight: 900; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item > div, .faq-item > p { padding: 14px 20px 4px; margin: 0; }
.faq-item > p { padding-bottom: 16px; }

/* CTA band */
.cta-band { background: var(--lavender); border-top: 3px solid var(--purple); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px 0; flex-wrap: wrap; }
.cta-band h2 { font-size: 1.5rem; margin-bottom: .2em; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-light { background: var(--purple); color: #fff; }
.cta-band .btn-light:hover { background: var(--ink); }
.cta-band .btn-outline-light { border-color: var(--purple); color: var(--purple); }
.cta-band .btn-outline-light:hover { background: var(--purple); color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #d9c7e6; padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--lavender); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-about img { width: 220px; margin-bottom: 18px; }
.footer-h { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-contact li { margin-bottom: 12px; }
.license { font-size: .85rem; color: #bfa6d0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding: 22px 0 90px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom p { margin: 0; max-width: 560px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-bottom li { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .footer-bottom { padding-bottom: 24px; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--ink); box-shadow: 0 -6px 20px rgba(0,0,0,.2); }
  .mobile-bar a, .mobile-bar button { color: #fff; text-align: center; padding: 15px 6px; font: 700 .95rem var(--font); text-decoration: none; border: 0; background: none; border-right: 1px solid rgba(255,255,255,.15); cursor: pointer; }
  .mobile-bar .mb-form { background: var(--purple); border: 0; }
}

/* Forms */
.lead-form { display: grid; gap: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea, .tool input, .tool select { font: 400 1rem var(--font); padding: 11px 13px; border: 1.5px solid #d6cadf; border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .tool input:focus, .tool select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(173,73,225,.2); }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--purple); }
.form-status { margin: 0; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.form-card { background: #fff; border-radius: 18px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Popup */
.popup { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.popup[hidden] { display: none; }
.popup-backdrop { position: absolute; inset: 0; background: rgba(28, 4, 40, .72); animation: fade .25s ease; }
.popup-card { position: relative; background: #fff; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 20px; padding: 30px 28px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: pop .3s ease; border-top: 6px solid var(--purple); }
.popup-head h2 { font-size: 1.5rem; margin-bottom: .3em; }
.popup-head p:last-child { color: var(--muted); font-size: .95rem; }
.popup-close { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; background: var(--gray); border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.popup-close:hover { background: var(--lavender); }
.popup-alt { text-align: center; font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
body.popup-open { overflow: hidden; }

/* Tools */
.tool { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 620px) { .tool-grid { grid-template-columns: 1fr; } }
.tool label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.tool .hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 26px; }
.tool-results { margin-top: 24px; background: var(--lavender-2); border-radius: 14px; padding: 22px; border: 1px solid var(--lavender); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.result { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.result span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.result strong { font-family: var(--font-slab); font-size: 1.55rem; color: var(--ink); }
.result.hl { background: var(--ink); border-color: var(--ink); }
.result.hl span { color: var(--lavender); }
.result.hl strong { color: #fff; }
.result.bad strong { color: var(--red); }
.result.good strong { color: var(--green); }
.bar { height: 14px; background: #e8deef; border-radius: 99px; overflow: hidden; margin: 6px 0 14px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--accent)); border-radius: 99px; transition: width .4s; }
.tool-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.inv-table th, .inv-table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.inv-table input, .inv-table select { width: 100%; padding: 8px; border: 1px solid #d6cadf; border-radius: 8px; font: inherit; }
.inv-table .del { background: none; border: 0; color: var(--red); font-size: 1.2rem; cursor: pointer; }
.timeline-out { list-style: none; padding: 0; margin: 0; }
.timeline-out li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed #d6cadf; }
.timeline-out li strong { color: var(--ink); }
.timeline-out .past { opacity: .6; }
.timeline-out .soon strong { color: var(--red); }
@media (max-width: 520px) { .timeline-out li { grid-template-columns: 1fr; gap: 2px; } }
.check-list-tool { list-style: none; padding: 0; margin: 0; }
.check-list-tool li { border-bottom: 1px solid var(--line); }
.check-list-tool label { display: flex; gap: 12px; padding: 11px 4px; cursor: pointer; font-weight: 400; align-items: flex-start; }
.check-list-tool input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--purple); flex-shrink: 0; }
.check-list-tool input:checked + span { text-decoration: line-through; color: var(--muted); }
.progress-label { font-weight: 700; color: var(--ink); }

/* Weather */
.wx-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .wx-grid { grid-template-columns: 1fr; } }
.wx-now { background: linear-gradient(150deg, var(--ink), var(--purple)); color: #fff; border-radius: 20px; padding: 28px; position: relative; overflow: hidden; }
.wx-now h2, .wx-now h3 { color: #fff; }
.wx-temp { font-family: var(--font-slab); font-size: 4.2rem; line-height: 1; margin: 6px 0; }
.wx-cond { font-size: 1.3rem; font-weight: 500; }
.wx-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.wx-meta div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; }
.wx-meta span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lavender); }
.wx-meta strong { font-size: 1.1rem; }
@media (max-width: 520px) { .wx-meta { grid-template-columns: repeat(2, 1fr); } }
.wx-updated { font-size: .8rem; color: #d9c7e6; margin: 14px 0 0; }
.wx-alerts { display: grid; gap: 12px; }
.wx-alert { border-radius: 14px; padding: 16px 18px; border: 1px solid #f3c1c1; background: #fff3f3; }
.wx-alert h3 { color: var(--red); font-size: 1.05rem; margin-bottom: .3em; }
.wx-alert p { font-size: .92rem; margin: 0 0 .4em; }
.wx-alert details { font-size: .88rem; }
.wx-alert.minor { background: #fff8ec; border-color: #f5ddb0; }
.wx-alert.minor h3 { color: var(--amber); }
.wx-ok { border-radius: 14px; padding: 16px 18px; background: #eefaf2; border: 1px solid #bfe7cd; color: #155c33; font-weight: 600; }
.wx-forecast { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
@media (max-width: 900px) { .wx-forecast { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .wx-forecast { grid-template-columns: repeat(2, 1fr); } }
.wx-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; font-size: .9rem; }
.wx-day img { width: 56px; height: 56px; border-radius: 10px; margin: 6px auto; }
.wx-day strong { display: block; color: var(--ink); }
.wx-day .hi { font-family: var(--font-slab); font-size: 1.3rem; color: var(--purple); }
.wx-day .pop { color: #1565c0; font-weight: 700; font-size: .82rem; }
.wx-img { border-radius: 16px; border: 1px solid var(--line); background: #111; width: 100%; }
.wx-strip { background: var(--ink); color: #fff; }
.wx-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; font-size: .95rem; }
.wx-strip a { color: var(--lavender); font-weight: 700; }
.wx-strip .wx-pill { background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 12px; margin-right: 8px; }
.wx-strip .wx-pill.alert { background: var(--red); }
.gauge { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.gauge-bar { position: relative; height: 26px; border-radius: 99px; background: linear-gradient(90deg, #4caf50 0 33.3%, #ffeb3b 33.3% 75%, #ff9800 75% 80%, #f44336 80% 83.3%, #9c27b0 83.3% 100%); margin: 14px 0 6px; }
.gauge-marker { position: absolute; top: -6px; width: 4px; height: 38px; background: var(--ink); border-radius: 2px; transition: left .6s; }
.gauge-legend { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }

/* Storm history timeline */
.storm-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.storm-timeline::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 3px; background: var(--lavender); }
.storm { position: relative; padding: 0 0 34px 68px; }
.storm-dot { position: absolute; left: 6px; top: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 1rem; box-shadow: 0 0 0 5px #fff; }
.storm-date { font-weight: 700; color: var(--purple); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.storm h3 { margin: .2em 0 .4em; }
.storm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .6em; padding: 0; list-style: none; }
.storm-tags li { font-size: .78rem; background: var(--lavender-2); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.storm-lesson { background: var(--gray); border-radius: 10px; padding: 12px 16px; font-size: .95rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-bar button { border: 1.5px solid var(--purple); background: #fff; color: var(--purple); border-radius: 999px; padding: 7px 16px; font: 600 .9rem var(--font); cursor: pointer; }
.filter-bar button.on { background: var(--purple); color: #fff; }
.crest-chart { display: grid; gap: 8px; }
.crest-row { display: grid; grid-template-columns: 120px 1fr 70px; gap: 10px; align-items: center; font-size: .9rem; }
.crest-row .b { height: 18px; border-radius: 4px; background: linear-gradient(90deg, #42a5f5, #1565c0); }
.crest-row.major .b { background: linear-gradient(90deg, var(--accent), var(--ink)); }

/* Neighborhood chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.section-dark .chips li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }

/* Mini calculator on homepage */
.mini-calc { background: #fff; border-radius: 18px; padding: 26px; color: var(--text); }

/* Utility */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.rounded { border-radius: 18px; }
.shadow { box-shadow: var(--shadow); }
.sitemap-list { columns: 2; }
@media (max-width: 620px) { .sitemap-list { columns: 1; } }
@media print { .topbar, .site-header, .site-footer, .mobile-bar, .cta-band, .popup, .sidebar { display: none !important; } }
.h3 { font-size: 1.25rem; }
.site-footer .btn-light { color: var(--ink); }
.site-footer .btn-light:hover { text-decoration: none; color: var(--ink); }
.tool h2 { font-size: 1.4rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tool-actions .btn { padding: .7em 1.2em; font-size: .9rem; }
.seg { display: inline-flex; border: 1.5px solid #d6cadf; border-radius: 10px; overflow: hidden; }
.seg label { display: flex; align-items: center; gap: 6px; padding: 9px 14px; font-weight: 600; cursor: pointer; border-right: 1px solid #d6cadf; }
.seg label:last-child { border-right: 0; }
.seg input { accent-color: var(--purple); }
