/*
 * Smart Gear Select — Front Page Styles
 * File: /wp-content/themes/astra-child/assets/css/front-page.css
 * Version: 1.0.0
 * Covers: Hero, Buttons, Stats, Sections, Methodology, Disclosure,
 *         Categories, Insights, Comparison Table, Reviews, Deals,
 *         FAQ, Newsletter, Accessibility, Mobile
 */

/* ============================================================
   HERO
   ============================================================ */
.sgs-hero {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #4338CA 100%);
    color: #ffffff;
    text-align: center;
    padding: 100px 20px 80px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

.sgs-hero-container {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sgs-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.sgs-hero__title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 20px;
}

.sgs-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.sgs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1;
}

.sgs-btn--primary {
    background: #ffffff;
    color: #4F46E5;
    border-color: #ffffff;
}

.sgs-btn--primary:hover {
    background: #f0f0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.sgs-btn--outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.sgs-btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.sgs-btn--outline-small {
    background: transparent;
    color: #4F46E5;
    border: 2px solid #4F46E5;
    padding: 10px 22px;
    font-size: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sgs-btn--outline-small:hover {
    background: #4F46E5;
    color: #ffffff;
}

.sgs-btn--orange {
    background: #F59E0B;
    color: #ffffff;
    border-color: #F59E0B;
    white-space: nowrap;
}

.sgs-btn--orange:hover {
    background: #D97706;
    border-color: #D97706;
    transform: translateY(-1px);
}

.sgs-btn--shop {
    display: inline-block;
    background: #4F46E5;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sgs-btn--shop:hover {
    background: #4338CA;
}

/* Hero button row */
.sgs-hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* ============================================================
   HERO STATS
   ============================================================ */
.sgs-hero__stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.sgs-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
    text-align: center;
    min-width: 120px;
}

.sgs-stat strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.sgs-stat span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.sgs-stat--badge {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.4);
}

.sgs-stat--badge span {
    font-weight: 700;
    font-size: 0.9rem;
    color: #FDE68A;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.sgs-section {
    padding: 80px 20px;
}

.sgs-section--alt {
    background: #F8FAFC;
}

.sgs-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #1E293B;
    margin: 0 0 12px;
    line-height: 1.2;
}

.sgs-section-subtitle {
    font-size: 1.05rem;
    color: #64748B;
    margin: 0 0 40px;
}

.sgs-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sgs-section-header .sgs-section-title {
    margin-bottom: 6px;
}

.sgs-section-header .sgs-section-subtitle {
    margin-bottom: 0;
}

/* ============================================================
   TRUST / METHODOLOGY
   ============================================================ */
.sgs-trust-intro-wrapper {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.sgs-trust-intro {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 24px;
}

.sgs-trust-intro a {
    color: #4F46E5;
    font-weight: 600;
}

.sgs-methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.sgs-methodology-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sgs-methodology-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.sgs-methodology-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}

.sgs-methodology-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 10px;
}

.sgs-methodology-desc {
    font-size: 0.95rem;
    color: #64748B;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   DISCLOSURE BOX
   ============================================================ */
.sgs-disclosure-box {
    border-left: 4px solid #4F46E5;
    background: #F0F4FF;
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 860px;
    margin: 0 auto;
}

.sgs-disclosure-icon {
    color: #4F46E5;
    flex-shrink: 0;
    margin-top: 2px;
}

.sgs-disclosure-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 8px;
}

.sgs-disclosure-text {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 8px;
}

.sgs-disclosure-text:last-child {
    margin-bottom: 0;
}

.sgs-disclosure-text a {
    color: #4F46E5;
    font-weight: 600;
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.sgs-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.sgs-category-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sgs-category-card:hover {
    border-color: #4F46E5;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.12);
    transform: translateY(-3px);
}

.sgs-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.sgs-category-icon--blue   { background: #EFF6FF; }
.sgs-category-icon--pink   { background: #FDF2F8; }
.sgs-category-icon--purple { background: #F5F3FF; }
.sgs-category-icon--orange { background: #FFF7ED; }
.sgs-category-icon--teal   { background: #F0FDFA; }
.sgs-category-icon--yellow { background: #FEFCE8; }

.sgs-category-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 6px;
}

.sgs-category-desc {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   INSIGHTS
   ============================================================ */
.sgs-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.sgs-insight-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.sgs-insight-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.sgs-insight-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 10px;
}

.sgs-insight-desc {
    font-size: 0.92rem;
    color: #64748B;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.sgs-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sgs-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.95rem;
}

.sgs-comparison-table thead {
    background: #4F46E5;
    color: #ffffff;
}

.sgs-comparison-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.sgs-comparison-table tbody tr {
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.15s ease;
}

.sgs-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.sgs-comparison-table tbody tr:hover {
    background: #F8FAFC;
}

.sgs-comparison-table tbody td {
    padding: 16px 20px;
    color: #334155;
    vertical-align: middle;
}

.sgs-comparison-table tbody td:first-child {
    font-weight: 600;
    color: #1E293B;
}

.sgs-table-link {
    color: #4F46E5;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.sgs-table-link:hover {
    text-decoration: underline;
}

.sgs-table-note {
    font-size: 0.82rem;
    color: #94A3B8;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   REVIEW CARDS
   ============================================================ */
.sgs-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.sgs-review-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.sgs-review-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.sgs-review-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #F1F5F9;
}

.sgs-review-image a {
    display: block;
    height: 100%;
}

.sgs-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sgs-review-card:hover .sgs-review-image img {
    transform: scale(1.03);
}

.sgs-review-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
    min-height: 180px;
}

.sgs-review-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #059669;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sgs-review-content {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sgs-review-date {
    font-size: 0.8rem;
    color: #94A3B8;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.sgs-review-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 10px;
    line-height: 1.35;
}

.sgs-review-title a {
    color: inherit;
    text-decoration: none;
}

.sgs-review-title a:hover {
    color: #4F46E5;
}

.sgs-review-excerpt {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.sgs-review-link {
    color: #4F46E5;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.sgs-review-link:hover {
    text-decoration: underline;
}

/* ============================================================
   DEAL CARDS
   ============================================================ */
.sgs-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.sgs-deal-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sgs-deal-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.sgs-deal-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sgs-deal-savings-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #EF4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    z-index: 2;
}

.sgs-deal-image {
    aspect-ratio: 4 / 3;
    background: #F1F5F9;
    overflow: hidden;
}

.sgs-deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sgs-deal-card:hover .sgs-deal-image img {
    transform: scale(1.03);
}

.sgs-deal-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}

.sgs-deal-content {
    padding: 18px 20px 20px;
}

.sgs-deal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 10px;
    line-height: 1.35;
}

.sgs-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.sgs-price__current {
    font-size: 1.2rem;
    font-weight: 800;
    color: #059669;
}

.sgs-price__original {
    font-size: 0.92rem;
    color: #94A3B8;
    text-decoration: line-through;
}

.sgs-deals-disclaimer {
    margin-top: 16px;
}

.sgs-deals-disclaimer p {
    color: #94A3B8;
    margin: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.sgs-faq-section {
    background: #ffffff;
}

.sgs-faq-grid {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sgs-faq-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.sgs-faq-item[open] {
    border-color: #4F46E5;
    background: #ffffff;
}

.sgs-faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 700;
    color: #1E293B;
    font-size: 0.98rem;
    list-style: none;
    user-select: none;
}

.sgs-faq-question::-webkit-details-marker {
    display: none;
}

.sgs-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #4F46E5;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    line-height: 1;
}

.sgs-faq-item[open] .sgs-faq-icon {
    transform: rotate(45deg);
    background: #7C3AED;
}

.sgs-faq-answer {
    padding: 0 20px 20px 56px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

.sgs-faq-answer p {
    margin: 0 0 12px;
}

.sgs-faq-answer p:last-child {
    margin-bottom: 0;
}

.sgs-faq-answer a {
    color: #4F46E5;
    font-weight: 600;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.sgs-newsletter-section {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    padding: 80px 20px;
}

.sgs-newsletter-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}

.sgs-newsletter-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.sgs-newsletter-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.2;
}

.sgs-newsletter-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 32px;
}

.sgs-newsletter-form {
    width: 100%;
}

.sgs-newsletter-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
}

.sgs-newsletter-input-group input[type="email"] {
    flex: 1;
    min-width: 240px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.sgs-newsletter-input-group input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sgs-newsletter-input-group input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.18);
}

.sgs-newsletter-privacy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.sgs-newsletter-privacy a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .sgs-hero {
        padding: 72px 20px 56px;
    }

    .sgs-hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .sgs-btn--primary,
    .sgs-btn--outline {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .sgs-hero__stats {
        gap: 8px;
    }

    .sgs-stat {
        min-width: 100px;
        padding: 10px 14px;
    }

    .sgs-section {
        padding: 56px 16px;
    }

    .sgs-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sgs-methodology-grid,
    .sgs-insights-grid,
    .sgs-categories-grid,
    .sgs-reviews-grid,
    .sgs-deals-grid {
        grid-template-columns: 1fr;
    }

    .sgs-disclosure-box {
        flex-direction: column;
        gap: 12px;
    }

    .sgs-faq-answer {
        padding-left: 20px;
    }

    .sgs-newsletter-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .sgs-newsletter-input-group input[type="email"] {
        min-width: unset;
        width: 100%;
    }

    .sgs-btn--orange {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sgs-comparison-table thead th,
    .sgs-comparison-table tbody td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .sgs-review-card,
    .sgs-deal-card,
    .sgs-methodology-card,
    .sgs-category-card,
    .sgs-btn,
    .sgs-faq-icon {
        transition: none !important;
        transform: none !important;
    }
}