/* ========================================
   KARMAVYAA — Service Pages CSS
   Shared by: Digital Marketing, L&D, Web Engineering
   ======================================== */

/* ========================================
   TYPOGRAPHY HELPERS
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-3);
    display: block;
}

/* ========================================
   HERO SECTION WITH PARALLAX
   ======================================== */
.svc-hero {
    position: relative;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: clamp(80px, 10vh, 100px);
    padding-bottom: clamp(32px, 5vh, 56px);
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

/* Hero BG per page — class set by $svc['hero_class'] in each page-*.php */
.hero-dm {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=2574&auto=format&fit=crop');
}
.hero-ld {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?q=80&w=2670&auto=format&fit=crop');
}
.hero-we {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=2672&auto=format&fit=crop');
}

.svc-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 196, 48, 0.4);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: var(--text-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.svc-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: var(--white);
}

.svc-hero h1 span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    background: linear-gradient(to right, #F4C430, #FDE68A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 10px;
}

.svc-hero p {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xl);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Service page buttons */
.svc-btn-primary {
    background: var(--white);
    color: var(--primary);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: var(--text-sm);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

.svc-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.svc-btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    font-size: var(--text-sm);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

.svc-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ========================================
   3 PILLARS - EXPANDING CARDS
   ======================================== */
.pillars {
    padding: 50px 0;
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(38px, 4.5vw, 53px);
    color: #ffffff;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title .heading-prefix {
    display: block;
    font-size: clamp(38px, 4.5vw, 53px);
    font-weight: 400;
    letter-spacing: -0.3px;
    opacity: 0.75;
    margin-bottom: 4px;
}

.section-desc {
    color: #94A3B8;
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: 1.7;
}

.expanding-grid {
    display: flex;
    height: 380px;
    gap: 20px;
    width: 100%;
    padding: 0 10px;
}

.expanding-card {
    position: relative;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background-size: cover;
    background-position: center;
}

/* Card Background Images — Digital Marketing */
.svc-dm .card-1 { background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2670&auto=format&fit=crop'); }
.svc-dm .card-2 { background-image: url('https://images.unsplash.com/photo-1572021335469-31706a17aaef?q=80&w=2670&auto=format&fit=crop'); }
.svc-dm .card-3 { background-image: url('https://images.unsplash.com/photo-1542744094-24638eff58bb?q=80&w=2670&auto=format&fit=crop'); }

/* Card Background Images — L&D */
.svc-ld .card-1 { background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?q=80&w=2670&auto=format&fit=crop'); }
.svc-ld .card-2 { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2670&auto=format&fit=crop'); }
.svc-ld .card-3 { background-image: url('https://images.unsplash.com/photo-1531482615713-2afd69097998?q=80&w=2670&auto=format&fit=crop'); }

/* Card Background Images — Web Engineering */
.svc-we .card-1 { background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2670&auto=format&fit=crop'); }
.svc-we .card-2 { background-image: url('https://images.unsplash.com/photo-1572021335469-31706a17aaef?q=80&w=2670&auto=format&fit=crop'); }
.svc-we .card-3 { background-image: url('https://images.unsplash.com/photo-1558655146-d09347e92766?q=80&w=2670&auto=format&fit=crop'); }

/* Dark Overlay */
.expanding-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
    transition: background 0.5s;
}

.expanding-card:hover { flex: 3; }
.expanding-card:hover::before {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.expanding-grid:not(:hover) .expanding-card.active { flex: 3; }
.expanding-grid:not(:hover) .expanding-card.active::before {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.expanding-grid:hover .expanding-card:not(:hover) { flex: 0.8; }
.expanding-grid:hover .expanding-card:not(:hover)::before {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.card-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: opacity 0.4s;
}

.card-title-vertical {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(50%) rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    font-size: var(--text-md);
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: opacity 0.4s, transform 0.4s;
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.expanding-card:hover .card-title-vertical {
    opacity: 0;
    transform: translateX(-50%) translateY(50%) rotate(-90deg) scale(0.8);
}

.expanding-grid:not(:hover) .expanding-card.active .card-title-vertical {
    opacity: 0;
    transform: translateX(-50%) translateY(50%) rotate(-90deg) scale(0.8);
}

.expanding-grid:hover .expanding-card.active:not(:hover) .card-title-vertical {
    opacity: 1;
    transform: translateX(-50%) translateY(50%) rotate(-90deg);
}

.card-content-full {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    pointer-events: none;
}

.expanding-card:hover .card-content-full {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.expanding-grid:not(:hover) .expanding-card.active .card-content-full {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.expanding-grid:hover .expanding-card.active:not(:hover) .card-content-full {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.card-icon-lg {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: #60A5FA;
}

.card-headline {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.card-text {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    max-width: 380px;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    justify-content: center;
}

.pill-tag {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: var(--text-xs);
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.pill-tag i { color: #60A5FA; font-size: 9px; }

/* ========================================
   FRAMEWORK SECTION (PARALLAX BG)
   ======================================== */
.framework-section {
    padding-top: 50px;
    padding-bottom: 60px;
    background-image: linear-gradient(rgba(49, 46, 129, 0.92), rgba(30, 27, 75, 0.95)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2670&auto=format&fit=crop');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.framework-header {
    text-align: center;
    margin-bottom: 80px;
}

.framework-header span { color: var(--accent); opacity: 1; }

.framework-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 4.5vw, 53px);
    margin-bottom: 10px;
    color: var(--white);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.3) 80%, transparent 100%);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    width: 320px;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0 auto 32px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05);
    transition: all 0.4s;
    font-family: 'Playfair Display', serif;
}

.step-item:hover .step-number {
    transform: scale(1.1);
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 0 30px rgba(244, 196, 48, 0.4);
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-2xl);
    margin-bottom: 16px;
    color: var(--white);
    font-weight: 600;
}

.step-desc {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-md);
    line-height: 1.6;
    font-weight: 300;
}

/* ========================================
   GROWTH PROJECTION / STATS
   ======================================== */
.projection {
    padding-top: 60px;
    padding-bottom: 50px;
    background: linear-gradient(160deg, #fefefe 0%, #f8f6f3 30%, #f3f0ec 60%, #efe9e1 100%);
    text-align: center;
}

.projection .section-title { color: var(--dark); }
.projection .section-desc { color: var(--gray-500); }

.projection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.stat-card {
    position: relative;
    padding: 40px 36px;
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #edeae6;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.stat-corner-deco {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 170px;
    height: 170px;
    pointer-events: none;
    overflow: hidden;
}

.deco-shape {
    width: 100%;
    height: 100%;
    position: relative;
}

.deco-shape::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.5;
    animation: decoFloat 5s ease-in-out infinite;
}

.deco-shape::after {
    content: '';
    position: absolute;
    bottom: 42px;
    right: -6px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    opacity: 0.32;
    animation: decoFloat 4s ease-in-out infinite 1.5s;
}

/* 3D sphere gradients per card */
.stat-card:nth-child(1) .deco-shape::before { background: radial-gradient(circle at 35% 30%, #c084fc, #7e22ce 60%, #3b0764); box-shadow: 0 12px 30px rgba(126,34,206,0.25); }
.stat-card:nth-child(1) .deco-shape::after { background: radial-gradient(circle at 35% 30%, #e9d5ff, #a855f7 60%, #7e22ce); }
.stat-card:nth-child(2) .deco-shape::before { background: radial-gradient(circle at 35% 30%, #7dd3fc, #0369a1 60%, #0c4a6e); box-shadow: 0 12px 30px rgba(3,105,161,0.25); }
.stat-card:nth-child(2) .deco-shape::after { background: radial-gradient(circle at 35% 30%, #bae6fd, #0ea5e9 60%, #0369a1); }
.stat-card:nth-child(3) .deco-shape::before { background: radial-gradient(circle at 35% 30%, #fed7aa, #b45309 60%, #7c2d12); box-shadow: 0 12px 30px rgba(180,83,9,0.25); }
.stat-card:nth-child(3) .deco-shape::after { background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 60%, #b45309); }

@keyframes decoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-12px) scale(1.05); }
}

.stat-card:nth-child(1) .stat-value { color: #7e22ce; }
.stat-card:nth-child(2) .stat-value { color: #0369a1; }
.stat-card:nth-child(3) .stat-value { color: #b45309; }

.stat-value {
    font-size: clamp(52px, 6vw, 80px);
    font-weight: 900;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    letter-spacing: -2px;
}

.stat-label {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0;
    font-size: var(--text-md);
    letter-spacing: -0.3px;
    max-width: none;
    line-height: 1.5;
}

/* ========================================
   SERVICES LIST (CHIP CARDS)
   ======================================== */
.services-list-section { padding: 50px 0; }

.svc-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
}

.svc-portfolio-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.svc-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.svc-portfolio-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.svc-portfolio-card h3 {
    font-weight: 700;
    color: #0F1115;
    margin-bottom: 16px;
}

/* Chip / pill tags */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 20px; font-size: 12.5px; font-weight: 500; white-space: nowrap; line-height: 1; color: #374151; border: 1px solid transparent; }
.chip-row span:nth-child(5n+1) { background: linear-gradient(120deg, rgba(236,72,153,0.20) 0%, rgba(99,102,241,0.08)  100%); border-color: rgba(236,72,153,0.30); }
.chip-row span:nth-child(5n+2) { background: linear-gradient(120deg, rgba(99,102,241,0.20) 0%, rgba(236,72,153,0.08)  100%); border-color: rgba(99,102,241,0.30); }
.chip-row span:nth-child(5n+3) { background: linear-gradient(120deg, rgba(244,114,182,0.18) 0%, rgba(59,130,246,0.08)  100%); border-color: rgba(244,114,182,0.28); }
.chip-row span:nth-child(5n+4) { background: linear-gradient(120deg, rgba(59,130,246,0.18)  0%, rgba(236,72,153,0.08)   100%); border-color: rgba(59,130,246,0.28); }
.chip-row span:nth-child(5n+5) { background: linear-gradient(120deg, rgba(167,139,250,0.18) 0%, rgba(244,114,182,0.08) 100%); border-color: rgba(167,139,250,0.28); }

/* Tech stack card (web engineering only) */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-stack-card {
    background: white;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.tech-stack-card h4 {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ========================================
   OTHER SERVICES SECTION
   ======================================== */
.other-services {
    padding-top: 50px;
    padding-bottom: 60px;
    background: var(--gray-50);
}

.other-services .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.other-services .section-tag { color: var(--primary); }

.other-services .section-title {
    color: var(--dark);
    font-size: clamp(38px, 4.5vw, 53px);
    font-weight: 700;
    margin-bottom: 16px;
}

.other-services .section-desc {
    color: var(--gray-500);
    font-size: var(--text-md);
    max-width: 600px;
    margin: 0 auto;
}

.other-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.other-service-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.other-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.3);
}

.other-service-image {
    width: 140px;
    min-height: 160px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.other-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.other-service-card:hover .other-service-image img { transform: scale(1.1) translateY(-5px); }

.other-service-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.other-service-card h3 { font-size: var(--text-lg); font-weight: 700; color: var(--dark); margin-bottom: 8px; letter-spacing: -0.3px; }
.other-service-card p { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }

.other-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: 6px;
    transition: all 0.3s;
    width: fit-content;
    white-space: nowrap;
}

.other-service-btn:hover { background: var(--primary); }
.other-service-btn i { transition: transform 0.3s; font-size: var(--text-xs); }
.other-service-card:hover .other-service-btn i { transform: translateX(4px); }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--dark);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content { position: relative; z-index: 2; }

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 4.5vw, 53px);
    margin-bottom: 24px;
    color: var(--white);
    font-weight: 700;
}

.cta-content p {
    font-family: 'Inter', sans-serif;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: var(--text-lg);
    font-weight: 300;
}

/* ========================================
   SERVICE PAGE FAQ
   ======================================== */
.svc-faq { padding-top: 50px; padding-bottom: 60px; background: var(--gray-50); }

.svc-faq .faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.svc-faq .faq-list { display: flex; flex-direction: column; gap: 16px; }

.svc-faq .faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.svc-faq .faq-header h2 {
    font-size: clamp(38px, 4.5vw, 53px);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.svc-faq .faq-header p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.svc-faq .faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.svc-faq .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.svc-faq .faq-question h3 {
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    padding-right: 16px;
    margin: 0;
}

.svc-faq .faq-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.svc-faq .faq-item.active .faq-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
    color: white;
    transform: rotate(180deg);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.24);
}

.svc-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    background: var(--gray-50);
    border-radius: 0 0 16px 16px;
}

.svc-faq .faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.svc-faq .faq-answer p {
    padding: 0 24px 20px;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}

/* ========================================
   SERVICE PAGE CONTACT SECTION
   ======================================== */
.svc-contact { background: var(--gray-50); padding-top: 60px; padding-bottom: 0; margin-bottom: -105px; }
.svc-contact .contact-hero { text-align: center; padding-bottom: 160px; background: linear-gradient(135deg, var(--gray-50), #f1f5f9); }
.svc-contact .contact-hero-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.svc-contact .contact-hero h1 { font-size: var(--text-3xl); font-weight: 300; color: var(--dark); margin-bottom: 16px; }
.svc-contact .contact-hero h1 span { color: var(--primary); font-weight: 500; }
.svc-contact .contact-hero p { font-size: var(--text-md); color: var(--dark); max-width: 500px; margin: 0 auto; }
.svc-contact .contact-card-wrapper { max-width: 1280px; margin: -120px auto 0; padding: 0 40px; position: relative; z-index: 10; }
.svc-contact .contact-card { background: var(--white); border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); overflow: hidden; display: flex; min-height: 500px; }
.svc-contact .contact-info-side { width: 42%; background: var(--primary); position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); }
.svc-contact .contact-info-side::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1516387938699-a93567ec168e?w=800&fit=crop') no-repeat center; background-size: cover; opacity: 0.3; mix-blend-mode: multiply; }
.svc-contact .contact-info-content { position: relative; z-index: 1; }
.svc-contact .contact-info-side h3 { font-size: var(--text-xl); font-weight: 300; margin-bottom: 8px; color: var(--white); }
.svc-contact .info-subtitle { font-size: var(--text-base); opacity: 0.8; font-weight: 300; margin-bottom: 40px; }
.svc-contact .contact-details { display: flex; flex-direction: column; gap: 24px; }
.svc-contact .contact-detail-item { display: flex; align-items: center; gap: 16px; }
.svc-contact .contact-detail-icon { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-contact .contact-detail-item span { font-size: var(--text-md); font-weight: 300; }

/* Times New Roman override for service contact */
.svc-contact .contact-info-side h3,
.svc-contact .contact-info-side .info-subtitle,
.svc-contact .contact-info-side .contact-detail-item span {
    font-family: "Times New Roman", Times, serif;
    font-weight: 600;
}
.svc-contact .contact-info-side .contact-detail-item span.contact-phone {
    font-family: inherit;
    font-weight: 600;
}

.svc-contact .contact-socials { display: flex; gap: var(--space-3); margin-top: 40px; position: relative; z-index: 1; }
.svc-contact .social-link { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: all 0.3s; }
.svc-contact .social-link:hover { background: var(--white); color: var(--primary); }
.svc-contact .contact-form-side { width: 58%; padding: 48px; }
.svc-contact .contact-form { display: flex; flex-direction: column; gap: 24px; }
.svc-contact .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-contact .form-group { display: flex; flex-direction: column; gap: 8px; }
.svc-contact .form-group label { font-size: var(--text-base); font-weight: 300; color: var(--dark); }
.svc-contact .form-group input,
.svc-contact .form-group textarea { padding: 14px 18px; border: 1px solid var(--gray-200); border-radius: 10px; font-size: var(--text-md); font-family: inherit; transition: all 0.3s; font-weight: 300; }
.svc-contact .form-group input:focus,
.svc-contact .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.svc-contact .form-group input::placeholder,
.svc-contact .form-group textarea::placeholder { color: var(--gray-400); }
.svc-contact .form-group textarea { min-height: 120px; resize: none; }

/* Times New Roman override for form */
.svc-contact .contact-form-side,
.svc-contact .contact-form-side .form-group label,
.svc-contact .contact-form-side .form-group input,
.svc-contact .contact-form-side .form-group textarea,
.svc-contact .contact-form-side .checkbox-label,
.svc-contact .contact-form-side .form-submit {
    font-family: "Times New Roman", Times, serif;
    font-weight: 600;
}
.svc-contact .contact-form-side .form-group input::placeholder,
.svc-contact .contact-form-side .form-group textarea::placeholder {
    font-family: "Times New Roman", Times, serif;
    font-weight: 600;
}

.svc-contact .form-group label .required { color: #EF4444; font-weight: 600; }
.svc-contact .form-group label .optional { color: var(--gray-400); font-size: var(--text-xs); font-weight: 600; }

.svc-contact .service-checkboxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }

.svc-contact .checkbox-label {
    --accent-rgb: 79, 70, 229;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--dark);
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--gray-50) 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.25s ease;
    user-select: none;
}
.svc-contact .checkbox-label:hover { border-color: var(--gray-300); background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); transform: translateY(-1px); }
.svc-contact .checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.svc-contact .checkbox-label:has(input[type="checkbox"]:checked) { border-color: #ffbf00; background: #ffbf00; box-shadow: 0 8px 20px rgba(255, 191, 0, 0.28); color: #4a3600; }
.svc-contact .checkbox-label:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid rgba(255, 191, 0, 0.55);
    outline-offset: 2px;
}
.svc-contact .service-opt--marketing { --accent-rgb: 14, 165, 233; }
.svc-contact .service-opt--learning  { --accent-rgb: 16, 185, 129; }
.svc-contact .service-opt--product   { --accent-rgb: 249, 115, 22; }
.svc-contact .service-opt--other     { --accent-rgb: 139, 92, 246; }

.svc-contact .form-submit {
    width: 100%;
    padding: 16px 28px;
    min-height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: var(--text-md);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35), 0 2px 6px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
}
.svc-contact .form-submit:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45); background: linear-gradient(135deg, #5B54E8 0%, #4F9CF9 100%); }
.svc-contact .form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.svc-contact .form-submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.svc-contact .form-submit:active::before {
    width: 300px;
    height: 300px;
}
.svc-contact .form-submit.success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.svc-contact .form-submit.success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.svc-contact .form-group input::placeholder,
.svc-contact .form-group textarea::placeholder {
    color: var(--gray-400);
}

.stat-note { display: none; }
.stat-corner-deco lottie-player { width: 100%; height: 100%; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .expanding-grid {
        flex-direction: column;
        height: auto;
        gap: 14px;
        max-width: 420px;
        margin: 0 auto;
        padding: 0;
    }
    .expanding-card {
        min-height: 80px;
        height: auto;
        flex: none;
        border-radius: 18px;
        transition: min-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    }
    .expanding-card.active {
        flex: none;
        min-height: 320px;
        height: auto;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    }
    .card-title-vertical {
        position: static;
        transform: none;
        white-space: normal;
        writing-mode: horizontal-tb;
        padding: 24px 20px;
        opacity: 1;
    }
    .expanding-card.active .card-title-vertical { display: none; }
    .card-content-full { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; gap: 8px; max-height: 0; overflow: hidden; }
    .expanding-card.active .card-content-full { opacity: 1; transform: translateY(0); pointer-events: auto; max-height: 600px; }
    .card-inner { padding: 20px; }
    .card-icon-lg { width: 34px; height: 34px; border-radius: 8px; }
    .card-text { max-width: 100%; line-height: 1.5; }
    .card-tags { gap: var(--space-2); margin-top: 2px; }
    .pill-tag { font-size: 9px; padding: 3px 7px; gap: 3px; border-radius: 30px; }
    .pill-tag i { font-size: 7px; }
    .expanding-card:hover { flex: none; }
    .expanding-grid:hover .expanding-card:not(:hover) { flex: none; }

    .steps-container { flex-direction: column; align-items: center; gap: 60px; }
    .steps-container::before { display: none; }
    .projection-grid { grid-template-columns: 1fr; }

    .svc-contact .contact-card { flex-direction: column; }
    .svc-contact .contact-info-side { width: 100%; }
    .svc-contact .contact-form-side { width: 100%; }
}

@media (max-width: 900px) {
    .other-services-grid { grid-template-columns: 1fr; max-width: 480px; }
    .other-service-card { flex-direction: column; }
    .other-service-image { width: 100%; height: 200px; min-height: auto; }
    .other-service-content { padding: 24px; }
}

@media (max-width: 768px) {
    .svc-hero { height: 100dvh; max-height: 100dvh; overflow: hidden; padding-top: clamp(100px, 14vh, 120px); padding-bottom: clamp(48px, 6vh, 64px); padding-left: 24px; padding-right: 24px; background-attachment: scroll; align-items: center; }
    .svc-hero h1 { line-height: 1.2; text-align: center; }
    .svc-hero p { margin-bottom: 24px; max-width: 400px; text-align: center; }
    .hero-badge { padding: 6px 14px; margin-bottom: 16px; }
    .svc-hero .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }

    .hero-cta-group { flex-direction: row; gap: 10px; justify-content: center; flex-wrap: wrap; }
    .svc-btn-primary, .svc-btn-secondary { padding: 12px 24px; font-size: var(--text-sm); }

    .pillars { padding-top: 30px; padding-bottom: 30px; }
    .framework-section { padding-top: 30px; padding-bottom: 36px; }
    .projection { padding-top: 36px; padding-bottom: 30px; }
    .services-list-section { padding: 30px 0; }
    .other-services { padding-top: 30px; padding-bottom: 36px; }
    .cta-section { padding: 36px 0; }
    .svc-faq { padding-top: 30px; padding-bottom: 36px; }

    .svc-contact { margin-bottom: -60px; padding-top: 36px; }
    .svc-contact .contact-hero { padding-bottom: 80px; }
    .svc-contact .contact-card-wrapper { padding: 0 24px; margin-top: -60px; }
    .svc-contact .contact-card { flex-direction: column; }
    .svc-contact .contact-info-side { width: 100%; min-height: auto; padding: 32px 24px; text-align: center; }
    .svc-contact .contact-form-side { width: 100%; padding: 32px 24px; }
    .svc-contact .contact-details { align-items: center; }
    .svc-contact .contact-detail-item { justify-content: center; }
    .svc-contact .contact-socials { justify-content: center; }
    .svc-contact .form-row { grid-template-columns: 1fr; }
    .svc-contact .service-checkboxes { grid-template-columns: 1fr; gap: var(--space-2); }

    .section-title,
    .section-title .heading-prefix,
    .framework-header h2,
    .projection .section-title,
    .cta-content h2,
    .other-services .section-title,
    .svc-faq .faq-header h2 { font-size: 30px; }
}

@media (max-width: 480px) {
    .svc-hero { padding-top: clamp(88px, 13vh, 108px); padding-bottom: clamp(40px, 5vh, 56px); padding-left: 16px; padding-right: 16px; }
    .svc-hero h1 { font-size: var(--text-3xl); }
    .svc-hero p { font-size: var(--text-sm); margin-bottom: 20px; max-width: 320px; }
    .hero-badge { padding: 5px 12px; margin-bottom: 14px; }
    .svc-btn-primary, .svc-btn-secondary { padding: 11px 22px; font-size: var(--text-xs); }

    .expanding-grid { max-width: 100%; padding: 0 4px; gap: var(--space-3); }
    .expanding-card { min-height: 200px; border-radius: 14px; }
    .expanding-card:hover, .expanding-card.active { min-height: 270px; }
    .card-inner { padding: 18px; }
    .card-icon-lg { width: 30px; height: 30px; border-radius: 7px; }
    .pill-tag { font-size: 8px; padding: 2px 6px; }

    .pillars { padding-top: 20px; padding-bottom: 20px; }
    .framework-section { padding-top: 20px; padding-bottom: 24px; }
    .projection { padding-top: 24px; padding-bottom: 20px; }
    .services-list-section { padding: 20px 0; }
    .other-services { padding-top: 20px; padding-bottom: 24px; }
    .cta-section { padding: 24px 0; }
    .svc-contact { padding-top: 24px; }
    .svc-faq { padding-top: 20px; padding-bottom: 24px; }

    .svc-contact .contact-card-wrapper { padding: 0 20px; }
    .svc-contact .contact-info-side { padding: 28px 20px; }
    .svc-contact .contact-form-side { padding: 28px 20px; }

    .section-title,
    .section-title .heading-prefix,
    .framework-header h2,
    .projection .section-title,
    .cta-content h2,
    .other-services .section-title,
    .svc-faq .faq-header h2 { font-size: 26px; }
}

@media (max-width: 375px) {
    .svc-hero { padding-top: clamp(80px, 12vh, 100px); padding-bottom: clamp(36px, 5vh, 48px); padding-left: 14px; padding-right: 14px; }
    .svc-hero h1 { font-size: var(--text-2xl); letter-spacing: -0.5px; }
    .svc-hero p { font-size: var(--text-xs); margin-bottom: 18px; max-width: 280px; }
    .hero-badge { padding: 5px 10px; font-size: 0.5625rem; margin-bottom: 12px; }
    .svc-btn-primary, .svc-btn-secondary { padding: 10px 18px; font-size: var(--text-xs); }

    .pillars { padding-top: 16px; padding-bottom: 16px; }
    .framework-section { padding-top: 16px; padding-bottom: 20px; }
    .projection { padding-top: 20px; padding-bottom: 16px; }
    .services-list-section { padding: 16px 0; }
    .other-services { padding-top: 16px; padding-bottom: 20px; }
    .cta-section { padding: 20px 0; }
    .svc-contact { padding-top: 20px; }
    .svc-faq { padding-top: 16px; padding-bottom: 20px; }

    .svc-contact .contact-card-wrapper { padding: 0 16px; }
    .svc-contact .contact-info-side { padding: 24px 16px; }
    .svc-contact .contact-form-side { padding: 24px 16px; }

    .section-title,
    .section-title .heading-prefix,
    .framework-header h2,
    .projection .section-title,
    .cta-content h2,
    .other-services .section-title,
    .svc-faq .faq-header h2 { font-size: 22px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .svc-hero {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        overflow-y: visible;
        padding-top: clamp(58px, 14vh, 72px);
        padding-bottom: clamp(12px, 3vh, 20px);
        background-attachment: scroll;
    }
}
