/**
 * Inner Page Template Styles
 *
 * @package SunnyHQ
 */

/* ============================================
   BLOCK 1: PAGE HERO
   ============================================ */
.page-hero {
    background: var(--navy);
    padding-bottom: 5rem;
    /* padding-top set dynamically by JS to clear fixed nav */
    position: relative;
    overflow: hidden;
}

.page-hero-arcs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.page-hero-content-full {
    grid-template-columns: 1fr;
}

.page-hero-content-full .page-hero-text {
    max-width: 700px;
}

.page-hero-text {
    max-width: 560px;
}

.breadcrumbs {
    font-family: var(--font-ui);
    font-size: .8rem;
    color: var(--navy-50);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, .5);
    transition: color .2s;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs span {
    color: rgba(255, 255, 255, .3);
}

.page-hero h1 {
    font-family: var(--font-h);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.25rem;
}

.page-hero h1 em {
    font-style: italic;
    color: var(--coral);
}

.page-hero-sub {
    font-size: 1.15rem;
    color: var(--navy-30);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.page-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-hero-photo {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-hero-photo::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    border: 35px solid rgba(255, 96, 72, .12);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-label,
.content-media-label {
    font-family: var(--font-ui);
    font-size: .8rem;
    color: var(--navy-50);
}

/* ============================================
   BLOCK 2: CONTENT SECTION
   ============================================ */
.content-block {
    padding: var(--section-pad) 0;
}

.content-block.bg-light {
    background: var(--navy-05);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.content-grid.reverse .content-text {
    order: 2;
}

.content-grid.reverse .content-media {
    order: 1;
}

.content-grid-full {
    grid-template-columns: 1fr;
}

.content-grid-full .content-text {
    max-width: 700px;
}

.content-text .section-label {
    margin-bottom: .5rem;
}

.content-text h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.content-text p,
.content-body p {
    font-size: 1.05rem;
    color: var(--navy-70);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.content-text ul,
.content-body ul {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.content-text ul li,
.content-body ul li {
    font-size: .95rem;
    color: var(--navy-70);
    padding: .5rem 0;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    line-height: 1.5;
}

.content-text ul li::before,
.content-body ul li::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(5, 150, 105, .08);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23059669' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.content-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--gray-200);
}

.content-media::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border: 30px solid rgba(255, 96, 72, .08);
    border-radius: 50%;
    pointer-events: none;
}

.content-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   CONTENT BODY: COMPARISON TABLE (Checklist Style)
   ============================================ */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: #fff;
}

.comparison-table thead {
    background: var(--navy);
}

.comparison-table th {
    font-family: var(--font-ui);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .6);
    padding: .875rem 1rem;
    text-align: left;
}

.comparison-table th.col-sunny {
    color: #fff;
    background: var(--coral);
}

.comparison-table th.col-other {
    color: rgba(255, 255, 255, .8);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(odd) {
    background: #fff;
}

.comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.comparison-table td {
    padding: .75rem 1rem;
    color: var(--navy-70);
    line-height: 1.4;
    vertical-align: middle;
    font-size: .85rem;
}

.comparison-table td.feature-name {
    font-weight: 600;
    color: var(--navy);
    width: 38%;
}

.comparison-table td.col-sunny,
.comparison-table td.col-other {
    width: 31%;
}

.comparison-table .check-yes {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--navy);
    font-weight: 500;
}

.comparison-table .check-yes svg {
    width: 16px;
    height: 16px;
    color: var(--coral);
    flex-shrink: 0;
}

.comparison-table .check-no {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--navy-50);
}

.comparison-table .check-no svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* CTA link after comparison table */
.comparison-table + .btn-ghost,
.content-body > .comparison-table ~ a.btn-ghost {
    display: block;
    text-align: right;
    margin-top: 1rem;
}

/* ============================================
   CONTENT BODY: FIT COLUMNS
   ============================================ */
.fit-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.fit-column {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.fit-column.fit-yes {
    background: rgba(5, 150, 105, .06);
    border: 1px solid rgba(5, 150, 105, .15);
}

.fit-column.fit-no {
    background: rgba(2, 0, 81, .03);
    border: 1px solid var(--gray-200);
}

.fit-column h4 {
    font-family: var(--font-ui);
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.fit-column.fit-yes h4 {
    color: #059669;
}

.fit-column.fit-no h4 {
    color: var(--navy-60);
}

.fit-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fit-column ul li {
    font-size: .9rem;
    color: var(--navy-70);
    padding: .4rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.fit-column.fit-yes ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 700;
}

.fit-column.fit-no ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--navy-40);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .stats-light .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    .stats-light .stat-card {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: .8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: .6rem .75rem;
    }

    .comparison-table td.feature-name {
        width: 35%;
    }

    .comparison-table td.col-sunny,
    .comparison-table td.col-other {
        width: 32.5%;
    }

    .fit-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-light {
        overflow: hidden;
        max-width: 100vw;
    }

    .stats-light .stats-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        overflow: hidden;
        max-width: 100%;
    }

    .stats-light .stat-card {
        padding: 1.5rem;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================
   BLOCK 3: FEATURE GRID
   ============================================ */
.features {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.features.bg-light {
    background: var(--navy-05);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.features-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all .35s ease;
}

.feature-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 12px 48px rgba(2, 0, 81, .06);
    transform: translateY(-3px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: opacity .3s;
}

.feature-card:nth-child(1)::before { background: var(--coral); }
.feature-card:nth-child(2)::before { background: var(--deep-purple); }
.feature-card:nth-child(3)::before { background: var(--navy); }
.feature-card:nth-child(4)::before { background: var(--coral); }
.feature-card:nth-child(5)::before { background: var(--deep-purple); }
.feature-card:nth-child(6)::before { background: var(--navy); }

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon-box {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-h);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: .65rem;
    letter-spacing: -.01em;
}

.feature-card p {
    font-size: .95rem;
    color: var(--navy-70);
    line-height: 1.6;
}

.feature-card p a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}

.feature-card p a:hover {
    color: var(--deep-purple);
    text-decoration: underline;
}

/* ============================================
   BLOCK 4: STATS ROW
   ============================================ */
.stats {
    padding: 5rem 0;
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 96, 72, .1);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-h);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: .5rem;
    background: linear-gradient(135deg, #ff7448, #ff6048, #6248ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: .9rem;
    color: var(--navy-30);
    line-height: 1.4;
}

/* Stats Light Variant (below hero) */
.stats-light {
    padding: 4rem 0;
    background: #f8f8fa;
}

.stats-light::before {
    display: none;
}

.stats-light .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
    gap: 2.5rem;
}

.stats-light .stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(2, 0, 81, .04);
}

.stats-light .stat-number {
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: .5rem;
}

.stats-light .stat-label {
    font-family: var(--font-ui);
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .25rem;
    line-height: 1.3;
}

.stats-light .stat-desc {
    font-size: .8rem;
    color: var(--navy-50);
    line-height: 1.4;
}

/* ============================================
   BLOCK 5: TESTIMONIAL
   ============================================ */
/* Single featured testimonial */
.testimonial-single {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    font-family: var(--font-h);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: var(--navy);
    margin-bottom: 2.5rem;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-family: var(--font-h);
    font-size: 6rem;
    font-weight: 700;
    color: var(--coral);
    opacity: .12;
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gray-200);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: .8rem;
    color: var(--gray-400);
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
}

.testimonial-title {
    font-size: .9rem;
    color: var(--navy-50);
}

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

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #F59E0B;
}

/* Carousel */
.testimonial-carousel {
    padding: var(--section-pad) 0;
    background: var(--navy-05);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform .5s ease;
}

.carousel-card {
    flex: 0 0 calc(33.333% - 1rem);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    min-width: 320px;
}

.carousel-card blockquote {
    font-family: var(--font-h);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--navy);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--coral);
}

.carousel-card .testimonial-author {
    align-items: flex-start;
}

.carousel-controls {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all .2s;
}

.carousel-dot.active {
    background: var(--coral);
    width: 28px;
    border-radius: 5px;
}

/* Grid */
.testimonial-grid-section {
    padding: var(--section-pad) 0;
    background: var(--navy-05);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ============================================
   BLOCK 6: FAQ ACCORDION
   ============================================ */
.faq {
    padding: var(--section-pad) 0;
    background: var(--navy-05);
}

.faq-grid {
    max-width: 800px;
    margin: 3rem auto 0;
}

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

.faq-q {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-q h4 {
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-q svg {
    flex-shrink: 0;
    transition: transform .3s;
    color: var(--navy-50);
}

.faq-item.open .faq-q svg {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-a p {
    font-size: .95rem;
    color: var(--navy-70);
    line-height: 1.7;
}

/* ============================================
   FULL-WIDTH CONTENT SECTIONS
   ============================================ */
.content-full-width {
    position: relative;
    overflow: hidden;
}

/* Decorative sun arc background */
.content-full-width::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 500px;
    height: 500px;
    border: 60px solid rgba(2, 0, 81, 0.02);
    border-radius: 50%;
    pointer-events: none;
}

.content-full-width::after {
    content: '';
    position: absolute;
    bottom: -250px;
    left: -100px;
    width: 400px;
    height: 400px;
    border: 50px solid rgba(98, 72, 255, 0.02);
    border-radius: 50%;
    pointer-events: none;
}

.content-text-full {
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* ============================================
   PRICING MINI CARDS (for inner pages)
   ============================================ */
.pricing-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-mini-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 16px rgba(2, 0, 81, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(2, 0, 81, 0.12);
}

.mini-card-name {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.mini-card-price {
    font-family: var(--font-h);
    font-size: 2rem;
    font-weight: 700;
    color: var(--coral);
    margin-bottom: 0.5rem;
}

.mini-card-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--navy-50);
}

.mini-card-desc {
    font-size: 0.9rem;
    color: var(--navy-70);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Styled "Learn more →" link */
.mini-card-link {
    font-family: var(--font-h);
    font-size: 0.9rem;
    font-weight: 600;
    font-style: italic;
    color: var(--coral);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mini-card-link:hover {
    color: var(--purple);
}

/* Tablet: 2x2 grid */
@media (max-width: 1024px) {
    .pricing-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: stacked */
@media (max-width: 640px) {
    .pricing-mini-grid {
        grid-template-columns: 1fr;
    }

    .pricing-mini-card {
        padding: 1.5rem;
    }

    .content-full-width::before,
    .content-full-width::after {
        display: none;
    }
}

/* ============================================
   BLOCK 7: CTA SECTION
   ============================================ */
/* Gradient CTA */
.cta-gradient {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.cta-gradient-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ff7448, #ff6048, #ff4848, #6248ff);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-gradient-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.cta-gradient-card h2 {
    font-family: var(--font-h);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
    color: #fff;
}

.cta-gradient-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .85);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

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

/* Navy CTA */
.cta-navy {
    padding: 6rem 0;
    background: var(--navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-navy::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 96, 72, .12);
    pointer-events: none;
}

.cta-navy h2 {
    font-family: var(--font-h);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-navy h2 em {
    font-style: italic;
    color: var(--coral);
}

.cta-navy p {
    font-size: 1.1rem;
    color: var(--navy-50);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .page-hero-content {
        grid-template-columns: 1fr;
    }

    .page-hero-photo {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid.reverse .content-text,
    .content-grid.reverse .content-media {
        order: unset;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .carousel-card {
        flex: 0 0 calc(50% - .75rem);
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding-bottom: 4rem;
    }

    .features-grid,
    .features-grid.cols-2 {
        grid-template-columns: 1fr;
    }

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

    .carousel-card {
        flex: 0 0 100%;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .cta-gradient-card {
        padding: 3rem 2rem;
    }
}

/* ============================================
   INDUSTRY CARDS (for /industries-we-serve/)
   ============================================ */
.features-grid.industry-grid {
    gap: 1.25rem;
}

.features-grid.industry-grid .feature-card {
    background: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1.75rem;
    transition: all .25s ease;
    cursor: pointer;
    position: relative;
}

.features-grid.industry-grid .feature-card:hover {
    background: #fff;
    border-color: var(--gray-200);
    box-shadow: 0 8px 24px rgba(2, 0, 81, .08);
    transform: translateY(-2px);
}

.features-grid.industry-grid .feature-card .icon-box {
    width: 48px;
    height: 48px;
    background: rgba(2, 0, 81, .06);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.features-grid.industry-grid .feature-card .icon-box svg {
    width: 24px;
    height: 24px;
    stroke: var(--navy);
}

.features-grid.industry-grid .feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .5rem;
}

.features-grid.industry-grid .feature-card p {
    font-size: .875rem;
    color: var(--navy-60);
    line-height: 1.5;
    margin-bottom: .75rem;
}

.features-grid.industry-grid .feature-card .industry-link {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--coral);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all .25s ease;
}

.features-grid.industry-grid .feature-card:hover .industry-link {
    opacity: 1;
    transform: translateX(0);
}

.features-grid.industry-grid .feature-card .industry-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Navy icon color override for industry cards */
.features-grid.industry-grid .icon-box-navy {
    background: rgba(2, 0, 81, .06);
}

.features-grid.industry-grid .icon-box-navy svg {
    stroke: var(--navy);
}

@media (max-width: 1024px) {
    .features-grid.industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid.industry-grid {
        grid-template-columns: 1fr;
    }

    .features-grid.industry-grid .feature-card .industry-link {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   CAREERS PAGE STYLES
   ============================================ */
.careers-hero {
    padding: 9rem 0 5rem;
    background: var(--navy-05);
    text-align: center;
}

.careers-hero .container {
    max-width: 800px;
}

.careers-hero h1 {
    font-family: var(--font-h);
    font-size: clamp(2.75rem, 6vw, 3rem);
    font-weight: 400;
    color: var(--navy);
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.careers-subtitle {
    font-size: 1.25rem;
    color: var(--navy-50);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.careers-openings {
    padding: 4rem 0;
    background: var(--gray-50);
}

.careers-openings .container {
    max-width: 800px;
}

.careers-openings h2 {
    font-family: var(--font-h);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 1.5rem;
    text-align: center;
}

.no-openings {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.no-openings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 96, 72, 0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.no-openings-icon svg {
    color: var(--coral);
}

.no-openings > svg {
    color: var(--navy-30);
    margin-bottom: 1rem;
}

.no-openings p {
    color: var(--navy-70);
    margin: 0 0 0.5rem;
    line-height: 1.6;
}

.no-openings p:last-child {
    margin-bottom: 0;
}

.careers-contact {
    padding: 4rem 0;
    background: #fff;
}

.careers-contact.bg-navy-05 {
    background: var(--navy-05);
}

.careers-contact .container {
    max-width: 800px;
    text-align: center;
}

.careers-contact h2 {
    font-family: var(--font-h);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 0.75rem;
}

.careers-contact > .container > p {
    color: var(--navy-50);
    margin: 0 0 2rem;
}

.careers-contact-card {
    background: rgba(255, 96, 72, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255, 96, 72, 0.1);
}

.careers-contact-card .contact-note {
    font-size: 1rem;
    color: var(--navy-70);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.careers-contact-card .btn {
    width: 100%;
}

.careers-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--coral) 0%, #ff8066 50%, var(--deep-purple) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.careers-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

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

.careers-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ============================================
   LEGAL PAGE STYLES
   ============================================ */
.legal-page .nav-bar {
    background: rgba(2, 0, 81, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-page .nav-logo-dark {
    opacity: 0;
}

.legal-page .nav-logo-light {
    opacity: 1;
}

.legal-page .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.legal-page .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.legal-page .nav-phone {
    color: rgba(255, 255, 255, 0.7);
}

.legal-page .nav-mobile-toggle span {
    background: #fff;
}

.legal-content {
    padding: 9rem 0 5rem;
    background: #fff;
}

.legal-content .container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.legal-header h1 {
    font-family: var(--font-h);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--navy);
    margin: 0 0 0.5rem;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--navy-50);
    margin: 0;
}

.legal-body {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--navy-70);
}

.legal-body h2 {
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
}

.legal-body h3 {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
    margin: 2rem 0 0.75rem;
}

.legal-body p {
    margin: 0 0 1.25rem;
}

.legal-body ul,
.legal-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.legal-body li {
    margin-bottom: 0.5rem;
}

.legal-body a {
    color: var(--coral);
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

.legal-body strong {
    color: var(--navy);
}

/* Careers page nav override */
.careers-page .nav-bar {
    background: rgba(2, 0, 81, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.careers-page .nav-logo-dark {
    opacity: 0;
}

.careers-page .nav-logo-light {
    opacity: 1;
}

.careers-page .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.careers-page .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.careers-page .nav-phone {
    color: rgba(255, 255, 255, 0.7);
}

.careers-page .nav-mobile-toggle span {
    background: #fff;
}

/* ============================================
   PRICING CALLOUT
   ============================================ */
.pricing-callout {
    padding: 4rem 0;
    background: #f4f4f8;
    position: relative;
    overflow: hidden;
}

.pricing-callout::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 60px solid rgba(255, 96, 72, .06);
    pointer-events: none;
}

.pricing-callout::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(98, 72, 255, .05);
    pointer-events: none;
}

.pricing-callout-card {
    position: relative;
    z-index: 1;
}

.pricing-callout-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 3rem;
    align-items: center;
}

.pricing-callout-text h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #020051;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}

.pricing-callout-sub {
    font-size: 1.05rem;
    color: rgba(2, 0, 81, .7);
    line-height: 1.6;
    max-width: 400px;
}

.pricing-callout-price {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(2, 0, 81, .1);
    box-shadow: 0 4px 24px rgba(2, 0, 81, .06);
}

.price-main {
    margin-bottom: .75rem;
}

.price-amount {
    font-family: var(--font-h);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--coral);
    letter-spacing: -.03em;
    line-height: 1;
}

.price-label {
    display: block;
    font-family: var(--font-ui);
    font-size: .9rem;
    color: rgba(2, 0, 81, .6);
    margin-top: .25rem;
}

.price-secondary {
    margin-bottom: 1rem;
}

.price-monthly {
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 600;
    color: #020051;
}

.price-monthly-label {
    display: block;
    font-size: .85rem;
    color: rgba(2, 0, 81, .5);
}

.price-note {
    font-size: .8rem;
    color: rgba(2, 0, 81, .5);
    margin: 0;
    font-style: italic;
}

.pricing-callout-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.pricing-callout-phone {
    font-family: var(--font-ui);
    font-size: .9rem;
    color: rgba(2, 0, 81, .7);
    transition: color .2s;
}

.pricing-callout-phone:hover {
    color: #020051;
}

@media (max-width: 1024px) {
    .pricing-callout-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .pricing-callout-sub {
        margin: 0 auto;
    }

    .pricing-callout-price {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ============================================
   CHECKLIST GRID
   ============================================ */
.checklist-grid-section {
    padding: var(--section-pad) 0;
    background: #fff;
}

.checklist-grid-section.bg-light {
    background: var(--navy-05);
}

.checklist-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.checklist-header h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}

.checklist-header p {
    font-size: 1.05rem;
    color: var(--navy-60);
    line-height: 1.6;
}

.checklist-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.checklist-column h3 {
    font-family: var(--font-ui);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--navy-50);
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--gray-200);
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 0;
    font-size: 1rem;
    color: var(--navy-80);
    line-height: 1.5;
    border-bottom: 1px solid var(--gray-100);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist .check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--coral);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .checklist-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-steps-section {
    padding: var(--section-pad) 0;
    background: #fff;
}

.process-steps-section.bg-light {
    background: var(--navy-05);
}

.process-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.process-header h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}

.process-header p {
    font-size: 1.05rem;
    color: var(--navy-60);
    line-height: 1.6;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    position: relative;
}

/* Connecting line between steps */
.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--coral), var(--deep-purple));
    opacity: .2;
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), #ff8066);
    color: #fff;
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 16px rgba(255, 96, 72, .25);
}

.step-content h3 {
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
}

.step-content p {
    font-size: .9rem;
    color: var(--navy-60);
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-step {
        display: flex;
        text-align: left;
        gap: 1.25rem;
    }

    .step-number {
        flex-shrink: 0;
        margin: 0;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .step-content {
        padding-top: .25rem;
    }
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.portfolio-grid-section {
    padding: var(--section-pad) 0;
    background: #fff;
}

.portfolio-grid-section.bg-light {
    background: var(--navy-05);
}

.portfolio-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.portfolio-header h2 {
    font-family: var(--font-h);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}

.portfolio-header p {
    font-size: 1.05rem;
    color: var(--navy-60);
    line-height: 1.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    transition: all .3s ease;
}

.portfolio-item:hover {
    box-shadow: 0 12px 40px rgba(2, 0, 81, .1);
    transform: translateY(-4px);
}

.portfolio-link {
    display: block;
    text-decoration: none;
}

.portfolio-screenshot {
    aspect-ratio: 16/10;
    background: var(--gray-100);
    overflow: hidden;
}

.portfolio-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.portfolio-item:hover .portfolio-screenshot img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: var(--gray-400);
}

.portfolio-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: .5;
}

.portfolio-placeholder span {
    font-family: var(--font-ui);
    font-size: .85rem;
}

.portfolio-info {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portfolio-name {
    font-family: var(--font-ui);
    font-size: .95rem;
    font-weight: 600;
    color: var(--navy);
}

.portfolio-arrow {
    width: 18px;
    height: 18px;
    color: var(--coral);
    opacity: 0;
    transform: translateX(-8px);
    transition: all .3s ease;
}

.portfolio-item:hover .portfolio-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GUARANTEE CALLOUT
   ============================================ */
.guarantee-callout {
    padding: 3rem 0;
    background: #fff;
}

.guarantee-callout.bg-light {
    background: var(--navy-05);
}

.guarantee-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: rgba(5, 150, 105, .04);
    border: 1px solid rgba(5, 150, 105, .12);
    border-radius: var(--radius-lg);
}

.guarantee-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(5, 150, 105, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-icon svg {
    width: 28px;
    height: 28px;
    color: #059669;
}

.guarantee-content h3 {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
}

.guarantee-content p {
    font-size: 1rem;
    color: var(--navy-70);
    line-height: 1.6;
    margin: 0;
}

.guarantee-content a {
    color: var(--coral);
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}

.guarantee-content a:hover {
    color: var(--deep-purple);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .guarantee-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 2rem 1.5rem;
    }
}
