/* ============================================================
   ClickCognix — Search Engine Optimization Page
   Extends css/style.css. Uses the same design tokens
   (colors, radius, fonts, shadows) defined in style.css :root
   so this page stays visually consistent with the rest of the site.
   ============================================================ */

/* ---------- Trusted-by logo strip — a slim minimal band, distinct
   from the homepage's big two-column card-partner treatment ---------- */

.seo-logo-strip {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 36px 0;
    border-top: 1px solid var(--accent-color-3);
    border-bottom: 1px solid var(--accent-color-3);
}

.seo-logo-strip-label {
    text-align: center;
}

.seo-logo-strip-label span {
    display: inline-block;
    color: var(--text-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.seo-logo-strip .swiperPartner-overlay {
    display: none;
}

.seo-logo-strip .partner-logo {
    filter: none;
    opacity: 1;
}

/* ---------- Hero (background image, centered heading, video below) ---------- */

.seo-hero-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent-color-3);
    border-radius: var(--global-border-radius);
    padding: 100px 20px 80px 20px;
    z-index: 1;
}

.seo-hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.seo-hero-banner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(10, 4, 4, 0.6);
    background-image: linear-gradient(180deg, rgba(8, 4, 4, 0.35) 0%, rgba(8, 4, 4, 0.78) 100%);
    z-index: 0;
}

.seo-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
    position: relative;
    z-index: 2;
}

.seo-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
    max-width: 780px;
}

.seo-hero-content .sub-heading {
    justify-content: center;
}

.seo-hero-content .sub-heading span {
    color: #ffffff;
}

.seo-hero-content h1 {
    font-size: var(--font-size-14xl);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-snug);
    background-image: linear-gradient(340deg, rgba(255, 255, 255, 0.6) 20%, #ffffff 100%);
}

.seo-hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-lg);
    max-width: 620px;
    margin: 0 auto;
}

/* Video sits below the heading, styled as a framed portrait showcase clip */

.seo-hero-video {
    display: flex;
    justify-content: center;
    width: 100%;
}

.seo-video-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 9 / 16;
    border-radius: var(--global-border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--box-shadow-bottom-right-wide);
    overflow: hidden;
    background-color: var(--secondary);
}

.seo-hero-video-el {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .seo-hero-content p {
        max-width: 100%;
    }

    .seo-video-frame {
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .seo-hero-banner {
        padding: 80px 16px 60px 16px;
    }

    .seo-video-frame {
        max-width: 240px;
    }
}

/* ---------- Our SEO Process — distinct from the homepage version:
   the shared .step-spacer stays hidden site-wide (see style.css),
   this brings a refined divider back just for this page's steps. ---------- */

.seo-process-banner .step-spacer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    background-color: transparent;
    background-image: linear-gradient(180deg, transparent 0%, var(--accent-color) 15%, var(--accent-color) 85%, transparent 100%);
    width: 1px;
    min-height: 100%;
}

@media (max-width: 767px) {
    .seo-process-banner .step-spacer {
        width: 100%;
        height: 1px;
        min-height: 1px;
        background-color: transparent;
        background-image: linear-gradient(90deg, transparent 0%, var(--accent-color) 15%, var(--accent-color) 85%, transparent 100%);
    }
}

/* ---------- Section header (reused pattern across sections) ---------- */

.seo-section-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.seo-section-header.align-start {
    margin: 0 0 60px 0;
    text-align: start;
    align-items: flex-start;
}

.seo-section-header .sub-heading {
    justify-content: center;
}

.seo-section-header.align-start .sub-heading {
    justify-content: flex-start;
}

.seo-section-header p {
    color: var(--text-color);
    font-size: var(--font-size-lg);
}

/* ---------- Why choose us (simplified two column) ---------- */

.seo-why-grid {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
}

.seo-why-cards {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-seo-why {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 26px;
    border: 1px solid var(--accent-color-3);
    border-radius: var(--global-border-radius);
    background-color: transparent;
    background-image: radial-gradient(at top left, var(--accent-color-3) 0%, var(--accent-color-4) 70%);
    transition: all 0.3s;
}

.card-seo-why:hover {
    box-shadow: var(--box-shadow-bottom-right);
}

.seo-why-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 1px solid var(--accent-color-3);
}

.seo-why-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.card-seo-why h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.card-seo-why p {
    color: var(--text-color);
    font-size: var(--font-size-sm);
    margin: 0;
}

.seo-why-content {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (max-width: 1200px) {
    .seo-why-grid {
        flex-direction: column;
    }

    .seo-why-cards,
    .seo-why-content {
        width: 100%;
    }
}

/* ---------- Pricing ---------- */

.seo-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.card-pricing {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background-color: transparent;
    background-image: radial-gradient(at top left, var(--accent-color-3) 0%, var(--accent-color-4) 50%);
    border: 1px solid var(--accent-color-3);
    border-radius: var(--global-border-radius);
    padding: 40px 34px;
    position: relative;
}

.card-pricing .btn-accent {
    align-self: flex-start;
}

.card-pricing.featured {
    background-color: var(--accent-color);
    background-image: linear-gradient(160deg, var(--accent-color) 0%, #c62f2f 100%);
    border: 1px solid var(--accent-color);
    box-shadow: var(--box-shadow-bottom-right-wide);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    right: 34px;
    background-color: #ffffff;
    color: var(--accent-color) !important;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid var(--accent-color);
}

.card-pricing h4 {
    color: var(--primary);
}

.card-pricing .pricing-desc {
    color: var(--text-color);
    font-size: var(--font-size-sm);
    min-height: 42px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 4px 0;
}

.pricing-amount .amount {
    color: var(--primary);
    font-size: var(--font-size-11xl);
    font-weight: var(--font-weight-black);
}

.pricing-amount .period {
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.pricing-divider {
    height: 1px;
    width: 100%;
    background-color: var(--accent-color-3);
    margin: 6px 0;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--primary);
    font-size: var(--font-size-sm);
}

.pricing-features li i {
    color: var(--accent-color);
    margin-top: 3px;
}

/* Featured (Best Value) card — solid red, so everything on it turns white */

.card-pricing.featured h4,
.card-pricing.featured .pricing-desc,
.card-pricing.featured .pricing-amount .amount,
.card-pricing.featured .pricing-amount .period,
.card-pricing.featured .pricing-features li {
    color: #ffffff;
}

.card-pricing.featured .pricing-divider {
    background-color: rgba(255, 255, 255, 0.35);
}

.card-pricing.featured .pricing-features li i {
    color: #ffffff;
}

.card-pricing.featured .btn-accent {
    background-color: #ffffff;
    border: 1px solid #ffffff;
}

.card-pricing.featured .btn-title span {
    color: var(--accent-color);
}

.card-pricing.featured .btn:hover .btn-title span {
    color: var(--accent-color) !important;
}

.seo-pricing-note {
    margin-top: 30px;
    text-align: center;
}

.seo-pricing-note p {
    color: var(--text-color);
    font-size: var(--font-size-sm);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .seo-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Testimonials — framed panel, distinct from the homepage's plain layout ---------- */

.seo-testimonial-panel {
    border: 1px solid var(--accent-color-3);
    border-radius: var(--global-border-radius);
    background-color: var(--accent-color-4);
    padding: 50px 30px;
}

/* ---------- FAQ ---------- */

.seo-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.seo-faq-item {
    border: 1px solid var(--accent-color-3);
    border-radius: 20px;
    background-color: transparent;
    background-image: radial-gradient(at top left, var(--accent-color-3) 0%, var(--accent-color-4) 70%);
    overflow: hidden;
}

.seo-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: start;
    font-family: var(--global-font);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
}

.seo-faq-plus {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #ffffff !important;
    font-size: var(--font-size-lg);
    transition: transform 0.3s;
}

.seo-faq-item.active .seo-faq-plus {
    transform: rotate(45deg);
}

.seo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.seo-faq-answer-inner {
    padding: 0 26px 22px 26px;
    color: var(--text-color);
    font-size: var(--font-size-base);
    line-height: var(--line-height-extra-loose);
}

/* ---------- Final CTA ---------- */

.seo-final-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    background-color: var(--accent-color);
    background-image: linear-gradient(135deg, var(--accent-color) 0%, #c62f2f 100%);
    border: 1px solid var(--accent-color-3);
    border-radius: var(--global-border-radius);
    padding: 90px 30px;
    overflow: hidden;
}

body.lightmode .seo-final-cta {
    background-image: linear-gradient(135deg, var(--accent-color) 0%, #c62f2f 100%);
}

.seo-final-cta .sub-heading i {
    color: #ffffff;
}

.seo-final-cta .sub-heading span {
    color: #ffffff;
}

.seo-final-cta h2,
body.lightmode .seo-final-cta h2 {
    max-width: 640px;
    background-image: linear-gradient(340deg, rgba(255, 255, 255, 0.7) 20%, #ffffff 100%);
}

.seo-final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    max-width: 560px;
}

.seo-final-cta .btn-accent {
    align-self: center;
}

/* ---------- Services grid section icons (font-awesome variant of .service-icon) ---------- */

.service-icon.fa-icon i {
    color: var(--accent-color);
    font-size: 30px;
}

/* ============================================================
   October 2026 refinements
   ============================================================ */

/* Hero: copy on the left, portrait video on the right */
.seo-hero-stack {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.seo-hero-content {
    width: 58%;
    max-width: 760px;
    align-items: flex-start;
    text-align: left;
}

.seo-hero-content .sub-heading {
    justify-content: flex-start;
}

.seo-hero-content p {
    margin: 0;
    max-width: 640px;
}

.seo-hero-video {
    width: 36%;
    justify-content: flex-end;
}

.seo-video-frame {
    max-width: 360px;
}

/* Services: centered strategy-call line with intentional spacing */
#seo-services .service-link-footer {
    display: flex;
    justify-content: center;
    margin-top: 34px;
    text-align: center;
}

#seo-services .service-link-footer p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

#seo-services .service-link-footer a {
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
}

/* Why choose: make the experience card a full-width horizontal feature */
.seo-why-content .seo-experience-card {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 28px 32px;
    border-radius: var(--global-border-radius);
    display: grid;
    grid-template-columns: minmax(230px, 0.9fr) minmax(260px, 1.1fr);
    align-items: center;
    gap: 28px;
}

.seo-why-content .seo-experience-card > .d-flex {
    margin: 0;
}

.seo-why-content .seo-experience-card p {
    margin: 0;
}

/* Featured plan: red-to-white premium gradient */
.card-pricing.featured {
    background-color: #ffffff;
    background-image: linear-gradient(145deg, #f84242 0%, #ff6b6b 30%, #ffe5e5 72%, #ffffff 100%);
    border-color: rgba(248, 66, 66, 0.48);
    box-shadow: var(--box-shadow-bottom-right-wide);
}

.card-pricing.featured h4,
.card-pricing.featured .pricing-desc,
.card-pricing.featured .pricing-amount .amount,
.card-pricing.featured .pricing-amount .period,
.card-pricing.featured .pricing-features li {
    color: var(--primary);
}

.card-pricing.featured .pricing-divider {
    background-color: rgba(20, 20, 20, 0.14);
}

.card-pricing.featured .pricing-features li i {
    color: var(--accent-color);
}

.card-pricing.featured .btn-accent {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 12px 30px rgba(188, 34, 34, 0.16);
}

/* Final CTA uses the same background artwork as the hero */
.seo-final-cta,
body.lightmode .seo-final-cta {
    background-color: #220607;
    background-image:
        linear-gradient(110deg, rgba(20, 4, 5, 0.82) 0%, rgba(122, 17, 22, 0.58) 55%, rgba(20, 4, 5, 0.45) 100%),
        url('https://clickcognix.co/assets/Hero-new.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 991px) {
    .seo-hero-stack {
        flex-direction: column;
        align-items: center;
        gap: 42px;
    }

    .seo-hero-content,
    .seo-hero-video {
        width: 100%;
    }

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

    .seo-hero-content .sub-heading {
        justify-content: center;
    }

    .seo-hero-content p {
        margin: 0 auto;
    }

    .seo-hero-video {
        justify-content: center;
    }

    .seo-why-content .seo-experience-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===== October 2026 hero + pricing cleanup overrides ===== */
.seo-hero-banner::before {
    background-color: transparent;
    background-image: linear-gradient(112deg, rgba(255, 85, 85, 0.08) 0%, rgba(255, 85, 85, 0.05) 52%, rgba(255, 255, 255, 0.02) 100%);
}

.seo-hero-content .sub-heading span,
.seo-hero-content .sub-heading i,
.seo-hero-content p {
    color: rgba(255, 255, 255, 0.96);
}

.seo-hero-content h1,
.seo-hero-banner .title-heading-banner {
    background-image: none !important;
    background-color: transparent;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.97) !important;
    color: rgba(255, 255, 255, 0.97) !important;
    text-shadow: 0 10px 34px rgba(255, 82, 82, 0.16);
}

.seo-video-frame {
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: none;
}

.card-pricing.featured {
    background-color: #f84a4a;
    background-image: linear-gradient(160deg, #ff4545 0%, #ff6666 45%, #ff8787 100%);
    border-color: rgba(248, 66, 66, 0.52);
    box-shadow: none;
}

.card-pricing.featured h4,
.card-pricing.featured .pricing-desc,
.card-pricing.featured .pricing-amount .amount,
.card-pricing.featured .pricing-amount .period,
.card-pricing.featured .pricing-features li,
.card-pricing.featured .pricing-features li i {
    color: #ffffff;
}

.card-pricing.featured .pricing-divider {
    background-color: rgba(255, 255, 255, 0.30);
}

.card-pricing.featured .btn-accent {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: none;
}

.card-pricing.featured .btn-title span {
    color: var(--accent-color);
}

.card-pricing.featured .btn:hover .btn-title span {
    color: var(--accent-color) !important;
}

.seo-final-cta,
body.lightmode .seo-final-cta {
    background-color: #2b0809;
    background-image: linear-gradient(110deg, rgba(255, 92, 92, 0.08) 0%, rgba(255, 92, 92, 0.04) 55%, rgba(255, 255, 255, 0.02) 100%), url('https://clickcognix.co/assets/Hero-new.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.seo-final-cta h2,
body.lightmode .seo-final-cta h2 {
    background-image: none !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.97) !important;
    color: rgba(255, 255, 255, 0.97) !important;
    text-shadow: 0 10px 34px rgba(255, 82, 82, 0.16);
}

/* ===== Force Hero-new artwork on mobile ===== */
@media (max-width: 767px) {
    .seo-hero-banner {
        background-image: url('https://clickcognix.co/assets/Hero-new.png') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .seo-hero-bg-img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        content: url('https://clickcognix.co/assets/Hero-new.png') !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .seo-final-cta,
    body.lightmode .seo-final-cta {
        background-image: linear-gradient(110deg, rgba(255, 92, 92, 0.08) 0%, rgba(255, 92, 92, 0.04) 55%, rgba(255, 255, 255, 0.02) 100%), url('https://clickcognix.co/assets/Hero-new.png') !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}
