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

/* Page background lives on html in navbar.css; keep body clear when using site chrome */
html {
    min-height: 100%;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffffff 12%,
        #f8fbfe 20%,
        #eef5fc 32%,
        #e2eef9 42%,
        #d2e5f5 50%,
        #c5daf0 56%,
        #b8d2eb 62%,
        #aec9e6 68%,
        #b6cfe9 74%,
        #c9dcf0 80%,
        #dce8f5 86%,
        #edf3fa 92%,
        #f7f9fc 96%,
        #ffffff 100%
    );
    background-attachment: fixed;
    background-size: 100% 100%;
}

body.white-bg,
body.home-page {
    background: transparent !important;
}

body.auth-body {
    background: transparent !important;
}

body.blue-bg {
    background-color: #f1f5f9;
    min-height: 100%;
}

/* ===== RESPONSIVE VARIABLES ===== */
:root {
    /* Responsive Spacing Scale (Desktop) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Responsive Font Sizes (Desktop) */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;
}

/* Mobile (375px - 480px): Apply reduced spacing */
@media (max-width: 480px) {
    :root {
        --spacing-2xl: 1.5rem;  /* Reduce large gaps */
        --spacing-3xl: 2rem;    /* Reduce very large padding */
        --font-4xl: 1.75rem;    /* Reduce large headings */
        --font-5xl: 2.25rem;    /* Reduce hero size */
    }
}

/* Tablet (481px - 768px): Intermediate spacing */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
        --font-4xl: 2rem;
        --font-5xl: 2.5rem;
    }
}

/* Desktop (769px+): Full spacing */
@media (min-width: 769px) {
    :root {
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
        --font-4xl: 2.25rem;
        --font-5xl: 3rem;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent;
}

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

/* ===== RESPONSIVE CONTAINER ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;  /* Reduce from 2rem */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;  /* Reduce further for small phones */
    }
}

/* ===== RESPONSIVE HEADINGS ===== */
h1 {
    font-size: var(--font-4xl);  /* Uses responsive var */
}

h2 {
    font-size: var(--font-3xl);  /* Uses responsive var */
}

h3 {
    font-size: var(--font-2xl);
}

body {
    font-size: var(--font-base);  /* Ensure body uses responsive base */
}

/* Navigation */
.navbar {
    display: none;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: #0066cc;
    color: white;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.btn-primary:hover {
    background-color: #004399;
    border-color: #004399;
}

.btn-success {
    background-color: #f9b233;
    color: #333;
    border-color: #f9b233;
}

.btn-success:hover {
    background-color: #e09a1a;
    border-color: #e09a1a;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #0066cc;
    border-color: #0066cc;
}

.btn-secondary:hover {
    background-color: #0066cc;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0066cc 0%, #004399 100%);
    color: white;
    padding: 4rem 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    margin: 0;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.hero-graphic {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== HERO RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;      /* Stack vertically on tablet/mobile */
        padding: 2rem 1rem;          /* Reduce from 4rem 2rem */
        gap: 1.5rem;                 /* Reduce from 4rem */
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.75rem;          /* Reduce from 3rem */
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;           /* Reduce from 1.3rem */
        margin-bottom: 1rem;
    }

    .hero-graphic {
        flex: 1;
        min-width: auto;             /* Allow flexible sizing */
        width: 100%;                 /* Use full width */
        max-width: 100%;             /* No overflow */
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;     /* Center buttons on mobile */
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0.75rem;     /* Reduce further for small phones */
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 1.25rem;          /* Reduce further for small phones */
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;     /* Reduce button padding */
        font-size: 0.95rem;
    }
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.feature-card {
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #0066cc 0%, #004399 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

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

.cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0066cc 0%, #004399 100%);
    color: white;
    padding: 2.5rem 2rem 1.5rem;
}

body.white-bg .footer,
body.home-page .footer {
    background: linear-gradient(135deg, #0066cc 0%, #003d7a 100%);
    box-shadow: 0 -12px 48px rgba(0, 60, 130, 0.18);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-dot {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: #f9b233;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #e09a1a;
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-copyright p {
    margin: 0;
}

/* ============================
   Reviews Page Styles
   ============================ */

/* Review Summary Card */
.review-summary {
    display: flex;
    gap: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e6ed;
}

.review-summary-left {
    text-align: center;
    min-width: 140px;
}

.review-avg-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1a2332;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.review-stars-display {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.25rem;
}

.review-stars-display .star {
    color: #ddd;
    font-size: 1.2rem;
}

.review-stars-display .star.filled {
    color: #f9b233;
}

.review-summary-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-bar-label {
    font-size: 0.85rem;
    color: #7f8fa3;
    min-width: 40px;
    text-align: right;
}

.review-bar-track {
    flex: 1;
    height: 8px;
    background: #e0e6ed;
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: #f9b233;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.review-bar-count {
    font-size: 0.85rem;
    color: #7f8fa3;
    min-width: 25px;
}

/* Review Form Card */
.review-form-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-label {
    display: block;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.review-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #f8fafc;
}

.review-input:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
}

/* Interactive Star Picker */
.star-picker {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0;
}

.star-pick {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star-pick:hover,
.star-pick.hover {
    color: #f9b233;
    transform: scale(1.15);
}

.star-pick.selected {
    color: #f9b233;
}

/* Review Submit Button */
.review-submit-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.review-card.featured {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.review-featured-badge {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.review-author {
    font-weight: 600;
    color: #1a2332;
    font-size: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: #7f8fa3;
    margin-top: 0.15rem;
}

.review-message {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Reviews */
@media (max-width: 600px) {
    .review-summary {
        flex-direction: column;
        align-items: center;
    }

    .review-summary-left {
        min-width: auto;
    }

    .review-form-card {
        padding: 1.25rem;
    }

    .review-form-card div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-auth {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Shared review tracker (products.php + dealer-bundles.php) */
.sas-review-tracker {
    margin-top: auto;
    text-align: left;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sas-review-tracker-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.35rem;
}

.sas-review-tracker-countline {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0 0 0.5rem;
}

.sas-review-tracker-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0066cc;
    letter-spacing: -0.03em;
    line-height: 1;
}

.sas-review-tracker-num-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.sas-review-tracker-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.sas-review-tracker-stars .star {
    font-size: 1.1rem;
    color: #cbd5e1;
}

.sas-review-tracker-stars .star.filled {
    color: #f59e0b;
}

.sas-review-tracker-score {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 0.35rem;
}

.sas-review-tracker-score--empty {
    font-size: 0.88rem;
    font-weight: 600;
}

.sas-review-tracker-count {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.sas-review-tracker-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sas-review-tracker-link:hover {
    color: #004399;
    border-bottom-color: #004399;
}
