/*
 * Styles for the public website (resources/views/website).
 * Look: deep-to-soft teal, a pale mint page, white rounded cards and soft shadows.
 * Change the colours here, in one place.
 */
:root {
    --teal: #1f7a7c; --teal-dark: #17606a; --teal-deep: #245566; --teal-soft: #e3f0ef;
    --bg: #eef5f4; --panel: #fff; --ink: #0f1f24; --muted: #566b72; --line: #e0ebea; --accent: #1b6d70;
    --hero: linear-gradient(170deg, #1c5f6b 0%, #1f7a7c 55%, #2c8587 100%);
    --soft-panel: linear-gradient(180deg, #e6f1f0, #f6fafa);
    --shadow: 0 1px 2px rgba(23, 74, 80, .05), 0 10px 24px -12px rgba(23, 74, 80, .18);
    --shadow-big: 0 2px 6px rgba(23, 74, 80, .06), 0 28px 50px -24px rgba(23, 74, 80, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); line-height: 1.6; font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid #5fc2bf; outline-offset: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 680px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; font-weight: 650; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); margin: 0 0 14px; }
h2 { font-size: 1.45rem; margin: 0 0 4px; scroll-margin-top: 100px; }
h3 { font-size: 1.02rem; margin: 0 0 6px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--panel); box-shadow: 0 6px 20px -16px rgba(23, 74, 80, .45); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; text-decoration: none; }
.logo { display: block; width: auto; height: 44px; flex: none; }
.brand-sub { padding-left: 10px; border-left: 1px solid var(--line); font-size: .8rem; line-height: 1.25; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu > a:not(.btn) { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none; }
.menu > a:not(.btn):hover { color: var(--ink); background: var(--bg); }
.menu > a:not(.btn)[aria-current="page"] { color: var(--accent); background: var(--teal-soft); font-weight: 600; }
.menu .btn { margin-left: 10px; padding-top: 9px; padding-bottom: 9px; }
.menu-button { display: none; padding: 8px 18px; font: inherit; font-weight: 500; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 12px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); font-weight: 600; text-align: center; text-decoration: none; overflow-wrap: anywhere; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 12px 22px -12px rgba(31, 122, 124, .75); }
.btn.primary:hover { background: var(--teal-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* ---------- teal header panel ---------- */
.hero { margin: 16px auto 0; max-width: 1240px; padding: 0 12px; }
.hero-panel { padding: 72px 0 120px; border-radius: 32px; background: var(--hero); color: #fff; text-align: center; }
.hero-panel.small { padding: 44px 0 84px; }
.hero-panel h1 { max-width: 18ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.hero-panel.small h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
.eyebrow { margin: 0 0 8px; font-size: .95rem; color: #d3ecea; }
.hero-panel .lead { max-width: 52ch; margin: 0 auto; color: #e2f2f1; }
.hero-panel .actions { justify-content: center; }
.hero-panel .btn { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.hero-panel .btn.primary { border-color: #fff; background: #fff; color: #17525b; box-shadow: 0 14px 26px -14px rgba(0, 25, 30, .6); }

/* ---------- the white sheet that overlaps the teal panel ---------- */
.sheet { position: relative; margin-top: -64px; padding: 24px; border-radius: 28px; background: var(--panel); box-shadow: var(--shadow-big); }
.sheet-wrap { padding-bottom: 8px; }
.sheet-title { margin-bottom: 16px; }

.block { padding-top: 48px; padding-bottom: 16px; }
.block:last-child { padding-bottom: 56px; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0; }
.pre { white-space: pre-line; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.one { grid-template-columns: 1fr; margin-top: 0; }
/* four items: four across, two by two, or one per line (never three and a leftover) */
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }
.card { display: block; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
a.card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); border-color: #a9d3d1; box-shadow: var(--shadow-big); }
.sheet .grid { margin-top: 0; }
.sheet .card { background: var(--soft-panel); box-shadow: none; }
.sheet a.card:hover { box-shadow: var(--shadow); }
.row { display: flex; align-items: flex-start; gap: 16px; }
.row > div { min-width: 0; }

.icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; margin-bottom: 14px; border-radius: 14px; background: var(--panel); color: var(--accent); box-shadow: var(--shadow); }
.card:not(.sheet .card) .icon { background: var(--teal-soft); box-shadow: none; }
.row .icon { margin-bottom: 0; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- pill chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; box-shadow: var(--shadow); }
.chip:hover, .chip:focus-visible { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 12px; background: var(--teal-deep); color: #fff; font-weight: 650; }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-radius: 28px; background: var(--hero); color: #fff; box-shadow: var(--shadow-big); }
.band p { margin: 0; color: #e2f2f1; }
.band .btn { border-color: #fff; background: #fff; color: #17525b; }

.card p .placeholder, .placeholder { display: inline-block; padding: 4px 12px; border: 1px dashed #d97706; border-radius: 999px; background: #fef3c7; color: #78350f; font-size: .88rem; }
.notice { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #d97706; border-radius: 14px; background: #fef3c7; color: #78350f; }
.foot { margin-top: 24px; padding: 24px 0; background: var(--panel); color: var(--muted); font-size: .85rem; }

@media (max-width: 700px) {
    .js .menu-button { display: block; }
    .menu { width: 100%; flex-direction: column; align-items: stretch; }
    .js .menu { display: none; }
    .js .menu.open { display: flex; }
    .menu .btn { margin: 8px 0 0; }
    .brand { max-width: calc(100% - 100px); }
    .hero { margin-top: 12px; }
    .hero-panel { padding: 48px 0 100px; border-radius: 26px; }
    .hero-panel.small { padding: 36px 0 76px; }
    .sheet { padding: 16px; border-radius: 24px; }
    .band { padding: 24px; }
}
html:not(.js) .top { position: static; }

/* Dark mode: follows the visitor's device setting. */
/* data-theme is set by the script in layout.blade.php: the visitor's own choice, else the device setting. */
:root[data-theme="dark"] {
    --accent: #7fd6d2; --teal-soft: #17353a; --bg: #0a1416; --panel: #111f23; --ink: #eef7f7; --muted: #a3bbbf; --line: #213a3f;
    --hero: linear-gradient(170deg, #123c45 0%, #175457 60%, #1b6062 100%);
    --soft-panel: linear-gradient(180deg, #172c31, #13252a);
    --shadow: 0 10px 24px -14px rgba(0, 0, 0, .7);
    --shadow-big: 0 28px 50px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
}
/* the logo's dark blue needs a light plate behind it here */
:root[data-theme="dark"] .logo { padding: 4px 8px; background: #fff; border-radius: 10px; }

/* ---------- light / dark switch ---------- */
.theme-button { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; margin-left: 8px; padding: 0 10px; font: inherit; font-weight: 500; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); cursor: pointer; }
.theme-button:hover { color: var(--ink); }
.theme-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.js .theme-button { display: inline-flex; }
/* the picture shows what you will switch to: a moon in light mode, a sun in dark mode */
.theme-button .sun, :root[data-theme="dark"] .theme-button .moon { display: none; }
:root[data-theme="dark"] .theme-button .sun { display: block; }
.theme-label { display: none; }
@media (max-width: 700px) {
    .theme-button { margin: 8px 0 0; }
    .theme-label { display: inline; }
}
