/* 
  Kurti Objektbetreuung - Official Stylesheet
  Premium Minimalist Facility Management Aesthetic
*/

:root {
    /* Colors */
    --clr-primary: hsl(142, 76%, 36%); /* Modern vibrant Grass Green */
    --clr-primary-hover: hsl(142, 76%, 30%);
    --clr-accent: hsl(142, 72%, 45%);
    --clr-accent-light: hsla(142, 72%, 45%, 0.1);
    
    --clr-dark: #0f172a;      /* Slate 900 */
    --clr-text: #334155;      /* Slate 700 */
    --clr-text-light: #64748b;/* Slate 500 */
    
    --clr-bg: #ffffff;
    --clr-bg-alt: #f8fafc;    /* Slate 50 */
    --clr-white: #ffffff;
    --clr-border: #e2e8f0;    /* Slate 200 */

    /* Typography */
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Spacing & Constraints */
    --container-max: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
    --radius: 12px;
}

/* 1. RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-dark);
    line-height: 1.2;
    font-weight: 700;
}

.text-accent {
    color: var(--clr-primary);
}

/* UTILS */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

/* 2. COMPONENT STYLES */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 4px 12px hsla(142, 76%, 36%, 0.25);
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px hsla(142, 76%, 36%, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--clr-white);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--clr-dark);
    color: var(--clr-dark);
}

.btn-outline:hover {
    background-color: var(--clr-dark);
    color: var(--clr-white);
}

.btn-light {
    background: var(--clr-white);
    color: var(--clr-dark);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--clr-bg-alt);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pre-title {
    display: inline-block;
    color: var(--clr-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--clr-primary);
    margin: 0 auto 1.5rem auto;
    border-radius: 2px;
}

.section-desc {
    color: var(--clr-text-light);
    font-size: 1.1rem;
}

/* 3. HEADER NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    height: 70px;
    border-bottom: 1px solid var(--clr-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-dark);
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
}

/* Text is initially light if hero is dark, unless scrolled. Let's use white context detection. 
   Wait, for simpler vanilla code, we can start it transparent and switch background on scroll, 
   while keeping text dark? No, let's make transparent text white and scrolled text dark. 
   Actually, starting it white gives better accessibility immediately. Let's do WHITE header initially but with slight opacity/blur.
*/
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-menu {
    display: none; /* Mobile hidden */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn span {
    display: none; /* Hide text on smallest mobile */
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--clr-dark);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
    .nav-menu {
        display: flex;
        gap: 2rem;
    }
    .nav-link {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--clr-dark);
        position: relative;
        padding: 0.5rem 0;
    }
    .nav-link:hover, .nav-link.active {
        color: var(--clr-primary);
    }
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--clr-primary);
        transition: var(--transition);
    }
    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }
    
    .menu-toggle {
        display: none;
    }
    .header-btn span {
        display: inline;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    max-width: 85%;
    background: var(--clr-white);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

#close-drawer {
    background: none;
    border: none;
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-link {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-dark);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--clr-border);
}

.drawer-footer {
    margin-top: auto;
}



/* 4. HERO SECTION (MODERN SPLIT LAYOUT) */
.hero {
    position: relative;
    min-height: 95vh;
    background-color: var(--clr-dark);
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
    overflow: hidden;
}

/* Subtly pattern background with deep rich depth */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, hsla(142, 76%, 36%, 0.15), transparent 50%),
        radial-gradient(circle at 20% 80%, hsla(142, 76%, 36%, 0.08), transparent 40%);
    z-index: 1;
}

/* Extra ambient layer for texture */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 50% 50%; /* Balanced for longer text */
        gap: 3rem;
    }
}

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
        margin: 0;
    }
}

.hero .badge {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    background: hsla(142, 76%, 36%, 0.15);
    border: 1px solid hsla(142, 76%, 36%, 0.3);
    color: #fff;
    backdrop-filter: blur(8px);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* Premium Text Gradient Effect */
.text-gradient {
    background: linear-gradient(to right, #ffffff 10%, var(--clr-accent) 40%, #00ff7f 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: textShine 4s ease-in-out infinite alternate;
    display: inline-block;
    white-space: nowrap; /* Stellt sicher, dass der Name zusammenbleibt */
}

.text-white-glow {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
    font-weight: 400;
    max-width: 550px;
}

/* Let's thin out the subtitle weight to make headline pop more */
@media (min-width: 1024px) {
    .hero-subtitle {
        margin-left: 0;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-actions .btn-outline:hover {
    background-color: #fff;
    color: var(--clr-dark);
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

/* Visual Side */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 750px; /* Even larger now */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5), 0 18px 36px -18px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -12px rgba(0,0,0,0.6);
}

.main-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Glowing Orb behind the big image */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, var(--clr-primary) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.25;
    z-index: -1;
    border-radius: 50%;
}


.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--clr-primary);
    animation: bounce 2s infinite;
    display: none; /* simplify layout */
}

@media (min-width: 1024px) {
    .scroll-indicator {
        display: flex;
    }
}



/* 5. SERVICES GRID */
.leistungen-section {
    background-color: var(--clr-bg-alt);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--clr-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--clr-accent-light);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--clr-primary);
    color: var(--clr-white);
}

.icon-box i {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-cta {
    margin-top: 4rem;
    text-align: center;
}


/* 6. ABOUT US SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-visual {
    position: relative;
}

.image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-xl);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-visual:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--clr-primary);
    color: var(--clr-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 200px;
    z-index: 2;
    display: none;
}

@media (min-width: 768px) {
    .experience-badge {
        display: block;
    }
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.about-content .pre-title {
    margin-bottom: 0.5rem;
}

.p-large {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clr-dark);
    margin-bottom: 1.5rem;
}

.p-base {
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--clr-accent-light);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.feature-icon i {
    width: 16px;
    height: 16px;
}

.feature-list strong {
    display: block;
    color: var(--clr-dark);
    font-family: var(--font-heading);
    font-weight: 700;
}

.feature-list span {
    font-size: 0.9rem;
    color: var(--clr-text-light);
}


/* 7. CTA BAR */
.cta-bar {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* subtle texture background */
.cta-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
}

.cta-bar-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-bar h2 {
    color: var(--clr-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-bar p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}



/* 8. CONTACT SECTION */
.kontakt-section {
    background-color: var(--clr-bg-alt);
    padding-bottom: 8rem;
}

.contact-methods-centered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.method-card {
    background: var(--clr-white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clr-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.method-card.highlight {
    background: linear-gradient(135deg, var(--clr-dark) 0%, #1e293b 100%);
    border-color: transparent;
}

.method-card .method-icon {
    width: 64px;
    height: 64px;
    background: var(--clr-accent-light);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: 0.3s ease;
}

.method-card:hover .method-icon {
    transform: scale(1.1);
}

.method-card.highlight .method-icon {
    background: #25d366;
    color: white;
}

.method-card .method-icon i {
    width: 28px;
    height: 28px;
}

.method-card .method-details label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
}

.method-card.highlight .method-details label {
    color: rgba(255,255,255,0.5);
}

.method-card .method-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--clr-dark);
    word-break: break-word;
}

.method-card.highlight .method-value {
    color: #ffffff;
}

.method-card a.method-value {
    position: relative;
    text-decoration: none;
}

.method-card a.method-value::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.method-card:hover a.method-value::after {
    width: 60%;
}




/* 9. ERGEBNISSE SECTION (BEFORE-AFTER SLIDER) */
.ergebnisse-section {
    background-color: var(--clr-bg);
}

.slider-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    touch-action: pan-y; 
    border: 4px solid var(--clr-white);
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-after {
    background-image: url('solar-clean.png');
}

.ba-before {
    background-image: url('solar-dirty.png');
    clip-path: inset(0 calc(100% - var(--position, 50%)) 0 0);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position, 50%);
    width: 4px;
    background: var(--clr-white);
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.ba-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--clr-white);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 1.2rem;
}

.ba-circle i {
    width: 24px;
    height: 24px;
}

.ba-label {
    position: absolute;
    bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 8px;
    z-index: 5;
    pointer-events: none;
    letter-spacing: 0.05em;
}
.ba-label-before {
    left: 1.5rem;
}
.ba-label-after {
    right: 1.5rem;
}

.ba-disclaimer {
    position: absolute;
    bottom: 0.4rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.625rem;
    font-family: var(--font-body);
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ba-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    z-index: 20;
}

@media (max-width: 768px) {
    .ba-slider {
        aspect-ratio: 4/3;
    }
    .ba-circle {
        width: 40px;
        height: 40px;
    }
    .ba-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        bottom: 1rem;
    }
}


/* 10. FOOTER */
.footer {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding: 4rem 0 2rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand h3 {
    color: var(--clr-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--clr-white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}


/* 10. FLOATING ELEMENTS & ANIMATIONS */

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-float i {
    width: 28px;
    height: 28px;
}

.whatsapp-float .tooltip {
    position: absolute;
    right: calc(100% + 1rem);
    background: var(--clr-dark);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
}

/* KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* INTERSECTION OBSERVER UTILS */
.scroll-item, .scroll-item-left, .scroll-item-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-item {
    transform: translateY(40px);
}

.scroll-item-left {
    transform: translateX(-40px);
}

.scroll-item-right {
    transform: translateX(40px);
}

.visible {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Staggering delay utility via JS will handle sequential, 
   but here we support basic reveal. */

/* 11. LEGAL / SUBPAGE STYLES */
.legal-hero {
    background-color: var(--clr-dark);
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
    color: white;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, hsla(142, 76%, 36%, 0.15), transparent 70%);
    pointer-events: none;
}

.legal-hero .section-title {
    color: white;
    margin-bottom: 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.rich-text h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--clr-dark);
}

.rich-text h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.rich-text p {
    margin-bottom: 1.25rem;
    color: var(--clr-text);
}

.rich-text ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}

.rich-text li {
    margin-bottom: 0.5rem;
}

.rich-text a {
    color: var(--clr-primary);
    text-decoration: underline;
}

.rich-text a:hover {
    color: var(--clr-primary-hover);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--clr-text-light);
}

.back-btn:hover {
    color: var(--clr-primary);
}

/* 12. GALLERY SECTION */
.gallery-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--clr-white);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
    box-shadow: 0 4px 12px hsla(142, 76%, 36%, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    background-color: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: var(--clr-white);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-info span {
    color: var(--clr-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-family: var(--font-heading);
    transform: translateY(10px);
    transition: transform 0.3s ease 0.05s;
}

.gallery-item:hover .gallery-info h4,
.gallery-item:hover .gallery-info span {
    transform: translateY(0);
}

/* Grid item hidden state for filtering animation */
.gallery-item.hidden {
    display: none;
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
