/* ═══════════════════════════════════════════════════════════
   Home Page — Complete Redesign
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero ─── */
.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
    margin-top: -4rem;
    padding: calc(5rem + 4rem) 0 3rem;
    color: #f8fafc;
}

@media (min-width: 1024px) {
    .home-hero {
        margin-top: -4.5rem;
        padding-top: calc(5rem + 4.5rem);
    }
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: brightness(0.55) saturate(1.15);
}

.home-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(3, 7, 18, 0.95) 0%, rgba(7, 16, 24, 0.82) 40%, rgba(15, 118, 110, 0.45) 100%),
        linear-gradient(to top, rgba(3, 7, 18, 0.9) 0%, transparent 50%);
}

.home-hero-orbs {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(45, 212, 191, 0.2), transparent),
        radial-gradient(ellipse 40% 35% at 10% 80%, rgba(251, 191, 36, 0.12), transparent);
}

.home-hero-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.7) 50%, transparent),
        radial-gradient(1.5px 1.5px at 60% 15%, rgba(251,191,36,0.8) 50%, transparent),
        radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.5) 50%, transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(45,212,191,0.6) 50%, transparent);
    animation: home-stars-pulse 8s ease-in-out infinite alternate;
}

@keyframes home-stars-pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.home-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .home-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.home-hero-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    margin-bottom: 1.25rem;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #86efac;
}

.home-hero-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    animation: home-pulse 2s ease-in-out infinite;
}

@keyframes home-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.home-hero-eyebrow {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.home-hero-eyebrow strong {
    color: #fbbf24;
}

.home-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.home-hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, #2dd4bf, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 32rem;
    margin-bottom: 2rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.home-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.home-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(20, 184, 166, 0.5);
    color: #fff;
}

.home-btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.home-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.home-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.home-btn-ghost-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.home-hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-hero-avatars {
    display: flex;
}

.home-hero-avatars img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    margin-left: -0.5rem;
}

.home-hero-avatars img:first-child {
    margin-left: 0;
}

.home-hero-trust strong {
    display: block;
    font-size: 0.875rem;
    color: #f8fafc;
}

.home-hero-trust span {
    font-size: 0.75rem;
    color: #64748b;
}

/* Hero visual collage */
.home-hero-visual {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .home-hero-visual {
        display: block;
    }
}

.home-hero-collage {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 0.875rem;
    align-items: start;
}

.home-hero-collage-main {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-hero-collage-main img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.home-hero-collage-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(7, 16, 24, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    text-align: center;
}

.home-hero-collage-badge-num {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1;
}

.home-hero-collage-badge-label {
    font-size: 0.6875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-hero-collage-side {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding-top: 2rem;
}

.home-hero-collage-side img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.home-hero-panchang-float {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(7, 16, 24, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 212, 191, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    min-width: 16rem;
}

.home-hero-panchang-label {
    font-size: 0.75rem;
    color: #fbbf24;
    margin-bottom: 0.625rem;
    font-weight: 600;
}

.home-hero-panchang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

.home-hero-panchang-grid span {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.home-hero-panchang-grid strong {
    font-size: 0.8125rem;
    color: #f1f5f9;
}

.home-hero-quick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
    .home-hero-quick {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-hero-quick-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.home-hero-quick-item:hover {
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.35);
    transform: translateY(-2px);
    color: #fff;
}

.home-hero-quick-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(45, 212, 191, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-hero-quick-icon svg {
    width: 1rem;
    height: 1rem;
    color: #2dd4bf;
}

/* ─── Stats bar ─── */
.home-stats-bar {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

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

@media (min-width: 768px) {
    .home-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-stat {
    text-align: center;
}

.home-stat strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.home-stat span {
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
}

/* ─── Shared section styles ─── */
.home-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .home-section {
        padding: 5rem 0;
    }
}

.home-section-alt {
    background: var(--section-alt-bg, color-mix(in srgb, var(--color-muted) 25%, var(--color-background)));
}

.home-section-dark {
    background: linear-gradient(180deg, #071018 0%, #0c1824 100%);
    color: #e2e8f0;
}

.home-section-dark .home-section-head h2,
.home-section-dark .home-section-head p {
    color: #e2e8f0;
}

.home-section-dark .home-section-head p {
    color: #94a3b8;
}

.home-section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.home-section-head-left {
    text-align: left;
}

.home-section-head h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-foreground);
    margin: 0.5rem 0;
    letter-spacing: -0.02em;
}

.home-section-head p {
    color: var(--color-muted-foreground);
    font-size: 1rem;
    max-width: 36rem;
}

.home-section-head-left p {
    margin-left: 0;
}

.home-section-head-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .home-section-head-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.home-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.home-tag-light {
    background: rgba(45, 212, 191, 0.15);
    border-color: rgba(45, 212, 191, 0.3);
    color: #5eead4;
}

.home-link-arrow {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s;
}

.home-link-arrow:hover {
    text-decoration: underline;
}

/* ─── Panchang board ─── */
.home-panchang-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--md-elevation-2);
}

@media (min-width: 640px) {
    .home-panchang-board {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-panchang-item {
    padding: 1.25rem;
    background: var(--color-card);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.home-panchang-item span {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted-foreground);
    margin-bottom: 0.375rem;
}

.home-panchang-item strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-foreground);
}

.home-panchang-item-accent {
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 12%, var(--color-card)), var(--color-card));
}

.home-panchang-item-accent strong {
    color: var(--color-primary);
}

/* ─── How it works ─── */
.home-steps {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .home-steps {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: start;
        gap: 0;
    }
}

.home-step {
    text-align: center;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .home-step {
        padding: 0 1rem;
    }
}

.home-step-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold, #fbbf24));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

.home-step h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.home-step p {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

.home-step-connector {
    display: none;
}

@media (min-width: 768px) {
    .home-step-connector {
        display: block;
        width: 3rem;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-gold, #fbbf24));
        margin-top: 3rem;
        opacity: 0.4;
    }
}

/* ─── Astrologer scroll cards ─── */
.home-astro-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.home-astro-card {
    flex: 0 0 min(85vw, 280px);
    scroll-snap-align: start;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.home-astro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--md-elevation-3);
    border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}

.home-astro-card-photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.home-astro-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.home-astro-card:hover .home-astro-card-photo img {
    transform: scale(1.05);
}

.home-astro-online {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: #22c55e;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-astro-card-body {
    padding: 1.25rem;
}

.home-astro-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.home-astro-rating {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 0.375rem;
}

.home-astro-card-body p {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.home-astro-chat {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ─── Bento services grid ─── */
.home-bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .home-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .home-bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-bento-item-lg {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.home-bento-item {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-bento-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--md-elevation-2);
}

.home-bento-icon {
    margin-bottom: 1rem;
}

.home-bento-item h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.home-bento-item p {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

/* ─── About + Why split ─── */
.home-split {
    display: grid;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .home-split {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }
}

.home-split-media {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 24rem;
}

.home-split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 24rem;
}

.home-split-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #f8fafc;
}

.home-split-media-overlay h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.75rem 0;
}

.home-split-media-overlay p {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.home-split-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin: 0.5rem 0 1.5rem;
}

.home-why-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.home-why-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s;
}

.home-why-item:hover {
    border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
}

.home-why-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--color-primary) 14%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-why-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
}

.home-why-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.home-why-item p {
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
    line-height: 1.5;
}

/* ─── Pricing on dark section ─── */
.home-pricing-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-section-dark .custom-recharge-banner {
    border-color: rgba(45, 212, 191, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.home-section-dark .card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Force readable text on dark pricing section (light theme uses dark foreground vars) */
.home-section-dark .text-foreground,
.home-section-dark .card h3,
.home-section-dark .card .font-semibold,
.home-section-dark .custom-recharge-title {
    color: #f1f5f9 !important;
}

.home-section-dark .text-muted-foreground,
.home-section-dark .card p,
.home-section-dark .card li,
.home-section-dark .card span.line-through,
.home-section-dark .custom-recharge-subtitle,
.home-section-dark .custom-recharge-summary,
.home-section-dark .custom-recharge-note,
.home-section-dark .custom-recharge-input-wrap label,
.home-section-dark .custom-recharge-summary-label {
    color: #94a3b8 !important;
}

.home-section-dark .text-primary,
.home-section-dark .card svg.text-primary {
    color: #2dd4bf !important;
}

.home-section-dark .custom-recharge-summary strong {
    color: #2dd4bf !important;
}

.home-section-dark .custom-recharge-badge {
    background: #0d9488;
    color: #fff;
}

.home-section-dark .custom-recharge-form-row {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.home-section-dark .custom-recharge-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

.home-section-dark .custom-recharge-input::placeholder {
    color: #64748b;
}

.home-section-dark .custom-recharge-preset-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.home-section-dark .custom-recharge-preset-btn:hover {
    border-color: rgba(45, 212, 191, 0.45);
    color: #fff;
}

.home-section-dark .custom-recharge-preset-btn.is-active {
    background: #0d9488;
    border-color: #14b8a6;
    color: #fff;
}

.home-section-dark .card hr,
.home-section-dark .custom-recharge-presets {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.home-section-dark .card .border-border {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.home-section-dark .card.ring-primary,
.home-section-dark .card.border-primary {
    border-color: #2dd4bf !important;
}

.home-section-dark .card .bg-primary {
    background: #0d9488 !important;
    color: #fff !important;
}

/* ─── Blog grid ─── */
.home-blog-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-blog-grid {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: auto auto;
    }

    .home-blog-card-featured {
        grid-row: span 2;
    }
}

.home-blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s;
}

@media (min-width: 768px) {
    .home-blog-card:not(.home-blog-card-featured) {
        flex-direction: row;
    }
}

.home-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-elevation-3);
}

.home-blog-card-img {
    overflow: hidden;
    flex-shrink: 0;
}

.home-blog-card-featured .home-blog-card-img {
    aspect-ratio: 16 / 10;
}

.home-blog-card:not(.home-blog-card-featured) .home-blog-card-img {
    width: 8rem;
    aspect-ratio: 1;
}

@media (min-width: 768px) {
    .home-blog-card:not(.home-blog-card-featured) .home-blog-card-img {
        width: 10rem;
    }
}

.home-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.home-blog-card:hover .home-blog-card-img img {
    transform: scale(1.05);
}

.home-blog-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-blog-card-body time {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.home-blog-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.home-blog-card-featured .home-blog-card-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
}

.home-blog-card-body p {
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Testimonials ─── */
.home-testimonials {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-testimonials {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-testimonial {
    margin: 0;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 1.25rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    position: relative;
}

.home-testimonial-stars {
    color: #f59e0b;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.home-testimonial p {
    font-size: 0.9375rem;
    color: var(--color-muted-foreground);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.home-testimonial footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-testimonial footer img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.home-testimonial footer strong {
    display: block;
    font-size: 0.875rem;
    color: var(--color-foreground);
    font-style: normal;
}

.home-testimonial footer span {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

/* ─── FAQ layout ─── */
.home-section-faq {
    background: var(--section-alt-bg, color-mix(in srgb, var(--color-muted) 20%, var(--color-background)));
}

.home-faq-wrap {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .home-faq-wrap {
        grid-template-columns: 1fr 320px;
        gap: 2.5rem;
    }
}

.home-faq-list {
    min-width: 0;
}

.home-faq-item {
    border-radius: 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: var(--md-elevation-1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-faq-item:last-child {
    margin-bottom: 0;
}

.home-faq-item.is-open {
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
    box-shadow: var(--md-elevation-2);
}

.home-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-foreground);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.home-faq-question-text {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
}

.home-faq-question:hover {
    background: color-mix(in srgb, var(--color-muted) 50%, transparent);
}

.home-faq-toggle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.25s;
}

.home-faq-toggle svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
    transition: transform 0.25s;
}

.home-faq-toggle.is-open svg {
    transform: rotate(180deg);
}

.home-faq-item.is-open .home-faq-toggle {
    background: color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.home-faq-answer {
    padding: 0 1.25rem 1.125rem;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    line-height: 1.65;
}

.home-faq-aside {
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .home-faq-aside {
        position: sticky;
        top: 6rem;
        margin-top: 0;
    }
}

.home-faq-aside-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--md-elevation-2);
}

.home-faq-aside-card img {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    display: block;
}

@media (min-width: 1024px) {
    .home-faq-aside-card img {
        height: 11rem;
    }
}

.home-faq-aside-body {
    padding: 1.25rem;
}

.home-faq-aside-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.home-faq-aside-body p {
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* ─── Final CTA ─── */
.home-cta-final {
    padding-bottom: 5rem;
}

.home-cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    min-height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-cta-box-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.home-cta-box-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(3, 7, 18, 0.88) 0%, rgba(15, 118, 110, 0.75) 100%);
    width: 100%;
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-cta-box-inner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    max-width: 28rem;
}

.home-cta-box-inner p {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 1.75rem;
    max-width: 26rem;
}

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

/* ─── Header integration on home hero ─── */
.site-header--over-hero:not(.site-header--scrolled) .site-header-bar {
    background: rgba(3, 7, 18, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.light .site-header--over-hero:not(.site-header--scrolled) .site-brand,
html.dark .site-header--over-hero:not(.site-header--scrolled) .site-brand {
    color: #f8fafc;
}

/* ─── Mobile hero adjustments ─── */
@media (max-width: 767px) {
    .home-hero {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .home-hero-title {
        font-size: 2.25rem;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .home-hero-actions .home-btn-primary,
    .home-hero-actions .home-btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .home-section {
        padding: 3rem 0;
    }

    .home-split-media {
        min-height: 18rem;
    }

    .home-split-media img {
        min-height: 18rem;
    }
}
