@font-face {
    font-family: 'Caros';
    src: url('caros/Caros-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --accent-red: #ff3a3a;
    --accent-red-dark: #c01e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Caros', sans-serif;
    font-weight: bold;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}


/* === NEW & IMPROVED HEADER STYLES v3 === */

/* --- Root Variable for a smoother animation curve --- */
:root {
    /* ... existing variables ... */
    --transition-elegant: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header#header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    background-color: rgba(10, 10, 10, 0.75);
    border-bottom: 1px solid transparent;
    transition: padding 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

header#header.scrolled {
    padding: 10px 40px;
    background-color: rgba(10, 10, 10, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* --- Interactive Logo (Hover effect removed) --- */
.logo { display: flex; align-items: center; gap: 12px; }
.logo a { transition: transform 0.3s ease; }
#logo { height: 28px; border-radius: 4px; }
.logo-text { font-size: 24px; font-weight: 700; color: var(--text-primary); }


/* --- Redesigned Navigation (Desktop) --- */
nav { display: flex; align-items: center; }
nav ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
nav ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    position: relative;
    border-radius: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1;
    white-space: nowrap;
}
nav a::after { display: none; }
nav ul a::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--surface-hover);
    border-radius: 8px;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
nav ul a:hover { color: var(--text-primary); transform: translateY(-2px); }
nav ul a:hover::before { transform: scaleX(1); }

/* --- Polished Submenu --- */
.has-submenu { position: relative; }
.submenu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    list-style: none;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: var(--transition-elegant);
    transition-property: opacity, visibility, clip-path, top;
}
.has-submenu.open .submenu {
    opacity: 1;
    visibility: visible;
    top: 110%;
    clip-path: inset(0 0 0 0);
}
.submenu li { opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; transition-delay: calc(0.05s * var(--i, 1)); }
.submenu li:nth-child(1) { --i: 1; }
.submenu li:nth-child(2) { --i: 2; }
.submenu li:nth-child(3) { --i: 3; }
.submenu li:nth-child(4) { --i: 4; }
.submenu li:nth-child(5) { --i: 5; }
.has-submenu.open .submenu li { opacity: 1; transform: translateY(0); }
.submenu li a { padding: 10px 16px; font-size: 15px; color: var(--text-secondary); display: block; border-radius: 8px; transition: color var(--transition-fast), background-color var(--transition-fast); }
.submenu li a:hover { color: var(--accent-red); background-color: var(--surface-color); }

/* --- Animated Hamburger Menu Icon --- */
.mobile-nav-toggle {
    display: none;
    width: 24px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
.mobile-nav-toggle span { display: block; position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--text-primary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease; }
.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-nav-toggle span:nth-child(3) { bottom: 0; top: auto;}

/* Hamburger to 'X' animation */
header#header.menu-open .mobile-nav-toggle span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
header#header.menu-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
header#header.menu-open .mobile-nav-toggle span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* === Mobile Layout & Slide-out Panel (Triggered by JS) === */

/* Initially, hide the mobile toggle and show the desktop nav */
.mobile-nav-toggle { display: none; }
nav { display: flex; }

/* When JS determines mobile layout is needed: */
.header-mobile-layout nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--darker-bg);
  padding: 80px 20px 20px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;               /* <-- changed */
  overflow-y: auto;
  border-left: 1px solid var(--border-color); /* <-- added */
}

.header-mobile-layout nav ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.header-mobile-layout .mobile-nav-toggle {
    display: block; /* Show hamburger */
}
.header-mobile-layout nav ul a { font-size: 1.4rem; }
.header-mobile-layout nav ul a:hover { transform: none; }
.header-mobile-layout nav ul a:hover::before { transform: scaleX(1); }
.header-mobile-layout .has-submenu .submenu { position: static; display: none; background-color: transparent; box-shadow: none; border: none; padding-left: 20px; margin-top: 10px; border-radius: 0; min-width: unset; opacity: 1; visibility: visible; transform: none; clip-path: none; }
.header-mobile-layout .has-submenu.open .submenu { display: flex; }
.header-mobile-layout .submenu li,
.header-mobile-layout .has-submenu.open .submenu li { opacity: 1; transform: none; }

/* When the menu button is clicked in mobile layout: */
.header-mobile-layout.menu-open nav {
    transform: translateX(0); /* Slide the nav panel into view */
}



/* Show the nav list ONLY when it's repurposed as a mobile panel */
.header-mobile-layout.menu-open > nav > ul {
    display: flex;
}

/* --- ADD THIS RULE --- */
/* Makes submenu text smaller in the mobile hamburger menu */
.header-mobile-layout .submenu li a {
    font-size: 1.1rem; /* Smaller font for sub-items */
    padding-top: 8px;
    padding-bottom: 8px;
    color: var(--text-secondary);
}

/* === HERO SECTION === */
.hero-reimagined {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: black;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-text-overlay {
  position: absolute;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  width: 100%;
  max-width: 800px;
  bottom: 10vh;
}

.hero-reimagined h1 {
  font-size: 3.5rem;
  color: var(--text-primary);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 25px;
}

/* === BUTTONS === */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-3px);
    background-color: rgba(255, 58, 58, 0.1);
}

/* === CLEAN SECTION HEADER DESIGN === */
.section-title {
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 60px;
}

section:first-of-type .section-title,
section:first-of-type + section .section-title {
    border-top: none;
    padding-top: 0;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* === ABOUT SECTION === */
.about-box-section {
    padding: 140px 20px 100px;
    display: flex;
    justify-content: center;
    background-color: var(--darker-bg);
}
  
.about-box {
    max-width: 900px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
}
  
.about-box-text h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 40px;
}
  
.about-box-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    text-align: left;
}

.about-box-text p:last-child {
    margin-bottom: 0;
}
  
.about-box-text p strong {
    color: var(--text-primary);
}

/* === FEATURES SECTION (SLIDER VERSION) === */
.features {
    padding: 120px 0;
    background: var(--dark-bg);
    overflow: hidden; /* Prevent horizontal scrollbars */
}

.features-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.features-slider {
    width: 100%;
    overflow: visible; /* Allows seeing parts of adjacent cards */
}

.features-track {
    display: flex;
    align-items: center;
    gap: 40px;
    /* This will be controlled by JS, but set a fallback starting point */
    position: relative;
    left: 0;
    /* The key transition for the smooth sliding effect */
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    flex: 0 0 320px; /* Fixed width: no grow, no shrink, 320px base */
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transform: scale(0.85); /* Inactive cards are smaller */
    opacity: 0.6;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
    position: relative; /* Required for positioning the animated outline */
}


/* --- Active State --- */
.feature-card.active {
    transform: scale(1);
    opacity: 1;
    border-color: var(--border-color); /* Revert border color */
}


.feature-icon {
    color: var(--accent-red);
    background-color: rgba(255, 58, 58, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.feature-card.active .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-red);
}

.feature-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

/* --- Description --- */
.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    /* Transition with a slight delay to feel smoother */
    transition: opacity 0.5s ease-out 0.2s, max-height 0.5s ease-out 0.2s, margin-top 0.5s ease-out 0.2s;
}

.feature-card.active .feature-content p {
    opacity: 1;
    max-height: 150px;
    margin-top: 15px;
}

/* --- Arrows --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--surface-hover);
    border-color: var(--accent-red);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card {
        flex-basis: calc(100vw - 80px); /* Make cards almost full-width on mobile */
        padding: 30px 20px;
    }
    .slider-arrow.prev {
        left: 10px;
    }
    .slider-arrow.next {
        right: 10px;
    }
}




/* === NEW STYLES FOR SVG OUTLINE ANIMATION === */

.feature-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to go through to the card */
}

.feature-outline-rect {
    fill: transparent;
    stroke: transparent;
    stroke-width: 3px; /* You can adjust the thickness */
    transition: stroke 0.4s ease;
}

/* On the active card, the outline appears */
.feature-card.active .feature-outline-rect {
    stroke: var(--accent-red);
    stroke-dasharray: 1; /* The total length of the rectangle's path */
    stroke-dashoffset: 0; /* The starting point, fully drawn */
}

/* This class, added by JavaScript, triggers the animation */
.feature-card.animate-undraw .feature-outline-rect {
    animation: undraw-line 10s linear forwards;
}

@keyframes undraw-line {
    from {
        stroke-dashoffset: 0; /* Starts fully drawn */
    }
    to {
        stroke-dashoffset: 1; /* Ends fully "erased" */
    }
}




/* === HOW IT WORKS (TIMELINE) SECTION === */
.how-it-works {
    padding: 120px 40px;
    background-color: var(--darker-bg);
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}
  
.timeline-step {
    padding-left: 80px;
    position: relative;
    margin-bottom: 50px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}
  
.step-icon {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--accent-red);
    background-color: var(--darker-bg);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    z-index: 2; /* <-- ADD THIS LINE */
}

.step-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--accent-red);
}

.step-content {
    background-color: transparent;
    padding: 10px 0;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
  
.step-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.step-content strong {
    color: var(--text-primary);
}

.step-content a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
}
.step-content a:hover {
    color: var(--accent-red);
}

/* Add a pseudo-element to the last step to cover the timeline line below the icon */
.timeline-step:last-child::after {
    content: '';
    position: absolute;
    top: 37px; /* Aligns with the vertical center of the icon */
    bottom: 0;
    left: 31px; /* Positioned to cover the 2px line */
    width: 4px;
    background-color: var(--darker-bg); /* Match the section background */
    z-index: 1;
}


/* === ACHIEVEMENTS SECTION === */
.achievements {
    padding: 120px 40px;
    background: var(--dark-bg);
}

.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.achievement-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: var(--transition-fast);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.achievement-card:hover {
    transform: translateY(-8px);
    background-color: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.achievement-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.achievement-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.achievement-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.achievement-content h3 {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: auto;
    padding-bottom: 15px;
}

.achievement-link {
    font-size: 0.9rem;
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: var(--transition-fast);
}

.achievement-link:hover {
    color: var(--accent-red-dark);
}

/* === FOOTER === */
footer {
    background-color: var(--dark-bg);
    padding: 60px 40px 20px;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-red);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

/* Footer links styled like header nav links */
footer a {
    position: relative;
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1;
    white-space: nowrap;
}

footer a::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--surface-hover);
    border-radius: 8px;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

footer a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

footer a:hover::before {
    transform: scaleX(1);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.social-icon-inline {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.social-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ADDED: For aligning social media links like Instagram */
.social-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* === SCROLL & UTILITY CLASSES === */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ADDED: Back to top button styles */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 58, 58, 0.8);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-red);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    header {
       padding: 15px 20px;
    }

    .hero-product-image {
        transform: translate(-50%, -50%) scale(1.5);
    }

    .hero-text-overlay {
        bottom: 10vh;
    }

    .hero-reimagined h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-box-section, .features, .how-it-works, .achievements, footer {
        padding: 80px 20px;
    }

    .about-box {
        padding: 30px;
        text-align: center;
    }
    .about-box-text h2, .about-box-text p {
        text-align: center;
    }

    .timeline-container {
        padding-left: 0;
    }

    .timeline-container::before {
        display: none;
    }
  
    .timeline-step {
        padding-left: 0;
        text-align: center;
    }
    
    .step-icon {
        position: static;
        margin: 0 auto 20px auto;
    }
}




.gallery-link-section {
    padding: 120px 40px 100px;
    background-color: var(--darker-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-button-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .gallery-link-section {
        padding: 80px 20px;
    }

    .gallery-button-container .btn {
        width: 70%;
        max-width: 360px;
        font-size: 0.95rem;
  }
}




.btn-primary {
    background-color: var(--accent-red-dark);
    color: var(--text-primary);
    border: 2px solid var(--accent-red-dark);
}

.btn-primary:hover {
    background-color: #a01818; /* A darker, more muted red */
    border-color: #a01818;
    transform: translateY(-3px);
}

@media (max-width: 768px) {

    .cta-buttons {
        flex-direction: column;
        align-items: center; /* This centers the stacked buttons */
        gap: 12px;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
        width: 60%; /* Gives the buttons a consistent width */
        max-width: 320px; /* Prevents buttons from being too wide */
        justify-content: center; /* Ensures text is centered */
    }
}


/* ADDED: Utility class for tighter spacing in buttons with icons */
.btn--icon-tight {
    gap: 4px;
}




/* ADDED: Specific mobile styles for the functionality page hero title */
@media (max-width: 768px) {
  #how-it-works-hero h1 {
    font-size: 2.2rem; /* Reduced from 3rem for mobile */
    margin-bottom: 15px;
  }

  #how-it-works-hero .section-title {
    font-size: 1rem; /* Reduced from 1.2rem for mobile */
    line-height: 1.5;
  }
}









/* === GALLERY LOADER === */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

#gallery-wrapper {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

#gallery-wrapper.visible {
    opacity: 1;
}


/* === GALLERY SECTION === */
.gallery {
    padding: 120px 40px;
    background-color: var(--dark-bg);
    min-height: 100vh;
}

.media-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Base styles for all media elements before they are loaded */
.media-grid img,
.media-grid video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.media-grid img.interactive-element {
    cursor: pointer;
}

/* Style applied by JS when the element is loaded */
.media-grid img.show,
.media-grid video.show {
    opacity: 1;
    transform: translateY(0);
}

.media-grid img:hover,
.media-grid video:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: var(--accent-red);
    transform: translateY(-5px) scale(1.02);
}


/* === LIGHTBOX === */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-arrow:hover {
    color: white;
    transform: translateY(-50%) scale(1.1);
}

#lightbox-left {
    left: 20px;
}

#lightbox-right {
    right: 20px;
}

/* === LIGHTBOX SWIPE ANIMATIONS === */
@keyframes swipeLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes swipeRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

img.swipe-left { animation: swipeLeft 0.4s forwards; }
img.swipe-right { animation: swipeRight 0.4s forwards; }


/* === GALLERY RESPONSIVE STYLES === */
@media (max-width: 768px) {
    .gallery {
        padding: 80px 20px;
    }
    .media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .media-grid img,
    .media-grid video {
        height: 250px;
    }
    .lightbox-arrow {
        font-size: 2rem;
    }
    #lightbox-left { left: 5px; }
    #lightbox-right { right: 5px; }
}





/* === ABOUT PAGE SECTION === */
.about-page-box-section {
  padding: 140px 20px 100px;
  display: flex;
  justify-content: center;
  background-color: var(--darker-bg);
}

.about-page-box {
  max-width: 900px;
  width: 100%;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.about-page-box-text h2 {
  font-size: 2.7rem;
  color: var(--text-primary);
  margin-bottom: 40px;
  padding-bottom: 0;
  text-align: left;
}

.about-page-box-text h2::after {
  display: none;
}

.about-page-box-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 24px;
  text-align: left;
}

.about-page-box-text p strong {
  color: var(--text-primary);
}


/* === ABOUT PAGE CREATORS SECTION === */
.about-page-creators-section {
  padding: 0 20px 100px;
  background-color: var(--darker-bg);
  text-align: center;
}

.about-page-creators-container {
  max-width: 1000px;
  margin: auto;
}

.about-page-section-title {
  font-size: 2.4rem;
  color: var(--text-primary);
  margin: 80px auto 40px;
  display: inline-block;
}

.about-page-section-title::after {
  display: none;
}

.about-page-creator-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.about-page-creator-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  width: 280px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.about-page-creator-card:hover {
  transform: translateY(-6px);
  background-color: var(--surface-hover);
}

.about-page-creator-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.about-page-creator-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.about-page-creator-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}


/* === ABOUT PAGE CONTACT SECTION === */
.about-page-contact-section {
  padding: 0 20px 120px;
  background-color: var(--darker-bg);
}

.about-page-contact-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 50px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.about-page-contact-box h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-page-contact-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.about-page-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-page-contact-form input,
.about-page-contact-form textarea {
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: box-shadow var(--transition-fast);
}

.about-page-contact-form input:focus,
.about-page-contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-red);
  background-color: rgba(255, 255, 255, 0.08);
}

.about-page-contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.about-page-contact-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background-color: var(--accent-red);
  color: var(--text-primary);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.about-page-contact-form button:hover {
  background-color: var(--accent-red-dark);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
  .about-page-box-section {
    padding: 80px 20px;
  }

  .about-page-box {
    padding: 30px;
  }

  .about-page-box-text h2 {
    font-size: 2rem;
  }

  .about-page-box-text p {
    font-size: 1rem;
  }

  .about-page-creators-section {
    padding: 60px 20px;
  }

  .about-page-creator-cards {
    flex-direction: column;
    align-items: center;
  }

  .about-page-contact-section {
    padding: 60px 20px;
  }

  .about-page-contact-box {
    padding: 30px;
  }

  .about-page-contact-form button {
    width: 100%;
  }
}




.home-animate {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 1.1s cubic-bezier(0.18, 0.7, 0.38, 1.05),
    transform 1.1s cubic-bezier(0.18, 0.7, 0.38, 1.05),
    filter 0.8s cubic-bezier(0.18, 0.7, 0.38, 1.05);
  will-change: opacity, transform, filter;
}

.home-animate.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}










/* REPLACE your current Key Aspects rules with this compact set */

/* Section */
.key-aspects {
  padding: 56px 20px;
  background: var(--darker-bg);
}

/* Container: now uses Flexbox to keep items on one line and stretch them to equal height */
.aspects-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: stretch;
}

/* Flexbox items (the cards) */
.aspect-item {
  flex-basis: 0;
  flex-grow: 1; /* By default, all items grow equally */
}

/* The wide item grows more, making it wider */
.aspect-item--wide {
  flex-grow: 1.5; /* Adjust this value for a more/less dramatic effect */
}

/* Card: simple, compact, still premium */
.aspect-card-pro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 18px 52px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  height: 100%;
  overflow: visible;
}

/* Subtle accent bar (cool but minimal) */
.aspect-card-pro::before{
  content:"";
  position:absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, var(--accent-red), transparent 80%);
  opacity: .55;
}

/* Badge: simple and small */
.aspect-badge{
  position:absolute; left:14px; top:14px;
  width:28px; height:28px; border-radius:8px;
  display:grid; place-items:center;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
}
.aspect-badge svg{ width:18px; height:18px; stroke:var(--text-primary); }

/* Typography: trim all extra margins so no inner white gaps */
.aspect-card-pro h3{
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.aspect-card-pro h4{
  margin: 2px 0 0 0;
  font-size: 1rem;
  color: var(--text-primary);
}
.aspect-card-pro p{
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
}
.aspect-card-pro p + p{ margin-top: 8px; }

/* Hover */
.aspect-card-pro:hover{
  transform: translateY(1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}

/* Responsive styles for mobile */
@media (max-width: 768px){
  .key-aspects{ padding: 44px 16px; }
  .aspects-grid{
    flex-direction: column; /* Stack items vertically on smaller screens */
    gap: 14px;
  }
  .aspect-card-pro{ padding:16px 16px 16px 48px; }
  .aspect-badge{ left:10px; top:10px; width:26px; height:26px; }
}

/* Make <strong> text actually strong */
.key-aspects strong {
  font-weight: 700;
  color: var(--text-primary);
}



/* === FULLSCREEN DARK THEME 404 PAGE STYLES (No Glow) === */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* fill entire viewport height */
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--dark-bg); /* #121212 */
}

.error-page .logo {
    width: 150px;
    margin-bottom: 30px;
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--text-primary); /* white */
    margin-bottom: 10px;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-secondary); /* #b0b0b0 */
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-page .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background-color: var(--accent-red); /* #ff3a3a */
    color: #fff;
    transition: var(--transition-smooth);
    box-shadow: none; /* removed glow/shadow */
}

.error-page .btn:hover {
    background-color: var(--accent-red-dark); /* #c01e1e */
    transform: translateY(-3px);
    box-shadow: none; /* no glow on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .error-code {
        font-size: 4rem;
    }
    .error-message {
        font-size: 1.5rem;
    }
    .error-description {
        font-size: 1rem;
    }
}










/*coming soon ---delete after*/

/* Full-screen section */
.coming-soon-section {
  min-height: 100svh; /* handles mobile browser UI better than 100vh */
  padding: clamp(96px, 10vh, 140px) 24px clamp(64px, 10vh, 120px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--darker-bg);
  isolation: isolate; /* keep accents behind content */
}

/* Subtle gradient accents */
.cs-accent {
  position: absolute;
  inset: auto;
  filter: blur(60px);
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
}
.cs-accent-a {
  width: 60vmax; height: 60vmax;
  top: -20vmax; left: -10vmax;
  background: conic-gradient(from var(--accent-a), #7aa2ff, #2ed6ff, #7aa2ff);
  border-radius: 50%;
}
.cs-accent-b {
  width: 55vmax; height: 55vmax;
  bottom: -18vmax; right: -12vmax;
  background: conic-gradient(from var(--accent-b), #ff6787, #ffb36b, #ff6787);
  border-radius: 50%;
}

/* Center card */
.coming-soon-card {
  width: min(780px, 92vw);
  margin-inline: auto;
  padding: clamp(28px, 4.2vh, 40px) clamp(20px, 4vw, 44px);
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .8s ease, opacity .8s ease, box-shadow .3s ease;
}

/* Reveal animation hook (JS adds .visible) */
.reveal-on-scroll.visible .coming-soon-card,
.coming-soon-card.reveal-on-scroll.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Smaller, crisp logo */
.coming-soon-logo {
  width: clamp(90px, 12vw, 140px);
  height: auto;
  margin: 6px auto 18px;
  image-rendering: -webkit-optimize-contrast;
}

/* Title */
.coming-soon-title {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: 0.2px;
  color: var(--text-primary);
  font-weight: 600;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  margin: 0;
}

/* Hover/lift on desktop for a touch of polish */
@media (hover:hover) and (pointer:fine) {
  .coming-soon-card:hover {
    box-shadow: 0 16px 60px rgba(0,0,0,0.45);
    transform: translateY(-2px);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .coming-soon-card {
    transition: none;
    transform: none;
    opacity: 1;
  }
}


/* --- Distanzuino Learn: tiny presentation card additions --- */
.coming-soon-section{
  /* Ensure card uses site tokens if not already set */
  --card-bg: var(--surface-color);
  --card-border: var(--border-color);
  --card-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.cs-eyebrow{
  display:inline-block;
  margin: 4px 0 10px;
  font-size:.8rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: var(--text-secondary);
  opacity:.9;
}

.coming-soon-desc{
  margin: 12px auto 14px;
  max-width: 52ch;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cs-points{
  display:flex; gap:10px; flex-wrap:wrap;
  justify-content:center;
  list-style:none; padding:0; margin: 6px 0 18px;
}
.cs-points li{
  font-size:.9rem; color:var(--text-primary);
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 999px;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}
@media(hover:hover){
  .cs-points li:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.2); }
}

.cs-cta-row{
  display:flex; gap:10px; align-items:center; justify-content:center;
}

.cs-chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 8px 14px; border-radius:999px;
  background: rgba(255,58,58,.12);
  color: var(--text-primary);
  border: 1px solid var(--accent-red);
  font-size:1.2rem; font-weight: 700;
  letter-spacing:.2px;
}


/* Centered presentation variant */
/* Centered logo + introducing */
.cs-centered {
  text-align: center;
}

.cs-logo-centered {
  margin: 0 auto 8px; /* space below logo */
  height: 56px;
  width: auto;
  display: block;
}

.cs-eyebrow-centered {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.coming-soon-title {
  margin: 6px 0 8px;
}

.coming-soon-desc {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* STEAMflow evolution card (below Learn) */
.coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vh, 28px);
}

.cs-steamflow-card {
  width: min(780px, 92vw);
  margin-inline: auto;
  padding: clamp(24px, 3.5vh, 36px) clamp(20px, 4vw, 44px);
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .8s ease, opacity .8s ease, box-shadow .3s ease;
}

.reveal-on-scroll.visible .cs-steamflow-card,
.cs-steamflow-card.reveal-on-scroll.visible {
  transform: translateY(0);
  opacity: 1;
}

.cs-steamflow-bridge {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.cs-steamflow-logo {
  display: block;
  width: min(168px, 55vw);
  height: auto;
  margin: 0 auto 16px;
}

.cs-steamflow-desc {
  margin: 0 auto 22px;
  max-width: 52ch;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cs-steamflow-btn {
  justify-content: center;
}

@media (hover:hover) and (pointer:fine) {
  .cs-steamflow-card:hover {
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-steamflow-card {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/*coming soon ---delete after ends here*/







/* === How It Works (simple, premium) === */
.hiw {
  padding: 96px 24px;
  background: var(--darker-bg);
  border-top: 1px solid var(--border-color);
}

.hiw__head {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}
.hiw__head h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  margin: 0 0 8px;
}
.hiw__lead {
  color: var(--text-secondary);
  margin: 0;
}

/* Steps list */
.hiw__steps {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

/* Card */
.hiw__step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 20px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  will-change: transform;
}

.hiw__step:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  background: var(--surface-hover);
}

/* Number badge */
.hiw__num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  background: linear-gradient(180deg, var(--accent-red), var(--accent-red-dark));
  color: #fff;
  box-shadow: 0 6px 14px rgba(181, 33, 39, .35); /* uses brand red tone */
}

/* Titles + text */
.hiw__body h3 {
  margin: 2px 0 6px;
  font-size: 1.05rem;
}
.hiw__body p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Subtle left accent line for continuity */
.hiw__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(181,33,39,.55),
    rgba(181,33,39,.15)
  ); /* ties into brand accent */
  opacity: .6;
}

/* Soft entrance animation (no JS) */
@keyframes hiwFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hiw__step {
  opacity: 0;
  animation: hiwFadeUp .5s ease forwards;
}
.hiw__step:nth-child(1) { animation-delay: 0.00s; }
.hiw__step:nth-child(2) { animation-delay: 0.05s; }
.hiw__step:nth-child(3) { animation-delay: 0.10s; }
.hiw__step:nth-child(4) { animation-delay: 0.15s; }
.hiw__step:nth-child(5) { animation-delay: 0.20s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hiw__step, .hiw__step:hover { animation: none; transform: none; }
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .hiw { padding: 72px 16px; }
  .hiw__step { grid-template-columns: 36px 1fr; padding: 16px; }
}


/* === How It Works adjustments === */
.hiw strong {
  color: var(--text-primary); /* makes strong text white */
}

.hiw a {
  color: var(--text-primary); /* make links white */
  text-decoration: none;      /* remove underline */
  font-weight: bold;
}

.hiw a:hover {
  color: var(--accent-red);   /* subtle hover effect */
}

/* CTA button at bottom */
.hiw__cta {
  text-align: center;
  margin-top: 40px;
}

/* === How It Works button hover adjustment === */
.hiw .btn-primary:hover {
  color: var(--accent-red);   /* text turns red on hover */
  background-color: transparent;
  border-color: var(--accent-red);
}




/* Hidden by default on desktop */
.mobile-menu-logo { display: none; }

/* In mobile layout, the slide-out nav must stack vertically */
.header-mobile-layout nav {
  display: block;                 /* overrides the global nav { display:flex } */
}

/* Show and style the logo at the very top of the opened panel */
.header-mobile-layout .mobile-menu-logo {
  display: block;
  text-align: left;   /* align left like the menu items */
  margin: 0 0 24px;
}

.header-mobile-layout .mobile-menu-logo img {
  max-width: 90px;
  height: auto;
  display: block;     /* ensures it respects left alignment */
}


/* Right-side drawer: partial width on bigger screens, full on tiny phones */
@media (max-width: 480px) {
  .header-mobile-layout nav {
    width: 100%;
    border-radius: 0;
  }
}

@media (min-width: 481px) {
  .header-mobile-layout nav {
    width: min(420px, 80vw);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: -24px 0 48px rgba(0,0,0,0.35);
  }
}

/* Scrim behind the drawer */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000; /* below the drawer */
  pointer-events: none;
}
.header-mobile-layout.menu-open .nav-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Prevent flash of desktop menu on narrow screens before JS runs */
@media (max-width: 900px) {
  header#header > nav > ul { display: none; }
  header#header .mobile-nav-toggle { display: block; }
}




/* 1) Disable animation before JS marks ready */
.header-mobile-layout nav { transition: none; }

/* 2) Re-enable animation AFTER first paint (JS adds .header-anim-ready) */
.header-mobile-layout.header-anim-ready nav { transition: transform 280ms ease; }

/* 3) Make sure the list is visible when the menu is open */
/* NEW (descendant selector works regardless of wrappers) */
.header-mobile-layout nav ul { display: none; }                 /* hidden by default in mobile */
.header-mobile-layout.menu-open nav ul { display: flex; }       /* visible when menu open */
.header-mobile-layout nav ul {                                   /* keep links visible below logo */
  flex-direction: column;
  gap: 15px;
  padding-top: 88px;
  overflow-y: auto;
}


/* Mobile drawer: keep UL hidden by default */
.header-mobile-layout nav > ul { display: none; }

/* When menu is open, force UL to show (override the ID-based rule) */
header#header.header-mobile-layout.menu-open nav > ul {
  display: flex !important;    /* beats header#header > nav > ul {display:none} */
  flex-direction: column;
  gap: 15px;
  padding-top: 88px;           /* leaves space below the logo */
  overflow-y: auto;
}







/* Hide nav list by default on mobile; show when header is open */
@media (max-width: 900px) {
  #header nav > ul { display: none; }
  #header.menu-open nav > ul {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    padding-top: 88px; /* space for your logo */
    overflow-y: auto;
  }
}

/* Enable transitions only AFTER load to avoid first-load slide animation */
#header.hdr-transitions nav,
#header.hdr-transitions .drawer,
#header.hdr-transitions .mobile-panel {
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Prevent background scroll when menu open */
.no-scroll { overflow: hidden; }









