/* ============================================
   SERVICE-PAGE.CSS
   The 23 Eleven — Shared styles for all
   individual service pages
   ============================================ */

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    margin-bottom: var(--space-lg);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
    color: var(--color-white);
}

.breadcrumb-list i {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-list [aria-current="page"] {
    color: var(--color-white);
    font-weight: var(--fw-semibold);
}

/* ============================================
   SERVICE HERO
   ============================================ */
.service-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
    overflow: hidden;
}

.service-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Fallback gradient when image not present */
    background-color: var(--color-dark-gray);
    z-index: 0;
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}

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

.service-hero-content {
    max-width: 700px;
}

.service-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--border-radius-lg);
    font-size: var(--fs-2xl);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    box-shadow: 0 8px 24px rgba(252, 163, 17, 0.35);
}

.service-hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-5xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-md);
}

.service-hero-subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.88);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
    max-width: 560px;
}

/* ============================================
   SERVICE OVERVIEW
   ============================================ */
.service-overview {
    padding: var(--space-5xl) 0;
    background-color: var(--bg-primary);
}

.service-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.service-overview-content .section-tag {
    display: block;
    margin-bottom: var(--space-sm);
}

.service-overview-content .section-title {
    margin-bottom: var(--space-lg);
}

.service-overview-text {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
}

.service-overview-text:last-of-type {
    margin-bottom: var(--space-xl);
}

.service-overview-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.feature-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--border-radius-md);
    font-size: var(--fs-base);
    color: var(--color-white);
}

.feature-text h3 {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.feature-text p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

/* ============================================
   SERVICE PACKAGES
   ============================================ */
.service-packages {
    padding: var(--space-5xl) 0;
    background-color: var(--bg-secondary);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
    margin-top: var(--space-3xl);
}

.package-card {
    position: relative;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.package-card--featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-primary), var(--shadow-lg);
    margin-top: -4px;
    margin-bottom: -4px;
}

.package-card--featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px var(--accent-primary), var(--shadow-xl);
}

.package-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--color-white);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    padding: var(--space-xs) var(--space-md);
    border-radius: 0 var(--border-radius-xl) 0 var(--border-radius-md);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.package-header {
    padding: var(--space-xl) var(--space-xl) var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.package-name {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.package-tagline {
    font-size: var(--fs-sm);
    color: var(--text-tertiary);
    line-height: var(--lh-normal);
}

.package-body {
    padding: var(--space-xl);
    flex: 1;
}

.package-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-normal);
}

.package-features li i {
    color: var(--accent-primary);
    font-size: var(--fs-xs);
    margin-top: 3px;
    flex-shrink: 0;
}

.package-footer {
    padding: var(--space-md) var(--space-xl) var(--space-xl);
}

.package-footer .btn {
    width: 100%;
}

/* ============================================
   SERVICE PROCESS
   ============================================ */
.service-process {
    padding: var(--space-5xl) 0;
    background-color: var(--bg-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    position: relative;
}

/* Connecting line between steps */
.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 28px);
    right: calc(12.5% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    font-size: var(--fs-sm);
    font-weight: var(--fw-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(252, 163, 17, 0.35);
}

.process-content h3 {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.process-content p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

/* ============================================
   SERVICE FAQ
   ============================================ */
.service-faq {
    padding: var(--space-5xl) 0;
    background-color: var(--bg-secondary);
}

.faq-list {
    max-width: 780px;
    margin: var(--space-3xl) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item[open] {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color var(--transition-fast);
    gap: var(--space-md);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: var(--fs-sm);
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-item[open] .faq-question::after {
    content: '\f068';
}

.faq-item[open] .faq-question {
    color: var(--accent-primary);
}

.faq-answer {
    padding: 0 var(--space-xl) var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.faq-answer p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    padding-top: var(--space-md);
}

/* ============================================
   SERVICE CTA
   ============================================ */
.service-cta {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, #111111 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative orb */
.service-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(252,163,17,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.service-cta-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-cta-title {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-md);
}

.service-cta-text {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
}

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .service-hero-title {
        font-size: var(--fs-4xl);
    }

    .service-overview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .package-card--featured {
        transform: none;
        margin-top: 0;
        margin-bottom: 0;
        order: -1;
    }

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

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

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
    .service-hero {
        min-height: 400px;
        padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
    }

    .service-hero-title {
        font-size: var(--fs-3xl);
    }

    .service-hero-subtitle {
        font-size: var(--fs-base);
    }

    .service-hero-icon {
        width: 56px;
        height: 56px;
        font-size: var(--fs-xl);
    }

    .service-overview,
    .service-packages,
    .service-process,
    .service-faq,
    .service-cta {
        padding: var(--space-3xl) 0;
    }

    .packages-grid {
        max-width: 100%;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        gap: var(--space-md);
    }

    .process-number {
        margin-bottom: 0;
    }

    .service-cta-title {
        font-size: var(--fs-2xl);
    }

    .faq-question {
        padding: var(--space-md) var(--space-lg);
    }

    .faq-answer {
        padding: 0 var(--space-lg) var(--space-md);
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .service-hero-title {
        font-size: var(--fs-2xl);
    }

    .breadcrumb-list {
        font-size: var(--fs-xs);
    }

    .service-cta-title {
        font-size: var(--fs-xl);
    }
}

/* ============================================
   DARK THEME OVERRIDES
   ============================================ */
[data-theme="dark"] .package-card {
    background-color: var(--bg-card);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .package-card--featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-primary), var(--shadow-lg);
}

[data-theme="dark"] .faq-item {
    background-color: var(--bg-card);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .faq-answer {
    border-top-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .package-header {
    border-bottom-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .service-cta {
    background: linear-gradient(135deg, #0A0A0A 0%, #111111 100%);
}
