/* Goodbytes website stylesheet. The green comes from the Goodbytes logo; the rest is neutral grey. */

:root {
    --green: #5a8039;
    --green-dark: #46652b;
    --green-light: #eef4e8;
    --ink: #2c3238;
    --text: #23282d;
    --muted: #555c63;
    --border: #dfe3e6;
    --bg: #ffffff;
    --radius: 6px;
    --max-width: 72rem;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

a { color: var(--green-dark); }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--green);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.brand img { display: block; width: 130px; height: auto; }

.site-header nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.site-header nav a:hover { color: var(--green); }

.site-header nav a.nav-cta { color: var(--green-dark); }

@media (max-width: 600px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .site-header { position: static; }
}

/* Buttons */

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background: var(--green);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--green);
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

.button-secondary { background: transparent; color: var(--green-dark); }
.button-secondary:hover { background: var(--green-light); color: var(--green-dark); }

.button-light { background: #fff; color: var(--green-dark); border-color: #fff; }
.button-light:hover { background: var(--green-light); border-color: var(--green-light); color: var(--green-dark); }

/* Hero */

.hero {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, var(--green-light) 0%, #ffffff 70%);
}

.hero h1 { max-width: 20ch; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--green-dark);
    margin-bottom: 0.75rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Facts strip */

.facts { background: var(--ink); color: #fff; padding: 1.75rem 0; }

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.25rem;
}

.facts strong { display: block; font-size: 1.25rem; }
.facts span { color: #dde1e4; }

/* Sections */

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tinted { background: var(--green-light); }

.section-intro { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

.group-heading {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--green);
    display: inline-block;
}

.group-intro { color: var(--muted); max-width: 46rem; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.card {
    border: 1px solid var(--border);
    border-top: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 0.5rem;
    background: #fff;
}
.card p { color: var(--muted); }

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.checklist, .plain-list { margin: 0; padding: 0; list-style: none; }

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--green);
}

.plain-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.plain-list li:last-child { border-bottom: 0; }

.list-heading-spaced { margin-top: 2rem; }

.meta { display: block; font-size: 0.9rem; color: var(--muted); }

.list-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-dark);
}

/* Contact */

.section-dark { background: var(--green-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #fff; }
.section-dark .button-light { color: var(--green-dark); }
.section-dark .list-heading { color: #dbe8cf; margin-top: 1.5rem; }
.section-dark .list-heading:first-child { margin-top: 0; }
.section-dark .plain-list li { border-color: rgba(255, 255, 255, 0.2); }
.section-dark p { margin-bottom: 0.5rem; }

/* Footer */

.site-footer {
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}
.site-footer p { margin: 0; }
