/* ========================================
   APL SMART - Mobile-First Responsive CSS
   Versione ottimizzata per mobile e responsive
   ======================================== */

:root {
    /* Gradient principale bordeaux-verde */
     /* New Material-like distinct palette (bolder, cromaticamente armonica):
         - blue (primary): #1976D2 (Material Blue 600)
         - blue-dark (hover): #0D47A1 (Material Blue 900)
         - green (accent): #43A047 (Material Green 600)
         - green-dark: #2E7D32 (Material Green 800)
     */
    --gradient-primary: linear-gradient(135deg, #455A64 0%, #455A64 45%, #43A047 100%);
    --color-bordeaux: #455A64; /* Blue Gray 700 - chosen */
    --color-primary-blue: #1976D2; /* Primary blue used for panel toggle accent */
    --color-bordeaux-dark: #37474F; /* Blue Gray 800 as dark variant */
     --color-green: #43A047; /* green accent */
     --color-green-dark: #2E7D32;
    --color-text: #333;
    --color-text-light: #555;
    --color-text-lighter: #666;
    
    /* Spacing responsive */
    --gutter: clamp(16px, 4vw, 24px);
    --section-padding: clamp(60px, 10vh, 120px);
    --card-padding: clamp(20px, 4vw, 40px);
    
    /* Border radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    /* hero text tonalità off-white per miglior contrasto senza bianco puro */
    --hero-ivory: #f5f4ef;
}

/* ========================================
   RESET E BASE
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Material Symbols (Google) setup */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.feature-icon-large .material-symbols-outlined {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.step-icon .material-symbols-outlined {
    font-size: clamp(1.6rem, 4vw, 2rem);
}

.benefit-icon .material-symbols-outlined {
    font-size: clamp(2.2rem, 5.5vw, 2.8rem);
    color: inherit;
}

.target-card-icon .material-symbols-outlined {
    position: relative;
    z-index: 1;
    transition: transform 0.4s;
    font-size: clamp(2.6rem, 6.5vw, 4rem);
}

.target-card:hover .target-card-icon .material-symbols-outlined {
    transform: scale(1.15) rotate(5deg);
}

.footer-contact .material-symbols-outlined {
    font-size: 1.05rem;
    margin-right: 8px;
}

/* Icons next to section titles: match title sizing and align */
.section-title .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 48;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    vertical-align: middle;
    margin-right: 0.6rem;
    display: inline-block;
    line-height: 1;
    transform: translateY(2px);
}

/* Ensure icons next to section titles are visible (override text-clip styles) */
.section-title .material-symbols-outlined {
    /* explicit color — parent titles use background-clip:text which makes children transparent */
    color: var(--color-bordeaux);
    -webkit-text-fill-color: currentColor;
    /* remove any background-clip on the icon itself */
    -webkit-background-clip: initial;
    background-clip: initial;
}

/* ========================================
   NAVIGATION
   ======================================== */

.sticky-nav {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgb(77 126 149 / 31%) 0%, rgba(67, 160, 71, 0.04) 100%);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: top 0.3s ease;
}

.sticky-nav.visible {
    top: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(12px, 2vh, 18px) var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Logo image sizing: replace previous text styling when an image is present */
.nav-logo img {
    display: block;
    height: clamp(34px, 4.5vw, 56px);
    width: auto;
    object-fit: contain;
}

/* Logo più grande in mobile */
@media (max-width: 768px) {
    .nav-logo img {
        height: 48px;
    }
}

/* Prevent the text-gradient styles from affecting the image container */
.nav-logo {
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: clamp(12px, 2vw, 30px);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s;
    position: relative;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-bordeaux);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 25px;
    -webkit-text-fill-color: white;
}

.nav-cta::after {
    display: none;
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex;
    }
}

/* ----------------------------------
   Mobile hamburger & off-canvas menu
   ---------------------------------- */
.nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 4px;
    padding: 6px;
    z-index: 1100;
    position: relative;
}

.nav-hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-bordeaux);
    border-radius: 2px;
    transition: transform 0.36s cubic-bezier(.2,.9,.2,1), opacity 0.28s ease, background 0.28s ease;
    position: absolute;
    left: 6px;
    transform-origin: left center;
    padding:2px;
}

/* Staggered closed state (diagonal lines) - hamburger nell'header rimane invariato */
.nav-hamburger .bar:nth-child(1) {
    top: 10px;
    transform: translateX(0) translateY(0) rotate(0);
}
.nav-hamburger .bar:nth-child(2) {
    top: 19px;
    transform: translateX(6px) translateY(0) rotate(0);
}
.nav-hamburger .bar:nth-child(3) {
    top: 28px;
    transform: translateX(12px) translateY(0) rotate(0);
}

/* L'hamburger nell'header non cambia quando il menu è aperto */
/* La trasformazione avviene solo sull'icona .nav-panel-close nel pannello */

@media (max-width: 768px) {
    .nav-hamburger { display: flex; }

    .nav-menu {
        /* Off-canvas panel from the right */
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75vw;
        max-width: 420px;
        background: white;
        padding: 72px 20px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.36s cubic-bezier(.2,.9,.2,1);
        box-shadow: -12px 0 30px rgba(0,0,0,0.14);
        z-index: 2100; /* raised to ensure clicks register above backdrops */
        overflow-y: auto;
        pointer-events: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu li { display: block; margin: 8px 0; }
    .nav-menu a { display: block; padding: 12px 6px; font-size: 1rem; }

    /* Backdrop shown when menu is open (created by JS) */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 2000; /* behind the menu but above page */
    }

    .nav-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* Nuova icona diversa nel pannello (X in quadrato arrotondato che diventa check dopo 1 secondo) */
    .nav-panel-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid var(--color-bordeaux);
        border-radius: 12px;
        cursor: pointer;
        z-index: 2205;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .nav-panel-close:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: rotate(90deg);
        border-color: var(--color-bordeaux);
    }

    .nav-panel-close .line {
        position: absolute;
        width: 20px;
        height: 2.5px;
        background: var(--color-bordeaux);
        border-radius: 2px;
        transition: all 0.65s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    .nav-panel-close .line:nth-child(1) {
        transform: rotate(45deg);
    }

    .nav-panel-close .line:nth-child(2) {
        transform: rotate(-45deg);
    }

    /* Morphing a check dopo 1 secondo */
    .nav-panel-close.morphing .line:nth-child(1) {
        width: 30px;
        transform: translateX(-8px) translateY(2px) rotate(45deg) scaleX(0.6);
        background: var(--color-green);
        padding: 2px;
    }

    .nav-panel-close.morphing .line:nth-child(2) {
        transform: translateX(7px) translateY(-2px) rotate(-45deg) scaleX(1.4);
        background: var(--color-bordeaux);
        padding: 2px;;
    }
}

@media (min-width: 769px) {
    .nav-hamburger { display: none; }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--gutter);
}

.hero-image-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: saturate(1.1) hue-rotate(-8deg) brightness(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(69,90,100,0.86) 0%, rgba(69,90,100,0.72) 30%, rgba(67,160,71,0.28) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: #2d2d2d;
    z-index: 10;
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px);
}

/* Logo badge in alto a sinistra nella hero - Design minimal con hover reveal */
.hero-logo-badge {
    position: absolute;
    top: clamp(20px, 4vh, 40px);
    left: clamp(20px, 4vw, 60px);
    z-index: 15;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    cursor: pointer;
}

.hero-logo-badge:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    padding: 14px 20px;
    gap: 12px;
}

.hero-logo-badge img {
    height: clamp(36px, 4.5vw, 52px);
    width: auto;
    object-fit: contain;
    filter: brightness(1.15) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s ease;
}

.hero-logo-badge:hover img {
    transform: scale(1.05);
}

.hero-badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.hero-logo-badge:hover .hero-badge-info {
    max-width: 200px;
    opacity: 1;
}

.hero-badge-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(245, 244, 239, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-badge-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hero-ivory);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-logo-badge {
        top: 16px;
        left: 16px;
        padding: 12px;
        border-radius: 16px;
    }
    
    .hero-logo-badge:hover {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .hero-logo-badge img {
        height: 32px;
    }
    
    .hero-badge-label {
        font-size: 0.6rem;
    }
    
    .hero-badge-name {
        font-size: 0.95rem;
    }
}

/* Override: force hero-text to be white and make paragraph larger/heavier */

/* Hero text: off-white tone + stronger visual impact */
.hero .hero-text {
    color: var(--hero-ivory);
    text-shadow: 0 10px 28px rgba(0,0,0,0.36);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero .hero-text h1 {
    /* keep headline large but use off-white for contrast; slight stroke for depth */
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--hero-ivory) !important;
    color: var(--hero-ivory) !important;
    -webkit-text-stroke: 0.35px rgba(0,0,0,0.06);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
}

.hero .hero-text p {
    font-size: clamp(1.1rem, 3.2vw, 1.7rem);
    font-weight: 700;
    color: rgba(245,244,239,0.98); /* a touch darker than pure hero-ivory for legibility */
    line-height: 1.55;
    margin-top: 10px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

@media (max-width: 480px) {
    .hero-text p { font-size: 1rem; font-weight: 700; }
}

@media (max-width: 480px) {
    .hero-text p { font-size: 1rem; font-weight: 600; }
}

/* hero scroll indicator (text + icon stacked) */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(18px, 3.5vh, 28px);
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 30;
    pointer-events: auto;
    opacity: 0.98;
}
.hero-scroll:hover .hero-scroll-text { text-decoration: underline; }
.hero-scroll-icon {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
    transform: translateY(0);
    transition: transform 0.28s ease;
    color: rgba(255,255,255,0.95);
}
.hero-scroll:hover .hero-scroll-icon { transform: translateY(6px); }

/* Scroll indicator image: small and animated (bounce) */
.hero-scroll-img {
    width: 50%; /* at least ~50% smaller visual footprint */
    height: auto;
    display: block;
    transform: translateY(0);
    animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
    0% { transform: translateY(0); }
    35% { transform: translateY(8px); }
    60% { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

/* Slightly increase size on hover for emphasis */
.hero-scroll:hover .hero-scroll-img {
    transform: translateY(8px);
}

@media (max-width: 768px) {
    .hero-scroll { bottom: 10px; font-size: 0.9rem; }
    .hero-scroll-img { width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-img {
        animation: none !important;
        transition: none !important;
    }
}

/* make indicator more subtle on small screens */
@media (max-width: 768px) {
    .hero-scroll { bottom: 10px; font-size: 0.9rem; }
    .hero-scroll-icon { font-size: 1rem; }
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: clamp(16px, 3vh, 24px);
    opacity: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(20px, 4vh, 32px);
    opacity: 0;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
}

.cta-button {
    background: var(--color-bordeaux);
    color: white;
    padding: clamp(12px, 2vh, 16px) clamp(28px, 5vw, 40px);
    border: none;
    border-radius: var(--radius-sm);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 4px 16px rgba(69,90,100,0.25);
    letter-spacing: 0.02em;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--color-bordeaux-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(69,90,100,0.35);
}

/* ========================================
   SECTIONS BASE
   ======================================== */

.section {
    padding: var(--section-padding) var(--gutter);
    width: 100%;
    overflow-x: hidden;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: clamp(20px, 4vh, 32px);
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    padding-top: clamp(24px, 5vh, 40px);
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(50px, 10vw, 70px);
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--color-text-light);
    margin: 0 auto clamp(40px, 6vh, 70px);
    max-width: 750px;
    opacity: 0;
    line-height: 1.7;
}

/* ========================================
   INTRO SECTION
   ======================================== */

.intro-section {
    background: linear-gradient(135deg, rgba(69,90,100,0.05) 0%, rgba(255,255,255,1) 50%, rgba(67,160,71,0.05) 100%);
}

.intro-content {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    line-height: 1.7;
}

.intro-content p {
    margin-bottom: clamp(16px, 3vh, 24px);
}

.intro-content strong {
    color: var(--color-bordeaux);
}

/* ========================================
   IMAGE BREAK SECTIONS
   ======================================== */

.image-break-section {
    width: 100%;
    height: clamp(400px, 60vh, 600px);
    position: relative;
    overflow: hidden;
}

.image-break-section.image-break-alt .image-break-overlay {
    background: linear-gradient(135deg, rgba(69,90,100,0.82), rgba(67,160,71,0.75));
    transition: background 0.45s ease, opacity 0.45s ease;
}

.image-break-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-break-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-break-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(69,90,100,0.82), rgba(67,160,71,0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
    transition: background 0.45s ease, opacity 0.45s ease;
}

.image-break-content {
    text-align: center;
    color: white;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.image-break-content h3 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: clamp(12px, 2vh, 20px);
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.image-break-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    background: linear-gradient(135deg, 
        #f8f2f2 0%, #f9f4f4 12%, #faf6f6 24%, #fbf8f8 36%,
        #fdfbfb 48%, #f9fdf9 60%, #f5faf7 72%, #f0f8f5 84%, #ecf7f4 100%);
    position: relative;
}

.features-stack-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile: stacked cards */
.features-stack-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 4vh, 32px);
    width: 100%;
}

.feature-stack-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-md);
    width: 100%;
    position: static;
    opacity: 0;
    transform: translateY(20px);
}

.stack-card-inner {
    position: relative;
}

.stack-card-number {
    position: absolute;
    top: 0;
    right: 0;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
        background: linear-gradient(135deg, rgba(69,90,100,0.10) 0%, rgba(67,160,71,0.10) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.feature-icon-large {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: clamp(10px, 1.5vh, 16px);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}

.feature-stack-card h3 {
    font-size: clamp(1.3rem, 3.5vw, 1.75rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(10px, 1.5vh, 14px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    padding-right: clamp(40px, 10vw, 70px);
}

.feature-stack-card p {
    font-size: clamp(0.9rem, 1.8vw, 0.98rem);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: clamp(14px, 2.5vh, 18px);
}

.stack-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(7px, 1.2vh, 10px);
}

.stack-card-list li {
    padding-left: clamp(30px, 5vw, 36px);
    position: relative;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
}

.stack-card-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    background: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(67,160,71,0.24);
}

/* Mobile: ensure cards are stacked normally */
@media (max-width: 768px) {
    .feature-stack-card {
        position: static !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Desktop: split layout with fixed illustration */
.features-stack-illustration {
    display: none;
}

@media (min-width: 769px) {
    .features-stack-wrapper {
        min-height: 500vh;
        position: relative;
        padding-top: 50px;
    }
    
    .features-stack-container {
        position: sticky;
        top: 100px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 var(--gutter);
        height: 650px;
    }
    
    .features-stack-illustration {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        padding: 30px;
    }
    
    .illustration-badge {
        background: linear-gradient(135deg, rgba(69,90,100,0.14) 0%, rgba(67,160,71,0.14) 100%);
        color: var(--color-bordeaux);
        padding: 10px 24px;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 600;
        border: 1px solid rgba(69,90,100,0.18);
    }
    
    .illustration-image-wrapper {
        width: 100%;
        max-width: 480px;
        aspect-ratio: 4/3;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        transform: perspective(1000px) rotateY(-5deg);
        transition: all 0.6s ease;
    }
    
    .illustration-image-wrapper:hover {
        transform: perspective(1000px) rotateY(0deg) scale(1.02);
    }
    
    .illustration-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .illustration-text {
        text-align: center;
        max-width: 450px;
    }
    
    .illustration-text h3 {
        font-size: 2.2rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 18px;
        font-weight: 800;
        line-height: 1.3;
    }
    
    .illustration-text p {
        font-size: 1.05rem;
        color: var(--color-text-lighter);
        line-height: 1.75;
    }
    
    .features-stack-cards {
        position: relative;
        height: 100%;
    }
    
    .feature-stack-card {
        position: absolute !important;
        width: 100%;
        max-width: 600px;
        height: 580px;
        backface-visibility: hidden;
        will-change: transform, opacity;
        top: 0;
        left: 0;
        transform: none;
        opacity: 1;
    }
    
    .stack-card-inner {
        padding: 35px 40px;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .stack-card-inner::-webkit-scrollbar {
        width: 6px;
    }
    
    .stack-card-inner::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 3px;
    }
    
    .stack-card-inner::-webkit-scrollbar-thumb {
        background: var(--color-bordeaux);
        border-radius: 3px;
    }
}

/* ========================================
   JOURNEY SECTION
   ======================================== */

.journey-section {
    background: linear-gradient(135deg, 
        #f9f4f4 0%, #faf6f6 12%, #fbf8f8 24%, #fcfafa 36%,
        #fdfcfc 48%, #fafdf9 60%, #f6faf8 72%, #f2f8f5 84%, #eff7f4 100%);
}

.journey-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    min-height: auto;
}

.journey-path {
    display: none;
}

@media (min-width: 768px) {
    .journey-wrapper {
        min-height: 80vh;
    }
    
    .journey-path {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        height: 100%;
        z-index: 0;
        opacity: 0.35;
    }
}

.journey-steps {
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 4vh, 40px);
    position: relative;
    z-index: 1;
}

.journey-step {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vh, 16px);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    min-height: 80px;
}

@media (min-width: 768px) {
    .journey-step {
        padding-left: 50%;
        margin-bottom: 80px;
    }
    
    .journey-step:nth-child(odd) {
        padding-left: 0;
        padding-right: 50%;
    }
}

.step-marker {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .step-marker {
        position: absolute;
        right: calc(50% - 35px);
        top: 0;
        flex-direction: column;
        z-index: 10;
    }
    
    .journey-step:nth-child(odd) .step-marker {
        right: auto;
        left: calc(50% - 35px);
    }
}

.step-number {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.step-icon {
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.6rem, 4vw, 2rem);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.08),
        0 0 0 5px rgba(255, 255, 255, 0.85),
        0 0 0 8px rgba(69,90,100,0.14);
    transition: all 0.4s ease;
}

.step-content {
    background: white;
    padding: clamp(16px, 3vw, 20px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--color-bordeaux);
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .step-content {
        max-width: 300px;
        margin-left: auto;
        padding: 18px 22px;
    }
    
    .journey-step:nth-child(odd) .step-content {
        margin-right: auto;
        margin-left: 0;
    }
}

.step-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: clamp(8px, 1.5vh, 12px);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.3;
}

.step-content p {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

/* ========================================
   USE CASES CAROUSEL
   ======================================== */

.use-cases-section {
    background: linear-gradient(135deg, 
        rgba(245, 245, 250, 1) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(240, 248, 241, 1) 100%);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(50px, 10vw, 70px);
    opacity: 0;
}

.carousel-track {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-slide {
    display: none;
    background: white;
    border-radius: var(--radius-md);
    padding: clamp(30px, 5vw, 50px);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.carousel-slide.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-number {
    position: absolute;
    top: clamp(18px, 3vh, 30px);
    right: clamp(18px, 3vw, 30px);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(69,90,100,0.15) 0%, rgba(67,160,71,0.15) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.carousel-slide h3 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(20px, 4vh, 30px);
    padding-right: clamp(50px, 10vw, 100px);
    font-weight: 700;
    line-height: 1.3;
}

.slide-image {
    width: 100%;
    height: clamp(200px, 40vw, 300px);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: clamp(20px, 4vh, 30px);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.carousel-slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vh, 15px);
}

.slide-list li {
    padding-left: clamp(32px, 6vw, 40px);
    position: relative;
    color: var(--color-text-light);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.6;
}

.slide-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    width: 25px;
    height: 25px;
    background: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(67,160,71,0.25);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--color-bordeaux);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: var(--color-bordeaux);
    color: white;
    border-color: var(--color-bordeaux);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(30px, 5vh, 40px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--color-bordeaux);
    width: 40px;
    border-radius: 6px;
}

.dot:hover {
    background: #bbb;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits-section {
    background: linear-gradient(135deg, 
        rgba(248, 240, 240, 0.5) 0%, rgba(255, 253, 251, 1) 30%, 
        rgba(255, 252, 250, 1) 70%, rgba(240, 248, 245, 0.5) 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(22px, 4.5vw, 36px);
    width: 100%;
}

.benefit-item {
    background: var(--color-bordeaux);
    color: white;
    padding: clamp(32px, 6vw, 48px);
    border-radius: var(--radius-md);
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(69,90,100,0.28);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-item:hover {
    background: var(--color-bordeaux-dark);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 45px rgba(69,90,100,0.40);
}

.benefit-icon {
    font-size: clamp(2.2rem, 5.5vw, 2.8rem);
    margin-bottom: clamp(14px, 2.5vh, 18px);
}

.benefit-item h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin-bottom: clamp(10px, 2vh, 12px);
    line-height: 1.3;
}

.benefit-item p {
    font-size: clamp(0.95rem, 2vw, 1rem);
    opacity: 0.95;
    line-height: 1.6;
}

/* ========================================
   TARGET SECTION
   ======================================== */

.target-section {
    background: linear-gradient(135deg, 
        rgba(240, 248, 244, 1) 0%, rgba(255, 255, 255, 1) 50%, 
        rgba(236, 248, 242, 1) 100%);
}

.target-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(50px, 8vh, 80px);
    opacity: 0;
}

.target-intro h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: clamp(16px, 3vh, 20px);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.target-intro p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--color-text-lighter);
    line-height: 1.7;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(22px, 4.5vw, 36px);
    width: 100%;
}

.target-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 6px 28px rgba(67,160,71,0.10);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.target-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(124, 196, 127, 0.18);
}

.target-card-icon {
    width: 100%;
    height: clamp(160px, 28vw, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.6rem, 6.5vw, 4rem);
    background: linear-gradient(135deg, #f5fef7 0%, #ebf9ed 100%);
    position: relative;
    overflow: hidden;
}

.target-card-icon span {
    position: relative;
    z-index: 1;
    transition: transform 0.4s;
}

.target-card:hover .target-card-icon span {
    transform: scale(1.15) rotate(5deg);
}

.target-card-content {
    padding: clamp(28px, 6vw, 40px);
    flex: 1 1 auto;
}

.target-card-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: clamp(10px, 2vh, 12px);
    transition: color 0.3s;
    line-height: 1.3;
}

.target-card:hover .target-card-title {
    color: #7cc47f;
}

.target-card-desc {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--color-text-lighter);
    line-height: 1.6;
    margin-bottom: clamp(16px, 3vh, 20px);
}

.target-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.target-card-features li {
    padding-left: 28px;
    position: relative;
    color: var(--color-text-light);
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    line-height: 1.6;
}

.target-card-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #7cc47f;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.target-card:hover .target-card-features li::before {
    transform: translateX(3px);
}

.target-card-badge {
    position: absolute;
    top: clamp(12px, 2vw, 20px);
    right: clamp(12px, 2vw, 20px);
    background: white;
    color: #7cc47f;
    padding: clamp(5px, 1vw, 6px) clamp(12px, 2vw, 14px);
    border-radius: 20px;
    font-size: clamp(0.75rem, 1.5vw, 0.8rem);
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(124, 196, 127, 0.2);
    z-index: 2;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    /* Match the general page body/section background (light, neutral) */
    background: linear-gradient(135deg, rgba(245,245,250,1) 0%, rgba(255,255,255,1) 50%, rgba(240,248,244,1) 100%);
    color: #1f2b3a;
    position: relative;
    overflow: visible;
    /* Small negative margin so collage can sit visually above the footer curve */
    margin-bottom: calc(var(--footer-curve-h) * -0.12);
}

.cta-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vh, 50px);
}

.cta-content {
    padding: clamp(50px, 8vh, 80px) var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: clamp(20px, 4vh, 30px);
    line-height: 1.2;
    font-weight: 700;
}

.cta-content p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: clamp(30px, 5vh, 40px);
    line-height: 1.5;
    opacity: 0.95;
}

.cta-content .cta-button {
    background: white;
    color: #2d5aa0;
    opacity: 1;
}

.cta-content .cta-button:hover {
    background: #f5f5f5;
    color: #234785;
}

.cta-visuals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(12px, 2vw, 20px);
    padding: clamp(30px, 5vh, 50px) var(--gutter);
    background: transparent;
    position: relative;
}

.cta-visual-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    aspect-ratio: 4/3;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
}

.cta-visual-item:hover {
    transform: scale(1.05) translateY(-6px);
    z-index: 20;
    box-shadow: 0 22px 60px rgba(0,0,0,0.35);
}

.cta-visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .cta-container {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    
    .cta-content {
        align-items: flex-start;
        text-align: left;
        padding: 80px 60px;
    }
    
    .cta-visuals {
        /* Turn the visuals into an overlapping collage on wide screens */
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        padding: 40px 0 40px 0;
        height: 420px;
        display: block;
    }
    
    /* Collage layout: absolute positioned overlapping cards */
    .cta-visual-item {
        position: absolute;
        width: 44%;
        height: calc(100% - 40px);
        top: 20px;
        left: 0;
        transition: transform 0.4s ease;
        border-radius: 18px;
        overflow: hidden;
        background: #fff;
    }

    /* Main (central) visual override */
    .cta-visual-item.main {
        left: 50%;
        transform: translateX(-50%) rotate(0deg) scale(1.05);
        top: 6px;
        width: 52%;
        z-index: 12;
        box-shadow: 0 28px 80px rgba(0,0,0,0.38);
    }

    .cta-visual-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cta-visual-item:nth-child(1) {
        left: 20%;
        top: -65px;
        transform: rotate(-10deg) scale(0.96);
        z-index: 4;
        width: 36%;
        opacity: 0.98;
    }

    .cta-visual-item:nth-child(2) {
        left: 8%;
        top: 28px;
        transform: rotate(8deg) scale(0.98);
        z-index: 6;
        width: 40%;
    }

    .cta-visual-item:nth-child(3) {
        /* this will be the main item after reordering, but main class overrides it */
        right: 6%;
        left: auto;
        top: 6px;
        width: 50%;
        transform: rotate(9deg);
        z-index: 8;
    }

    .cta-visual-item:nth-child(4) {
        /* place slightly behind and lower-left */
        left: -12%;
        top: 115px;
        width: 34%;
        transform: rotate(-12deg) scale(0.95);
        z-index: 3;
        opacity: 0.94;
    }

    .cta-visual-item:nth-child(5) {
        /* place small accent card bottom-right */
        right: 40%;
        left: auto;
        top: 100px;
        width: 30%;
        transform: rotate(-15deg) scale(0.98);
        z-index: 7;
        box-shadow: 0 18px 50px rgba(0,0,0,0.32);
    }

    /* Decorative swatch and overlay to mimic collage elements */
    .cta-visuals::before {
        content: '';
        position: absolute;
        left: 8%;
        top: 8%;
        width: 110px;
        height: 110px;
        border-radius: 12px;
        background: rgba(255,255,255,0.06);
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
        transform: rotate(-6deg);
        z-index: 2;
    }

    .cta-visuals::after {
        content: '';
        position: absolute;
        right: 14%;
        bottom: 8%;
        width: 84px;
        height: 40px;
        border-radius: 6px;
        background: linear-gradient(90deg, var(--color-bordeaux), var(--color-green));
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        z-index: 6;
        transform: rotate(4deg);
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--gradient-primary);
    color: white;
    padding: clamp(60px, 10vh, 80px) var(--gutter) 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vh, 50px);
    margin-bottom: clamp(40px, 6vh, 60px);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vh, 0px);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.footer-company-name {
    font-size: clamp(1.3rem, 2.8vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
}

.footer-tagline {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    line-height: 1.5;
    opacity: 0.85;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact p {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0.9;
}

.footer-contact .icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-contact a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-heading {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    transition: all 0.3s;
    display: inline-block;
}

.footer-links li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-schedule {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(16px, 3vw, 20px);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

.footer-schedule p {
    margin: 8px 0;
    opacity: 0.9;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

.footer-schedule strong {
    color: white;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-cta {
    margin-top: 10px;
}

.footer-cta-button {
    width: 100%;
    background: white;
    color: var(--color-bordeaux);
    border: none;
    padding: clamp(12px, 2vh, 16px) clamp(20px, 4vw, 30px);
    border-radius: var(--radius-sm);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.footer-cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-bordeaux-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: clamp(20px, 4vh, 30px) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: white;
    text-decoration: underline;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========================================
   UTILITY & ANIMATIONS
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   VALUES - TYPING EFFECT
   ======================================== */

.values-typing-section {
    background: linear-gradient(180deg, rgba(250,250,252,1) 0%, rgba(245,247,249,1) 100%);
    text-align: center;
}

.values-typing-section .section-content {
    /* reduce overall height for a tighter block */
    padding: clamp(18px, 3.5vh, 36px) 1rem;
}

.values-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 24px);
    flex-wrap: wrap;
    margin-top: 8px;
}


.values-subtitle {
    margin: 0;
    font-weight: 700;
    color: rgba(30,30,30,0.9);
    font-size: clamp(1.1rem, 2.4vw, 1.25rem);
}

.typing-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 6px;
    background: transparent; /* removed white block */
}

.typing-text {
    font-weight: 900;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    letter-spacing: -0.01em;
    color: var(--color-bordeaux, #9b2a2a);
    background: linear-gradient(90deg, var(--color-bordeaux, #9b2a2a) 0%, var(--color-blue, #2b8) 60%, var(--color-green, #2a9) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* gentle animated shift for a modern look */
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.typing-cursor {
    font-weight: 900;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    color: var(--color-bordeaux, #9b2a2a);
    opacity: 1;
    transition: opacity 0.2s linear;
    margin-left: 2px;
}

@keyframes blinkCursor {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.typing-cursor {
    animation: blinkCursor 1s steps(2, start) infinite;
}

.typing-cursor.typing-cursor--done {
    animation: none;
    opacity: 0.75;
}

@media (max-width: 480px) {
    .typing-text, .typing-cursor {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
}
