/* v7.84 Ultra-Premium Design System (Apple/McKinsey Style) */
:root {
    --prem-bg: #FFFFFF;
    --prem-bg-alt: #F5F5F7;
    --prem-text: #1D1D1F;
    --prem-text-secondary: #86868B;
    --prem-accent: #000000;
    --prem-accent-blue: #0066CC;
    --prem-border: #D2D2D7;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'SF Pro Display', 'Inter', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--prem-bg);
    color: var(--prem-text);
    font-family: var(--font-main);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--prem-text);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.prem-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.prem-nav {
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    /* Slim global padding */
    transition: var(--transition);
}

.prem-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.prem-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--prem-text);
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.prem-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.08));
    transition: all 0.3s ease;
}

.prem-logo img:hover {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transform: translateY(-1px);
}

.prem-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.prem-menu a {
    color: var(--prem-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.prem-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--prem-text);
    transition: width 0.3s ease;
}

.prem-menu a:hover {
    color: var(--prem-text);
}

.prem-menu a:hover::after {
    width: 100%;
}

.prem-btn {
    background: var(--prem-text);
    color: #FFF;
    padding: 0.6rem 1.4rem;
    border-radius: 980px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--prem-text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.prem-btn:hover {
    background: #333;
    border-color: #333;
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prem-btn-outline {
    background: transparent;
    color: var(--prem-text);
    border: 1px solid var(--prem-border);
}

.prem-btn-outline:hover {
    background: var(--prem-bg-alt);
    border-color: var(--prem-text);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--prem-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 100px 20px 120px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-overlay a {
    font-size: 1.5rem;
    color: var(--prem-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
    color: var(--prem-accent-blue);
}

/* Hero Section */
.prem-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #FFF;
    text-align: center;
}

.prem-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
    transform: scale(1.05);
    transition: transform 10s ease;
}

.prem-hero-content {
    max-width: 900px;
    z-index: 1;
    padding-top: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.prem-hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #FFF;
    letter-spacing: -0.04em;
}

.prem-hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.prem-section {
    padding: 120px 0;
}

.prem-section-alt {
    background-color: var(--prem-bg-alt);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--prem-text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Grid Layouts */
.prem-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

/* Cards */
.prem-card {
    background: #FFF;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.prem-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.05);
    will-change: transform;
}

.prem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.prem-card p {
    color: var(--prem-text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.prem-icon-svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--prem-text);
    transition: transform 0.4s ease;
}

.prem-card:hover .prem-icon-svg {
    transform: scale(1.1);
    color: var(--prem-accent-blue);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--prem-text);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.feature-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

.check-icon {
    color: var(--prem-accent-blue);
    width: 20px;
    height: 20px;
}

/* Team Profile Styles */
.team-profile-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.team-profile-image {
    flex-shrink: 0;
}

.team-profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid var(--prem-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .team-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Footer */
.prem-footer {
    background: var(--prem-bg-alt);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--prem-border);
}

.prem-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.prem-footer h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--prem-text-secondary);
    margin-bottom: 1.5rem;
}

.prem-footer a {
    display: block;
    color: var(--prem-text);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.prem-footer a:hover {
    color: var(--prem-accent-blue);
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .prem-hero h1 {
        font-size: 3.5rem;
    }

    .prem-grid-3,
    .prem-grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .prem-hero-content h1 {
        font-size: 2.8rem;
    }

    /* Fix for mobile address bar jump */
    .prem-hero {
        height: 60vh !important;
        /* Fallback */
        height: 60svh !important;
        /* Stable mobile height */
        min-height: 400px;
    }

    .prem-nav-inner {
        flex-wrap: wrap;
    }

    .prem-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

@media (max-width: 768px) {

    /* Show Book Consultation button on mobile with smaller size */
    .prem-nav-inner .prem-btn {
        display: inline-block;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-right: 0.75rem;
        white-space: nowrap;
    }

    .prem-hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .prem-hero-content h1 {
        font-size: 2.1rem;
        /* Smaller for very narrow screens */
        margin-bottom: 0.75rem;
    }

    .prem-hero p {
        font-size: 1.1rem;
    }
}

/* Global Navbar Adaptive Overrides */
@media (min-width: 1024px) {
    .prem-menu {
        gap: 1rem;
    }

    .prem-menu a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .prem-nav-inner {
        gap: 0.5rem;
    }

    .prem-nav-inner .prem-btn {
        display: inline-flex;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .prem-nav {
        /* Enforce slim padding on mobile if overridden */
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

    .prem-logo img {
        height: 32px;
    }
}

/* ========================================
   v7.71 RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Mobile Hero Button Stacking (Below 768px) */
@media (max-width: 768px) {

    /* Stack hero CTA buttons vertically on mobile */
    .hero-cta-group {
        flex-direction: column !important;
        gap: 2.5rem !important;
        align-items: center !important;
    }


    /* Ensure buttons have proper touch targets but aren't too bulky */
    .prem-hero-content .prem-btn,
    .prem-hero button.prem-btn {
        width: auto !important;
        min-width: 200px !important;
        /* Remove min-width constraint */
        min-height: auto !important;
        height: auto !important;
        justify-content: center !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        /* Allow text wrapping */
        text-align: center !important;
        line-height: 1.3 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Pricing page billing toggle buttons */
    #pricing-table-container .flex.flex-col.sm\\:flex-row,
    div[class*="flex"][class*="gap"]>button.prem-btn {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Ensure pricing toggle buttons stack */
    button[onclick*="setBilling"] {
        width: 100% !important;
        min-height: 44px !important;
    }
}

/* Tablet Pricing Cards Layout (768px) */
@media (max-width: 768px) {

    /* Stack pricing cards vertically on tablet */
    .grid.md\\:grid-cols-3,
    div[class*="grid"][class*="md:grid-cols-3"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Remove scale effect from "Most Popular" card on tablet */
    .md\\:scale-105 {
        transform: scale(1) !important;
    }

    /* Ensure adequate padding in pricing cards */
    .grid.md\\:grid-cols-3>div {
        padding: 2rem !important;
    }
}

/* Responsive Footer Layout (Tablet & Mobile) */
@media (max-width: 768px) {
    .prem-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .prem-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1rem !important;
        font-size: 0.9rem;
    }

    .prem-footer h4 {
        font-size: 0.85rem;
    }

    .prem-footer a {
        font-size: 0.88rem;
    }
}

/* ========================================
   v7.72 TYPOGRAPHY & SPACING OPTIMIZATION
   ======================================== */

/* Fluid Typography for Hero Sections */
.prem-hero h1 {
    font-size: clamp(2rem, 5vw + 0.5rem, 4.5rem) !important;
    line-height: 1.1 !important;
    padding: 0 clamp(0.5rem, 3vw, 2rem) !important;
}

.prem-hero p {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem) !important;
    padding: 0 clamp(1rem, 3vw, 2rem) !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Section Titles */
.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
}

.eyebrow {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem) !important;
}

/* Global Vertical Spacing Reduction (20-25%) */
.prem-section {
    padding: 90px 0 !important;
    /* Reduced from 120px */
}

.section-header {
    margin-bottom: 3rem !important;
    /* Reduced from 4rem */
}

.prem-hero-content {
    padding-top: 45px !important;
    /* Reduced from 60px */
}

.prem-hero p {
    margin-bottom: 2rem !important;
    /* Reduced from 2.5rem */
}

.prem-footer {
    padding: 4.5rem 0 1.5rem !important;
    /* Reduced from 6rem 0 2rem */
}

.prem-footer-grid {
    margin-bottom: 3rem !important;
    /* Reduced from 4rem */
}

/* Mobile-Specific Text Edge Fixes */
@media (max-width: 480px) {

    /* Prevent text from touching screen edges */
    .prem-hero-content {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Ensure minimum padding on all sections */
    .prem-container {
        padding: 0 1.5rem !important;
    }

    /* Specific fix for pricing page hero text */
    .prem-hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
        padding: 0 1rem !important;
    }

    /* Reduce section spacing on mobile */
    .prem-section {
        padding: 60px 0 !important;
    }

    /* Tighter grid gaps on mobile */
    .prem-grid-3,
    .prem-grid-2 {
        gap: 2rem !important;
    }

    /* Card padding optimization */
    .prem-card {
        padding: 2rem !important;
    }
}

/* Tablet-Specific Optimizations */
@media (max-width: 768px) and (min-width: 481px) {

    /* Moderate spacing reduction for tablet */
    .prem-section {
        padding: 80px 0 !important;
    }

    /* Hero title sizing for tablet */
    .prem-hero h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    }

    /* Grid gap optimization */
    .prem-grid-3,
    .prem-grid-2 {
        gap: 2.5rem !important;
    }
}

/* Desktop Spacing Refinements */
@media (min-width: 1024px) {

    /* Testimonial card horizontal gaps */
    .testimonial-grid {
        gap: 2rem !important;
    }

    /* Case studies grid */
    .case-studies-grid {
        gap: 1.5rem !important;
    }

    /* Featured insight spacing */
    .featured-insight {
        gap: 2rem !important;
    }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20bd5a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}