:root {
    --bg-base: #050505;
    --bg-surface: #121212;
    --bg-elevated: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #e0e0e0;
    --font-main: 'Inter', -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

button {
    cursor: pointer;
    font-family: var(--font-main);
}

/* Universal Background Image Utilities */
.card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-overlay {
    position: absolute;
    inset: 0;
    /* Dark gradient so white text is always readable regardless of the image */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 25%, transparent 100%);
    z-index: 1;
}

/* Ensure content sits above the image and overlay */
.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* --- Global Text Reveal Utilities --- */


/* Fallback for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .type-reveal {
        visibility: visible !important;
        opacity: 1 !important;
    }
    .type-reveal[data-mode="chars"]::after {
        display: none;
    }
}

/* --- Utilities --- */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    touch-action: none; /* Prevents background swiping on mobile */
}

html {
    font-size: 0.8333vw;
}
@media (min-width: 1920px) {
    html { font-size: 16px; }
}
@media (max-width: 768px) {
    html { font-size: 14px !important; }
}

/* ==========================================
   THE MASTER SCALE ENGINE
   ========================================== */
html { 
    font-size: 0.8333vw; 
    overflow-x: visible;   /* ← CHANGE from clip to visible */
    width: 100%; 
    max-width: 100vw; 
    position: static;      /* ← CHANGE from relative to static */
}

@media (min-width: 1920px) { 
    html { font-size: 16px; } 
}

@media (max-width: 768px) { 
    html { font-size: 14px !important; } 
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    
    /* THE FIX: Sync body to use 'clip' as well */
    overflow-x: clip; 
}

/* ==========================================
   GLOBAL WHATSAPP BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999; /* Ensures it sits above all other elements */
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Subtle hover lift effect for desktop */
.whatsapp-float:hover {
    transform: translateY(-5px);
}

.whatsapp-bubble {
    background-color: #ffffff;
    color: #050505; /* Dark text for contrast against the white background */
    padding: 0.55rem 0.95rem; /* Reduced padding by ~25% */
    border-radius: 2rem;
    font-size: 0.80rem; /* Reduced font size by 25% */
    font-weight: 600; /* Slightly bolder so the smaller text remains highly legible */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Soft, neutral shadow instead of green */
    white-space: nowrap;
}

.whatsapp-icon-container {
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: var(--transition-smooth);
}

/* --- SEO & ACCESSIBILITY UTILITY --- */
/* Hides text visually while keeping it readable for search engine bots and screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    /* Hides the text bubble on mobile */
    .whatsapp-bubble {
        display: none; 
    }
    
    /* Slightly scales down the icon for mobile screens */
    .whatsapp-icon-container {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }
}

/* ==========================================
   CUSTOM DROPDOWN UI
   ========================================== */
.custom-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.custom-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.custom-dropdown-trigger .dropdown-arrow {
    font-size: 0.8rem;
    color: #050505;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Remove default focus outline and trigger the Gold line */
.custom-dropdown-trigger:focus {
    outline: none;
}

.custom-dropdown-trigger:focus ~ .border-highlight,
.custom-dropdown-wrapper.open .border-highlight {
    transform: scaleX(1);
}

.custom-dropdown-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
    color: #C89B3C; /* Arrow turns Matte Gold when open */
}

/* The Options Menu */
.custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #E6E4E0; /* Matches Alabaster background */
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.custom-dropdown-wrapper.open .custom-dropdown-options {
    max-height: 250px;
    opacity: 1;
    overflow-y: auto;
}

.custom-option {
    padding: 1rem 1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #555555;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Replaces the native blue hover with your theme colors */
.custom-option:hover {
    background-color: #050505; 
    color: #C89B3C; 
}

/* ==========================================
   GLOBAL EDITORIAL TEXT STYLING
   ========================================== */

/* Targets all paragraphs and list items inside your main content areas */
main p, 
main ul:not(.custom-dropdown-options) li {
    
    /* 1. The 15% Size Increase */
    /* This scales the text relative to whatever size it currently is */
    font-size: 1.15em; 
    
    /* 2. The Invisible "Box" Effect */
    /* Forces the text to flush perfectly to the left and right margins */
    text-align: justify;
    text-justify: inter-word; 
    
    /* 3. The Hyphenation Safety Net */
    /* Allows the browser to cleanly break long words at the end of lines, 
       preventing ugly gaps ("rivers") between your words */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}