/* Turan Insurance Agency */
/* Layout: sticky bar → split hero with quote starter → coverage trio → process strip → checklist → quote form → contact footer */
:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --ink: #0e2a31;
  --muted: #4d6469;
  --line: #d8e2e3;
  --brand: #0f4c5a;
  --brand-ink: #ffffff;
  --brand-soft: #e3eff0;
  --accent: #e0a13a;
  --accent-ink: #2a1a00;
  --ok: #1f7a4d;
  --err: #b3261e;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a1e; --surface: #11262b; --ink: #e6f0f1; --muted: #9fb5b9; --line: #23403f;
    --brand: #5fb3c2; --brand-ink: #062027; --brand-soft: #16333a;
    --accent: #f0b555; --accent-ink: #2a1a00; --ok: #5ccf94; --err: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1a1e; --surface: #11262b; --ink: #e6f0f1; --muted: #9fb5b9; --line: #23403f;
  --brand: #5fb3c2; --brand-ink: #062027; --brand-soft: #16333a;
  --accent: #f0b555; --accent-ink: #2a1a00; --ok: #5ccf94; --err: #ff8a80;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 680px; }

/* Header */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--body); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; gap: 22px; align-items: center; }
nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem var(--body); padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
nav .btn-accent { color: var(--accent-ink); }
@media (max-width: 760px) { nav .link { display: none; } }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px); background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.trust { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust span::before { content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 800; }
.starter { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 18px 40px -24px rgba(14, 42, 49, .35); min-width: 0; }
.starter h2 { font-size: 1.5rem; }
.starter p { color: var(--muted); font-size: .95rem; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { border: 2px solid var(--line); background: var(--bg); border-radius: var(--radius); padding: 14px 8px; text-align: center; cursor: pointer; font: 700 .92rem var(--body); color: var(--ink); display: grid; gap: 6px; justify-items: center; }
.choice svg { width: 28px; height: 28px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }

/* Coverage */
.cov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .cov-grid { grid-template-columns: 1fr; } }
.cov { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.cov-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.cov-icon svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cov p { color: var(--muted); }
.cov ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.cov li { display: flex; gap: 10px; font-size: .95rem; }
.cov li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: .62em; }
.cov a { font-weight: 700; text-decoration: none; margin-top: 4px; }

/* Process */
.process { background: var(--brand); color: var(--brand-ink); }
.process .eyebrow { color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 24px; } }
.step { display: grid; gap: 10px; padding-top: 20px; border-top: 2px solid color-mix(in srgb, var(--brand-ink) 30%, transparent); }
.step-num { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.step p { opacity: .88; }

/* Checklist */
.ready { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .ready { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { font: 700 .92rem var(--body); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 24px; }
.list-card ol { margin: 0; padding: 0; list-style: none; }
.list-card li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.list-card li:last-child { border-bottom: 0; }
.list-card li::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--brand); border-radius: 4px; margin-top: 4px; }
.list-card strong { display: block; }
.list-card span { color: var(--muted); font-size: .92rem; }

/* Quote form */
.quote { background: var(--surface); border-block: 1px solid var(--line); }
.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
@media (max-width: 880px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-aside { display: grid; gap: 18px; align-content: start; }
.contact-line { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line .label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.contact-line .val { font-weight: 700; font-size: 1.05rem; user-select: all; }
form { display: grid; gap: 18px; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
label, legend { font-weight: 700; font-size: .92rem; }
.opt { font-weight: 500; color: var(--muted); }
input, select, textarea { font: 500 1rem var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks { display: flex; gap: 10px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; background: var(--bg); }
.check input { width: auto; accent-color: var(--brand); }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.err-msg { color: var(--err); font-size: .88rem; font-weight: 600; }
.notice { border-radius: 12px; padding: 18px 20px; background: var(--brand-soft); border: 1px solid var(--brand); display: grid; gap: 6px; }
.notice strong { font-family: var(--display); font-size: 1.15rem; }
.fine { font-size: .82rem; color: var(--muted); }

/* Footer */
footer { padding-block: 48px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.foot h3 { font-size: 1rem; margin-bottom: 10px; }
.foot p, .foot li { color: var(--muted); font-size: .94rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; max-width: 260px; }
/* Dashboard */
.dash { padding-block: 40px 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; display: grid; min-width: 120px; }
.stat b { font-family: var(--display); font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 16px; }
.toolbar select { width: auto; }
.qlist { display: grid; gap: 12px; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; min-width: 0; }
.qcard[data-status="new"] { border-left-color: var(--accent); }
.qcard[data-status="contacted"] { border-left-color: var(--brand); }
.qcard[data-status="quoted"] { border-left-color: var(--ok); }
.qtop { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: start; }
.qtop h3 { font-size: 1.15rem; }
.qmeta { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); }
.pill.st-new { background: var(--accent); color: var(--accent-ink); }
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 20px; }
.qgrid div { min-width: 0; overflow-wrap: anywhere; }
.qgrid .label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.qnotes { background: var(--bg); border-radius: 8px; padding: 10px 14px; font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.qactions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.qactions select { width: auto; padding: 8px 12px; }
.btn-danger { background: transparent; color: var(--err); border-color: var(--err); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 36px 24px; text-align: center; color: var(--muted); display: grid; gap: 6px; }
.empty strong { color: var(--ink); font-family: var(--display); font-size: 1.15rem; }
.info-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 760px; }
.info-form h3 { font-size: 1rem; margin-top: 8px; }
.save-msg { font-weight: 600; font-size: .92rem; color: var(--ok); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Standalone-site additions */
html, body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.login-card { max-width: 420px; margin: 64px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 16px; }
.alert { border-radius: 10px; padding: 12px 16px; font-weight: 600; font-size: .95rem; }
.alert-ok { background: var(--brand-soft); border: 1px solid var(--brand); }
.alert-err { background: transparent; border: 1px solid var(--err); color: var(--err); }
.inline-form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.tab { text-decoration: none; display: inline-block; }
