/**
 * Speed Audit Page Styles
 *
 * @package SunnyHQ
 */

/* ============================================
   HERO SECTION
   ============================================ */
.audit-hero {
    background: var(--navy);
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.audit-hero-arcs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.audit-hero-arcs svg {
    width: 100%;
    height: 100%;
}

.audit-hero .container {
    position: relative;
    z-index: 2;
}

.audit-hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

/* Speedometer Icon */
.audit-hero-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.audit-hero-icon img {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 4px 20px rgba(255, 96, 72, 0.4)) brightness(1.1);
}

.audit-hero-icon svg {
    width: 120px;
    height: 80px;
    filter: drop-shadow(0 4px 20px rgba(255, 96, 72, 0.3));
}

.audit-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1.5rem;
}

.audit-hero h1 {
    font-family: var(--font-h);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.audit-hero-subhead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 2.5rem;
    line-height: 1.6;
}

/* SEOOptimer Form Wrapper */
.speed-audit-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

/* Override SEOOptimer embed styles */
.speed-audit-form-wrapper .seooptimer-embed,
.speed-audit-form-wrapper [class*="so-embed"] {
    background: transparent !important;
    padding: 0 !important;
}

.speed-audit-form-wrapper input[type="text"],
.speed-audit-form-wrapper input[type="url"],
.speed-audit-form-wrapper input[type="email"],
.speed-audit-form-wrapper .so-fieldso1756393272,
.speed-audit-form-wrapper [class*="so-field"] {
    font-family: 'DM Sans', var(--font-ui), sans-serif !important;
    font-size: 1rem !important;
    padding: 1rem 1.25rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
}

.speed-audit-form-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.speed-audit-form-wrapper button[type="submit"],
.speed-audit-form-wrapper .so-submitso1756393272,
.speed-audit-form-wrapper [class*="so-submit"] {
    font-family: 'DM Sans', var(--font-ui), sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 1rem 2rem !important;
    background: var(--coral, #FF6048) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.speed-audit-form-wrapper button[type="submit"]:hover,
.speed-audit-form-wrapper .so-submitso1756393272:hover,
.speed-audit-form-wrapper [class*="so-submit"]:hover {
    background: #e84e38 !important;
    transform: translateY(-2px) !important;
}

/* Hide the "Audit My Website Now!" title from embed if present */
.speed-audit-form-wrapper h3,
.speed-audit-form-wrapper .so-title,
.speed-audit-form-wrapper #so-titleso1756393272 {
    display: none !important;
}

/* SEOOptimer specific ID overrides */
.speed-audit-form-wrapper #so-widgetso1756393272 {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.speed-audit-form-wrapper #so-formso1756393272 {
    background: transparent !important;
}

.speed-audit-form-wrapper #so-urlso1756393272,
.speed-audit-form-wrapper #so-emailso1756393272 {
    font-family: 'DM Sans', var(--font-ui), sans-serif !important;
    font-size: 1rem !important;
    padding: 1rem 1.25rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    width: 100% !important;
    margin-bottom: 0.75rem !important;
    box-sizing: border-box !important;
}

.speed-audit-form-wrapper #so-urlso1756393272::placeholder,
.speed-audit-form-wrapper #so-emailso1756393272::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.speed-audit-form-wrapper #so-submitso1756393272 {
    font-family: 'DM Sans', var(--font-ui), sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 1rem 2rem !important;
    background: var(--coral, #FF6048) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    margin-top: 0.5rem !important;
}

.speed-audit-form-wrapper #so-submitso1756393272:hover {
    background: #e84e38 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 96, 72, 0.3) !important;
}

/* Style the mailing list checkbox to be subtle */
.speed-audit-form-wrapper [class*="mailing"],
.speed-audit-form-wrapper label[for*="mailing"] {
    font-size: 0.8125rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Placeholder form */
.audit-form-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.audit-form-placeholder p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem;
}

.audit-placeholder-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.audit-placeholder-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.audit-placeholder-form button {
    padding: 0.875rem 1.5rem;
    background: var(--coral);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0.5;
}

.audit-form-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.audit-features {
    padding: 6rem 0;
    background: #fff;
}

.audit-features h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    color: var(--navy);
    text-align: center;
    margin: 0 0 3rem;
}

.audit-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.audit-feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.audit-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.audit-feature-icon.coral {
    background: rgba(255, 96, 72, 0.1);
    color: var(--coral);
}

.audit-feature-icon.purple {
    background: rgba(98, 72, 255, 0.1);
    color: var(--deep-purple);
}

.audit-feature-icon.navy {
    background: rgba(2, 0, 81, 0.08);
    color: var(--navy);
}

.audit-feature-card h3 {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 0.75rem;
}

.audit-feature-card p {
    font-size: 0.9375rem;
    color: var(--navy-50);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   PREVIEW/SAMPLE REPORT SECTION
   ============================================ */
.audit-preview {
    padding: 6rem 0;
    background: var(--navy-05, #f4f4f8);
}

.audit-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.audit-preview-content .section-label {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--coral);
    margin-bottom: 0.75rem;
    display: block;
}

.audit-preview-content h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    color: var(--navy);
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.audit-preview-content > p {
    font-size: 1.0625rem;
    color: var(--navy-70);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.audit-preview-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.audit-preview-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--navy-70);
    line-height: 1.5;
}

.audit-preview-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--coral);
    border-radius: 50%;
}

.audit-preview-image {
    position: relative;
}

.audit-preview-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(2, 0, 81, 0.12);
}

@media (max-width: 992px) {
    .audit-preview-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .audit-preview-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ============================================
   STEPS SECTION
   ============================================ */
.audit-steps {
    padding: 6rem 0;
    background: #F8F7F4;
}

.audit-steps h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    color: var(--navy);
    text-align: center;
    margin: 0 0 3rem;
}

.audit-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.audit-step {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(2, 0, 81, 0.04);
}

.audit-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF6048, #6248FF);
    color: #fff;
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.audit-step h3 {
    font-family: var(--font-h);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 0.75rem;
}

.audit-step p {
    font-size: 0.9375rem;
    color: var(--navy-50);
    line-height: 1.5;
    margin: 0;
}

.audit-steps-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   WHY SPEED MATTERS
   ============================================ */
.audit-why {
    padding: 6rem 0;
    background: #fff;
}

.audit-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.audit-why-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(2, 0, 81, 0.08);
}

.audit-why-content {
    text-align: left;
}

.audit-why-content h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    color: var(--navy);
    margin: 0 0 1.25rem;
}

.audit-why-content > p {
    font-size: 1.0625rem;
    color: var(--navy-70);
    line-height: 1.7;
    margin: 0 0 2rem;
}

.audit-why .stats-light {
    padding: 0;
    background: transparent;
}

.audit-why .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.audit-why .stat-card {
    text-align: left;
    padding: 1.25rem 1.5rem;
}

@media (max-width: 992px) {
    .audit-why-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .audit-why-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .audit-why-content {
        text-align: center;
    }

    .audit-why .stats-grid {
        max-width: 400px;
        margin: 0 auto;
    }

    .audit-why .stat-card {
        text-align: center;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.audit-cta {
    padding: 6rem 0;
    background: var(--navy);
}

.audit-cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.audit-cta h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 1rem;
}

.audit-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 2rem;
}

.audit-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.audit-faq {
    padding: 6rem 0;
    background: #fff;
}

.audit-faq h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    color: var(--navy);
    text-align: center;
    margin: 0 0 3rem;
}

/* Reuse support page FAQ styles */
.audit-faq .faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.audit-faq .faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.audit-faq .faq-item:first-child {
    border-top: 1px solid var(--gray-200);
}

.audit-faq .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.audit-faq .faq-question:hover {
    color: var(--coral);
}

.audit-faq .faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.audit-faq .faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.audit-faq .faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.audit-faq .faq-answer {
    display: none;
    padding-bottom: 1.5rem;
}

.audit-faq .faq-item.active .faq-answer {
    display: block;
}

.audit-faq .faq-answer p {
    font-size: 1rem;
    color: var(--navy-70);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .audit-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audit-steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .audit-why .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .audit-hero {
        padding: 8rem 0 4rem;
    }

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

    .audit-hero-subhead {
        font-size: 1.0625rem;
    }

    .audit-features,
    .audit-steps,
    .audit-why,
    .audit-cta,
    .audit-faq {
        padding: 4rem 0;
    }

    .audit-features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .audit-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .audit-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}
