/*
 * MY SOFYA - PREMIUM SINGLE-PAGE HERO STYLESHEET (HEBREW RTL)
 * Vibe: Soothing, premium, transparent navigation, glassmorphic modal popup.
 */

/* ==========================================================================
   0. FONTS, VARIABLES & RESETS
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #514a08;          /* Deep Trust Blue */
    --color-primary-dark: #171504;     /* Dark Navy */
    --color-accent: #514a08;           /* Sky Blue (Compassion) */
    --color-accent-hover: #171504;     /* Darker Sky Blue */
    --color-accent-light: #ddd8ba;     /* Light Sky Blue tint */
    
    --color-bg-white: #ede8cc;
    --color-bg-light: #ddd8ba;         /* Light Grey for input background */
    --color-bg-card: #FFFFFF;
    
    --color-text-dark: #171504;        /* Slate Dark */
    --color-text-muted: #5b5c57;       /* Slate Grey */
    --color-text-light: #ede8cc;       /* Slate Light */
    
    --color-border: rgba(23, 21, 4, 0.08);
    
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;
    
    /* Typography */
    --font-primary: 'Google Sans', 'Google Sans Hebrew', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-md: 0 10px 30px rgba(23, 21, 4, 0.06);
    --shadow-lg: 0 20px 45px rgba(23, 21, 4, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Google Sans', 'Google Sans Hebrew', sans-serif !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body {
    direction: rtl;
    overflow-x: clip;
    background-color: var(--color-text-dark);
    font-family: var(--font-primary);
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #FFFFFF;
    padding: 12px 24px;
    z-index: 99999;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Base Container */
.max-width-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography styles */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
h2, h3, h4, h5, h6 {
    color: #151611;
    text-wrap: balance;
}

p {
    line-height: 1.75;
    color: #5b5c57;
}

a, button {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* RTL Phone Number Safety Container */
.ltr-dir {
    direction: ltr;
    display: inline-block;
}

/* Hidden Utility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   1. BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(81, 74, 8, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 74, 8, 0.35);
}

.btn-accent {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-accent:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ==========================================================================
   2. HEADER (TRANSPARENT WITH RIGHT LOGO, LEFT CTA)
   ========================================================================== */
.main-header {
    position: fixed; /* Sticky on scroll */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    background: transparent;
    border: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

/* Scrolled sticky state background blur & styling */
.main-header.scrolled {
    height: 70px;
    background-color: rgba(23, 21, 4, 0.92); /* Matching palette olive black with transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(23, 21, 4, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.main-header.scrolled .logo-icon,
.main-header.scrolled .logo-bold {
    color: #FFFFFF;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 0 48px;
}

/* Right Side: Logo & Menu links aligned to the right */
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Brand Logo (White theme) */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
}

.logo-icon {
    width: 26px;
    height: 26px;
    color: var(--color-accent);
    transition: var(--transition-smooth);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.logo-bold {
    font-weight: 700;
    color: var(--color-accent);
    transition: var(--transition-smooth);
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 18px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 6px 0;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF;
}

.nav-dot {
    margin-inline-end: 6px;
    color: #FFFFFF;
    font-weight: 800;
}

/* Left Side: White Capsule CTA Button (Medina Design Vibe) */
.header-left {
    display: block;
}

.header-cta-pill {
    background-color: #FFFFFF;
    color: #151611 !important;
    border: 1px solid rgba(81, 74, 8, 0.18);
    border-radius: var(--radius-full);
    padding: 6px;
    padding-inline-start: 22px;
    padding-inline-end: 6px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(23, 21, 4, 0.04);
}

.header-cta-pill:hover {
    background-color: #fcfbf7;
    border-color: rgba(81, 74, 8, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 21, 4, 0.08);
}

.cta-arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #514a08;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.header-cta-pill:hover .cta-arrow-circle {
    background-color: #171504;
}

/* Hamburger for Mobile (with white lines for dark theme) */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #FFFFFF; /* High contrast white */
    position: absolute;
    transition: var(--transition-smooth);
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 8px; }
.hamburger-line:nth-child(3) { bottom: 0; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 8px;
}

/* Mobile Nav Menu Overlay */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(23, 21, 4, 0.98); /* Matching background theme */
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-nav-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-nav-link {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.mobile-nav-link:hover {
    color: var(--color-accent);
}

.mobile-btn-link {
    display: inline-block;
    font-size: 1.15rem;
    margin-top: 16px;
    padding: 12px 36px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    border: none;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   3. HERO SECTION (VIDEO BACKGROUND & LEFT ALIGNED TEXT)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-text-dark);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 21, 4, 0.38); /* Slight opacity dark tint on top of video */
    z-index: 2;
    pointer-events: none;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.hero-video-overlay {
    display: none !important;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 720px;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

.social-proof-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-inline-end: -8px;
    object-fit: cover;
}

.avatar-img:last-child {
    margin-inline-end: 0;
}

.social-proof-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    padding: 6px 14px;
    background-color: rgba(81, 74, 8, 0.15);
    border-radius: var(--radius-full);
    border: 1px solid rgba(81, 74, 8, 0.25);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #FFFFFF !important;
}

.hero-cta-wrapper {
    display: flex;
    margin-top: 12px;
}

.hero-btn-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

#hero-primary-btn {
    padding: 12px;
    padding-inline-start: 32px;
    padding-inline-end: 12px;
    font-size: 1.2rem;
}

.hero-cta-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    padding-bottom: 24px; /* Space for absolute marquee below */
}

.hero-marquee-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    direction: ltr; /* Predictable scrolling flow */
    -webkit-mask-image: linear-gradient(to right, transparent, #fff 15%, #fff 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #fff 15%, #fff 85%, transparent);
}

.hero-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 18s linear infinite;
}

.hero-marquee-list {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-inline-end: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ==========================================================================
   4. MODAL POPUP FORM (GLASSMORPHIC BOX)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(23, 21, 4, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 540px;
    width: calc(100% - 32px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

/* Close button positioned top-left for RTL layout */
.modal-close-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--color-text-dark);
    background-color: rgba(23, 21, 4, 0.06);
    transform: rotate(90deg);
}

.close-icon-svg {
    width: 14px;
    height: 14px;
}

.form-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.form-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    max-width: 360px;
}

/* Form Styles */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group-row {
    display: flex;
    gap: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    transition: var(--transition-fast);
}

.form-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.65;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(81, 74, 8, 0.08);
}

.form-input.invalid-field {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.02);
}

.error-msg {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
    display: none;
    margin-top: 2px;
    padding-right: 4px;
}

/* Checkbox Alignment */
.checkbox-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 6px;
    cursor: pointer;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    accent-color: var(--color-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

/* Submit Action Button */
.cta-btn-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 22px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-top: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(81, 74, 8, 0.2);
}

.cta-btn-submit:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(81, 74, 8, 0.3);
}

.submit-arrow-circle {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.cta-btn-submit:hover .submit-arrow-circle {
    background-color: #FFFFFF;
    color: var(--color-accent);
}

/* Modal Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.form-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 320px;
    padding: 24px;
}

.success-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.1);
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon-badge svg {
    width: 28px;
    height: 28px;
}

.success-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.success-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ==========================================================================
   5. FLOATING WIDGETS (CONVERSION & COMPLIANCE)
   ========================================================================== */

/* Failsafe SVG Fills */
.header-whatsapp-icon,
.header-whatsapp-icon path,
.desktop-whatsapp-float svg,
.desktop-whatsapp-float svg path,
.mobile-action-bar svg[fill="currentColor"],
.mobile-action-bar svg[fill="currentColor"] path {
    fill: currentColor !important;
    stroke: none !important;
}

/* Desktop-only WhatsApp circular link bubble */
.desktop-whatsapp-float {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}

.desktop-whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.desktop-whatsapp-float::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(37, 211, 102, 0.5);
    animation: whatsappRipple 2s infinite ease-out;
    pointer-events: none;
}

@keyframes whatsappRipple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

@media (max-width: 768px) {
    .desktop-whatsapp-float {
        display: none !important;
    }
}

/* Mobile actions dock */
.mobile-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate3d(-50%, 40px, 0); /* Default: shifted down offscreen */
    opacity: 0;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 320px;
    height: 64px;
    border-radius: 32px;
    background-color: rgba(23, 21, 4, 0.85); /* Dark background blur */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none; /* Hidden on desktop */
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-action-bar.reveal {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0); /* Slides up & fades in */
}

.mobile-action-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 16px;
}

.action-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-fast);
}

.action-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.action-icon {
    width: 20px;
    height: 20px;
}

.action-item.highlight {
    background-color: var(--color-accent);
    color: #FFFFFF;
}

.action-item.highlight:hover {
    background-color: var(--color-accent-hover);
}
@media (max-width: 768px) {
    .mobile-action-bar {
        display: block; /* Visible ONLY on mobile/tablet viewports */
    }
    
    body {
        padding-bottom: 100px !important;
    }
}
/* ==========================================================================
   2b. THE FIRST HOURS & FUNERAL PREPARATION SECTION
   ========================================================================== */
.preparation-section {
    background-color: #FFFFFF;
    padding: 100px 0;
    color: var(--color-text-dark);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    gap: 48px;
}

.section-title-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 650px;
}

.section-badge {
    border: 1px solid rgba(23, 21, 4, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    width: fit-content;
}

.section-heading {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.25;
}

.section-desc-block {
    max-width: 450px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 12px 4px 24px 4px; /* Space for box-shadow & scale translateY */
    margin-inline-start: -4px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-track .card {
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    flex-shrink: 0;
}

.carousel-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-start;
}

.mobile-only-nav {
    display: none !important; /* Hidden on desktop */
}

.carousel-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(23, 21, 4, 0.08);
    background-color: #FFFFFF;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(23, 21, 4, 0.04);
}

.carousel-nav-btn:hover {
    background-color: var(--color-text-dark);
    color: #FFFFFF;
    border-color: var(--color-text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.carousel-nav-btn svg {
    width: 20px;
    height: 20px;
}

.card {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(23, 21, 4, 0.08);
    background-color: #FFFFFF;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(23, 21, 4, 0.01);
}

.card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(81, 74, 8, 0.88) 0%, rgba(23, 21, 4, 0.96) 100%);
    z-index: 2;
    opacity: 0;
    transition: var(--transition-smooth);
}

.card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.35;
    transition: color 0.3s ease;
}

.card-explore-pill {
    border: 1px solid rgba(23, 21, 4, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.card-divider {
    margin: 24px 0;
    border-top: 1px solid rgba(23, 21, 4, 0.06);
    transition: border-color 0.3s ease;
}

.card-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
    transition: color 0.3s ease;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-text-dark);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.card-svg-icon {
    width: 20px;
    height: 20px;
}

.card-stat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
}

.card-stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-dark);
    transition: color 0.3s ease;
}

.card-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    margin-top: 2px;
}

/* Card Hover & Active-Hover Default States */
.card:hover,
.card.active-hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card:hover .card-bg-image,
.card:hover .card-overlay,
.card.active-hover .card-bg-image,
.card.active-hover .card-overlay {
    opacity: 1;
}

.card:hover .card-title,
.card:hover .card-desc,
.card:hover .card-stat-num,
.card:hover .card-stat-label,
.card.active-hover .card-title,
.card.active-hover .card-desc,
.card.active-hover .card-stat-num,
.card.active-hover .card-stat-label {
    color: #FFFFFF !important;
}

.card:hover .card-explore-pill,
.card.active-hover .card-explore-pill {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

.card:hover .card-divider,
.card.active-hover .card-divider {
    border-color: rgba(255, 255, 255, 0.15);
}

.card:hover .card-icon-circle,
.card.active-hover .card-icon-circle {
    background-color: #FFFFFF;
    color: var(--color-accent);
}

/* Responsive Overrides for Carousel */
@media (max-width: 1024px) {
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 48px;
    }
    
    .section-desc-block {
        max-width: 100%;
    }
    
    .carousel-track .card {
        flex: 0 0 calc((100% - 24px) / 2);
        width: calc((100% - 24px) / 2);
    }
    
    .desktop-only-nav {
        display: none !important; /* Hide desktop nav at top in tablet/mobile */
    }
    
    .mobile-only-nav {
        display: flex !important; /* Show mobile centered nav below cards */
        justify-content: center;
        margin-top: 32px;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .preparation-section {
        padding: 60px 0;
    }
    
    .section-heading {
        font-size: 2.2rem;
    }
    
    .carousel-track .card {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .card {
        padding: 28px;
        min-height: auto;
    }
}

/* ==========================================================================
   6. VIEWPORT RESPONSIVENESS & BREAKPOINTS
   ========================================================================== */

/* Large screens and Laptops (1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .header-container {
        padding: 0 32px;
    }
    
    .header-right {
        gap: 32px;
    }
}

/* Navigation collapse at 1120px */
@media (max-width: 1120px) {
    .desktop-nav,
    .header-left {
        display: none !important;
    }
    
    .mobile-nav-toggle {
        display: block !important;
    }
}

/* Tablets and Mobile (768px) */
@media (max-width: 768px) {
    .main-header {
        height: 80px;
    }
    
    .header-container {
        padding: 0 24px;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: right;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .modal-card {
        padding: 32px 24px;
    }
    
    .form-group-row {
        flex-direction: column;
        gap: 14px;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    #hero-primary-btn {
        font-size: 1rem;
        padding-inline-start: 24px;
        padding-inline-end: 8px;
    }
    
    .hero-btn-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .hero-btn-group button {
        width: 100%;
    }
    
    .hero-badge {
        align-self: center;
    }
}

/* ==========================================================================
   2c. PLATFORM PREVIEW & CLIENTS MARQUEE SECTION
   ========================================================================== */
.platform-section {
    background-color: #FFFFFF;
    padding: 0 0 100px 0; /* Flows directly from the white preparation section */
    color: var(--color-text-dark);
    position: relative;
}

/* Mockup Image Wrapper */
.mockup-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 80px auto;
}

.mockup-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(23, 21, 4, 0.1);
    border: 1px solid rgba(23, 21, 4, 0.08);
    background-color: #ddd8ba;
    transition: var(--transition-smooth);
}

.mockup-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(23, 21, 4, 0.15);
    border-color: rgba(23, 21, 4, 0.15);
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Clients Title */
.clients-title {
    text-align: center;
    margin-bottom: 32px;
}

.clients-title span {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* Clients Logo Marquee */
.clients-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    direction: ltr; /* Smooth direction scroll flow */
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #fff 15%, #fff 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #fff 15%, #fff 85%, transparent);
}

.clients-marquee-track {
    display: flex;
    width: max-content;
    animation: clients-marquee-scroll 40s linear infinite;
}

.clients-marquee-list {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-inline-end: 64px;
}

.client-logo-img {
    height: 48px; /* Fixed height for consistency */
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.client-logo-img:hover {
    transform: scale(1.05);
}

@keyframes clients-marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .mockup-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .platform-section {
        padding: 0 0 60px 0;
    }
    .mockup-container {
        margin-bottom: 60px;
    }
    .client-logo-img {
        height: 38px;
        max-width: 120px;
    }
    .clients-marquee-list {
        gap: 48px;
        padding-inline-end: 48px;
    }
}

/* ==========================================================================
   2d. SHIVA ZIG-ZAG SECTIONS
   ========================================================================== */
.shiva-section {
    background-color: #FFFFFF;
    padding: 100px 0;
    color: var(--color-text-dark);
    position: relative;
}

/* Centered Main Header above the Shiva sections */
.shiva-main-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.shiva-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.25;
}

.shiva-main-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.shiva-section.light-bg {
    background-color: #ddd8ba; /* Alternating light background color */
}

/* Dark theme variations for shiva-section (e.g. bureaucracy sections) */
.shiva-section.dark-bg {
    background-color: #171504;
    color: #FFFFFF;
}

.shiva-section.dark-bg .shiva-main-title,
.shiva-section.dark-bg .shiva-heading,
.shiva-section.dark-bg .shiva-step-title {
    color: #FFFFFF;
}

.shiva-section.dark-bg .shiva-main-subtitle,
.shiva-section.dark-bg .shiva-description,
.shiva-section.dark-bg .shiva-step-desc {
    color: rgba(255, 255, 255, 0.7);
}

.shiva-section.dark-bg .shiva-step-number {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
}

.shiva-section.dark-bg .shiva-step-item:hover .shiva-step-number {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(81, 74, 8, 0.1);
}

.shiva-section.dark-bg .shiva-img-frame {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.08);
    background-color: #2c280f;
}

.shiva-section.dark-bg .shiva-img-frame:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.shiva-split {
    display: flex;
    gap: 80px;
    align-items: center;
}

.shiva-split.reversed {
    flex-direction: row-reverse;
}

.shiva-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 24px;
}

.shiva-image-col {
    flex: 1;
    width: 100%;
}

.shiva-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.25;
}

.shiva-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

/* Blue Capsule Button - matching reference image */
.shiva-cta-btn {
    background-color: #FFFFFF;
    color: #151611 !important;
    border: 1px solid rgba(81, 74, 8, 0.18);
    border-radius: var(--radius-full);
    padding: 6px;
    padding-inline-start: 22px;
    padding-inline-end: 6px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(23, 21, 4, 0.04);
}

.shiva-cta-btn:hover {
    background-color: #fcfbf7;
    border-color: rgba(81, 74, 8, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 21, 4, 0.08);
}

.shiva-cta-arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #514a08;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.shiva-cta-btn:hover .shiva-cta-arrow-circle {
    background-color: #171504;
    color: #FFFFFF;
}

/* Steps list */
.shiva-steps-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    margin-bottom: 12px;
}

.shiva-step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.shiva-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px dashed rgba(23, 21, 4, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.shiva-step-item:hover .shiva-step-number {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(81, 74, 8, 0.03);
}

.shiva-step-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shiva-step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.shiva-step-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.shiva-btn-wrapper {
    margin-top: 12px;
}

/* Image frame */
.shiva-img-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(23, 21, 4, 0.08);
    border: 1px solid rgba(23, 21, 4, 0.05);
    background-color: #ddd8ba;
    transition: var(--transition-smooth);
    aspect-ratio: 3 / 4; /* Portrait taller aspect ratio */
}

.shiva-img-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(23, 21, 4, 0.12);
}

.shiva-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .shiva-split {
        gap: 48px;
    }
    .shiva-heading {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .shiva-section {
        padding: 60px 0;
    }
    .shiva-main-header {
        margin-bottom: 48px;
    }
    .shiva-main-title {
        font-size: 2.2rem;
    }
    .shiva-main-subtitle {
        font-size: 1rem;
    }
    .shiva-split,
    .shiva-split.reversed {
        flex-direction: column; /* Stack image below text */
        gap: 40px;
    }
    .shiva-split.reversed .shiva-text-col {
        order: 0;
    }
    .shiva-split.reversed .shiva-image-col {
        order: 1;
    }
    .shiva-heading {
        font-size: 1.85rem;
    }
    .shiva-img-frame {
        aspect-ratio: 4 / 3; /* Taller layout on mobile screens */
    }
}

/* ==========================================================================
   2e. TOMBSTONE CONTRACTOR GUIDE SECTION (WHITE BG, THREE CARDS)
   ========================================================================== */
.tombstone-section {
    background-color: #FFFFFF;
    padding: 100px 0;
    color: var(--color-text-dark);
    position: relative;
}

.tombstone-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 240px; /* Space for sticky cards to stack and linger */
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.tombstone-card {
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    border: 1px solid rgba(81, 74, 8, 0.15);
    background-color: var(--color-bg-white); /* Cream background matching attached mockup */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(23, 21, 4, 0.03);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 720px;
    min-height: 260px;
    position: sticky;
}

/* Sticky Card Stack Rotation & Offset Layout */
.tombstone-card:nth-child(1) {
    top: 140px;
    z-index: 10;
    transform: rotate(-1.5deg);
}

.tombstone-card:nth-child(2) {
    top: 170px;
    z-index: 11;
    transform: rotate(1.2deg);
}

.tombstone-card:nth-child(3) {
    top: 200px;
    z-index: 12;
    transform: rotate(-0.8deg);
}

/* Smooth Straightening on Card Hover */
.tombstone-card:nth-child(1):hover,
.tombstone-card:nth-child(2):hover,
.tombstone-card:nth-child(3):hover {
    transform: translateY(-8px) rotate(0deg) scale(1.02);
    z-index: 15;
}

/* Background gradient overlay for hover state */
.tombstone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(81, 74, 8, 0.96) 0%, rgba(23, 21, 4, 0.98) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.tombstone-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.tombstone-card:hover::before {
    opacity: 1;
}

/* Badge wrapper and pill */
.tombstone-badge-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 28px;
}

.tombstone-badge {
    background-color: #FFFFFF;
    border-radius: var(--radius-full);
    padding: 6px;
    padding-inline-start: 8px;
    padding-inline-end: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(23, 21, 4, 0.04);
    border: 1px solid rgba(23, 21, 4, 0.08);
    transition: var(--transition-smooth);
}

/* Badge circle icon styles */
.tombstone-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-text-dark);
    color: #FFFFFF;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.tombstone-badge-icon svg {
    width: 14px;
    height: 14px;
}

.tombstone-badge-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
}

.tombstone-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 14px;
    transition: var(--transition-smooth);
}

.tombstone-card-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    transition: var(--transition-smooth);
}

.tombstone-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Hover state overrides for content inside the card */
.tombstone-card:hover .tombstone-card-title,
.tombstone-card:hover .tombstone-card-desc,
.tombstone-card:hover .tombstone-badge-text {
    color: #FFFFFF !important;
}

.tombstone-card:hover .tombstone-badge {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.tombstone-card:hover .tombstone-badge-icon {
    background-color: #FFFFFF;
    color: var(--color-accent);
}

/* Responsive details */
@media (max-width: 1024px) {
    .tombstone-grid {
        gap: 24px;
    }
    .tombstone-card {
        padding: 32px 28px;
    }
}

@media (max-width: 768px) {
    .tombstone-section {
        padding: 60px 0;
    }
    .tombstone-grid {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 40px;
        padding-bottom: 0;
    }
    .tombstone-card {
        position: static;
        transform: none !important;
        padding: 32px;
    }
}

/* ==========================================================================
   2f. EXPERT CONSULTATION & SOCIAL PROOF SECTIONS (WHITE BG)
   ========================================================================== */
.expert-section {
    background-color: #FFFFFF;
    padding: 100px 0;
    color: var(--color-text-dark);
    position: relative;
}

.expert-split {
    display: flex;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.expert-text-col {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 24px;
}

.expert-cards-col {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.expert-heading {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.25;
}

.expert-avatars {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 8px;
}

.expert-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    margin-inline-end: -10px;
    object-fit: cover;
}

.expert-avatar-img:last-child {
    margin-inline-end: 0;
}

.expert-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.expert-btn-wrapper {
    margin-top: 8px;
}

/* White/Olive B2B Capsule CTA button (matches shiva-cta-btn style) */
.btn-book-call {
    background-color: #FFFFFF;
    color: #151611 !important;
    border: 1px solid rgba(81, 74, 8, 0.18);
    border-radius: var(--radius-full);
    padding: 6px;
    padding-inline-start: 22px;
    padding-inline-end: 6px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(23, 21, 4, 0.04);
}

.btn-book-call:hover {
    background-color: #fcfbf7;
    border-color: rgba(81, 74, 8, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 21, 4, 0.08);
}

.book-arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #514a08;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-book-call:hover .book-arrow-circle {
    background-color: #171504;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Contact Cards (WhatsApp and Phone) */
.expert-contact-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(23, 21, 4, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(23, 21, 4, 0.01);
    cursor: pointer;
}

.expert-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    padding-inline-end: 16px;
}

.expert-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expert-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.expert-card-icon.whatsapp-accent {
    background-color: #25D366;
}

.expert-card-icon.phone-accent {
    background-color: var(--color-accent);
}

.expert-card-icon svg {
    width: 18px;
    height: 18px;
}

.expert-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.expert-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.expert-card-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.expert-card-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Hover effects for contact cards */
.expert-contact-card:hover {
    transform: translateX(-6px); /* Shifts slightly left in RTL */
    border-color: rgba(23, 21, 4, 0.15);
    box-shadow: var(--shadow-md);
}

.expert-contact-card:hover .expert-card-arrow {
    background-color: var(--color-text-dark);
    color: #FFFFFF;
}

.expert-contact-card:hover .expert-card-arrow svg {
    transform: translate(-2px, -2px); /* Moves top-left in RTL */
}

/* Static Social Proof Row (Title on right, 3x2 logo grid on left in RTL) */
.static-proof-container {
    border-top: 1px solid rgba(23, 21, 4, 0.08);
    padding-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    width: 100%;
}

.static-proof-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-dark);
    max-width: 320px;
    line-height: 1.55;
    text-align: right;
}

.static-clients-row {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 48px;
    justify-items: center;
    align-items: center;
    max-width: 650px;
}

.static-client-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.45);
    transition: var(--transition-smooth);
}

.static-client-logo:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

/* ==========================================================================
   2g. FLOATING DARK FOOTER CARD (CONTACT FORM + BRAND LINKS)
   ========================================================================== */
.floating-dark-footer-section {
    background-color: #FFFFFF; /* Placed inside white container */
    padding: 0 0 100px 0; /* Flows seamlessly from experts section */
    position: relative;
}

.floating-dark-footer {
    background-color: #171504; /* Matches bureaucracy section background */
    border-radius: var(--radius-xl);
    padding: 64px 64px 48px 64px;
    box-shadow: var(--shadow-lg);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Top Half: Centered Contact Form */
.footer-form-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: center;
}

.footer-form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
}

.footer-form-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.3;
    color: #FFFFFF !important;
}

.footer-form-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    line-height: 1.6;
    margin: 0 auto;
}

.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.footer-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.footer-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    position: relative;
}

.footer-form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-family: inherit;
    transition: var(--transition-fast);
}

.footer-form-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.footer-form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(81, 74, 8, 0.15);
}

.footer-form-input.invalid-field {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

/* Submit Button in Footer Form (Centered) */
.footer-submit-btn {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 6px;
    padding-inline-start: 24px;
    padding-inline-end: 6px;
    background-color: #FFFFFF;
    color: #151611 !important;
    border: 1px solid rgba(81, 74, 8, 0.18);
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(23, 21, 4, 0.04);
}

.footer-submit-btn:hover {
    background-color: #fcfbf7;
    border-color: rgba(81, 74, 8, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 21, 4, 0.08);
}

.footer-submit-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #514a08;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-submit-btn:hover .footer-submit-arrow {
    background-color: #171504;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Success Overlay for Footer Form */
.footer-success-overlay {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-color: #171504;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border-radius: var(--radius-xl);
}

.footer-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.footer-success-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 360px;
    padding: 24px;
}

.footer-success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
}

.footer-success-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

/* Footer Card Divider */
.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 52px 0 36px 0;
}

/* Bottom Half: Links & Copyright */
.footer-links-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand-info {
    flex: 1;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: right;
}

.footer-brand-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.footer-nav-cols {
    display: flex;
    gap: 64px;
    flex: 1.5;
    justify-content: flex-start;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: right;
}

.footer-col-title {
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

.footer-col-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-link {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition-fast);
}

.footer-col-link:hover {
    color: #FFFFFF;
    transform: translateX(-4px); /* RTL slide-left */
}

/* Social ring icons */
.footer-social-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.footer-social-rings {
    display: flex;
    gap: 12px;
}

.footer-social-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-social-ring:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer-copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   2h. BREAKPOINTS & RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 1024px) {
    .expert-split {
        flex-direction: column;
        gap: 48px;
    }
    .expert-text-col {
        align-items: center;
        text-align: center;
    }
    .expert-cards-col {
        max-width: 600px;
        margin: 0 auto;
    }
    .footer-form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .expert-section {
        padding: 60px 0;
    }
    .expert-heading {
        font-size: 2rem;
    }
    .static-proof-container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding-top: 48px;
    }
    .static-proof-title {
        text-align: center;
        max-width: 100%;
    }
    .static-clients-row {
        justify-content: center;
        gap: 24px;
        width: 100%;
    }
    .static-client-logo {
        height: 32px;
    }
    .floating-dark-footer-section {
        padding-bottom: 60px;
    }
    .floating-dark-footer {
        padding: 40px 24px 32px 24px;
        border-radius: var(--radius-lg);
    }
    .footer-form-grid {
        grid-template-columns: 1fr;
    }
    .footer-submit-btn {
        align-self: stretch;
        justify-content: space-between;
    }
    .footer-links-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }
    .footer-brand-info {
        align-items: center;
        text-align: center;
    }
    .footer-nav-cols {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        width: 100%;
    }
    .footer-nav-col {
        align-items: center;
        text-align: center;
    }
    .footer-social-column {
        align-items: center;
    }
    .footer-col-link:hover {
        transform: none;
    }
}


