/* Manhattan Beach Insurance: a dune-park exhibition identity. One cropped detail of wind-ripple sand and ice plant carries the page; the title sits small in the corner; a dark ruled band carries the actions. */
@font-face { font-family: "Familjen Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/familjen-grotesk-600.woff2) format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/familjen-grotesk-700.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-400.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-600.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #2a1d1a;
  --muted: #55403a;
  --line: #b99b69;
  --rule: #2a1d1a;
  --paper: #e7ebe8;
  --paper-hi: #f5f8f6;
  --sand: #ead7ac;
  --sand-deep: #d7b985;
  --umber: #7a4640;
  --ice: #a3174f;
  --ice-hi: #b3205f;
  --on-ice: #ffffff;
  --band: #2a1d1a;
  --on-band: #f6ead2;
  --accent: #a3174f;
  --accent-dark: #8e1243;
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1.0625rem/1.6 var(--text); overflow-x: clip; }
::selection { background: var(--ice); color: #fff; }
a { color: var(--ice); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); }

/* ---------- ruled top band (all pages) ---------- */
.site-header { border: 0; border-bottom: 3px solid var(--rule); background: var(--paper-hi); position: relative; z-index: 2; }
.header-inner { width: min(100% - 32px, 1240px); max-width: none; margin: auto; padding: 0; display: flex; justify-content: space-between; align-items: stretch; gap: 0 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; color: var(--ink); text-decoration: none; font: 600 .9375rem/1.2 var(--display); letter-spacing: .01em; }
.brand strong { display: block; font-weight: 700; font-size: 1.0625rem; }
.brand-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 0; background: var(--ink); color: var(--sand); font: 700 1.5rem/1 var(--display); }
.brand:hover { color: var(--ice); }
.brand:hover .brand-mark { background: var(--ice); color: #fff; }
.header-link { display: inline-flex; align-items: center; min-height: 56px; border: 0; border-left: 1px solid var(--rule); padding: 0 0 0 20px; background: transparent; color: var(--ink); white-space: nowrap; font: 600 .9375rem/1.2 var(--display); text-decoration: none; letter-spacing: .02em; }
.header-link:hover { color: var(--ice); }
.header-link span { color: var(--ice); }

/* ---------- home plate: one cropped detail, title small in the corner ---------- */
.plate { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(clamp(300px, 52vh, 520px), 1fr) auto auto; overflow: hidden; }
.plate > .site-header { grid-row: 1; grid-column: 1; }
.plate-art { grid-row: 2; grid-column: 1; width: 100%; height: 100%; min-height: 100%; display: block; position: relative; z-index: 0; transform-origin: 70% 72%; animation: pushin 40s var(--ease) both; }
@keyframes pushin { from { transform: scale(1); } to { transform: scale(1.07); } }
.plate > .minimal-shell { display: contents; }
.plate h1 { grid-row: 2; grid-column: 1; align-self: start; justify-self: start; position: relative; z-index: 1; margin: 0; padding: 14px 22px 16px 22px; max-width: min(100%, 22rem); background: var(--paper-hi); color: var(--ink); border-right: 3px solid var(--rule); border-bottom: 3px solid var(--rule); font: 700 clamp(1.5rem, 3.2vw, 2.125rem)/1.08 var(--display); letter-spacing: -.01em; }
.choice-grid { grid-row: 3; grid-column: 1; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; background: var(--band); border-top: 3px solid var(--rule); }
.choice-grid a { position: relative; min-height: 76px; padding: 16px 26px 16px 22px; display: flex; align-items: center; border: 0; border-right: 1px solid #6b5447; border-bottom: 1px solid #6b5447; border-radius: 0; background: transparent; color: var(--on-band); font: 600 clamp(1.0625rem, 1.5vw, 1.25rem)/1.2 var(--display); letter-spacing: .005em; text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease); }
.choice-grid a:nth-child(3n) { border-right: 0; }
.choice-grid a:nth-child(n+4) { border-bottom: 0; }
.choice-grid a::after { content: ""; flex: none; width: 28px; height: 8px; margin-left: auto; padding-left: 12px; background: linear-gradient(currentColor, currentColor) right center / 28px 2px no-repeat; opacity: .8; }
.choice-grid a:hover, .choice-grid a:focus-visible { background: var(--ice-hi); color: var(--on-ice); transform: none; box-shadow: none; border-color: #6b5447; outline-offset: -5px; outline-color: #fff; }
.agency-line { grid-row: 4; grid-column: 1; position: relative; z-index: 1; margin: 0; padding: 12px max(16px, calc((100% - 1240px) / 2)); background: var(--band); border-top: 1px solid #6b5447; color: var(--on-band); font: 600 .9375rem/1.4 var(--display); letter-spacing: .02em; }
.agency-line a { color: #f3c8da; text-decoration-color: currentColor; }
.agency-line a:hover { color: #fff; }

/* ---------- local board ---------- */
.local-board { padding: 0 16px; border-top: 3px solid var(--rule); background: var(--sand); color: var(--ink); }
.local-wrap { width: 100%; max-width: 1240px; margin: auto; padding: 56px 0 84px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 30px; padding: 0 0 26px; border-bottom: 3px solid var(--rule); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--ice); font: 700 .8125rem/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.local-kicker { margin: 0 0 14px; }
.local-kicker span { padding: 0 6px; }
.local-intro h2 { font: 700 clamp(2.25rem, 5.4vw, 4.25rem)/1 var(--display); letter-spacing: -.025em; }
.local-intro > div > p:last-child { max-width: 540px; margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; }
.local-generated { flex: none; margin: 0 0 3px; color: var(--muted); font: 600 .875rem/1.3 var(--display); }
.local-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px 20px; margin: 52px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.local-section-heading h3 { font: 700 clamp(1.5rem, 3vw, 2.125rem)/1.1 var(--display); letter-spacing: -.01em; }
.local-section-heading > span { color: var(--muted); }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.local-card { min-width: 0; padding: 26px 28px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: var(--paper-hi); box-shadow: none; }
.local-card h4 { margin: 6px 0 18px; font: 700 clamp(1.375rem, 2.4vw, 1.75rem)/1.15 var(--display); letter-spacing: -.01em; }
.local-card-kicker { margin: 0; }
.local-card .local-copy { margin: 10px 0; color: var(--ink); }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: .9375rem; }
.local-source { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font: 600 .8125rem/1.4 var(--display); letter-spacing: .02em; }
.local-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--ice); font: 700 .9375rem/1.2 var(--display); text-underline-offset: 4px; }
.local-link:hover { color: var(--ink); }
.local-wide { grid-column: 1 / -1; }
.local-weather-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; padding: 10px 0 24px; border-bottom: 1px solid var(--line); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; }
.local-big-temp { font: 700 clamp(4.5rem, 11vw, 7.5rem)/.85 var(--display); letter-spacing: -.05em; color: var(--ink); }
.local-weather-condition { max-width: 200px; color: var(--muted); font-size: 1.125rem; }
.local-weather-note { padding-bottom: 6px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 1rem; }
.local-weather-note strong { color: var(--ink); font: 700 1.125rem/1.3 var(--display); }
.local-day-strip, .local-hour-strip { display: flex; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--umber) var(--sand); }
.local-day-strip { gap: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.local-day { flex: 0 0 150px; padding: 0 14px 0 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: .875rem; color: var(--muted); line-height: 1.35; }
.local-day:first-child { padding-left: 14px; border-left: 1px solid transparent; }
.local-day strong { color: var(--ink); font: 700 .9375rem/1.3 var(--display); }
.local-day-temp { color: var(--ice); font: 700 1.375rem/1.2 var(--display); }
.local-small-label { margin: 22px 0 12px; }
.local-hour-strip { gap: 0; border: 1px solid var(--line); }
.local-hour { flex: 0 0 96px; padding: 10px 10px; border-left: 1px solid var(--line); background: var(--sand); display: flex; flex-direction: column; gap: 3px; font-size: .8125rem; color: var(--muted); }
.local-hour:first-child { border-left: 0; }
.local-hour strong { color: var(--ink); font: 700 1.25rem/1.2 var(--display); }
.local-big-number { margin: 14px 0 8px; color: var(--ice); font: 700 4.5rem/.95 var(--display); letter-spacing: -.04em; }
.local-radar { margin: 18px 0 0; overflow: hidden; border: 3px solid var(--rule); border-radius: 0; background: #fff; }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 7px 10px; background: var(--paper-hi); color: var(--muted); font-size: .8125rem; }
.local-alert, .local-advisory { display: flex; gap: 18px; padding: 22px 26px; margin-top: 20px; border: 1px solid var(--ice); border-left: 8px solid var(--ice); border-radius: 0; background: #fbe6ee; color: var(--ink); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 0; background: var(--ice); color: #fff; font-weight: 800; }
.local-alert h3, .local-advisory h3 { margin: 6px 0 8px; font: 700 1.25rem/1.3 var(--display); }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; border-color: var(--line); border-left-color: var(--umber); background: var(--paper-hi); }
.local-advisory-mark { flex: none; color: var(--umber); font-size: 2.5rem; line-height: 1; }
.local-advisory h3 { font: 700 clamp(1.25rem, 2.4vw, 1.75rem)/1.2 var(--display); }
.local-advisory-alert { border-color: var(--ice); border-left-color: var(--ice); background: #fbe6ee; }
.local-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.local-row:first-of-type { padding-top: 0; }
.local-row:last-of-type { border-bottom: 0; }
.local-row-title { display: block; color: var(--ink); font: 600 1.0625rem/1.35 var(--display); text-decoration-color: var(--ice); text-underline-offset: 4px; }
.local-row-title:hover { color: var(--ice); }
.local-row-detail { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.local-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.local-market-name { display: block; font: 700 1.125rem/1.3 var(--display); }
.local-lottery { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { font: 700 1.25rem/1.2 var(--display); letter-spacing: .04em; }

/* ---------- inner pages: the same crop as a strip, then the form ---------- */
.page-shell { width: min(100% - 32px, 1240px); max-width: none; margin: auto; padding: 0 0 72px; }
.intro { position: relative; margin: 0 0 8px; padding: 150px 0 0; border-bottom: 3px solid var(--rule); }
.intro::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 128px; border-bottom: 3px solid var(--rule); background:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='128' viewBox='0 0 600 128' preserveAspectRatio='xMidYMid slice'><rect width='600' height='128' fill='%23E9D3A6'/><path d='M0 128V60Q150 30 300 50T600 14V0H0Z' fill='%237A4640'/><path d='M0 60Q150 30 300 50T600 14' stroke='%23F8EBC8' stroke-width='3' fill='none'/><g stroke='%23C9A56C' stroke-width='2' fill='none'><path d='M0 78Q150 50 300 70T600 34'/><path d='M0 94Q150 66 300 86T600 50'/><path d='M0 110Q150 82 300 102T600 66'/><path d='M0 126Q150 98 300 118T600 82'/></g><g fill='%23B3205F'><circle cx='470' cy='88' r='9'/><circle cx='500' cy='104' r='7'/><circle cx='444' cy='108' r='6'/></g><circle cx='470' cy='88' r='3' fill='%23F3C640'/></svg>") center / cover no-repeat; }
.eyebrow { display: inline-block; margin: 0 0 8px; padding: 0; background: none; border: 0; color: var(--ice); font: 700 .8125rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.intro h1 { max-width: 16em; font: 700 clamp(2.25rem, 5vw, 3.75rem)/1.02 var(--display); letter-spacing: -.025em; }
.intro-copy { max-width: 40rem; margin: 14px 0 26px; color: var(--muted); font-size: 1.1875rem; }

.options { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--rule); }
.option { min-width: 0; padding: 24px; border-right: 1px solid var(--line); }
.option h2 { font: 700 1.5rem/1.15 var(--display); }
.option p { color: var(--muted); }

.question-section { scroll-margin-top: 25px; margin-top: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.question-heading h2 { font: 700 clamp(1.75rem, 3.6vw, 2.5rem)/1.1 var(--display); }
.question-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.question-form { margin-top: 26px; padding: 26px 28px 30px; border: 1px solid var(--line); border-top: 3px solid var(--rule); background: var(--paper-hi); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font: 600 .9375rem/1.3 var(--display); letter-spacing: .01em; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 1.5px solid var(--muted); border-radius: 0; padding: 11px 13px; color: var(--ink); background: #fff; font: 400 1.0625rem/1.4 var(--text); }
.form-grid input, .form-grid select { min-height: 48px; }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--ice); outline: 3px solid var(--ice); outline-offset: 0; }
.form-grid .message-field { grid-column: 1 / -1; }
.form-grid .checkbox-row, .quote-form > fieldset > .checkbox-row { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; min-height: 44px; font: 400 1.0625rem/1.45 var(--text); }
.form-grid .checkbox-row { grid-column: 1 / -1; }
.form-grid .checkbox-row input, .quote-form > fieldset > .checkbox-row input { width: 22px; min-width: 22px; height: 22px; min-height: 22px; margin: 2px 0 0; accent-color: var(--ice); }
.quote-form > fieldset > .checkbox-row { margin-top: 20px; }
.honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-bottom { margin-top: 26px; }
.form-bottom button, .quote-submit button, .quote-results button { min-height: 52px; display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 0; padding: 12px 24px; color: var(--on-band); background: var(--band); font: 700 1.0625rem/1.2 var(--display); letter-spacing: .02em; cursor: pointer; transition: background-color .25s var(--ease); }
.form-bottom button:hover, .quote-submit button:hover, .quote-results button:hover { background: var(--ice-hi); color: #fff; }
.submit-note { max-width: 640px; margin: 16px 0 0; color: var(--muted); font-size: .9375rem; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--accent-dark); font: 700 1rem/1.4 var(--display); }

.product-switch { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 22px; border: 3px solid var(--rule); background: var(--band); width: fit-content; max-width: 100%; }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; border: 0; border-right: 1px solid #6b5447; border-radius: 0; padding: 8px 22px; background: transparent; color: var(--on-band); font: 600 1.0625rem/1.2 var(--display); text-decoration: none; transition: background-color .25s var(--ease); }
.product-switch a:last-child { border-right: 0; }
.product-switch a:hover { background: #4a3730; color: #fff; }
.product-switch a[aria-current="page"] { background: var(--ice-hi); color: #fff; }
.quote-form fieldset { min-width: 0; margin: 20px 0; padding: 26px 28px 30px; border: 1px solid var(--line); border-top: 3px solid var(--rule); border-radius: 0; background: var(--paper-hi); }
.quote-form legend { padding: 0 10px 0 0; font: 700 1.5rem/1.2 var(--display); letter-spacing: -.01em; }
.quote-form .form-grid { margin-top: 6px; }
.quote-submit { margin: 24px 0 40px; max-width: 720px; }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .6; }
#quote-status { color: var(--accent-dark); font: 700 1rem/1.4 var(--display); }
.quote-results { margin: 28px 0 60px; padding: 26px 28px; border: 1px solid var(--line); border-top: 3px solid var(--rule); border-radius: 0; background: var(--paper-hi); }
.quote-results h2 { margin: 0 0 14px; font: 700 1.75rem/1.15 var(--display); }
.quote-results article { border-top: 1px solid var(--line); padding: 18px 0; }
.quote-results article h3 { margin: 0 0 5px; font: 700 1.25rem/1.25 var(--display); }
.quote-results article p { margin: 4px 0 12px; }

/* ---------- foot band ---------- */
.site-footer { border-top: 3px solid var(--rule); max-width: none; margin: 0; padding: 20px max(16px, calc((100% - 1240px) / 2)) 26px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 26px; background: var(--band); color: var(--on-band); font: 600 .9375rem/1.45 var(--display); }
.site-footer p { margin: 0; }
.site-footer > p:first-child { font-weight: 700; }
.site-footer a { color: #f3c8da; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-note { flex-basis: 100%; font-weight: 400; font-family: var(--text); color: #e3d4b6; }

@media (max-width: 850px) {
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid a:nth-child(3n) { border-right: 1px solid #6b5447; }
  .choice-grid a:nth-child(2n) { border-right: 0; }
  .choice-grid a:nth-child(n+4) { border-bottom: 1px solid #6b5447; }
  .choice-grid a:nth-child(n+5) { border-bottom: 0; }
  .local-intro { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 590px) {
  .header-inner { width: min(100% - 24px, 1240px); gap: 0 12px; }
  .brand { gap: 10px; font-size: .875rem; }
  .brand strong { font-size: 1rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.25rem; }
  .header-link { width: 100%; min-height: 44px; padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); font-size: .875rem; white-space: normal; }
  .plate { grid-template-rows: auto minmax(300px, 52vh) auto auto; }
  .plate-art { object-position: 70% 50%; }
  .plate h1 { padding: 12px 16px 14px; font-size: 1.5rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid a, .choice-grid a:nth-child(n) { border-right: 0; border-bottom: 1px solid #6b5447; min-height: 64px; }
  .choice-grid a:last-child { border-bottom: 0; }
  .page-shell { width: min(100% - 24px, 1240px); }
  .local-board { padding: 0 12px; }
  .local-wrap { padding: 44px 0 64px; }
  .local-section-heading { margin-top: 40px; align-items: flex-start; flex-direction: column; gap: 6px; }
  .local-grid, .local-weather-lead, .local-news-list { grid-template-columns: 1fr; }
  .local-card { padding: 22px 18px; }
  .local-alert, .local-advisory { padding: 18px 16px; gap: 12px; }
  .local-day { flex-basis: 128px; }
  .options { grid-template-columns: 1fr; }
  .option { border-right: 0; border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .question-form, .quote-form fieldset, .quote-results { padding: 20px 16px 24px; }
  .intro { padding-top: 112px; }
  .intro::before { height: 96px; }
  .product-switch { width: 100%; }
  .product-switch a { flex: 1 1 auto; justify-content: center; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate-art { animation: none; }
  .choice-grid a, .product-switch a, .form-bottom button, .quote-submit button { transition: none; }
}
