/* ============================================
   SupplyScout Main Site — Shared Stylesheet
   ============================================ */

:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-primary: #667eea;
    --color-primary-dark: #764ba2;
    --color-primary-bg: #f5f3ff;
    --color-text: #333;
    --color-text-light: #666;
    --color-footer-bg: #1f2937;
    --color-border: #e5e7eb;
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--color-text);
    background-color: #f9f9f9;
}

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

a:hover {
    text-decoration: underline;
}

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

/* ---- Site Header ---- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header__logo:hover {
    text-decoration: none;
}

.site-header__logo-img {
    height: 80px;
    width: auto;
}

.site-header__nav {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.site-header__nav a {
    color: #1b3a6b;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.site-header__nav a:hover,
.site-header__nav a.active {
    background: rgba(27, 58, 107, 0.08);
    color: #1b3a6b;
    text-decoration: none;
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1b3a6b;
    margin: 5px 0;
    transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.hero--short {
    padding: 3rem 2rem;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto 2rem;
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn--primary {
    background: white;
    color: var(--color-primary-dark);
}

.btn--primary:hover {
    background: var(--color-primary-bg);
}

.btn--outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ---- Store Badges ---- */
.store-badge {
    display: inline-block;
    transition: opacity 0.2s;
}

.store-badge:hover {
    opacity: 0.8;
    text-decoration: none;
}

.store-badge img {
    height: 40px;
    width: auto;
}

.btn--solid {
    background: var(--color-primary);
    color: white;
}

.btn--solid:hover {
    background: var(--color-primary-dark);
}

/* ---- Section ---- */
.section {
    padding: 4rem 2rem;
}

.section--alt {
    background: var(--color-primary-bg);
}

.section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.section__subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

/* ---- Card Grid ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
    border-color: var(--color-primary);
}

.card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.card__text {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- Feature Rows (alternating on mobile, card grid on desktop) ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-row {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.feature-row:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
    border-color: var(--color-primary);
}

.feature-row__visual {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-row__content h3 {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}

.feature-row__content p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

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

.cta-section p {
    opacity: 0.95;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ---- Contact Layout ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.contact-info a {
    color: var(--color-primary);
    font-weight: 500;
}

/* ---- Form ---- */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-stack);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: none;
}

.form-status--success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-status--error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Honeypot */
.ohnohoney {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ---- Legal Pages ---- */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.legal-content ul li {
    color: var(--color-text-light);
    line-height: 1.8;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.35rem;
}

.legal-content ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.legal-callout {
    background: #dbeafe;
    border-left: 4px solid var(--color-primary);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-text);
}

.legal-callout--warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.legal-contact {
    background: var(--color-primary-bg);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ---- Site Footer ---- */
.site-footer {
    background: var(--color-footer-bg);
    color: white;
    padding: 3rem 2rem;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.site-footer__brand p {
    color: #9ca3af;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.site-footer__brand a {
    color: #c4b5fd;
}

.site-footer__brand a:hover {
    color: white;
}

.site-footer__heading {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.site-footer__links {
    list-style: none;
}

.site-footer__links li {
    margin-bottom: 0.5rem;
}

.site-footer__links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer__links a:hover {
    color: white;
    text-decoration: none;
}

.site-footer__bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.site-footer__bottom a {
    color: #c4b5fd;
    text-decoration: none;
}

.site-footer__bottom a:hover {
    color: white;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-header__nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem;
        z-index: 200;
    }

    .site-header__nav.open {
        display: flex;
    }

    .site-header__nav a {
        color: #1b3a6b;
        padding: 0.75rem 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero--short {
        padding: 2rem 1.5rem;
    }

    .section {
        padding: 2.5rem 1.5rem;
    }

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

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

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

    .site-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
