/*
Theme Name: Deep Scan Authority
Author: WordPress Telex
Description: A bold, agency-grade SEO audit company theme with ink and cream palette, coral accents, sage secondary, and commanding professional aesthetic.
Version: 0.5.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: deep-scan-authority
Tags: block-theme, full-site-editing, business, seo, enterprise

Deep Scan Authority — precision diagnostics for serious organic growth.
*/

/* Grid pattern overlay for hero */
.dsa-grid-overlay {
    position: relative;
}
.dsa-grid-overlay::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    border-left: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 0;
    pointer-events: none;
}

/* Accent glow line on top of form card — coral */
.dsa-form-card {
    position: relative;
}
.dsa-form-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 5%;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, #E8553D, #F07A66);
    box-shadow: 0 0 10px rgba(232, 85, 61, 0.2);
    z-index: 2;
}

/* Glow behind hero image — subtle warm */
.dsa-hero-visual {
    position: relative;
}
.dsa-hero-visual::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: #E8553D;
    filter: blur(150px);
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* Hero wrapper */
.dsa-hero-wrapper {
    position: relative;
    overflow: hidden;
}

/* Equal cards layout */
.equal-cards > .wp-block-column {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.equal-cards .cta-bottom {
    margin-top: auto;
    justify-content: center;
}

/* Process step numbers — coral accent */
.dsa-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    border: 1px solid #E8553D;
    background: rgba(232, 85, 61, 0.06);
    color: #E8553D;
    font-family: 'Geist Mono', monospace;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Stat card — light theme */
.dsa-stat-card {
    border: 1px solid #D4CFC7;
    background: #FFFFFF;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dsa-stat-card:hover {
    border-color: #B8B2A8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Stat card on dark backgrounds */
.dsa-stat-card-dark {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dsa-stat-card-dark:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Testimonial card — light */
.dsa-testimonial-card {
    border: 1px solid #D4CFC7;
    background: #FFFFFF;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dsa-testimonial-card:hover {
    border-color: rgba(91, 140, 106, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Pricing card highlight — coral */
.dsa-pricing-highlight {
    border: 1px solid #E8553D !important;
    box-shadow: 0 8px 32px rgba(232, 85, 61, 0.1);
    position: relative;
}
.dsa-pricing-highlight::before {
    content: 'Most Popular';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #E8553D;
    color: #FFFFFF;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Pricing card base */
.dsa-pricing-card {
    border: 1px solid #D4CFC7;
    background: #FFFFFF;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dsa-pricing-card:hover {
    border-color: rgba(232, 85, 61, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* FAQ accordion styling */
.dsa-faq details {
    border: 1px solid #D4CFC7;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #FFFFFF;
    transition: border-color 0.3s ease;
}
.dsa-faq details:hover {
    border-color: rgba(91, 140, 106, 0.3);
}
.dsa-faq details summary {
    padding: 20px 24px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #111118;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dsa-faq details summary::-webkit-details-marker {
    display: none;
}
.dsa-faq details summary::after {
    content: '+';
    font-family: 'Geist Mono', monospace;
    font-size: 20px;
    color: #5B8C6A;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s ease;
}
.dsa-faq details[open] summary::after {
    content: '-';
}
.dsa-faq details .dsa-faq-answer {
    padding: 0 24px 20px;
    color: #6B6560;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Button styles — Primary (sage outline) */
.dsa-btn-primary .wp-block-button__link {
    background: rgba(91, 140, 106, 0.06) !important;
    color: #5B8C6A !important;
    border: 1px solid #5B8C6A !important;
    border-radius: 4px !important;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 14px 28px !important;
    transition: all 0.3s ease;
}
.dsa-btn-primary .wp-block-button__link:hover {
    background: #5B8C6A !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(91, 140, 106, 0.25);
}

/* Button styles — Ghost */
.dsa-btn-ghost .wp-block-button__link {
    background: transparent !important;
    color: #111118 !important;
    border: 1px solid #D4CFC7 !important;
    border-radius: 4px !important;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 14px 28px !important;
    transition: all 0.3s ease;
}
.dsa-btn-ghost .wp-block-button__link:hover {
    border-color: #E8553D !important;
    color: #E8553D !important;
}

/* Ghost button on dark backgrounds */
.dsa-btn-ghost-dark .wp-block-button__link {
    background: transparent !important;
    color: #FAF9F6 !important;
    border: 1px solid rgba(250, 249, 246, 0.2) !important;
    border-radius: 4px !important;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 14px 28px !important;
    transition: all 0.3s ease;
}
.dsa-btn-ghost-dark .wp-block-button__link:hover {
    border-color: #E8553D !important;
    color: #E8553D !important;
}

/* Button styles — Solid (coral) */
.dsa-btn-solid .wp-block-button__link {
    background: #E8553D !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: 'Geist Mono', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 16px 32px !important;
    transition: all 0.3s ease;
}
.dsa-btn-solid .wp-block-button__link:hover {
    background: #D44830 !important;
    box-shadow: 0 4px 16px rgba(232, 85, 61, 0.3);
    transform: translateY(-1px);
}

/* Announcement bar */
.dsa-announcement {
    border-bottom: 1px solid rgba(232, 85, 61, 0.15);
}

/* Trust logos styling */
.dsa-trust-logos {
    opacity: 0.3;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}
.dsa-trust-logos:hover {
    opacity: 0.6;
}

/* Scroll animation */
@keyframes dsa-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dsa-animate {
    animation: dsa-fade-up 0.7s ease both;
}

/* Navigation link styles */
.dsa-nav a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}
.dsa-nav a:hover {
    color: #E8553D;
}

/* Sticky header background — cream */
.dsa-header {
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #D4CFC7;
}

/* Checklist styling for pricing — sage markers */
.dsa-checklist li {
    list-style: none;
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #6B6560;
    font-size: 0.9rem;
}
.dsa-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border: 1px solid #5B8C6A;
    border-radius: 2px;
    background: rgba(91, 140, 106, 0.08);
}

/* Footer link styling */
.dsa-footer a {
    color: rgba(250, 249, 246, 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}
.dsa-footer a:hover {
    color: #E8553D;
}

/* Remove default margin from wp-site-blocks children */
.wp-site-blocks > * + * {
    margin-block-start: 0;
}
.wp-site-blocks > footer {
    margin-block-start: 0;
}

/* Form input styling — light card context */
input.dsa-input {
    background: #F0EDE8;
    border: 1px solid #D4CFC7;
    color: #111118;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    padding: 14px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
input.dsa-input:focus {
    outline: none;
    border-color: #E8553D;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(232, 85, 61, 0.4);
}
input.dsa-input::placeholder {
    color: #9B9590;
}

/* Sage accent text utility */
.dsa-sage-text {
    color: #5B8C6A;
}