/* ==========================================================================
   R.A PetStylist CSS Design System
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --promo-bar-height: 0px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', 'Inter', sans-serif;
    
    /* Animation Timing */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Spacing */
    --container-max-width: 1350px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Light Theme (Default) */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-alt: #f0f0f0;
    --border-color: rgba(0, 0, 0, 0.1);
    
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    
    --color-primary: #000000;
    --color-primary-hover: #333333;
    --color-accent: #d4af37; /* Premium Gold */
    --color-accent-hover: #b99523;
    --color-success: #d4af37; /* Premium Gold */
    --color-success-hover: #b99523;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(212, 175, 55, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-blur: 12px;
}

/* Dark Theme */
body.dark-mode {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-alt: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    
    --color-primary: #ffffff;
    --color-primary-hover: #e5e5e5;
    --color-accent: #d4af37; /* Premium Gold */
    --color-accent-hover: #f1c40f;
    --color-success: #d4af37; /* Premium Gold */
    --color-success-hover: #f1c40f;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(212, 175, 55, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    
    --glass-bg: rgba(0, 0, 0, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    transition: color var(--transition-smooth);
}

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

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .grid-2 {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.bg-light-alt {
    background-color: var(--bg-alt);
    transition: background-color var(--transition-smooth);
}

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

/* Common Section Headers */
.section-header {
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

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

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--bg-primary);
}

body.light-mode .btn-primary {
    background-color: #0f172a;
    color: #ffffff;
}

body.light-mode .btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

body.dark-mode .btn-primary {
    background-color: var(--color-primary); /* Gold */
    color: #090d16;
}

body.dark-mode .btn-primary:hover {
    background-color: #e5c060;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-success);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-success-hover);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: var(--promo-bar-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.main-header.scrolled {
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur));
    height: 70px;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--color-accent);
}

.nav-menu ul {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Toggle Button styling */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

body.light-mode .moon-icon {
    display: block;
}
body.light-mode .sun-icon {
    display: none;
}

body.dark-mode .moon-icon {
    display: none;
}
body.dark-mode .sun-icon {
    display: block;
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.menu-close {
    display: none;
}

/* Mobile Navigation responsive layout */
@media (max-width: 991px) {
    .nav-btn-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: calc(var(--header-height) + var(--promo-bar-height));
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height) - var(--promo-bar-height));
        background-color: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        padding: 40px 24px;
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
        overflow-y: auto;
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-btn-mobile {
        display: inline-flex !important;
        margin-top: 16px;
        width: 100%;
        max-width: 300px;
    }
    
    .main-header.scrolled .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .nav-menu.open ~ .header-actions .menu-open {
        display: none;
    }
    .nav-menu.open ~ .header-actions .menu-close {
        display: block;
    }
}

@media (min-width: 992px) {
    .nav-btn-mobile {
        display: none !important;
    }
}

/* Hero Section */
.hero-section {
    padding: calc(var(--header-height) + var(--promo-bar-height) + 64px) 0 80px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section {
        padding: calc(var(--header-height) + 32px) 0 56px;
    }
}

.badge-accent {
    display: inline-block;
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 32px;
    border-left: 3px solid var(--color-accent);
    padding-left: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-media-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-xl);
    z-index: -1;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 576px) {
    .hero-image {
        height: 380px;
    }
}

.floating-badge {
    position: absolute;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-md);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.badge-top {
    top: 30px;
    left: -20px;
    animation: float 4s ease-in-out infinite;
}

.badge-bottom {
    bottom: 40px;
    right: -20px;
    animation: float 4s ease-in-out infinite 2s;
}

.floating-badge svg {
    color: var(--color-accent);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Certification Section */
.certification-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

@media (min-width: 992px) {
    .cert-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

.cert-image-area {
    display: flex;
    justify-content: center;
    width: 100%;
}

.badge-holder {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    width: 100%;
    max-width: 520px;
    transition: transform var(--transition-fast);
}

.badge-holder::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid var(--color-accent);
    border-radius: calc(var(--radius-lg) - 6px);
    pointer-events: none;
    z-index: 2;
}

.badge-holder:hover {
    transform: translateY(-4px);
}

.cert-badge-img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 12px);
    display: block;
    box-shadow: var(--shadow-sm);
}


.cert-text.highlight-text {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cert-text {
    margin-bottom: 24px;
}

.cert-list {
    display: grid;
    gap: 20px;
}

.cert-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.cert-list strong {
    color: var(--text-primary);
}

/* Bio Section */
.bio-section {
    padding: 100px 0;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

@media (min-width: 992px) {
    .bio-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.bio-p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.bio-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 4px solid var(--color-accent);
    padding-left: 24px;
    margin: 32px 0;
    line-height: 1.4;
}

.bio-gallery {
    width: 100%;
}

.bio-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bio-gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    aspect-ratio: 1;
    background-color: var(--bg-secondary);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bio-gallery-item.grid-span-2 {
    grid-column: span 2;
    aspect-ratio: 2 / 1.15;
}

.bio-gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.bio-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.bio-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #ffffff;
    padding: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Specialties / Tab Section */
.specialties-section {
    padding: 100px 0;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

/* =====================================================================================
   Blog Card Styles (Shared)
   ===================================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.blog-card { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; cursor: pointer; text-decoration: none; color: inherit; height: 100%; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--border-color); }
.blog-card-content { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: 0.85rem; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; font-weight: 600; }
.blog-card-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 15px; color: var(--text-primary); line-height: 1.3; transition: color 0.3s ease; }
.blog-card:hover .blog-card-title { color: var(--color-accent); }
.blog-card-excerpt { color: var(--text-primary); opacity: 0.85; font-size: 1rem; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.blog-card-footer { display: flex; align-items: center; font-weight: 600; color: var(--color-accent); font-size: 0.9rem; gap: 8px; }
.blog-card-footer svg { transition: transform 0.3s ease; }
.blog-card:hover .blog-card-footer svg { transform: translateX(4px); }

.tab-btn-icon {
    font-size: 1.2rem;
}

.tab-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.tab-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

body.dark-mode .tab-btn.active {
    color: #090d16;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn var(--transition-slow) ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .tab-content-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.tab-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tab-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tab-image-wrapper:hover .tab-img {
    transform: scale(1.05);
}

.tab-text-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tab-highlight {
    font-size: 1.15rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 24px;
}

.specialties-list {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.specialties-list li {
    position: relative;
    padding-left: 28px;
}

.specialties-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Why Choose Us / Features */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(197, 168, 128, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 24px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background-color: var(--color-accent);
    color: #ffffff;
}

body.dark-mode .feature-card:hover .feature-icon {
    color: #090d16;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Services / Pricing Menu & Interactive Catalog */
.services-section {
    padding: 100px 0;
}

.pricing-tabs-container {
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-tabs-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pricing-tab-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.pricing-tab-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pricing-tab-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .pricing-tab-btn.active {
    color: #090d16;
}

.pricing-tab-pane {
    display: none;
}

.pricing-tab-pane.active {
    display: block;
    animation: fadeIn var(--transition-slow) ease;
}

.pricing-pane-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .pricing-pane-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.pricing-double-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

.pricing-pane-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.pricing-pane-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
}

.premium-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover:not(.table-header) {
    background-color: rgba(197, 168, 128, 0.03);
}

.table-header {
    background-color: var(--bg-alt);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 12px 24px;
}

.price-col {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-accent);
}

.premium-card {
    background-color: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.premium-card:last-child {
    margin-bottom: 0;
}

.premium-card.outline {
    background-color: transparent;
    border: 2px dashed var(--border-color);
    box-shadow: none;
}

.premium-card h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.bullet-list {
    list-style: none;
    padding: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.bullet-list li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

.card-details-box {
    margin-top: 24px;
    background-color: var(--bg-alt);
    padding: 20px;
    border-radius: var(--radius-sm);
}

.card-details-box.outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
}

.card-details-box h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bullet-list-mini {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 576px) {
    .bullet-list-mini {
        grid-template-columns: 1fr 1fr;
    }
}

.bullet-list-mini li {
    position: relative;
    padding-left: 18px;
    font-size: 0.85rem;
}

.bullet-list-mini li::before {
    content: "✓";
    color: var(--color-success);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.pricing-pane-footer {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dental-footer-info {
    margin-top: 32px;
}

.premium-card.highlight-border {
    border-color: var(--color-accent);
}

.warning-text {
    margin-top: 16px;
    border-left: 3px solid #ef4444;
    padding-left: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.services-footer {
    margin-top: 56px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Helper utilities */
.text-right { text-align: right; }
.font-sm { font-size: 0.9rem; }
.mt-3 { margin-top: 1rem; }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.75rem; }

/* Booking & Contact Section */
.booking-section {
    padding: 100px 0;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: start;
}

@media (min-width: 992px) {
    .booking-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.booking-desc {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.contact-details {
    display: grid;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Booking Form */
.booking-form-wrapper {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

@media (max-width: 576px) {
    .booking-form-wrapper {
        padding: 24px;
    }
}

.booking-form {
    display: grid;
    gap: 24px;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .form-group-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.btn-whatsapp-icon {
    transition: transform var(--transition-fast);
}

.btn-block:hover .btn-whatsapp-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform var(--transition-fast);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer styling */
.main-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .main-footer {
    background-color: #05080f;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

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

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 320px;
    color: #94a3b8;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--color-accent);
    color: #0f172a;
    transform: translateY(-2px);
}

.footer-links h4, .footer-info h4 {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    display: grid;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

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

.footer-info p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

/* Scroll Animation classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Lightbox Modal for Certificate Click Zoom */
.cert-badge-img {
    cursor: zoom-in;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    transition: color 0.3s, transform 0.3s;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.95);
    transition: transform var(--transition-normal) ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #e2e8f0;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Booking Form Advanced Fields */
.form-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-top: 32px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.form-label-bold {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: block;
    font-size: 0.95rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    user-select: none;
    align-items: flex-start;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 3px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--color-accent);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #0f172a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: var(--text-secondary);
}

.checkbox-container input:required ~ .checkbox-text::after {
    content: " *";
    color: #ef4444;
}

/* Vaccination upload container */
.vaccination-box {
    background-color: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.file-upload-wrapper {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-secondary);
    border: 1px dashed var(--color-accent);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
    width: fit-content;
}

.file-upload-btn:hover {
    background-color: rgba(212, 175, 55, 0.05);
    border-color: var(--color-accent);
}

.file-name-display {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Radio buttons styled as Yes/No buttons */
.radio-btn-group {
    display: flex;
    gap: 16px;
}

.radio-btn {
    flex: 1;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.radio-btn:hover {
    border-color: var(--color-accent);
    color: var(--text-primary);
}

.radio-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #0f172a;
}

/* Scrollable Waiver Textbox */
.waiver-box-container {
    background-color: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 24px;
}

.waiver-text-box {
    max-height: 200px;
    overflow-y: scroll;
    padding-right: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.waiver-text-box::-webkit-scrollbar {
    width: 6px;
}

.waiver-text-box::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

.waiver-text-box::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.waiver-text-box h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.waiver-text-box ol {
    padding-left: 20px;
    margin: 12px 0;
    display: grid;
    gap: 8px;
}

/* Signature Pad Styling */
.signature-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.signature-pad-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

#signature-pad {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    height: 180px;
    display: block;
    cursor: crosshair;
    touch-action: none;
}

.btn-clear-sig {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    margin-top: 8px;
    transition: opacity var(--transition-fast);
    display: inline-block;
}

.btn-clear-sig:hover {
    opacity: 0.8;
}

/* ============================================
   Language Toggle Button
   ============================================ */
.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full, 50px);
    padding: 6px 14px;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: scale(1.05);
}

.lang-toggle-btn .lang-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lang-toggle-btn .lang-text {
    line-height: 1;
}

[data-i18n],
[data-i18n-html] {
    transition: opacity 0.15s ease;
}

/* ============================================
   Dynamic Services Carousel & Cards
   ============================================ */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.dynamic-services-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding: 10px 5px; /* Add some padding for hover shadows */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.dynamic-services-grid::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: var(--color-accent);
    color: #000;
}

.light-mode .carousel-btn:hover {
    color: #fff;
}

.carousel-btn-prev {
    left: -15px;
}

.carousel-btn-next {
    right: -15px;
}

/* Hide arrows on mobile/touch screens by default */
@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}

.dynamic-service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 280px; /* Force minimum width for carousel items */
    max-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dynamic-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: var(--color-accent);
}

.service-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dynamic-service-card:hover .service-img {
    transform: scale(1.05);
}

.badge-prestige {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #d4af37, #aa8c2c);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.service-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-price {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.service-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-meta svg {
    color: var(--color-accent);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-book-service {
    display: inline-block;
    text-align: center;
    padding: 10px 0;
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-book-service:hover {
    background-color: var(--color-accent);
    color: #000; /* Assuming dark mode default for button hover text */
}

.light-mode .btn-book-service:hover {
    color: #fff;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    padding: var(--spacing-4xl) 0;
}

.public-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.public-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.public-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
    z-index: 2;
}

.public-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

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

/* ==========================================================================
   Policies Page Styles
   ========================================================================== */
.policies-content {
    background-color: var(--bg-primary);
    position: relative;
}
.policies-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.policies-content .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.policies-content .policy-card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.policies-content .policy-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}
.policies-content .policy-icon {
    font-size: 2.2rem;
    color: var(--color-accent);
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    transition: transform var(--transition-smooth);
}
.policies-content .policy-card:hover .policy-icon {
    transform: scale(1.1) rotate(5deg);
}
.policies-content .policy-icon.warning {
    color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.05));
    border-color: rgba(255, 107, 107, 0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.1);
}
.policies-content .policy-icon.success {
    color: #20c997;
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.2), rgba(32, 201, 151, 0.05));
    border-color: rgba(32, 201, 151, 0.2);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.1);
}
.policies-content .policy-content h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    margin-top: 0;
    line-height: 1.3;
}
.policies-content .policy-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.05rem;
}
.policies-content .policy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}
.policies-content .policy-list li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
    line-height: 1.5;
    font-size: 1rem;
}
.policies-content .policy-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--color-accent);
    font-size: 1.1rem;
}
.policies-content .policy-list li i.fa-exclamation-triangle { color: #ff6b6b; }
.policies-content .policy-note {
    display: flex;
    gap: 15px;
    background: var(--bg-alt);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    align-items: flex-start;
    border-left: 4px solid var(--color-accent);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: auto;
}
.policies-content .policy-note.warning { border-left-color: #ff6b6b; }
.policies-content .policy-note.success { border-left-color: #20c997; }
.policies-content .policy-note i {
    color: inherit;
    font-size: 1.4rem;
    margin-top: 2px;
}
.policies-content .matting-version h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.policies-cta {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-secondary));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin-top: 50px;
    box-shadow: var(--shadow-md);
}
.policies-cta h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.policies-cta p {
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .policies-content .container {
        grid-template-columns: 1fr;
    }
    .policies-content .policy-card {
        padding: 25px;
    }
}


/* ==========================================================================
   PROMOTION SECTION (SEMINAR)
   ========================================================================== */
.promo-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.promo-card {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2); /* Gold subtle border */
}

body.dark-mode .promo-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.promo-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    color: var(--bg-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

body.dark-mode .promo-badge {
    color: #111;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.promo-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.promo-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.promo-details .detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.promo-details .detail-item i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.promo-itinerary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.itinerary-day h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-light);
    display: inline-block;
}

.itinerary-day ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.itinerary-day ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.itinerary-day ul li i {
    color: var(--color-accent);
    margin-top: 4px;
    font-size: 0.9rem;
}

.promo-pricing-box {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.pricing-info .price-amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-info .price-amount .currency {
    font-size: 1.2rem;
    font-weight: 500;
}

.pricing-info .reserva {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.pricing-info .metodos {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.pricing-includes h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.pricing-includes ul {
    list-style: none;
    padding: 0;
}

.pricing-includes ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.pricing-includes ul li i {
    color: var(--gold-light);
    width: 20px;
    text-align: center;
}

.promo-alert {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--color-accent);
    border-radius: 8px;
    margin-bottom: 30px;
}

.promo-alert i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-top: 3px;
}

.promo-alert .alert-content {
    color: var(--text-primary);
    line-height: 1.5;
}

.promo-cta {
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .promo-card {
        padding: 25px;
    }
    .promo-itinerary, .promo-pricing-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .promo-title {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   PROMOTION MODAL & BUTTON
   ========================================================================== */

/* The Modal Overlay */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.promo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* The Modal Container */
.promo-modal-container {
    position: relative;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-modal-overlay.active .promo-modal-container {
    transform: translateY(0) scale(1);
}

/* The Close Button */
.promo-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    line-height: 1;
}

.promo-modal-close:hover {
    color: var(--color-accent);
}

/* Base Promo Card overrides for Modal */
.promo-card {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 90vh; /* scrollable if needed */
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Custom scrollbar for modal */
}

.promo-card::-webkit-scrollbar {
    width: 8px;
}
.promo-card::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}
.promo-card::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 10px;
}

body.dark-mode .promo-card {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* Floating Trigger Button */
.floating-promo-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-promo-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

.floating-promo-btn .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 2px solid var(--gold-light);
    border-radius: 50%;
    animation: pulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
    .floating-promo-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}


/* ==========================================================================
   TOP STICKY PROMO BAR
   ========================================================================== */
.top-promo-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--color-accent), #f3db74, var(--color-accent));
    background-size: 200% auto;
    color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 40px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.4s ease, opacity 0.4s ease;
    text-align: center;
    animation: shineGradient 3s linear infinite;
}

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

.top-promo-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.top-promo-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-badge-small {
    background: #000;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.promo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}

.promo-btn-small {
    background: #000;
    color: #fff;
    border: none;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.promo-btn-small:hover {
    background: #222;
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.top-promo-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.top-promo-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .top-promo-bar {
        padding: 12px 35px 12px 15px;
    }
    .top-promo-content {
        gap: 8px;
    }
    .promo-text {
        font-size: 0.85rem;
    }
}

/* Header Socials */
.header-social-icon:hover {
    color: var(--color-accent) !important;
}

@media (max-width: 768px) {
    .header-socials {
        display: none !important; /* On mobile, we might hide them from header if space is tight, or keep them. Let's keep them but smaller, wait, better to hide on mobile header and maybe add them to mobile menu */
    }
}

/* Floating Social Sidebar */
.floating-social-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.9);
    padding: 15px 10px;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    backdrop-filter: blur(5px);
}

.social-side-icon {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-side-icon:hover {
    color: #000;
    background-color: var(--color-accent, #d4af37);
    transform: translateX(5px);
}

/* Hide the mobile-menu-socials on desktop */
@media (min-width: 993px) {
    .mobile-menu-socials {
        display: none !important;
    }
}

/* Hide sidebar on very small mobile if needed, or keep it */
@media (max-width: 768px) {
    .floating-social-sidebar {
        display: none !important;
    }
}

/* ---- Mobile Layout Fixes for Promo Bar and Modal ---- */
.promo-modal-overlay {
    z-index: 10005 !important; /* Above the promo bar */
}

@media (max-width: 768px) {
    /* Top Promo Bar Compactness */
    .top-promo-content {
        gap: 5px !important;
    }
    
    .promo-badge-small {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    
    .promo-text {
        font-size: 0.75rem !important;
        width: 100%;
        margin: 2px 0;
    }
    
    .promo-btn-small {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }

    /* Modal Text Sizes */
    .promo-content h2 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .promo-content p {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
    }
    
    .promo-features li {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }
}


/* ---- Final Mobile Top Promo Fixes ---- */
@media (max-width: 768px) {
    .top-promo-content {
        flex-wrap: nowrap !important;
        justify-content: center !important;
    }
    .promo-badge-small {
        display: none !important; /* Hide badge on very small screens to save space */
    }
    .promo-text {
        font-size: 0.75rem !important;
        width: auto !important;
        margin: 0 !important;
        white-space: nowrap; /* Keep on one line */
        overflow: hidden;
        text-overflow: ellipsis; /* If it's too long, truncate it nicely */
    }
    .promo-btn-small {
        white-space: nowrap;
        padding: 4px 8px !important;
    }
}


@media (max-width: 768px) {
    .floating-promo-btn {
        bottom: 25px !important;
        left: 25px !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6) !important;
        background: linear-gradient(135deg, #c5a028, #f3db74) !important; /* Force background */
        color: #000 !important; /* Contrast icon */
    }
}

/* ==========================================================================
   Mobile Responsive & Prevent Horizontal Scrolling Fixes
   ========================================================================== */

/* Strict prevention of horizontal scrolling */
html {
    max-width: 100%;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure no child elements push the width beyond the viewport */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Base Mobile Fixes */
@media (max-width: 768px) {
    /* Tablet */
    body {
        overflow-x: hidden !important;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    /* Some flex containers might wrap poorly */
    .row, .flex-row, .grid-container {
        max-width: 100% !important;
    }
}

@media (max-width: 425px) {
    /* Mobile L */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 375px) {
    /* Mobile M */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
}

@media (max-width: 320px) {
    /* Mobile S */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    p { font-size: 0.9rem !important; }
}


/* Additional clipping fixes for mobile */
@media (max-width: 768px) {
    /* Fix top promo bar text wrapping and cutting off */
    .top-promo-bar {
        padding: 8px 30px 8px 10px !important;
    }
    .top-promo-content {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: 100%;
        overflow: hidden;
    }
    .promo-badge-small {
        display: none !important; /* Hide badge to save space */
    }
    .promo-text {
        font-size: 0.8rem !important;
        white-space: normal !important;
        text-align: left !important;
        flex: 1;
        line-height: 1.2;
    }
    .promo-btn-small {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }
    
    /* Fix fixed floating buttons from clipping on screen edges */
    .floating-whatsapp {
        right: 15px !important;
        bottom: 20px !important;
        transform-origin: right bottom;
    }
    .floating-promo-btn {
        left: 15px !important;
        bottom: 20px !important;
        transform-origin: left bottom;
    }
    
    /* Ensure hero actions do not clip on very small screens */
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding-right: 10px;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* The ultimate horizontal scroll fix for mobile */
html, body {
    max-width: 100%;
    overflow-x: clip !important;
}

@media (max-width: 768px) {
    /* Forcing all sections and containers to absolutely respect the bounds */
    section, header, footer, .container, .row, div {
        max-width: 100%;
    }
}

/* Fix sizes for floating buttons and theme toggle */
.theme-toggle-btn {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
}
.theme-toggle-btn svg {
    width: 20px !important;
    height: 20px !important;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 48px !important;
        height: 48px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
    .floating-whatsapp svg, .floating-whatsapp i {
        font-size: 1.5rem !important;
    }
    
    .floating-promo-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.3rem !important;
        bottom: 15px !important;
        left: 15px !important;
    }
}

/* Fix typography and floating badges for mobile layouts */
@media (max-width: 768px) {
    /* Keep hero badges strictly inside the container bounds to avoid edge clipping */
    .badge-top {
        left: 5px !important;
        top: 10px !important;
        transform: scale(0.85);
        transform-origin: top left;
    }
    .badge-bottom {
        right: 5px !important;
        bottom: 10px !important;
        transform: scale(0.85);
        transform-origin: bottom right;
    }
    
    /* Reduce typography sizes to fit comfortably on small screens without overwhelming */
    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
        line-height: 1.25 !important;
    }
    .section-desc {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        padding: 0 10px; /* Give it some breathing room from edges */
    }
    .badge-accent {
        font-size: 0.75rem !important;
        padding: 4px 12px !important;
        margin-bottom: 12px !important;
        letter-spacing: 0.05em !important;
    }
}

/* Fix sizing inside feature cards on mobile */
@media (max-width: 768px) {
    .feature-card {
        padding: 25px !important;
    }
    .feature-card h3 {
        font-size: 1.15rem !important;
        margin-bottom: 8px !important;
        line-height: 1.25 !important;
    }
    .feature-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    .feature-icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 15px !important;
    }
    .feature-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Fix centering for mobile views */
@media (max-width: 768px) {
    /* Feature Cards Centering */
    .feature-card {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .feature-icon {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Ensure general section headers are properly centered */
    .section-header {
        text-align: center !important;
    }
    
    /* Center the top promo text if it isn't already */
    .promo-text {
        text-align: center !important;
        width: 100%;
        display: block;
    }
}

/* Reduce Why R.A PetStylist elements by 30% for mobile */
@media (max-width: 768px) {
    /* Section Headers in Features Area */
    .features-section .section-title {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    .features-section .section-desc {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        padding: 0 5px !important;
    }
    .features-section .badge-accent {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
        margin-bottom: 8px !important;
    }

    /* Feature Cards reduction */
    .feature-card {
        padding: 15px !important; /* Huge reduction in padding */
        gap: 15px !important;
    }
    .feature-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
        line-height: 1.2 !important;
    }
    .feature-card p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    .feature-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 10px !important;
    }
    .feature-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Fix CSS Grid minimum widths overflowing the mobile container */
@media (max-width: 425px) {
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Fix elements that cause horizontal overflow or have excessive padding on mobile */
@media (max-width: 768px) {
    /* The pseudo-element was pushed 20px to the right, causing horizontal page overflow */
    .hero-image-frame::before {
        left: 0 !important;
        top: 15px !important;
        width: 100% !important;
    }
    
    /* Override the inline 40px padding that squishes content on small screens */
    .booking-cta-card {
        padding: 20px !important;
    }
    
    /* Ensure the wrapper doesn't double-pad excessively */
    .booking-form-wrapper {
        padding: 15px !important;
    }
}

/* Fix flexbox overflow in booking card on mobile */
@media (max-width: 768px) {
    .booking-cta-card div[style*="display: flex"] {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    /* Ensure the button itself can wrap if needed, though it should be fine */
    .booking-cta-card .btn {
        white-space: normal;
        height: auto;
        padding: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.25rem !important;
        line-height: 1.1;
    }
    .header-actions {
        gap: 8px !important;
    }
    .lang-toggle-btn {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
    .lang-toggle-btn .lang-icon {
        width: 16px !important;
        height: 16px !important;
    }
    .theme-toggle-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .theme-toggle-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    .mobile-menu-btn {
        padding: 5px !important;
        margin-left: 0px !important;
    }
}


/* Gallery Badges and Titles */
.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}
.gallery-badge.before {
    background-color: rgba(30, 30, 30, 0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.gallery-badge.after {
    background-color: rgba(212, 175, 55, 0.9);
    color: #000;
    border: 1px solid rgba(212, 175, 55, 0.5);
}
.gallery-badge.default {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gallery-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    text-align: left;
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.public-gallery-item:hover .gallery-title-overlay {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .gallery-title-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}
.gallery-group-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    z-index: 5;
    pointer-events: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Collage for grouped gallery items */
.public-gallery-item.collage {
    padding: 0;
    aspect-ratio: 1 / 1;
}
.collage-images {
    display: flex;
    width: 100%;
    height: 100%;
}
.collage-img-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.collage-img-wrapper .gallery-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
}
.collage-img-wrapper img.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.public-gallery-item.collage:hover .collage-img {
    transform: scale(1.05);
}
.collage-images .collage-img-wrapper:first-child {
    border-right: 2px solid #000;
}

/* Before/After Interactive Slider */
@media (min-width: 600px) {
    .public-gallery-item.slider-item {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 599px) {
    .public-gallery-item.slider-item {
        aspect-ratio: 4 / 3;
    }
}
.ba-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: pan-y;
}
.ba-slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    -webkit-user-drag: none;
}
.ba-after-img {
    z-index: 1;
}
.ba-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0); 
    z-index: 2;
    pointer-events: none;
}
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.ba-handle-button {
    width: 44px;
    height: 44px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    font-size: 1.1rem;
    transition: transform 0.2s;
}
.ba-slider-container:hover .ba-handle-button {
    transform: scale(1.1);
}
.ba-slider-container .gallery-badge {
    position: absolute;
    top: 15px;
    z-index: 4;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}
.ba-slider-container .gallery-badge.before {
    left: 15px;
    background: rgba(30, 30, 30, 0.85);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}
.ba-slider-container .gallery-badge.after {
    right: 15px;
    background: var(--color-accent, #d4af37);
    color: #000;
}


/* --- GALLERY REDESIGN --- */
.gallery-filters-wrapper {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gallery-filters-wrapper::-webkit-scrollbar {
    display: none;
}
.gallery-filters {
    display: inline-flex;
    justify-content: center;
    gap: 15px;
    min-width: min-content;
    padding: 0 20px;
}
.filter-btn {
    padding: 10px 28px; 
    background: rgba(255, 255, 255, 0.03); 
    color: var(--text-primary); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 30px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.light-mode .filter-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0,0,0,0.1);
}
.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}
.filter-btn.active {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}
@media (min-width: 768px) {
    .gallery-filters-wrapper {
        display: flex;
        justify-content: center;
        overflow-x: visible;
        white-space: normal;
    }
    .gallery-filters {
        flex-wrap: wrap;
        padding: 0;
    }
}

.gallery-category-section {
    margin-bottom: 60px;
    animation: fadeIn 0.5s ease-out;
}
.gallery-category-header-container {
    text-align: center;
    margin-bottom: 30px;
}
.gallery-category-header {
    display: inline-block;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
    padding-left: 20px;
    padding-right: 20px;
}
.gallery-category-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin: 0;
}
.gallery-category-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 15px auto 0;
}
