/* BookedPlate — warm, human, crafted styling.
   Editorial serif headings, rich cream paper tones, a strong
   tomato-paprika accent, soft layered shadows, and a clearly
   perceptible paper grain. One local photo on the homepage;
   no external assets, no fonts fetched from anywhere. */

:root {
    --bg: #f6eeda;
    --surface: #fffdf4;
    --surface-soft: #f4e8d2;
    --ink: #2a1c10;
    --ink-soft: #4a3319;
    --muted: #7c6247;
    --line: #e2d1b0;
    --line-strong: #d3ba8d;
    --accent: #b03a17;
    --accent-dark: #8c2a10;
    --accent-soft: #fdeee2;
    --accent-ring: rgba(176, 58, 23, 0.25);
    --success: #2e5e33;
    --success-bg: #f2f7ec;
    --success-line: #cfe0b8;
    --info-bg: #f4efe4;
    --info-line: #d3ba8d;
    --info-text: #4a3319;
    --shadow-card: 0 2px 4px rgba(59, 42, 24, 0.07), 0 18px 40px rgba(59, 42, 24, 0.10), 0 3px 8px rgba(59, 42, 24, 0.04);
    --shadow-button: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 3px rgba(59, 42, 24, 0.20), 0 8px 20px rgba(176, 58, 23, 0.28);
    --radius: 18px 20px 17px 21px / 20px 18px 21px 17px;
    --radius-sm: 12px;
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    overflow-wrap: break-word;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 5px),
        repeating-linear-gradient(90deg, rgba(122, 90, 50, 0.015) 0 3px, transparent 3px 9px);
    -webkit-font-smoothing: antialiased;
}

/* Paper grain, drawn locally with an inline SVG filter. Sits
   behind the content, above the flat background color. Strong
   enough to feel, light enough to stay out of the way. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

::selection {
    background: var(--accent);
    color: #fdf6ec;
}

a {
    color: var(--accent);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 24px;
}

/* ---- Header / footer ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(252, 249, 243, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.site-nav a {
    display: inline-block;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    background: var(--surface-soft);
    color: var(--ink);
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav .btn {
    padding: 9px 16px;
    min-height: 0;
    margin: 0;
    font-size: 15px;
}

.site-nav .btn:hover {
    background: var(--accent-dark);
    color: #fff;
    text-decoration: none;
}

/* Honeypot field: hidden from people, visible to bots. Clipped in place
   instead of parked thousands of pixels off-screen, so it can never
   widen the page and cause sideways scrolling on phones. */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
}

.site-footer {
    margin-top: 64px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
}

.site-footer p {
    margin: 0;
}

/* ---- Typography ---- */

.hero {
    padding: 56px 0 8px;
}

/* Homepage hero photo: a real catering spread, framed like a print
   resting on the page. Slight tilt, warm mat, soft shadow. */
.hero-photo {
    margin: 4px 0 30px;
    padding: 10px 10px 8px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 6px 8px 5px 7px;
    box-shadow: 0 2px 4px rgba(59, 42, 24, 0.08), 0 20px 44px rgba(59, 42, 24, 0.14);
    transform: rotate(-0.6deg);
}

.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 14px;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 9px;
    transform: rotate(-1deg);
}

h1 {
    font-family: var(--serif);
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin: 0 0 18px;
}

/* Hand-drawn-style squiggle under the main heading. Bigger and
   bolder so it reads as a deliberate mark, not a decoration. */
.hero h1::after {
    content: "";
    display: block;
    width: 180px;
    height: 14px;
    margin-top: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='14' viewBox='0 0 180 14'%3E%3Cpath d='M2 10 C 24 3, 44 13, 68 8 S 112 3, 136 9 S 168 12, 178 6' fill='none' stroke='%23b03a17' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
}

h2 {
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 700;
    margin: 30px 0 10px;
}

h3 {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    margin: 22px 0 8px;
}

.card h2:first-child,
.card h3:first-child {
    margin-top: 0;
}

.lede {
    font-size: 21px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 16px;
}

.muted {
    color: var(--muted);
    font-size: 15.5px;
}

p {
    margin: 0 0 12px;
}

ul, ol {
    margin: 0 0 12px;
}

/* ---- Cards ---- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin: 24px 0;
    box-shadow: var(--shadow-card);
}

.steps {
    padding-left: 22px;
}

.steps li {
    margin-bottom: 10px;
}

.steps li::marker {
    color: var(--muted);
}

.steps-inline {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.steps-inline li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px 15px 13px 16px / 15px 14px 16px 13px;
    padding: 14px 16px;
    margin: 0;
    box-shadow: 0 1px 2px rgba(59, 42, 24, 0.04), 0 4px 14px rgba(59, 42, 24, 0.04);
}

/* ---- Forms ---- */

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

legend {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 0;
    margin-bottom: 6px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin: 18px 0 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    font-size: 16px;
    font-family: inherit;
    padding: 12px 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fffdf8;
    color: var(--ink);
    margin-top: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder,
textarea::placeholder {
    color: #a89a86;
}

textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.55;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d6a56' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--accent);
}

.choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 13px 15px 12px 15px / 15px 13px 15px 12px;
    margin: 12px 0;
    cursor: pointer;
    font-weight: 400;
    background: #fffdf8;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.choice:hover {
    border-color: #b3a48d;
    background: var(--surface-soft);
}

.choice input {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.choice:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent);
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 16px;
    font-weight: 650;
    padding: 13px 22px;
    min-height: 48px;
    line-height: 1.3;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    margin: 4px 4px 4px 0;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(180deg, #b5442a, var(--accent));
    color: #fff;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #9c3418, var(--accent-dark));
    color: #fff;
}

.btn-secondary {
    background: #fffdf8;
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: 0 1px 2px rgba(59, 42, 24, 0.06);
}

.btn-secondary:hover {
    border-color: #b3a48d;
    background: var(--surface-soft);
    color: var(--ink);
}

.btn-block {
    width: 100%;
    margin-right: 0;
}

/* ---- Estimate (warm dark-brown panel) ---- */

.estimate {
    background:
        radial-gradient(120% 140% at 20% 0%, rgba(255, 190, 120, 0.12), transparent 55%),
        linear-gradient(160deg, #332219, #241811);
    border-color: #241811;
    color: #f7ecda;
}

.estimate h2 {
    color: #fff8ea;
    margin-top: 0;
}

.estimate .muted {
    color: #d8c7ae;
}

.estimate-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    color: #eadfc8;
}

.estimate-lines li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 240, 214, 0.14);
}

.estimate-lines li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.estimate-total {
    font-family: var(--serif);
    font-size: clamp(34px, 6vw, 44px);
    line-height: 1.1;
    letter-spacing: 0;
    font-weight: 600;
    margin: 12px 0 8px;
    color: #fff8ea;
}

.estimate-total strong {
    font-weight: 600;
}

/* ---- Banners ---- */

.alert {
    background: var(--accent-soft);
    border: 1px solid #f3c9b4;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
    color: var(--ink);
}

.alert ul {
    margin-bottom: 0;
}

.flash {
    background: var(--success-bg);
    border: 1px solid var(--success-line);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
    font-weight: 600;
    color: var(--success);
}

.preview-banner {
    background: var(--info-bg);
    border: 1px solid var(--info-line);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
    font-weight: 600;
    color: var(--info-text);
}

/* ---- Inquiries ---- */

.inquiry {
    border-top: 1px solid var(--line);
    padding: 20px 0;
}

.inquiry:first-child {
    border-top: 0;
    padding-top: 4px;
}

.inquiry:last-child {
    padding-bottom: 4px;
}

.inquiry h3 {
    margin-top: 0;
}

/* ---- Status pills ---- */

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
    border: 1px solid transparent;
    white-space: nowrap;
    vertical-align: middle;
}

.pill-new {
    background: #eaf0fa;
    border-color: #c4d2f0;
    color: #2b4a7a;
}

.pill-contacted {
    background: #fdf3d7;
    border-color: #f2d98c;
    color: #7a4a0e;
}

.pill-booked {
    background: #ecf6ec;
    border-color: #bfe0bd;
    color: #2e5e33;
}

.pill-lost {
    background: #f2efe9;
    border-color: #ddd6c8;
    color: #5d5347;
}

/* ---- Inline forms, row grids, copy rows ---- */

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.inline-form label {
    margin: 0;
}

.inline-form select {
    width: auto;
    min-width: 170px;
}

.row-grid {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 16px 18px;
    margin: 14px 0;
    background: var(--surface-soft);
}

.row-grid label {
    font-size: 15px;
    margin-top: 10px;
}

.row-grid label:first-child {
    margin-top: 0;
}

.repeat-rows .row-actions {
    margin-top: 12px;
}

.copy-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin: 8px 0 16px;
}

.copy-row input {
    margin-top: 0;
    background: var(--surface-soft);
    flex: 1;
    min-width: 0;
}

.copy-row .btn {
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

/* ---- Guided setup, checklist, hand-holding helpers ---- */

.help {
    display: block;
    font-weight: 400;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--muted);
    margin: 4px 0 0;
}

.wizard-steps {
    list-style: none;
    padding: 0;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-steps li {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    color: var(--muted);
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(59, 42, 24, 0.04);
}

.wizard-steps li.current {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--accent);
}

.wizard-steps li.done {
    border-color: var(--success-line);
    background: var(--success-bg);
    color: var(--success);
}

.checklist ol {
    padding-left: 22px;
    margin-bottom: 0;
}

.checklist li {
    margin-bottom: 18px;
}

.checklist li:last-child {
    margin-bottom: 0;
}

.live-box {
    border-color: var(--success-line);
    background: var(--success-bg);
}

.live-box h2 {
    color: var(--success);
}

/* ---- Responsive ---- */

@media (min-width: 640px) {
    h1 {
        font-size: 60px;
    }

    .hero {
        padding-top: 72px;
    }

    .steps-inline {
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }

    .steps-inline li {
        flex: 1;
    }

    /* Editorial stagger, more pronounced: the middle step sits lower,
       so the row reads hand-placed instead of machine-aligned. */
    .steps-inline li:nth-child(2) {
        transform: translateY(12px);
    }

    .steps-inline li:nth-child(3) {
        transform: translateY(6px);
    }

    .row-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 16px;
    }

    .row-grid label {
        margin-top: 10px;
    }

    .wizard-steps {
        flex-direction: row;
        gap: 10px;
    }

    .wizard-steps li {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    .card {
        padding: 20px;
        border-radius: 14px 15px 13px 16px / 15px 14px 16px 13px;
    }

    .hero {
        padding-top: 34px;
    }

    /* No tilt on small screens, so the framed photo never overflows. */
    .hero-photo {
        transform: none;
        margin-bottom: 24px;
    }

    .copy-row {
        flex-direction: column;
    }

    .copy-row .btn {
        width: 100%;
    }

    /* The header nav (Get started + Owner login) is wider than a phone
       screen, so let it wrap onto its own line instead of pushing
       the page sideways. */
    .site-header .wrap {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .inline-form .btn {
        width: 100%;
        margin-right: 0;
    }

    .inline-form select {
        width: 100%;
    }
}

/* New features: branding, stats, attention. */
.brand-logo {
    max-width: 220px;
    max-height: 110px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    border-radius: 8px;
}

.brand-tagline {
    font-size: 18px;
    color: var(--ink-soft);
    margin-top: -6px;
}

.stats-row {
    font-size: 17px;
    line-height: 1.7;
}

.attention-box {
    border-left: 4px solid var(--accent);
}

.attention-box ul {
    margin: 8px 0 0 18px;
}

.attention-box li {
    margin-bottom: 6px;
}

.site-footer a {
    color: inherit;
}
