/**
 * Landing Page Template Styles
 * Extracted from landing-page-template.php
 */

*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Archivo', system-ui, sans-serif; scroll-behavior: smooth; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero Particles ── */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(75, 192, 242, 0.15);
    pointer-events: none;
    animation: float-particle linear infinite;
}
@keyframes float-particle {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ── Shimmer Text ── */
.shimmer-text {
    background: linear-gradient(90deg, #00BFBD 0%, #E0F7FA 40%, #00BFBD 70%, #E0F7FA 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-wave 3s linear infinite;
}
@keyframes shimmer-wave {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Typewriter ── */
.typewriter-wrapper {
    position: absolute; top: 0; left: 0; bottom: 0;
    overflow: hidden; white-space: nowrap;
    border-right: 3px solid #00BFBD;
    animation: tw 8s steps(22, end) infinite;
}
@keyframes tw {
    0% { width: 0; }
    35% { width: 100%; }
    60% { width: 100%; }
    90% { width: 0; }
    100% { width: 0; }
}

/* ── Glow Pulse ── */
.glow-pulse {
    animation: glow 4s ease-in-out infinite;
}
@keyframes glow {
    0%, 100% { text-shadow: 0 0 8px rgba(75,192,242,.3), 0 0 16px rgba(75,192,242,.15); }
    50% { text-shadow: 0 0 16px rgba(75,192,242,.6), 0 0 32px rgba(75,192,242,.3); }
}

/* ── Testimonial Section: Override sky/sky-dark (2E9CCA) to 00BFBD ── */
.testimonial-section .text-sky { color: #00BFBD !important; }
.testimonial-section .bg-sky { background-color: #00BFBD !important; }
.testimonial-section .border-sky { border-color: #00BFBD !important; }
.testimonial-section .border-sky\/10 { border-color: rgba(0,191,189,0.1) !important; }
.testimonial-section .border-sky\/20 { border-color: rgba(0,191,189,0.2) !important; }
.testimonial-section button:hover.bg-sky,
.testimonial-section button:hover.border-sky,
.testimonial-section .hover\:bg-sky:hover { background-color: #00BFBD !important; border-color: #00BFBD !important; }
.testimonial-section .hover\:border-sky:hover { border-color: #00BFBD !important; }
.testimonial-section .hover\:text-sky:hover { color: #00BFBD !important; }
.testimonial-section .testi-card-icon,
.testimonial-section .case-modal-icon { background: linear-gradient(to bottom right, #00BFBD, #009a9a) !important; }
.testimonial-section .testi-card-icon.shadow-sky\/20,
.testimonial-section .case-modal-icon.shadow-sky\/20 { box-shadow: 0 10px 15px -3px rgba(0,191,189,0.2) !important; }
.testimonial-section .text-sky\/15 { color: rgba(0,191,189,0.15) !important; }
.testimonial-section .testi-card.center { box-shadow: 0 25px 60px -12px rgba(0,191,189,.25), 0 0 0 1px rgba(0,191,189,.1) !important; }
.testimonial-section .testi-card.center:hover { box-shadow: 0 25px 60px -12px rgba(0,191,189,.35), 0 0 0 2px rgba(0,191,189,.25) !important; }
.testimonial-section .testi-dot.active { background: #00BFBD !important; }

/* ── 3D Testimonial Carousel ── */
.testi-track {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    position: relative;
    height: 400px;
}
.testi-card {
    position: absolute;
    width: 100%;
    max-width: 560px;
    transition: all 0.7s cubic-bezier(.4,0,.2,1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    background: #fff;
    transform-style: preserve-3d;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.testi-card.center {
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 30;
    opacity: 1;
    box-shadow: 0 25px 60px -12px rgba(75,192,242,.25), 0 0 0 1px rgba(75,192,242,.1);
    filter: blur(0);
}
.testi-card.left {
    transform: translateX(-65%) scale(0.82) rotateY(8deg);
    z-index: 20;
    opacity: 0.5;
    filter: blur(3px);
}
.testi-card.right {
    transform: translateX(65%) scale(0.82) rotateY(-8deg);
    z-index: 20;
    opacity: 0.5;
    filter: blur(3px);
}
.testi-card.far-left {
    transform: translateX(-120%) scale(0.65) rotateY(12deg);
    z-index: 10;
    opacity: 0;
    filter: blur(6px);
}
.testi-card.far-right {
    transform: translateX(120%) scale(0.65) rotateY(-12deg);
    z-index: 10;
    opacity: 0;
    filter: blur(6px);
}
.testi-card.hidden-card {
    transform: translateX(0) scale(0.5);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    filter: blur(8px);
}

@media (max-width: 768px) {
    .testi-track { height: 380px; }
    .testi-card { max-width: 92%; padding: 1.75rem; }
    .testi-card.left { transform: translateX(-40%) scale(0.78) rotateY(5deg); }
    .testi-card.right { transform: translateX(40%) scale(0.78) rotateY(-5deg); }
    .testi-card.far-left, .testi-card.far-right { opacity: 0; }
}

/* ── Case Study Modal ── */
.case-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 35, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}
.case-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.case-modal {
    background: #fff;
    border-radius: 1.5rem;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    position: relative;
}
.case-modal-overlay.active .case-modal {
    transform: translateY(0) scale(1);
}
.case-modal::-webkit-scrollbar { width: 6px; }
.case-modal::-webkit-scrollbar-track { background: transparent; }
.case-modal::-webkit-scrollbar-thumb { background: #00BFBD; border-radius: 3px; }
.case-modal { scrollbar-color: #00BFBD transparent; }
.case-modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin: 1.25rem 1.25rem 0 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #0A0D23;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}
.case-modal-close:hover { background: #e2e8f0; }
.case-modal-panel { display: none; }
.case-modal-panel.active { display: block; }

.testi-card { cursor: pointer; }
.testi-card.center:hover {
    box-shadow: 0 25px 60px -12px rgba(75,192,242,.35), 0 0 0 2px rgba(75,192,242,.25);
}

/* ── Practice Areas Carousel (3 full cards on desktop, 1 on mobile, scroll 1 at a time, no cut) ── */
.practice-carousel-wrapper {
    position: relative;
    padding: 0 4rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    overflow-x: clip;
}
.practice-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0;
    width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.practice-carousel-track::-webkit-scrollbar { display: none; }
/* Desktop: exactly 3 cards visible, no partial cards (slight buffer to prevent right-edge cut) */
.practice-card {
    flex: 0 0 calc((100% - 3rem) / 3 - 1px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 1.5rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid rgba(0,191,189,.12);
    transition: all 0.5s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    box-shadow: 0 4px 24px rgba(10,13,35,.06);
}
.practice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,191,189,.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.practice-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0,191,189,.35);
    box-shadow: 0 24px 48px -12px rgba(0,191,189,.2), 0 0 0 1px rgba(0,191,189,.08);
}
.practice-card:hover::before { opacity: 1; }
.practice-card-featured {
    background: linear-gradient(145deg, #0A0D23 0%, #1A1F36 100%);
    border-color: rgba(0,191,189,.25);
}
.practice-card-featured::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,191,189,.15) 0%, transparent 70%);
    top: -80px;
    right: -80px;
    pointer-events: none;
}
.practice-card-featured:hover {
    border-color: rgba(0,191,189,.5);
    box-shadow: 0 28px 56px -12px rgba(0,191,189,.3);
}
.practice-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}
.practice-card:hover .practice-card-icon {
    transform: scale(1.1) rotate(-3deg);
}
.practice-card .practice-card-icon {
    background: linear-gradient(135deg, #00BFBD 0%, #009a9a 100%);
    border: 1px solid rgba(0,191,189,.2);
    color: #fff;
}
.practice-card .practice-card-icon img {
    filter: brightness(0) invert(1);
}
.practice-card-featured .practice-card-icon {
    background: linear-gradient(135deg, #00BFBD 0%, #009a9a 100%);
    border-color: rgba(0,191,189,.3);
    color: #fff;
}
.practice-card-featured .practice-card-icon img {
    filter: brightness(0) invert(1);
}
.practice-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0A0D23;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}
.practice-card-featured .practice-card-title { color: #fff; }
.practice-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,191,189,.2);
    color: #0A0D23;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.practice-nav-btn:hover {
    background: #00BFBD;
    color: #fff;
    border-color: #00BFBD;
    box-shadow: 0 8px 24px rgba(0,191,189,.35);
    transform: translateY(-50%) scale(1.05);
}
.practice-nav-btn.prev { left: 0; }
.practice-nav-btn.next { right: 0; }
.practice-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.practice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.practice-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #00BFBD;
}
@media (max-width: 768px) {
    .practice-carousel-wrapper { padding: 0 3rem; }
    .practice-card {
        flex: 0 0 100%;
        min-height: 180px;
        padding: 1.5rem;
    }
}

/* ── Categories Infinite Scroll ── */
.cat-scroll-track {
    display: flex;
    min-width: max-content;
    animation: cat-scroll 100s linear infinite;
}
@keyframes cat-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* ── Glass Card ── */
.glass-card {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.glass-card:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(75,192,242,.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(75,192,242,.15);
}

/* ── Gradient Border Card ── */
.gradient-border {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #4BC0F2, #0A0D23, #4BC0F2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gradient-border:hover::before { opacity: 1; }
.gradient-border:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -12px rgba(75,192,242,.15);
}

/* ── Dot Navigation ── */
.testi-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.testi-dot.active {
    background: #4BC0F2;
    width: 28px;
    border-radius: 5px;
}

/* ── Floating Badge ── */
.float-badge {
    animation: float-badge 3s ease-in-out infinite;
}
@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Number Counter ── */
.step-number {
    background: linear-gradient(135deg, #4BC0F2 0%, #0A0D23 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── CTA Glow ── */
.cta-glow {
    box-shadow: 0 0 60px 20px rgba(75,192,242,.15);
    animation: cta-pulse 3s ease-in-out infinite;
}
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 60px 20px rgba(75,192,242,.15); }
    50% { box-shadow: 0 0 80px 30px rgba(75,192,242,.25); }
}

/* ── How it Works Section (light grey bg, teal accents) ── */
.how-it-works-section {
    background-color: #F9F9F9;
}
.how-it-works-card {
    background: linear-gradient(115deg, #F9F9F900 60%, #00BFBD1A 100%);
    background-color: #F9F9F900;
    border-radius: 1.25rem;
    border: 1px solid rgba(0,0,0,.06);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.how-it-works-card:hover {
    border-color: rgba(0,191,189,.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,191,189,.15);
}
.how-it-works-card:hover .how-it-works-number-box {
    background-color: #00BFBD !important;
    box-shadow: 0 8px 24px rgba(0,191,189,.3);
}
.how-it-works-card:hover h3 {
    color: #00BFBD !important;
}
.how-it-works-number-box {
    background-color: #00BFBD;
    box-shadow: 0 4px 12px rgba(0,191,189,.2);
}

/* ── Professional Integrity Section (white cards, teal accents) ── */
.professional-integrity-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(0,0,0,.06);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.professional-integrity-card:hover {
    border-color: rgba(0,191,189,.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,191,189,.15);
}
.professional-integrity-card:hover .professional-integrity-title {
    color: #00BFBD !important;
}
.professional-integrity-icon {
    background-color: #00BFBD;
    border: 1px solid #00BFBD;
}
.professional-integrity-icon .professional-integrity-icon-text {
    color: #fff;
}
.professional-integrity-icon-img {
    filter: brightness(0) invert(1);
}
.professional-integrity-card:hover .professional-integrity-icon {
    background-color: #00BFBD;
    border-color: #00BFBD;
    box-shadow: 0 4px 12px rgba(0,191,189,.3);
}

/* ── Light section glass card ── */
.light-glass-card {
    background: rgba(10,13,35,.03);
    border: 1px solid rgba(10,13,35,.08);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.light-glass-card:hover {
    background: rgba(75,192,242,.05);
    border-color: rgba(75,192,242,.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(75,192,242,.12);
}
