/* Light-only by design: the food photography is shot on white. */
:root {
    color-scheme: light;
    --bg: #ffffff;
    --tint: #eef5fa;
    --text: #1b2733;
    --muted: #556270;
    --accent: #0066a4;      /* FOODSAFE logo blue */
    --accent-dark: #004e7d;
    --warm: #e2711d;
    --rule: #d9e4ec;
    --max: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Keep anchor targets clear of the sticky top bar */
section[id] { scroll-margin-top: 5rem; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

h1, h2 { line-height: 1.2; }

.eyebrow {
    margin: 0 0 .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.button {
    display: inline-block;
    padding: .8rem 1.4rem;
    border-radius: 8px;
    background: var(--warm);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.button:hover,
.button:focus-visible { filter: brightness(1.08); }

/* Top bar */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--rule);
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max);
    margin: 0 auto;
    padding: .75rem 1rem;
}

.brand {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-decoration: none;
}

.brand span { color: var(--warm); }

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    align-items: center;
}

.topbar nav a {
    color: var(--text);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
}

.topbar nav a:hover { color: var(--accent); }

.topbar nav .nav-cta {
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
}

.topbar nav .nav-cta:hover { background: var(--accent-dark); color: #ffffff; }

/* Hero — the photo is already darkened; the overlay guarantees contrast behind the centre text */

.hero {
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 70%),
        #2a2f2b url("/img/hero.jpg") center / cover no-repeat;
    color: #ffffff;
    text-align: center;
}

.hero-inner {
    max-width: 46rem;
    margin: 0 auto;
    padding: 6rem 1rem 5rem;
}

.hero .eyebrow { color: #ffd7b0; }

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.25rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.hero-lede {
    margin: 1rem auto 2rem;
    max-width: 36rem;
    font-size: 1.15rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hero h1,
.hero-lede { text-wrap: balance; }

/* Message left, button right; stacks and re-centres on narrow screens */
.hero-notice {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    color: var(--text);
    text-align: left;
}

.hero-notice p { margin: 0; text-wrap: pretty; }

.hero-notice .button { flex-shrink: 0; white-space: nowrap; }

/* Feature rows: text beside a photo, alternating */

main { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--rule);
}

.feature.reverse .feature-text { order: 2; }

.feature h2 {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.feature-img {
    display: block;
    width: 100%;
    height: auto;
}

.feature-img-narrow { max-width: 24rem; justify-self: center; }

.callout {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--warm);
    border-radius: 0 8px 8px 0;
    background: var(--tint);
}

/* For-sale card */

.sale {
    margin: 4rem 0;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: var(--tint);
    border: 1px solid var(--rule);
    text-align: center;
}

.sale .eyebrow { color: var(--warm); }

.sale .domain {
    margin: 0;
    color: var(--accent);
    font-size: clamp(2rem, 8vw, 3rem);
    overflow-wrap: anywhere;
}

.domain-also {
    margin: .25rem 0 1.5rem;
    color: var(--accent-dark);
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.points {
    display: inline-block;
    margin: 0 0 2rem;
    padding-left: 1.2rem;
    text-align: left;
}

.points li { margin-bottom: .4rem; }

/* Footer */

.footer {
    padding: 2rem 1rem;
    background: var(--accent-dark);
    color: #dbe7f0;
    font-size: .9rem;
    text-align: center;
}

.footer p { margin: .25rem 0; }

@media (max-width: 760px) {
    section[id] { scroll-margin-top: 7.5rem; }  /* top bar wraps to two rows */
    .feature { grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 0; }
    .feature.reverse .feature-text { order: 0; }
    .hero-inner { padding: 4rem 1rem 3.5rem; }
    .hero-notice { flex-direction: column; gap: 1rem; text-align: center; }
    .sale { padding: 2rem 1.25rem; }
}
