/* Fonts */
/* --- MEGA MENU STYLES (Robust Full Width) --- */
/* --- MEGA MENU STYLES (Robust Full Width) --- */
/* .navbar override removed */

.navbar-nav .nav-link {
    padding: 24px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    /* STRICT: No text-decoration or border underlines */
    text-decoration: none !important;
    border-bottom: none !important;
}

/* GOLD UNDERLINE for Navbar Links (Overrides Bootstrap Caret) */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 100%;
    height: 3px;
    /* OVERRIDE Bootstrap caret borders */
    border: none !important;
    border-top: none !important;
    /* Set gold background */
    background-color: #E7CE67 !important;
    transition: right 0.3s ease;
    opacity: 0;
    pointer-events: none;
    /* Reset Bootstrap caret transforms */
    transform: none !important;
    vertical-align: baseline !important;
    margin-left: 0 !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.show::after,
.navbar-nav .nav-link.active::after {
    right: 20px;
    opacity: 1;
}

/* Hide Bootstrap's dropdown caret borders but KEEP the element visible for gold underline */
.navbar-nav .dropdown-toggle::after {
    /* Remove Bootstrap caret (the arrow) */
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 0 !important;
    /* DO NOT hide - we need this for gold underline */
    display: block !important;
    /* Reposition as underline */
    position: absolute !important;
    bottom: 8px !important;
    left: 20px !important;
    right: 20px !important;
    height: 3px !important;
    width: auto !important;
    background-color: #E7CE67 !important;
    content: '' !important;
    margin: 0 !important;
    vertical-align: unset !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
}

/* Show gold underline on hover/active for dropdown-toggle */
.navbar-nav .dropdown-toggle:hover::after,
.navbar-nav .dropdown-toggle.show::after {
    opacity: 1 !important;
}

/* Mega Menu Adjustment for Relative Navbar */
/* DESKTOP ONLY: Full width robust mega menu */
@media (min-width: 992px) {
    .has-mega-menu {
        position: static !important;
    }

    .mega-menu {
        top: 100% !important;
        /* Override Popper JS */
        margin-top: 0 !important;
        /* Override Popper JS */
        transform: none !important;
        /* Disable Popper JS transform positioning */
        border-top: 4px solid var(--brand-gold);
        position: absolute;
        left: 0 !important;
        /* Force full width start */
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        /* Light Glass */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 40px 0;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        display: block;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    /* Hover effect removed to enforce click-to-open everywhere per user request */

    /* Ensure it shows when Bootstrap adds the .show class (via click) */
    .mega-menu.show {
        visibility: visible;
        opacity: 1;
    }

    /* RESTORED: Desktop Hover Logic (Strictly for Mouse devices) */
    /* using (hover: hover) ensures this doesn't fire on touch devices, solving the "mobile" issue */
    @media (hover: hover) {
        .has-mega-menu:hover .mega-menu {
            visibility: visible;
            opacity: 1;
        }
    }
}

/* MOBILE: Normal dropdown behavior */
@media (max-width: 991px) {
    .mega-menu {
        background: #f8f9fa;
        /* Light grey for mobile */
        border: none;
        padding: 20px;
        margin-left: 20px;
    }

    .mega-menu .col-lg-3 {
        margin-bottom: 20px;
    }
}

/* Columns & Typography */
.mega-menu h4 {
    color: var(--brand-teal);
    /* Teal Headers */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mega Menu Links: Teal Text, Gold Underline Hover */
.mega-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-teal) !important;
    text-decoration: none;
    margin-bottom: 10px;
    /* Reduced from 18px */
    padding: 8px;
    /* Reduced from 10px */
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    position: relative;
}

.mega-link:hover {
    background: rgba(13, 128, 140, 0.05);
    /* Subtle teal tint */
    color: var(--brand-teal) !important;
    transform: translateX(5px);
    text-decoration: none;
    /* We use border for gold underline effect if preferred, or custom underline */
}

/* Gold Underline Effect via Pseudo-element */
.mega-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 100%;
    height: 2px;
    background: var(--brand-gold);
    transition: right 0.3s ease;
}

.mega-link:hover::after {
    right: 10px;
    /* Expands to full width minus padding */
}

/* --- ALTERNATING BACKGROUND UTILITIES --- */
.bg-light-alt {
    background-color: #ffffff;
    color: var(--bg-dark-1);
    /* Dark Teal Text */
    border-top: 4px solid var(--brand-gold);
}

.bg-teal-alt {
    background-color: var(--bg-dark-1);
    color: white;
}

/* Adjustments for White Backgrounds */
.bg-light-alt .section-headline,
.bg-light-alt .section-label,
.bg-light-alt h2,
.bg-light-alt h3,
.bg-light-alt h4 {
    color: var(--bg-dark-1);
    /* Force headings to dark */
}

/* Partner Logos on White: Remove Invert Filter to show original color (or dark) */
.bg-light-alt .partner-logo-item {
    filter: none;
    /* Show authentic colors */
    opacity: 1;
}

.bg-light-alt .partner-logo-item:hover {
    opacity: 0.8;
}

/* Bento on White: Ensure text secondary is readable or dark */
.bg-light-alt .section-label {
    color: var(--brand-teal);
}

.mega-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(13, 128, 140, 0.1);
    /* Lighter teal bg */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-teal);
    /* Teal Icon */
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.mega-link:hover .mega-icon {
    background: var(--brand-teal);
    color: white;
}

.mega-menu p {
    color: #555;
    /* Dark grey for light bg */
    line-height: 1.6;
}

/* --- PARTNER CAROUSEL (Inside Hero Section) --- */
.partner-divider {
    max-width: 1000px;
    height: 2px;
    background: radial-gradient(ellipse at center, var(--brand-gold) 0%, transparent 75%);
    margin: 70px auto 10px;
    opacity: 0.9;
}

.partner-carousel {
    padding: 40px 0;
    /* Dark background to merge with wave */
    background: #002b36;
    overflow: hidden;
    position: relative;
    margin-top: 60px;
    /* Space from hero content */
    width: 100%;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    gap: 0;
    padding: 0;
}

.carousel-logo-set {
    display: flex;
    gap: 80px;
    padding-right: 80px;
    /* Crucial: This provides the gap between Set 1 and Set 2, and Set 2 and Set 1 (loop) */
}

.partner-logo-item {
    height: 70px;
    filter: grayscale(100%) contrast(25%) brightness(160%);
    /* This pure CSS combo preserves original inner brightness ratios while clamping the darkest pixels to ~#999 and lightest to #fff! */
    opacity: 0.95;
    transition: all 0.3s ease;
}

img.partner-logo-item[alt*="Porsche"] {
    width: 140px !important;
    height: 70px !important; /* Forces normal flow height so it aligns vertically */
    object-fit: contain !important;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Specific Override for Partner Carousel (3 Sets Loop) */
.partner-carousel .carousel-track {
    animation: partnerScroll 40s linear infinite;
}

@keyframes partnerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.3333%);
    }
}

/* :root moved to site.css for global availability */

body {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark-1);
    margin: 0;
    line-height: 1.5;
}

/* -----------------------------------------------------------
   Layout Utilities
----------------------------------------------------------- */
.container-custom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
    color: white;
}

a {
    text-decoration: none;
    transition: all 0.2s;
}

/* -----------------------------------------------------------
   Navbar (White Sticky/Static) - REMOVED
   Logic is now handled by site.css (.navbar-transparent / .navbar-scrolled)
----------------------------------------------------------- */
/* 
.navbar { ... } 
.nav-link { ... }
.nav-icon-only { ... }
Styles removed to prevent conflicts.
*/

/* --- LOGO STYLES (Responsive) --- */
.navbar-brand-logo {
    background: white;
    transition: all 0.3s ease;
    /* Base styles */
    height: 60px;
    /* Mobile default */
    width: auto;
    border-radius: 0;
    /* No rounded corners as requested */
    /* Mobile shadow is subtle or none to keep it clean */
    box-shadow: none;
}

.navbar-brand-logo-mobile {
    height: 24px;
    width: auto;
    margin-left: 15px;
    /* Spacing from left edge */
    max-width: 150px;
    /* Safety constraint */
}

@media (min-width: 992px) {
    .navbar-brand-logo {
        height: 90px;
        /* Pull logo to TOP of navbar (counters navbar py-3 padding) */
        margin-top: 0px !important;
        /* Overhang downward */
        margin-bottom: -30px;
        position: relative;
        z-index: 1001;
        /* Shadow for 3D depth effect */
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    }

    /* Ensure navbar-brand anchor doesn't add extra spacing */
    .navbar-brand {
        padding-top: 0 !important;
        margin-top: 0 !important;
        align-self: flex-start !important;
    }
}



/* -----------------------------------------------------------
   Hero Section (Top Gradient Area)
----------------------------------------------------------- */
.hero-wrapper {
    background: radial-gradient(circle at 50% -20%, #007a8e 0%, #002b36 60%);
    padding-top: 160px;
    padding-bottom: 40px;
    text-align: center;
}

/* hero-title and hero-subtitle moved to site.css (Global) */

.btn-cta-main {
    background-color: var(--brand-teal);
    /* Using Edimart Teal */
    color: white;
    /* Text white on Teal button */
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(13, 128, 140, 0.4);
    display: inline-block;
}

/* btn-gold-outline moved to site.css (Global) */

/* Restore centering for homepage subtitle specifically */
.hero-wrapper .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Discover Solutions Button in Hero - No longer needs border as neighbor is solid gradient */
/* Removed white border to match new solid gradient pair */
.hero-section .btn-primary-gradient {
    border: none;
}

.hero-cta-group {
    align-items: center;
    flex-wrap: wrap;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* -----------------------------------------------------------
   Feature Hero (Floating Mock Form)
----------------------------------------------------------- */

.mock-contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    width: 100%;
    max-width: 420px;
    min-height: 470px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.form-header h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
}

.form-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 5px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.76rem;
    margin-bottom: 4px;
}

.fake-input {
    height: 36px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fake-input.large {
    height: 72px;
}

.real-input {
    width: 100%;
    color: white;
    padding: 8px 10px;
    outline: none;
    font-size: 0.92rem;
}

.real-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.real-input:focus {
    border-color: rgba(231, 206, 103, 0.7);
    box-shadow: 0 0 0 3px rgba(231, 206, 103, 0.15);
}

.real-textarea {
    min-height: 6.5rem;
    line-height: 1.5;
    resize: vertical;
}

.real-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.fake-btn {
    height: 36px;
    background: linear-gradient(90deg, var(--brand-teal), #4ecdc4);
    border-radius: 8px;
    margin-top: 8px;
    opacity: 0.8;
}

.real-submit-btn {
    width: 100%;
    border: 0;
    color: white;
    font-weight: 700;
    font-size: 0.92rem;
}

.quote-form-status {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.compact-quote-form .quote-validation-summary {
    margin-bottom: 10px !important;
}

.quote-stepper {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.quote-step-pill {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.quote-step-pill.is-active {
    background: rgba(231, 206, 103, 0.16);
    color: white;
}

.quote-step {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.quote-step-intro {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.quote-step-intro strong {
    color: white;
    font-size: 0.85rem;
}

.quote-security-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
}

.quote-security-note i {
    color: var(--brand-gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.quote-form-layout {
    display: block;
}

.quote-form-main,
.quote-form-side {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quote-form-side {
    padding-left: 4px;
}

.quote-step-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 8px;
}

.quote-step-actions-split {
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.quote-next-btn {
    width: 160px;
    min-width: 160px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.quote-secondary-btn {
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: white;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
    width: 160px;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.real-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quote-step .quote-form-main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.quote-inline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.compact-quote-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.upload-dropzone-fixed {
    min-height: 104px;
    padding: 14px 12px;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.upload-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.upload-panel summary {
    list-style: none;
    cursor: pointer;
    color: white;
    font-weight: 600;
    padding: 12px 14px;
}

.upload-panel summary::-webkit-details-marker {
    display: none;
}

.upload-panel-body {
    padding: 0 14px 14px;
}

.upload-panel-compact {
    border: 0;
    background: transparent;
}

.upload-panel-compact summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--text-secondary);
}

.upload-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
}

.upload-toggle-text {
    font-size: 0.82rem;
}

.upload-panel-compact .upload-panel-body {
    padding: 12px 0 0;
}

.upload-dropzone {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 18px 14px;
    background: rgba(0, 0, 0, 0.16);
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-dropzone.is-dragover {
    border-color: var(--brand-gold);
    background: rgba(231, 206, 103, 0.08);
}

.upload-dropzone-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: white;
}

.upload-dropzone-copy span,
.upload-dropzone-copy small {
    color: var(--text-secondary);
}

.upload-file-name {
    margin-top: 10px;
    color: white;
    font-size: 0.9rem;
}

.upload-file-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.78rem;
}

.upload-file-remove {
    border: 0;
    background: transparent;
    color: var(--brand-gold);
    font-size: 0.8rem;
    text-decoration: underline;
}

.upload-progress {
    margin-top: 12px;
}

.upload-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.upload-progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-gold));
    transition: width 0.15s linear;
}

.upload-progress-text {
    margin-top: 6px;
    color: white;
    font-size: 0.85rem;
    text-align: right;
}

.turnstile-wrap {
    margin-top: 8px;
    min-height: 66px;
}

.turnstile-wrap iframe {
    max-width: 100%;
}

.turnstile-missing {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 99, 99, 0.45);
    background: rgba(255, 99, 99, 0.08);
    color: #ffd0d0;
    font-size: 0.85rem;
    text-align: center;
}

.quote-checkbox-group {
    margin-top: 8px;
}

.quote-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: white;
    font-size: 0.84rem;
    line-height: 1.4;
}

.quote-checkbox-input {
    margin-top: 2px;
    flex: 0 0 auto;
}

.quote-checkbox-label a {
    color: var(--brand-gold);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .mock-contact-form {
        max-width: 340px;
        min-height: 500px;
    }

    .quote-inline-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Feature Hero (Floating Image Section) */
.hero-section {
    position: relative;
    z-index: 10; /* Ensure it stays above the next section for the wave mask to reveal the next section's bg */
    padding: 160px 0 0 0;
    /* Removed bottom padding so carousel sits flushed */
    overflow: hidden;
    /* Gradient from Teal to Carousel Dark Blue */
    /* Gradient from Teal to Carousel Dark Blue with Modernist Waves */
    background-image:
        /* Large subtle ring on right, slightly higher */
        radial-gradient(circle at 90% 30%, transparent 15%, rgba(255, 255, 255, 0.04) 16%, rgba(255, 255, 255, 0.04) 40%, transparent 41%, transparent),
        /* Smaller ring on left, slightly lower */
        radial-gradient(circle at 5% 70%, transparent 10%, rgba(255, 255, 255, 0.02) 11%, rgba(255, 255, 255, 0.02) 30%, transparent 31%, transparent),
        linear-gradient(to bottom, #0d808c 0%, #002b36 100%);

    padding-bottom: 150px;

    /* Clip bottom into a wave: Composite mask w/ WHITE fill */
    /* Condensed mask shorthand to silence IDE warnings about individual properties */
    -webkit-mask:
        linear-gradient(white, white) top / 100% calc(100% - 149px) no-repeat,
        url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 150" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path fill="white" d="M0,0 L1440,0 L1440,80 C800,30 400,160 0,120 Z"/></svg>') bottom / 100% 150px no-repeat;
    mask:
        linear-gradient(white, white) top / 100% calc(100% - 149px) no-repeat,
        url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 150" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path fill="white" d="M0,0 L1440,0 L1440,80 C800,30 400,160 0,120 Z"/></svg>') bottom / 100% 150px no-repeat;
}

.partner-carousel {
    padding: 80px 0 40px 0;
    /* Dark background to merge with wave */
    background: transparent;
    overflow: hidden;
    position: relative;
    margin-top: 0;
    width: 100%;
}

/* Golden Wavy Lines Background */
/* Golden Wavy Lines Background - DISABLED/REMOVED for Solid Background Request
.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: ...
    ...
} 
*/
.hero-section::before {
    display: none;
}

.hero-section>* {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2,
.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    text-align: left;
    font-weight: 800;
    /* Ensuring weight matches */
    color: #fff;
    /* Ensuring color matches */
}

.hero-text p {
    font-size: 1.25rem !important;
}

/* Renamed from blue-gradient */
/* Silencing IDE warnings for background-clip: text using custom property */
.text-gold-gradient {
    --bg-clip-text: text;
    background: linear-gradient(90deg, var(--brand-gold), #fff);
    -webkit-background-clip: var(--bg-clip-text);
    background-clip: var(--bg-clip-text);
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
    /* text-transform: uppercase; Removed to avoid aggressive caps if not desired, though user specific hero title caps */
}

.hero-img-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    /* Neon Glow Effect from screenshot */
    box-shadow: 0 0 50px rgba(13, 128, 140, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

/* -----------------------------------------------------------
   Bento Grid Section (Dark Cards)
----------------------------------------------------------- */
.bento-section {
    padding: 80px 0;
}

.section-label {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.section-headline {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
}

/* The Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: var(--spacing-md);
}

/* Card Styling to match screenshot (Dark, Rounded, Image Backgrounds) */
.dark-card {
    background-color: #0d1b2a;
    /* Very dark blue/black */
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s;
}

.dark-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Soft Teal Overlay: Dark at bottom for text, Teal wash at top */
    background: linear-gradient(0deg, #002b36 0%, rgba(13, 128, 140, 0.4) 100%);
    z-index: 1;
}

.dark-card-content {
    position: relative;
    z-index: 2;
}

.service-link-card {
    text-align: left;
}

.service-link-card .dark-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 100%;
}

.success-story-card {
    background-color: transparent;
    border: none;
    box-shadow: none;
    isolation: isolate;
}

.success-story-card::before {
    border-radius: inherit;
}

.success-story-card .dark-card-content {
    z-index: 3;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    line-height: 1.15;
}

.card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 28ch;
}

.icon-check {
    color: var(--brand-teal);
    background: rgba(13, 128, 140, 0.2);
    border-radius: 50%;
    padding: 2px;
}

/* Span classes for Bento */
.span-2 {
    grid-column: span 2;
}

.span-2-long {
    grid-column: span 2;
    grid-row: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

.tm-services-section .service-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(240px, auto);
    grid-auto-flow: row;
}

.tm-services-section .service-link-card {
    min-height: 240px;
}

.tm-services-section .service-link-card .dark-card-content {
    padding-top: 18px;
}

.tm-services-section .industry-card-feature .card-title {
    font-size: 1.42rem;
}

.tm-services-section .industry-card-feature .card-desc {
    max-width: 34ch;
}

/* -----------------------------------------------------------
   Metrics / Stats Strip
----------------------------------------------------------- */
.metrics-section {
    padding: 80px 0;
    /* border-top: 1px solid rgba(255, 255, 255, 0.05); REMOVED */
    background: #003845;
    /* Lighter dark teal */
}

.metrics-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(180deg, #666, var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Metric Label on White Background */
.ready-global-section .metric-label {
    color: #666;
}

/* -----------------------------------------------------------
   Responsive
----------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    /* Bento Grid Mobile Fix */
    .grid-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    /* Force all spans to 1 on mobile */
    .span-2,
    .span-2-long,
    .span-row-2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .tm-services-section .service-link-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Mobile Specific Fixes */
@media (max-width: 768px) {

    /* Testimonial Mobile Fixes: Dynamic height & text wrapping */
    .testimonial-card-modern,
    .carousel-card {
        /* JS handles width (1, 2, or 3 cards) */
        /* Height & Text Logic */
        height: auto !important;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 100 !important;
        /* Ensure on top */
    }

    .testimonial-glow-card .testimonial-text {
        /* Restore truncation by default */
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        white-space: normal !important;
        /* Keep wrapping */
        word-wrap: break-word !important;
        margin-bottom: 20px;
    }

    /* Only expand when class is present */
    .testimonial-glow-card.expanded .testimonial-text {
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        overflow: visible !important;
        display: block !important;
    }

    .testimonials-carousel-wrapper {
        padding-bottom: 20px;
        /* Ensure space for shadows if needed */
    }



    .footer-top .row>div {
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


.site-footer {
    background-color: #002b36;
    /* Dark Teal Footer */
    color: white;
    padding: 80px 0 30px;
    /* border-top: 1px solid rgba(255, 255, 255, 0.05); REMOVED */
    font-size: 0.9rem;
}

.footer-top {
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-lg);
}

.footer-top .row {
    display: flex;
    justify-content: space-between;
}

.footer-top .row>div {
    flex: 1;
    min-width: 150px;
}

.hero-text p {
    font-size: 1rem;
    /* Reduced from 1.125rem */
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

.footer-heading {
    color: var(--brand-gold);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--brand-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #888;
    font-size: 0.85rem;
}

.footer-brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    font-family: serif;
    /* Matches screenshot vibe */
    letter-spacing: -0.5px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #aaa;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-top .row>div {
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Footer Certs + Social Combined */
.footer-certs-social {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.cert-logos-inline {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cert-logos-inline img {
    height: 80px;
    /* Increased from 45px to 80px */
    filter: grayscale(100%) brightness(150%);
    opacity: 0.6;
    transition: var(--transition-base);
}

.cert-logos-inline img:hover {
    filter: none;
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-certs-social {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .cert-logos-inline img {
        height: 50px;
        /* Increased from 35px */
    }
}

/* Fix for Bento Grid Links - Override Global Anchor Styles */
a.dark-card {
    color: #fff !important;
    text-decoration: none !important;
}

a.dark-card:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

a.dark-card:hover .ss-card-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.14em;
}

a.dark-card .card-desc {
    color: var(--text-secondary) !important;
}
.ss-card-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #f7f7f7;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.ss-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
}

.ss-card-meta-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ss-card-meta-date-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.ss-card-meta-label {
    display: none;
}

.ss-card-date-text {
    color: rgba(255,255,255,0.82);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ss-card-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.ss-card-meta-pill-service {
    background: rgba(0, 122, 142, 0.34);
    color: #d6f8ff;
}

.ss-card-meta-pill-industry {
    background: rgba(198, 150, 62, 0.28);
    color: #ffe7b0;
    border-color: rgba(255, 231, 176, 0.22);
}

.ss-card-chip-list .ss-card-meta-pill {
    max-width: 100%;
    min-width: 0;
    padding: 7px 12px;
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ss-card-desc-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.success-story-card.story-card-expanded .ss-card-desc-clamp {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    max-width: none;
    width: 100%;
}

.success-story-card.story-card-expanded .ss-card-desc-wrap {
    height: auto;
    width: 100%;
}

.ss-card-copy-stack {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ss-card-copy-stack .ss-card-title,
.ss-card-copy-stack .ss-card-desc-clamp,
.ss-card-copy-stack .ss-card-meta {
    margin: 0;
}

.ss-card-desc-wrap {
    height: 5.8rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ss-card-copy-stack .ss-card-meta {
    margin-top: auto;
}

@media (max-width: 768px) {
    .ss-card-meta-row {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .ss-card-meta-grid {
        grid-template-columns: 1fr;
    }

    .ss-card-chip-list {
        max-height: none;
    }
}

/* Modern SaaS Testimonials */
.testimonials-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 40px 5% 60px 5%;
    /* Space for shadows */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.testimonials-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.testimonial-card-modern {
    flex: 0 0 400px;
    /* Fixed width for consistency */
    scroll-snap-align: center;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
}

.testimonial-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--brand-teal);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.quote-icon-large {
    font-size: 3rem;
    font-family: serif;
    color: var(--brand-gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* ===== SHAPE DIVIDERS ===== */
.shape-divider-top,
.shape-divider-bottom {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.shape-divider-top img,
.shape-divider-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

.shape-divider-top {
    background: var(--bg-dark-1);
    /* Fixed: Was #f8f9fa (light), now dark to match Bento */
    margin-top: -1px;
}

.shape-divider-top img {
    transform: rotate(180deg);
}

.shape-divider-bottom {
    background: var(--bg-dark-1);
}

/* ===== TESTIMONIALS SECTION V3 - MASONRY LAYOUT ===== */
.testimonials-section-v3 {
    padding: var(--spacing-2xl) 0;
    /* Hero Background */
    background-image:
        radial-gradient(circle at 90% 30%, transparent 15%, rgba(255, 255, 255, 0.04) 16%, rgba(255, 255, 255, 0.04) 40%, transparent 41%, transparent),
        radial-gradient(circle at 5% 70%, transparent 10%, rgba(255, 255, 255, 0.02) 11%, rgba(255, 255, 255, 0.02) 30%, transparent 31%, transparent),
        linear-gradient(to bottom, #0d808c 0%, #002b36 100%);
    /* Dark Teal */

    /* WAVE MASK IMPLEMENTATION (Matches Hero - FLIPPED HORIZONTALLY) */
    padding-bottom: 200px;
    margin-bottom: -5px;
    /* Aggressive overlap to fix 1px gap */

    /* Original Path: M0,0 L1440,0 L1440,80 C800,30 400,160 0,120 Z */
    /* Flipped Path:  M0,0 L1440,0 L1440,120 C1040,160 640,30 0,80 Z */
    /* This makes the 'visible white' deeper on the left (120 down)    /* Condensed mask shorthand to silence IDE warnings about individual properties */
    -webkit-mask:
        linear-gradient(white, white) top / 100% calc(100% - 149px) no-repeat,
        url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 150" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path fill="white" d="M0,0 L1440,0 L1440,80 C800,30 400,160 0,120 Z"/></svg>') bottom / 100% 150px no-repeat;
    mask:
        linear-gradient(white, white) top / 100% calc(100% - 149px) no-repeat,
        url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 150" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path fill="white" d="M0,0 L1440,0 L1440,80 C800,30 400,160 0,120 Z"/></svg>') bottom / 100% 150px no-repeat;
}

/* Header */
.testimonials-header-v3 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* TESTIMONIAL BADGE - GOLD GRADIENT TEXT (Matches Hero Supertitle) */
.testimonial-badge {
    display: inline-block;
    font-size: 1.5rem;
    /* Increased size as requested */
    font-weight: 800;
    /* Extra bold */
    margin-bottom: var(--spacing-md);
    cursor: default;

    /* Gold Gradient Text Logic */
    /* EXACT Match to Hero Supertitle (.text-gold-gradient) */
    /* Gold Gradient Style Match */
    --bg-clip-text: text;
    background: #e2d076;
    background: linear-gradient(to right, #cfc09f 20%, #ffecb3 40%, #bf953f 60%, #b38728 80%);
    background-size: 200% auto;
    background-clip: var(--bg-clip-text);
    -webkit-background-clip: var(--bg-clip-text);
    -webkit-text-fill-color: transparent;
    /* Static - No Animation */

    /* Remove old pill styling */
    padding: 0;
    border-radius: 0;
    text-transform: uppercase;

    /* Typography match */
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
}

.testimonials-header-v3 .section-headline {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
    /* Exact Hero Match */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    /* Hero doesn't have -1px */
}

.testimonials-header-v3 .section-subheadline {
    font-size: 1.125rem;
    /* Matched to Hero body text */
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Carousel Layout */
.testimonials-carousel-wrapper {
    position: relative;
    display: block;
    /* Removed flex to allow absolute positioning overlay */
    /* gap removed as buttons are absolute */
}

.testimonials-carousel {
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
    align-items: flex-start;
    /* Prevent cards from stretching to match tallest */
}

/* Card sizing: fixed widths that fit 3 in ~1088px container */
.carousel-card {
    /* Width handled by JS (testimonials.js) for perfect fit */
    width: auto;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    overflow: hidden;
    word-break: break-word;
}

/* Carousel Buttons */
.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    /* Overlay Styles */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    backdrop-filter: blur(4px);
    /* Glassy feel */
}

/* Specific Positioning */
.carousel-prev {
    left: -20px;
    /* Slight overhang or 0 */
}

.carousel-next {
    right: -20px;
    /* Slight overhang or 0 */
}

@media (max-width: 991px) {
    .carousel-prev {
        left: 0;
    }

    .carousel-next {
        right: 0;
    }
}

.carousel-btn:hover {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-dot.active {
    background: var(--brand-teal);
    transform: scale(1.2);
}

/* Responsive Carousel */
@media (max-width: 991px) {
    .carousel-card {
        /* 2 items: (100% - 1 gap of 24px) / 2 */
        width: calc((100% - 24px) / 2);
        max-width: none;
    }
}

@media (max-width: 575px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px !important;
    }

    .hero-cta-btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 20px;
    }

    .carousel-card {
        width: 100%;
        max-width: none;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Stars Row */
.stars-row {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-md);
}

.star-gold {
    color: var(--brand-gold);
    font-size: 1rem;
}

/* Glow Card */
.testimonial-glow-card {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-lg);
}

.testimonial-glow-card .glow-bg {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-gold));
    opacity: 0.15;
    filter: blur(6px);
    transition: opacity 0.3s, filter 0.2s;
    z-index: 0;
}

.testimonial-glow-card:hover .glow-bg {
    opacity: 0.6;
    filter: blur(8px);
}

/* Card Inner */
.card-inner {
    position: relative;
    z-index: 1;
    padding: var(--spacing-lg);
    background: var(--bg-dark-2);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Author Row - moved to bottom */
.author-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.author-icon {
    font-size: 2.2rem;
    color: var(--brand-teal);
    opacity: 0.8;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info .author-name {
    font-size: 0.9rem;
    font-weight: 700;
    /* Bold */
    color: white;
}

.author-company {
    font-size: 0.8rem;
    color: var(--brand-gold);
    /* Gold */
    margin-top: 2px;
}

/* Testimonial Text - Truncated */
.testimonial-glow-card .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: white;
    /* White text */
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Expanded State */
.testimonial-glow-card.expanded .testimonial-text {
    -webkit-line-clamp: unset;
    display: block;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-teal), #004d40);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h6 {
    margin: 0;
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--brand-gold);
    /* Accent color */
}

@media (max-width: 768px) {
    .testimonial-card-modern {
        flex: 0 0 85vw;
        /* Almost full width on mobile */
    }
}

/* Background Twirls Effect */
.bg-twirls {
    background-image: url('../images/bg-twirls.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ensure it blends with the dark background */
}

/* 5. READY TO GO GLOBAL (Clean White) */
.ready-global-section {
    padding: 120px 0 80px;
    text-align: center;
    background: #ffffff;
    /* Base White */
    position: relative;
    overflow: hidden;
}

/* The Planet/Horizon Glow REMOVED */
.ready-global-section::after {
    display: none;
}

.globe-horizon {
    display: none;
}

/* 3. The "Light leak"/Sun flare effect on top REMOVED */
.globe-horizon::before {
    display: none;
}

/* 4. Atmospheric glow overlay REMOVED */
.globe-horizon::after {
    display: none;
}



.ready-global-content {
    position: relative;
    z-index: 2;
    /* Ensure content is above the glow */
}

/* Global Section Logos - Dark Gold */
.ready-global-section .cert-logos-inline img {
    height: 100px;
    opacity: 1;
    transition: 0.3s;
    /* Dark Gold Filter (Targeting #b8860b approx) */
    filter: brightness(0) saturate(100%) invert(53%) sepia(45%) saturate(639%) hue-rotate(5deg) brightness(92%) contrast(89%);
}

/* --- LIGHT THEME SECTIONS (Alternating) --- */
.section-light {
    background: #ffffff !important;
    /* Simplified for reliability */
    background: linear-gradient(to bottom, #ffffff 0%, #f4fcfd 100%) !important;
    color: var(--bg-dark-1) !important;
    position: relative;
    border-top: none !important;
    border-bottom: none !important;
}

/* Add Twirls to Light Section */
.section-light.bg-twirls-light {
    background-image: url('../images/bg-twirls-light.svg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Text Overrides for Light Theme */
.section-light h2,
.section-light .section-headline,
.section-light h4,
.section-light .card-title {
    color: var(--bg-dark-1) !important;
}

.section-light:not(.bento-section) p,
.section-light .testimonial-text,
.section-light .metric-label {
    color: #444 !important;
}

/* Partner Logos in Light Section */
.section-light .partner-logo-item {
    filter: none !important;
    /* Show original colors */
    opacity: 0.8;
}

.section-light .partner-logo-item:hover {
    opacity: 1;
}

/* Adjust gradients between sections */
.section-light+section {
    border-top: none;
    /* Seamless transition */
}

/* --- THEME CONNECTORS --- */
.wave-divisor {
    width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    position: relative;
    z-index: 10;
}

.wave-divisor.top {
    margin-bottom: -1px;
    /* Prevent sub-pixel gaps */
    background: #002b36;
    /* Merged with carousel */
    /* Match section above */
}

.wave-divisor.bottom {
    margin-top: -1px;
    background: #0d808c;
    /* Match section above */
}

/* Remove CSS Gradients in favor of Waves */
.bg-gradient-showcase {
    background: var(--bg-dark-1) !important;
    /* Pure Dark */
}

/* --- THEME GRADIENTS --- */
/* Top Transition: Dark Showcase -> White Bento */
.bg-gradient-dark-to-white {
    background: linear-gradient(to bottom, #002b36 0%, #ffffff 100%) !important;
    padding-top: 100px;
    /* Space for gradient to breathe */
}

/* Bottom Transition: White Metrics -> Dark CTA */
.bg-gradient-white-to-dark {
    background: linear-gradient(to bottom, #ffffff 0%, #002b36 100%) !important;
    padding-bottom: 100px;
}

/* Bento Specifics on Light Theme */
.section-light .dark-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Soft shadow on white */
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: transparent !important;
    /* Let image show */
}

/* Keep Dark Overlay for text readability on light sections */
.section-light .dark-card::before {
    background: linear-gradient(0deg, rgba(0, 43, 54, 0.9) 0%, rgba(0, 43, 54, 0.5) 50%, transparent 100%);
}

/* Text on Images (Light Theme) */
.section-light .dark-card-content,
.section-light .card-title,
.section-light .card-desc,
.section-light .dark-card p {
    color: white !important;
    /* White Text */
    text-shadow: 0 0 10px var(--brand-teal), 0 0 20px #002b36;
    /* Strong Teal Glow + Dark backing */
}

.section-light .icon-check {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 0 10px var(--brand-teal);
    border: 1px solid var(--brand-teal);
}

/* Metrics Specifics on Light Theme */
.section-light .metric-number {
    --bg-clip-text: text;
    background: linear-gradient(90deg, var(--brand-teal), #002b36);
    /* Darker gradient for text */
    -webkit-background-clip: var(--bg-clip-text);
    background-clip: var(--bg-clip-text);
    -webkit-text-fill-color: transparent;
}

.section-light .metric-label {
    color: inherit;
}

/* --- MISSING GRADIENT FIX --- */
/* Metrics Section Gradient: Dark Teal to Black */
/* Metrics Section Gradient: Dark Teal to Black */
.bg-gradient-teal-to-black {
    background: linear-gradient(180deg, #003845 0%, #00151a 100%) !important;
    position: relative;
    z-index: 10;
    /* Ensure it sits right */
}

/* Rotation Text Styles */
.rotating-text {
    display: inline-block;
    opacity: 1;
    /* Default visible state */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(0);
}

.rotating-text.hidden {
    opacity: 0;
    transform: translateY(10px);
    /* Slide down effect on exit */
}

.rotating-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Subtitle Wrapper for Layout Stabilization */
/* Tighter width after removing long text */

/* Subtitle Wrapper Update - Tightening for better centering */
/* Calculated for "AI-powered solutions for Content Generation" (~45 chars) */
.hero-subtitle-wrapper {
    display: inline-block;
    text-align: left;
    min-width: 500px;
    /* Reduced from 580px to center the block better */
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-subtitle-wrapper {
        min-width: auto;
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* Fix for Testimonials JS Interactivity */
#testimonialTrack {
    animation: none !important;
    transition: transform 0.5s ease-in-out;
}

/* -----------------------------------------------------------
   Mobile Specific Adjustments (Consolidated)
----------------------------------------------------------- */

/* Navbar Alignment - Logo + Icons Left | Hamburger Right */
@media (max-width: 991px) {

    /* Pull Icon List (Search, Globe, Button) to the Left */
    .navbar-nav.flex-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 10px;
        /* Adjust spacing between them */
    }

    /* Push Hamburger to the Far Right */
    .navbar-toggler {
        margin-left: auto !important;
    }
}

/* Ultra-Compact Mobile Navbar (< 575px) */
@media (max-width: 575px) {

    .navbar .container-custom,
    .navbar .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-brand-logo-mobile {
        height: 24px !important;
    }

    .navbar .btn-primary-gradient {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
    }

    .navbar-toggler {
        padding: 4px !important;
        font-size: 1rem !important;
    }


}

/* ISO Logos Responsive Fix (< 1200px) */
@media (max-width: 1199px) {

    /* ISO Logos 2/1 Split Logic (Broadened Scope) */
    .ready-global-section .cert-logos-inline {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        padding: 0 20px !important;
        /* Safety padding */

        /* FIX: Ensure padding doesn't push width > 100% */
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ready-global-section .cert-logos-inline img {
        height: auto !important;
        /* Force layout width to Trigger Wrap (2 per row) */
        flex: 0 0 40% !important;
        max-width: 40% !important;
        /* Visual Size: Allow them to grow */
        max-height: 120px !important;
        /* Increased limit or remove completely */
        object-fit: contain !important;
        margin-bottom: 10px;
        /* Vertical gap if wrapped */
    }
}


/* Restored Metric Label Styles */
.metric-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
}

.ready-global-section .metric-label {
    color: #666;
}

.section-light .metric-label {
    color: #444 !important;
}


/* --- RESPONSIVE WORD BREAK --- */
.responsive-word-break {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    white-space: normal !important;
}

.gold-underline-wrap {
    text-decoration: underline;
    text-decoration-color: var(--brand-gold);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}
