/* === Crossroads Automation — Refined Styles === */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

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

:root {
    --primary-navy:  #1e3a5f;
    --accent-amber:  #c8853a;
    --bg-off-white:  #f8f5f0;
    --text-charcoal: #2d3436;
    --text-gray:     #636e72;
    --white:         #ffffff;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-charcoal);
    background-color: var(--bg-off-white);
}

h1, h2, h3 {
    font-family: 'Lora', Georgia, serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ── */
.navbar {
    background: var(--white);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -0.02em;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-navy);
}

.nav-menu a.active {
    color: var(--primary-navy);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-amber);
    padding-bottom: 2px;
}

.btn-nav {
    background: var(--primary-navy);
    color: var(--white) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    transition: background 0.2s !important;
}

.btn-nav:hover {
    background: var(--accent-amber) !important;
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-navy);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    background: var(--accent-amber);
    color: var(--white);
    padding: 0.9rem 2.25rem;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #a96b28;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.15);
}

/* ── Hero ── */
.hero {
    background: linear-gradient(145deg, var(--primary-navy) 0%, #254a78 100%);
    color: var(--white);
    padding: 3.25rem 0 2.5rem;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin: 0 auto 2rem;
    opacity: 0.92;
    line-height: 1.7;
    max-width: 480px;
}

/* hero-accent removed — line break provides emphasis */

/* ── Pillars ── */
.pillars {
    padding: 4rem 0;
    background: var(--white);
}

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

.pillar {
    text-align: center;
    padding: 1.5rem;
}

.pillar-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    color: var(--accent-amber);
}

.pillar h3 {
    font-size: 1.15rem;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    min-height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.pillar p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.97rem;
}

/* ── Reassurance Bar ── */
.reassurance {
    background: var(--accent-amber);
    padding: 1.5rem 0;
    text-align: center;
}

.reassurance-text {
    font-size: 1.1rem;
    color: var(--white);
    max-width: 660px;
    margin: 0 auto;
    font-weight: 500;
}

/* ── Why We Exist ── */
.why-exist {
    padding: 3.5rem 0;
    background: var(--bg-off-white);
}

.why-exist h2 {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    text-align: center;
}

.why-content {
    max-width: 740px;
    margin: 0 auto;
}

.why-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.4rem;
    color: var(--text-charcoal);
}

.why-content strong {
    color: var(--primary-navy);
}

/* ── Local ── */
.local {
    padding: 3.5rem 0;
    background: var(--white);
    text-align: center;
}

.local h2 {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 1.25rem;
}

.local p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-gray);
}

.local-photo {
    margin-top: 2.5rem;
}

.local-photo img {
    width: 100%;
    max-width: 720px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto;
}

.photo-caption {
    font-size: 0.85rem !important;
    color: var(--text-gray) !important;
    font-style: italic;
    margin-top: 0.75rem !important;
    max-width: 100% !important;
}

/* ── How It Works (Process Steps) ── */
.how-it-works {
    padding: 3.5rem 0;
    background: var(--bg-off-white);
}

.how-it-works h2 {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 2.25rem;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.step-card {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-radius: 8px;
    border-top: 3px solid var(--accent-amber);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--primary-navy);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-family: 'Source Sans 3', sans-serif;
}

.step-card h3 {
    font-size: 1.2rem;
    color: var(--primary-navy);
    margin-bottom: 0.65rem;
}

.step-card p {
    color: var(--text-gray);
    line-height: 1.75;
    font-size: 0.97rem;
}

/* ── Pull Quote Callout ── */
.pull-quote {
    padding: 2.5rem 0;
    background: var(--white);
    text-align: center;
}

.pull-quote blockquote {
    max-width: 640px;
    margin: 0 auto;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--primary-navy);
    position: relative;
    padding: 0 1.5rem;
}

.pull-quote blockquote::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent-amber);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* ── Section Divider ── */
.section-divider {
    width: 48px;
    height: 3px;
    background: var(--accent-amber);
    margin: 0 auto;
    border-radius: 2px;
}

/* ── CTA Section ── */
.cta {
    padding: 5rem 0;
    background: var(--primary-navy);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ── */
.footer {
    background: var(--text-charcoal);
    color: var(--white);
    padding: 3rem 0 1.25rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 0.75rem;
    color: var(--accent-amber);
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
}

.footer-col p {
    margin-bottom: 0.4rem;
    opacity: 0.85;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--accent-amber);
}

.footer-tagline {
    font-style: italic;
    color: var(--accent-amber) !important;
    opacity: 1 !important;
    text-align: right;
}

.footer-col a[href^="mailto"] {
    color: var(--accent-amber);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-col a[href^="mailto"]:hover {
    opacity: 0.8;
}

.footer-serving {
    text-align: center;
    padding-bottom: 1rem;
    font-size: 0.82rem;
    opacity: 0.55;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.55;
    font-size: 0.85rem;
}

/* Mobile-only line break — hidden on desktop */
.mobile-break {
    display: none;
}

/* ── Mobile ── */
@media (max-width: 768px) {

    /* Nav */
    .nav-toggle {
        display: flex;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn-nav {
        margin: 0.5rem 1.5rem;
        display: block;
        border-radius: 6px;
        padding: 0.85rem 1.5rem;
        text-align: center;
    }

    /* Mobile line break */
    .mobile-break {
        display: block;
    }

    /* Hero — aggressively compressed for phone */
    .hero {
        padding: 1.5rem 0 1.25rem;
    }

    .hero h1 {
        font-size: 1.55rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
        letter-spacing: -0.01em;
        padding: 0 0.5rem;
        max-width: 100%;
        text-wrap: balance;
    }

    /* CTA buttons — full width on mobile */
    .hero .btn-primary,
    .cta .btn-primary {
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    /* Pillars — tight on mobile */
    .pillars {
        padding: 2rem 0 1.5rem;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pillar {
        padding: 0.5rem 0.25rem;
    }

    .pillar-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.5rem;
    }

    .pillar h3 {
        min-height: auto;
        font-size: 1.15rem;
        margin-bottom: 0.35rem;
    }

    .pillar p {
        font-size: 0.95rem;
        line-height: 1.65;
        max-width: 340px;
        margin: 0 auto;
    }

    /* Reassurance */
    .reassurance {
        padding: 1rem 0;
    }

    .reassurance-text {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    /* Pull Quote */
    .pull-quote {
        padding: 1.5rem 0;
    }

    .pull-quote blockquote {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .pull-quote blockquote::before {
        margin-bottom: 0.75rem;
    }

    /* How It Works */
    .how-it-works {
        padding: 2rem 0;
    }

    .how-it-works h2 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

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

    .step-card {
        padding: 1.25rem;
    }

    .step-card h3 {
        font-size: 1.05rem;
    }

    .step-card p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    /* Local */
    .local {
        padding: 2rem 0;
    }

    .local h2 {
        font-size: 1.6rem;
    }

    .local p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .local-photo {
        margin-top: 1.5rem;
    }

    /* CTA Section */
    .cta {
        padding: 2.5rem 0;
    }

    .cta h2 {
        font-size: 1.6rem;
    }

    .cta p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    /* Section headings general */
    .why-exist h2 {
        font-size: 1.6rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-nav {
        gap: 0.85rem;
    }

    .footer-nav a {
        font-size: 1rem;
        padding: 0.25rem 0;
    }

    .footer-col p {
        font-size: 0.92rem;
    }

    .footer-tagline {
        margin-top: 0.5rem;
        text-align: center;
    }
}
