/* ourclubsale.com — marketing site stylesheet
   Adapted from placeholder-site/style.css (Second Hand Sale/placeholder-site)
   for the live Django marketing app. See DESIGN_DECISIONS.md 2026-07-05. */

:root {
    --navy:       #1e3a5f;
    --navy-dark:  #152d4a;
    --teal:       #0891b2;
    --teal-dark:  #0e7490;
    --teal-light: #cffafe;
    --bg:         #f8fafc;
    --white:      #ffffff;
    --text:       #1e293b;
    --muted:      #64748b;
    --border:     #e2e8f0;
    --amber-bg:   #fef3c7;
    --amber-text: #92400e;
    --red-bg:     #fef2f2;
    --red-border: #fecaca;
    --red-text:   #991b1b;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ────────────────────────────────── */

nav {
    background: var(--navy);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo svg { flex-shrink: 0; }

.nav-wordmark {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.nav-wordmark span { color: var(--teal); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: 5px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(255,255,255,0.09);
    text-decoration: none;
}

.nav-links .nav-signin {
    margin-left: 0.5rem;
}

.nav-links .nav-cta {
    background: var(--teal);
    color: #ffffff !important;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 0.5rem;
}

.nav-links .nav-cta:hover {
    background: var(--teal-dark) !important;
}

/* ── Hero (home) ────────────────────────────────── */

.hero {
    background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, #1b4878 100%);
    color: white;
    padding: 5.5rem 2rem 4.5rem;
    text-align: center;
}

.hero-inner { max-width: 760px; margin: 0 auto; }

.badge {
    display: inline-block;
    background: var(--amber-bg);
    color: var(--amber-text);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero h1 em {
    font-style: normal;
    color: var(--teal);
}

.hero .lead {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────── */

.btn {
    display: inline-block;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.975rem;
    padding: 0.85rem 1.9rem;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--teal);
    color: white;
    box-shadow: 0 4px 12px rgba(8,145,178,0.35);
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.22);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    text-decoration: none;
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: white;
    text-decoration: none;
}

/* ── Page hero (sub-pages) ──────────────────────── */

.page-hero {
    background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: white;
    padding: 4rem 2rem 3.5rem;
    text-align: center;
}

.page-hero-inner { max-width: 680px; margin: 0 auto; }

.page-hero .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.18;
}

.page-hero p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.75;
}

/* Smaller heading variant — used on Contact (OCS0014), whose three-part
   "Found a bug? Got an idea? Got a question?" heading is longer than the
   other page-hero headings and reads better a size down. Selector needs the
   .page-hero ancestor repeated to out-specificity the base .page-hero h1
   rule above (both are otherwise equal specificity, and this one is later
   in the file, but relying on source order alone is fragile). */
.page-hero h1.page-hero-h1--compact {
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
}

/* ── Sections ───────────────────────────────────── */

section { padding: 4.5rem 2rem; }
section.alt { background: var(--white); }

.section-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.section-header { margin-bottom: 2.75rem; }

.section-header .eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
}

/* ── Cards ──────────────────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-icon {
    width: 46px;
    height: 46px;
    background: var(--teal-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ── Audience tiles ──────────────────────────────── */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.audience-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--teal);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.audience-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.audience-card p {
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.audience-card a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal);
}

/* ── CTA banner ──────────────────────────────────── */

.cta-section {
    background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.9rem;
}

.cta-section p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 2.25rem;
    line-height: 1.7;
}

/* ── Steps (numbered journey) ────────────────────── */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    counter-reset: step-counter;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
    counter-increment: step-counter;
    box-shadow: var(--shadow-sm);
}

.step-card::before {
    content: counter(step-counter);
    position: absolute;
    top: -13px;
    left: 1.5rem;
    background: var(--teal);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Pain points (About) ──────────────────────────── */

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

.pain-card {
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: 10px;
    padding: 1.5rem;
}

.pain-icon { font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }

.pain-card h4 {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--red-text);
    margin-bottom: 0.4rem;
}

.pain-card p {
    font-size: 0.9rem;
    color: #b91c1c;
    line-height: 1.65;
}

/* ── Solution block (About) ──────────────────────── */

.solution {
    background: linear-gradient(135deg, var(--navy) 0%, #1a4a6e 100%);
    border-radius: 14px;
    padding: 3rem;
    color: white;
}

.solution h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.solution p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 680px;
}

.solution ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    list-style: none;
}

.solution ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.solution ul li::before {
    content: "✓";
    color: var(--teal);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ── Contact form (OCS0014) ──────────────────────── */

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.4rem; }

.contact-form .btn { margin-top: 0.5rem; }

/* Honeypot (OCS0014 contact form spam protection) — positioned off-screen
   rather than display:none/visibility:hidden, since some bots specifically
   skip fields hidden that way but still fill anything positioned normally
   in the DOM. Real visitors, sighted or on a screen reader, never see or
   reach this field. See marketing/forms.py SupportMessageForm.is_bot(). */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .form-row { flex-direction: column; gap: 0; }
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.14);
}

.form-group--error input,
.form-group--error select,
.form-group--error textarea {
    border-color: #f87171;
}

.field-error {
    display: block;
    font-size: 0.8rem;
    color: var(--red-text);
    margin-top: 0.3rem;
}

.form-error-banner {
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    color: var(--red-text);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.form-error-banner p { margin: 0; }
.form-error-banner p + p { margin-top: 0.35rem; }

.form-success {
    background: var(--teal-light);
    border-left: 4px solid var(--teal);
    border-radius: 0 10px 10px 0;
    padding: 1.75rem;
}

.form-success h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: #0c4a6e;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* ── FAQ (OCS0015) ───────────────────────────────── */

.faq-jump-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-jump-nav a {
    background: var(--teal-light);
    color: #0c4a6e;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
}

.faq-jump-nav a:hover {
    background: var(--teal);
    color: white;
    text-decoration: none;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 760px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.faq-answer p {
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.7;
}

.faq-answer p + p { margin-top: 0.75rem; }

.faq-video-link {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
}

/* ── Stub notice ─────────────────────────────────── */

.stub-notice {
    background: var(--amber-bg);
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--amber-text);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

/* ── Byline / quote ──────────────────────────────── */

.byline-box {
    background: var(--teal-light);
    border-left: 4px solid var(--teal);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem 1.75rem;
    max-width: 680px;
}

.byline-box p {
    font-size: 1rem;
    color: #0c4a6e;
    line-height: 1.7;
    font-style: italic;
}

.byline-box cite {
    display: block;
    font-style: normal;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal-dark);
    margin-top: 0.6rem;
}

/* ── Footer ──────────────────────────────────────── */

footer {
    background: var(--navy-dark);
    padding: 2.5rem 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.86rem;
}

footer .footer-brand {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

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

footer p { line-height: 1.8; }

footer a { color: #94a3b8; }
footer a:hover { color: white; text-decoration: none; }

/* ── Screen ID (footer) — matches sales/clubs convention, DESIGN_DECISIONS.md ── */
.screen-id {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #475569;
    letter-spacing: 0.05em;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
    .nav-links { display: none; }

    section { padding: 3rem 1.25rem; }

    .hero { padding: 3.5rem 1.25rem 3rem; }

    .page-hero { padding: 3rem 1.25rem 2.5rem; }

    .cta-section { padding: 3.5rem 1.25rem; }

    .steps { grid-template-columns: 1fr; }

    .solution { padding: 2rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
