/* CSS Variables */
:root {
    --primary: #14b8a6;
    --primary-hover: #f4771d;
    --foreground: #111827;
    --muted-foreground: #f4771d;
    --border: #E5E7EB;
}

/* Global hover color overrides - Replace all teal with orange */
.hover\:bg-teal-700:hover,
.hover\:bg-teal-600:hover,
.hover\:bg-teal-500:hover {
    background-color: #f4771d !important;
}

.hover\:text-teal-700:hover,
.hover\:text-teal-600:hover,
.hover\:text-teal-500:hover {
    color: #f4771d !important;
}

.hover\:border-teal-700:hover,
.hover\:border-teal-600:hover,
.hover\:border-teal-500:hover {
    border-color: #f4771d !important;
}

.hover\:bg-teal-50:hover {
    background-color: #fef3e7 !important;
}

.hover\:bg-teal-100:hover {
    background-color: #fde8d0 !important;
}

/* Hover color override */
.hover\:text-primary:hover {
    color: #f4771d !important;
}

.hover\:border-primary:hover {
    border-color: #f4771d !important;
}

.hover\:bg-primary:hover {
    background-color: #f4771d !important;
}

/* Navigation hover color */
nav .nav-link:hover {
    color: #f4771d !important;
}

/* Only dropdown trigger buttons, not the hamburger/close icon buttons */
nav .dropdown-trigger > button:hover {
    color: #f4771d !important;
}

/* Hide mobile menu toggle button on desktop */

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--foreground);
}

html[lang="lo"] body,
html[lang="lo"] * {
    font-family: 'Noto Sans Lao Looped', 'Inter', sans-serif;
}

html[lang="lo"] h1,
html[lang="lo"] h2,
html[lang="lo"] h3,
html[lang="lo"] h4 {
    font-family: 'Noto Sans Lao Looped', 'Poppins', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
}

/* Utility Classes */
.text-primary {
    color: var(--primary);
}

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

.border-primary {
    border-color: var(--primary);
}

.hover-scale {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px);
}

/* Navigation Styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #f4771d;
    transition: width 0.3s ease;
}

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

.dropdown-trigger {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 50;
    margin-top: 0.5rem;
    opacity: 1;
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu a,
.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
    background: transparent;
    text-align: left;
}

.dropdown-menu a:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-menu a:last-child,
.dropdown-menu button:last-child {
    border-bottom: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #f3f4f6;
    color: var(--primary-hover);
    padding-left: 1.25rem;
}

/* Highlighted state for active dropdown button */
.highlighted {
    color: #f4771d !important;
}

/* Submenu styles */
.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0;
    min-width: 200px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 71;
    margin-left: 0.25rem;
    animation: submenuSlideIn 0.2s ease-out;
}

@keyframes submenuSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Submenu container button styling */
.submenu-container>button {
    padding: 0.75rem 1rem;
    color: #374151;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
}

.submenu-container > button:hover {
    background-color: #f3f4f6;
    color: var(--primary-hover);
}

.submenu-container>button svg {
    transition: transform 0.2s ease;
}

.submenu a {
    border-bottom: 1px solid #f3f4f6;
}

.submenu a:last-child {
    border-bottom: none;
}

/* Arrow transition */
.dropdown-trigger button svg {
    transition: transform 0.2s ease;
}

/* Scroll indicators for long menus */
.scroll-up,
.scroll-down {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    cursor: pointer;
}

.scroll-down {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
}

.scroll-up-arrow,
.scroll-down-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.scroll-up-arrow {
    border-bottom: 6px solid #6b7280;
}

.scroll-down-arrow {
    border-top: 6px solid #6b7280;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: var(--primary-hover);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Lao language specific spacing */
html[lang="lo"] .top-nav-links {
    gap: 0.25rem;
}

html[lang="lo"] .top-nav-links a,
html[lang="lo"] .top-nav-links button {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

html[lang="lo"] .top-nav-links .separator {
    margin-left: 0.125rem;
    margin-right: 0.125rem;
}

/* Booking Page Styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(to right, #e5e7eb 0%, #e5e7eb 100%);
    z-index: 0;
    border-radius: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9375rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.time-slot {
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 119, 29, 0.1) 0%, rgba(244, 119, 29, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-slot:hover {
    border-color: var(--primary-hover);
    background: #fef3e7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 119, 29, 0.2);
}

.time-slot:hover::before {
    opacity: 1;
}

.time-slot.selected {
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
    transform: translateY(-2px);
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.time-slot.disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.booking-calendar {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 100%;
    width: 100%;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.calendar-month-label {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.calendar-nav-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #374151;
    background: #ffffff;
    font-size: 1.125rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover:not(:disabled) {
    border-color: var(--primary-hover);
    color: var(--primary-hover);
    background: #fef3e7;
}

.calendar-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

.calendar-weekdays {
    margin-bottom: 0.75rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
}

.calendar-day {
    border: 2px solid transparent;
    border-radius: 0.75rem;
    height: 2.75rem;
    width: 100%;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover:not(:disabled):not(.is-disabled) {
    border-color: var(--primary-hover);
    background: #fef3e7;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(244, 119, 29, 0.2);
}

.calendar-day.is-today {
    border-color: #60a5fa;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    font-weight: 700;
}

.calendar-day.is-selected {
    color: #ffffff;
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    transform: scale(1.08);
}

.calendar-day.is-disabled {
    color: #d1d5db;
    background: #f9fafb;
    cursor: not-allowed;
    box-shadow: none;
}

.calendar-day.is-empty {
    pointer-events: none;
    background: transparent;
    box-shadow: none;
}

.service-card {
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 119, 29, 0.05) 0%, rgba(244, 119, 29, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 8px 16px -4px rgba(244, 119, 29, 0.2);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    box-shadow: 0 8px 20px -4px rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
}

.service-card.selected::before {
    opacity: 0;
}

/* Top Navigation Bar - Horizontal Scroll on Small Screens */

/* Search Popup Responsive */

/* Language Dropdown Responsive */

/* Desktop Navigation - Prevent Overflow */

/* Landscape Mode Optimizations */

/* Small Mobile Devices */

/* Large Desktop Screens */

/* Header navigation layout */
.main-nav .main-nav-inner {
    display: flex;
    align-items: center;
}

.secondary-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Keep all secondary-nav items sized to content */
.secondary-nav .container > * {
    flex: 0 0 auto;
}

/* Secondary bar: keep usable on small screens */

/* Touch Device Improvements */

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

nav {
    overflow: visible;
}

/* (kept here as reference — final values are set in the MOBILE MENU OVERLAY section) */

/* Fix for very small screens */

/* Booking Page Styles */
.tab-button {
    position: relative;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom-color: var(--primary);
}

.tab-button:hover:not(.active) {
    background-color: #f9fafb;
}

.selection-panel {
    animation: fadeIn 0.3s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doctor-card {
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 119, 29, 0.05) 0%, rgba(244, 119, 29, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card:hover {
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.doctor-card:hover::before {
    opacity: 1;
}

.doctor-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    box-shadow: 0 8px 20px -4px rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
}

.doctor-card.selected::before {
    opacity: 0;
}

.doctor-card.selected .check-icon {
    color: var(--primary);
}

.doctor-card .check-icon {
    transition: all 0.3s ease;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Desktop Device Optimizations */

/* Extra Small Devices (phones, less than 576px) */

/* Small Devices (landscape phones, 576px and up) */

/* Medium Devices (tablets, 768px and up) */

/* Large Devices (desktops, 992px and up) */

/* Extra Large Devices (large desktops, 1200px and up) */

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

/* Image optimization for mobile */

/* Fluid typography */

/* Mobile: 1 column */

/* Tablet: 2 columns */

/* Desktop: 3 columns */

/* Desktop spacing */

/* Hide/Show based on device */

/* Portrait Mode */

/* Landscape Mode */

/* ===================================
   PRINT STYLES
   =================================== */

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Reduced motion for users who prefer it */

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

/* GPU acceleration for animations */
.animate-gpu {
    transform: translateZ(0);
    will-change: transform;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* (kept here as reference) */

/* Show mobile menu when not hidden */
#mobile-menu:not(.hidden) {
    display: block !important;
}

#community-services-menu,
#mobile-partner-menu {
    transition: all 0.3s ease;
}

/* Ensure dropdowns are visible when not hidden */
#community-services-menu:not(.hidden),
#mobile-partner-menu:not(.hidden) {
    display: flex !important;
}

/* ===================================
   HEALTH CHECK-UP FLOW STYLES - HORIZONTAL
   =================================== */

.health-flow-container {
    max-width: 1200px;
    margin: 0 auto;
}

.flow-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.flow-row-reverse {
    flex-direction: row-reverse;
}

.flow-step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flow-card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    min-width: 200px;
    max-width: 240px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-hover);
}

.flow-card-final {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.flow-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flow-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.flow-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
}

.flow-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.flow-title {
    font-size: 0.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-time {
    font-size: 0.8125rem;
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.flow-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.3;
}

.flow-arrow-right {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: bold;
    animation: arrowPulseRight 2s ease-in-out infinite;
}

.flow-arrow-left {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: bold;
    animation: arrowPulseLeft 2s ease-in-out infinite;
}

.flow-arrow-down-center {
    text-align: center;
    font-size: 3rem;
    color: var(--primary);
    font-weight: bold;
    margin: 0.5rem 0;
    animation: arrowPulseDown 2s ease-in-out infinite;
}

@keyframes arrowPulseRight {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(10px);
        opacity: 0.7;
    }
}

@keyframes arrowPulseLeft {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-10px);
        opacity: 0.7;
    }
}

@keyframes arrowPulseDown {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.7;
    }
}

.flow-total-time {
    text-align: center;
    margin-top: 2.5rem;
}

.total-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #047d75 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-size: 1.125rem;
    font-weight: bold;
}

.total-time-label {
    font-weight: 600;
}

.total-time-value {
    font-size: 1.5rem;
    font-weight: 800;
}

/* ===================================
   BOOKING PAGE BUTTON HOVER FIXES
   =================================== */

/* Ensure all booking page buttons hover to orange */
#booking-form button[type="button"]:not(.calendar-nav-btn):not(.tab-button):hover,
#booking-form button[type="submit"]:hover {
    background-color: #f4771d !important;
}

/* Calendar navigation buttons */
.calendar-nav-btn:hover:not(:disabled) {
    border-color: #f4771d !important;
    color: #f4771d !important;
    background: #fef3e7 !important;
}

/* Calendar day hover */
.calendar-day:hover:not(:disabled):not(.is-disabled) {
    border-color: #f4771d !important;
    background: #fef3e7 !important;
}

/* Time slot hover */
.time-slot:hover:not(.disabled) {
    border-color: #f4771d !important;
    background: #fef3e7 !important;
}

/* Service card hover */
.service-card:hover {
    border-color: #f4771d !important;
    background-color: #fef3e7 !important;
}

/* Tab button active state */
.tab-button.active {
    color: #14b8a6 !important;
}

.tab-button:hover:not(.active),
.tab-button:hover:not(.active) * {
    color: #f4771d !important;
}

/* Previous button hover (gray button) */
#prev-btn:hover {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

/* ===================================
   MODERN BOOKING FORM ENHANCEMENTS
   =================================== */

/* Enhanced form inputs */
#booking-form input[type="text"],
#booking-form input[type="email"],
#booking-form input[type="tel"],
#booking-form input[type="date"],
#booking-form select,
#booking-form textarea {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#booking-form input[type="text"]:focus,
#booking-form input[type="email"]:focus,
#booking-form input[type="tel"]:focus,
#booking-form input[type="date"]:focus,
#booking-form select:focus,
#booking-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

#booking-form input[type="text"]:hover,
#booking-form input[type="email"]:hover,
#booking-form input[type="tel"]:hover,
#booking-form input[type="date"]:hover,
#booking-form select:hover,
#booking-form textarea:hover {
    border-color: #d1d5db;
}

/* Enhanced labels */
#booking-form label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

/* Form section styling */
#booking-form .bg-white {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

/* Enhanced info boxes */
#booking-form .bg-blue-50 {
    border-radius: 1rem;
    border-width: 2px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

#booking-form .bg-teal-50 {
    border-radius: 1rem;
    border-width: 2px;
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.1);
}

#booking-form .bg-yellow-50 {
    border-radius: 1rem;
    border-width: 2px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

/* Enhanced confirmation section */
#booking-form .bg-gradient-to-br {
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

/* Navigation buttons enhancement */
#booking-form #next-btn,
#booking-form #submit-btn {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 0.875rem;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#booking-form #next-btn:hover,
#booking-form #submit-btn:hover {
    box-shadow: 0 6px 16px rgba(244, 119, 29, 0.4);
    transform: translateY(-2px);
}

#booking-form #prev-btn {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 0.875rem;
    transition: all 0.3s ease;
}

#booking-form #prev-btn:hover {
    background-color: #f3f4f6 !important;
    transform: translateX(-4px);
}

/* Service card icon enhancement */
.service-card .w-12 {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover .w-12 {
    transform: scale(1.1) rotate(5deg);
}

.service-card.selected .w-12 {
    transform: scale(1.05);
}

/* Doctor card image enhancement */
.doctor-card img {
    transition: all 0.3s ease;
}

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

/* Calendar header enhancement */
.calendar-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.calendar-month-label {
    font-size: 1.125rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calendar-nav-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
}

/* Animation for form step transitions */
.form-step {
    animation: fadeInUp 0.4s ease-out;
}

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

/* Enhanced selection panel */
.selection-panel {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transitions for all interactive elements */
#booking-form button,
#booking-form .service-card,
#booking-form .doctor-card,
#booking-form .time-slot,
#booking-form .calendar-day {
    will-change: transform;
}

/* Additional Calendar Grid Fixes */
.calendar-grid button,
.calendar-weekdays div {
    min-width: 0;
    overflow: hidden;
}

.calendar-weekday {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure proper grid layout */
.booking-calendar {
    max-width: 100%;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

/* Fix for very small screens */

/* Force calendar grid layout - Critical Fix */
[data-calendar-grid] {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 0.5rem;
}

[data-calendar-weekdays] {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Ensure calendar buttons don't break layout */
[data-calendar-grid] button {
    width: 100%;
    min-width: 0;
}

[data-calendar-weekdays] div {
    width: 100%;
    min-width: 0;
}

/* ---- MOBILE MENU OVERLAY ---- */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: white;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Always rendered in DOM, visibility controlled by transform */
    display: block !important;
}
#mobile-menu.open {
    transform: translateX(0);
}
/* When Tailwind adds .hidden, still allow our transform approach */
#mobile-menu.hidden {
    transform: translateX(100%);
    /* override Tailwind display:none so transition works */
    display: block !important;
}
#mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#mobile-menu-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ---- TOPBAR RESPONSIVE ---- */

/* ---- CONTAINER PADDING ---- */
.container { width: 100%; }

/* ---- NAVIGATION CONTAINER ---- */
.main-nav .container,
.secondary-nav .container,
.topbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ---- MOBILE TOPBAR: hide search on mobile ---- */
/* .topbar-search is hidden via the .topbar-search rule above (display:none on mobile) */

/* ---- ADMIN HEADER MOBILE ---- */
/* Admin mobile menu is a Tailwind-toggled dropdown (no fixed overlay) */
#admin-mobile-menu {
    background: white;
    border-top: 1px solid #e5e7eb;
}

/* ---- MODALS: ensure fit on small screens ---- */
.modal-container,
[class*="max-w-"][class*="fixed"],
.fixed.inset-0 > div {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

/* ---- SECTION PADDING RESPONSIVE ---- */

/* ---- GRID FIXES ---- */

/* ---- TYPOGRAPHY MOBILE ---- */

/* ---- FORM INPUTS: touch-friendly ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
    min-height: 44px;
    font-size: 16px !important; /* Prevents iOS zoom on focus */
}

/* ---- BUTTONS: min 44px touch target ---- */
button,
a.btn,
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Exception for very small icon-only buttons */
button.icon-btn { min-height: 36px; min-width: 36px; }

/* ---- CARDS: padding on mobile ---- */

/* ---- HERO/SLIDER: fix height on mobile ---- */

/* ---- IMAGES: max-width on mobile ---- */
img {
    max-width: 100%;
    height: auto;
}

/* ---- HORIZONTAL SCROLL PREVENTION ---- */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ---- ADMIN TABLE: horizontal scroll on mobile ---- */

/* ---- ADMIN NAV: hamburger below lg breakpoint (1024px) ---- */
/* Tailwind lg:hidden / hidden lg:flex handles display;
   these rules are fallback reinforcements */

/* ---- FOOTER RESPONSIVE ---- */

/* ---- HEALTH PACKAGES: force 1 col on mobile ---- */

/* ---- FIND DOCTOR: better layout ---- */

/* ---- PHARMACY: force 2-col max on mobile ---- */

/* ---- TESTIMONIALS CAROUSEL ---- */

/* ---- FIX ABSOLUTE POSITIONED ELEMENTS ---- */

/* ---- PRINT MEDIA ---- */

.btn-login {
    background-color: #14b8a6;
    color: #ffffff;
    transition: background-color 0.2s ease;
}
.btn-login:hover {
    background-color: #f97316;
}

/* ============================================================
   LAYOUT: sticky footer
   ============================================================ */

/* Make html and body fill the full viewport height */
html {
    height: 100%;
}

body {
    min-height: 100%;
    min-height: 100dvh; /* dynamic viewport height — accounts for mobile browser chrome */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* Main content grows to push footer to the bottom */
body > main,
body > .page-main {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    /* Override any min-h-screen on <main> — body handles the height now */
    min-height: 0 !important;
}

/* Footer never shrinks */
body > footer {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: static !important;
    width: 100% !important;
}

/* ============================================================
   CROSS-BROWSER COMPATIBILITY FIXES
   ============================================================ */

/* Normalize select appearance across all browsers */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem !important;
}

/* Normalize input appearance */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
input[type="search"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Remove iOS inner shadow on inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
textarea {
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* Date input cross-browser */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
    filter: invert(40%) sepia(60%) saturate(600%) hue-rotate(140deg);
}
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox button reset */
button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

/* IE11 / Edge flexbox fixes */
.flex { display: -webkit-box; display: -ms-flexbox; display: flex; }
.flex-col { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
.items-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
.justify-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
.justify-center { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
.flex-1 { -webkit-box-flex: 1; -ms-flex: 1 1 0%; flex: 1 1 0%; }

/* CSS Grid fallback for IE (basic float fallback) */

/* Gradient text cross-browser (calendar month label) */
.calendar-month-label {
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for browsers that don't support background-clip: text */
    color: var(--primary);
}

/* Smooth scrolling — with prefers-reduced-motion support */

/* ============================================================
   HERO SECTION: full-width on all screens
   ============================================================ */

/* The hero section sits inside main.container — fix full-bleed */
main.container > section:first-child,
main > section:first-child {
    margin-left: -2rem;
    margin-right: -2rem;
    width: calc(100% + 4rem);
}

/* Hero slider controls: larger on mobile */

/* ============================================================
   TOPBAR: better mobile layout
   ============================================================ */

/* ============================================================
   NAVIGATION: sticky topbar on scroll
   ============================================================ */

/* Main nav — shadow when scrolled (JS adds .scrolled class) */
.main-nav.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ============================================================
   FOCUS STYLES: accessible & good-looking
   ============================================================ */

*:focus { outline: none; }
*:focus-visible {
    outline: 2.5px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   LINE CLAMP: cross-browser
   ============================================================ */

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 1;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

/* ============================================================
   ACCOUNT PAGE SIDEBAR LAYOUT
   ============================================================ */

/* ============================================================
   FOOTER: responsive improvements
   ============================================================ */

/* ============================================================
   MODAL IMPROVEMENTS
   ============================================================ */

/* Prevent body scroll when modal open */
body.modal-open {
    overflow: hidden;
}

/* Modal close button accessible size */
[onclick*="closeServiceModal"],
[onclick*="closeAptModal"],
[onclick*="closeCommunityServiceModal"],
[onclick*="closeServiceModal()"] {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   INSURANCE PARTNER CARDS
   ============================================================ */

/* ============================================================
   IMAGE FALLBACK PLACEHOLDER
   ============================================================ */

img {
    background-color: #f3f4f6;
}
img[src=""],
img:not([src]) {
    visibility: hidden;
}

/* ============================================================
   SCROLLBAR STYLING (Webkit)
   ============================================================ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   LAZY LOADING ANIMATION
   ============================================================ */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

/* ============================================================
   CARD HOVER EFFECTS — ensure GPU composited
   ============================================================ */

.hover-scale,
.service-card,
.doctor-card,
.flow-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
/* Disable will-change when not hovering to save memory */
.hover-scale:not(:hover),
.service-card:not(:hover),
.doctor-card:not(:hover) {
    will-change: auto;
}

/* ============================================================
   GLASSMORPHISM CARD SYSTEM
   Mobile-first · Cross-browser · Accessible (WCAG AA 4.5:1)
   ============================================================ */

/*
 * ------------------------------------------------------------------
 * CSS Custom Properties — glass tokens
 * ------------------------------------------------------------------
 */
:root {
    /* Glass surface */
    --glass-bg:            rgba(255, 255, 255, 0.15);
    --glass-bg-fallback:   #ffffff;            /* solid fallback */
    --glass-border:        rgba(255, 255, 255, 0.35);
    --glass-border-fallback: #e2e8f0;
    --glass-blur:          16px;
    --glass-saturate:      180%;
    --glass-radius:        1rem;               /* 16 px */
    --glass-shadow:        0 8px 32px rgba(20, 184, 166, 0.18),
                           0 2px 8px  rgba(0, 0, 0, 0.10);

    /* Text on glass — dark enough for 4.5:1 on translucent teal bg */
    --glass-text:          #0f2f2d;
    --glass-text-muted:    #1e4e4a;
    --glass-accent:        #14b8a6;            /* brand teal */
    --glass-accent-dark:   #0d9488;

    /* Hero split layout */
    --hero-gap:            1.5rem;
}

/*
 * ------------------------------------------------------------------
 * Reset — scoped to glass components only
 * ------------------------------------------------------------------
 */
.glass-card *,
.glass-hero * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*
 * ------------------------------------------------------------------
 * Core glass surface
 * ------------------------------------------------------------------
 */

/* 1. Solid-colour fallback (no 

/* 2. Progressive enhancement — glassmorphism where supported */

/* Hover lift — only on devices that can hover (not touch-primary) */

/* Respect reduced-motion preference */

/*
 * ------------------------------------------------------------------
 * Glass card inner elements
 * ------------------------------------------------------------------
 */

/* Icon badge inside a glass card */
.glass-card__icon {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 3rem;            /* 48 px */
    height: 3rem;
    border-radius: 0.75rem;
    background-color: rgba(20, 184, 166, 0.15);
    color: var(--glass-accent-dark);
    margin-bottom: 0.875rem;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Title — fluid type: clamp(min, preferred, max) */
.glass-card__title {
    font-size: clamp(1rem, 2.5vw + 0.5rem, 1.375rem); /* 16 px → 22 px */
    font-weight: 700;
    line-height: 1.3;
    color: var(--glass-text);
    margin-bottom: 0.5rem;
}

/* Body copy */
.glass-card__body {
    font-size: clamp(0.875rem, 1.5vw + 0.5rem, 1rem);  /* 14 px → 16 px */
    line-height: 1.6;
    color: var(--glass-text-muted);
}

/* CTA link inside card */
.glass-card__link {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--glass-accent-dark);
    text-decoration: none;
    -webkit-transition: color 0.2s ease, gap 0.2s ease;
    transition: color 0.2s ease, gap 0.2s ease;
}
.glass-card__link:hover,
.glass-card__link:focus-visible {
    color: #f4771d;          /* brand orange on hover */
    gap: 0.625rem;
}
.glass-card__link:focus-visible {
    outline: 2px solid #f4771d;
    outline-offset: 2px;
    border-radius: 2px;
}

/*
 * ------------------------------------------------------------------
 * Glass card grid — row of cards
 * ● Mobile  : 1 column (base)
 * ● ≥ 640 px: 2 columns
 * ● ≥ 1024px: 3 columns (or as many as the modifier says)
 * ------------------------------------------------------------------
 */
.glass-card-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}

/*
 * ------------------------------------------------------------------
 * Hero section — 60/40 text/image split at desktop
 * ● Mobile   : stacked, image below text
 * ● ≥ 1024px : CSS Grid 60fr / 40fr side-by-side
 * ------------------------------------------------------------------
 */
.glass-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 1.25rem;

    /* Fallback gradient background (also shows through glass) */
    background: -webkit-linear-gradient(135deg, #0f766e 0%, #134e4a 60%, #1e293b 100%);
    background:    linear-gradient(135deg, #0f766e 0%, #134e4a 60%, #1e293b 100%);
}

/* Decorative blurred blob — creates the colourful "glow" for glass to blur */
.glass-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 480px;
    max-height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,184,166,0.55) 0%, rgba(14,116,144,0.25) 60%, transparent 100%);
    pointer-events: none;
    /* No prefix needed — radial-gradient is fully supported */
}

/* Inner wrapper — mobile: flex column */
.glass-hero__inner {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: var(--hero-gap);
    max-width: 1200px;
    margin-inline: auto;
}

/* Desktop: switch to 60/40 grid */

/* Text column */
.glass-hero__text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1rem;
}

.glass-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5eead4;          /* teal-300 — passes 4.5:1 on dark bg */
}

.glass-hero__heading {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
}

.glass-hero__sub {
    font-size: clamp(0.9375rem, 1.5vw + 0.5rem, 1.125rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 55ch;
}

/* CTA buttons row */
.glass-hero__actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Primary CTA button */
.glass-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    -webkit-transition: background-color 0.2s ease,
                        -webkit-transform 0.15s ease,
                        -webkit-box-shadow 0.2s ease;
    transition: background-color 0.2s ease,
                transform 0.15s ease,
                box-shadow 0.2s ease;
    border: 2px solid transparent;

    /* Minimum touch target — WCAG 2.5.5 */
    min-height: 44px;
    min-width: 44px;
}
.glass-btn--primary {
    background-color: #f4771d;
    color: #ffffff;
}
.glass-btn--primary:hover,
.glass-btn--primary:focus-visible {
    background-color: #e06010;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 6px 20px rgba(244,119,29,0.45);
    box-shadow: 0 6px 20px rgba(244,119,29,0.45);
}
.glass-btn--ghost {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.55);
}
.glass-btn--ghost:hover,
.glass-btn--ghost:focus-visible {
    background-color: rgba(255,255,255,0.12);
    border-color: #ffffff;
}
.glass-btn:focus-visible {
    outline: 3px solid #f4771d;
    outline-offset: 3px;
}

/* Image / media column */
.glass-hero__media {
    position: relative;
    border-radius: var(--glass-radius);
    overflow: hidden;
    /* Mobile: fixed aspect ratio so image doesn't collapse */
    aspect-ratio: 16 / 9;
    /* Fallback for browsers without aspect-ratio */
    min-height: 200px;
}

.glass-hero__media img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Subtle glass overlay on the image */
.glass-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.2);
    pointer-events: none;
}

/*
 * ------------------------------------------------------------------
 * Dark-background glass variant (for sections on white backgrounds)
 * ------------------------------------------------------------------
 */
.glass-card--dark {
    --glass-bg:          rgba(15, 47, 45, 0.72);
    --glass-bg-fallback: #0f2f2d;
    --glass-border:      rgba(20, 184, 166, 0.30);
    --glass-text:        #f0fdfa;
    --glass-text-muted:  #99f6e4;
    color: var(--glass-text);
}
.glass-card--dark .glass-card__title {
    color: var(--glass-text);
}
.glass-card--dark .glass-card__body {
    color: var(--glass-text-muted);
}
.glass-card--dark .glass-card__icon {
    background-color: rgba(20, 184, 166, 0.20);
    color: #5eead4;
}

/*
 * ------------------------------------------------------------------
 * Utility: frosted section wrapper
 * Wraps a content area in a glass panel — useful for stat bars, etc.
 * ------------------------------------------------------------------
 */
.glass-panel {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--glass-radius);
    padding: 1.25rem;
    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
}

/* ============================================================
   NAV TOGGLE — hide hamburger on desktop (≥ 1024px)
   Belt-and-suspenders alongside Tailwind's lg:hidden
   ============================================================ */

@media screen and (min-width: 1024px) {
    #nav-toggle,
    #nav-toggle + *,
    .nav-hamburger {
        display: none !important;
    }
}

/* ============================================================
   GO-TO-TOP BUTTON
   ============================================================ */

#go-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #14b8a6;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease,
                visibility 0.25s ease,
                transform 0.25s ease,
                background-color 0.2s ease;
}

#go-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#go-top-btn:hover {
    background: #f4771d;
    box-shadow: 0 6px 18px rgba(244, 119, 29, 0.45);
}

#go-top-btn:focus-visible {
    outline: 3px solid #f4771d;
    outline-offset: 3px;
}

/* ============================================================
   MODERN CSS RESET — scoped to header & footer only
   Ensures consistent baseline across Chrome, Edge, Safari,
   Firefox (with -moz-) and older WebKit (with -webkit-).
   Middle content is intentionally untouched.
   ============================================================ */

.site-header *,
.site-header *::before,
.site-header *::after,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   CONTENT WRAPPER
   max-width: 1200px centred — wraps main without touching HTML
   ============================================================ */

.page-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============================================================
   HEADER — BASE STYLES (shared across all breakpoints)
   Flexbox layout with vendor prefixes for Safari ≤ 8 / FF ≤ 27
   ============================================================ */

/* Topbar */
.topbar {
    width: 100%;
    background: #14b8a6;
    position: relative;
    z-index: 50;
}

.topbar__inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 1rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 1rem;
}

.topbar__contact {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    color: #ffffff;
    font-size: 0.875rem;
}

.topbar__actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    -ms-flex-negative: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

/* Main nav bar */
.main-nav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    z-index: 40;
}

.main-nav__inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 1rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.main-nav__logo {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-decoration: none;
    -ms-flex-negative: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.main-nav__logo img {
    height: 3.5rem;   /* 56px — consistent on all breakpoints */
    width: auto;
    display: block;
    -o-object-fit: contain;
    object-fit: contain;
}

/* Desktop nav links row */
.main-nav__links {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -moz-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -moz-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    /* Hidden on mobile — shown at desktop breakpoint */
    display: none;
}

.main-nav__link {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    -webkit-transition: color 0.2s ease, background-color 0.2s ease;
    -moz-transition: color 0.2s ease, background-color 0.2s ease;
    -o-transition: color 0.2s ease, background-color 0.2s ease;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
    color: #f4771d;
    background-color: #fff7ed;
}

/* Desktop action buttons (Book / Login / Register) */
.main-nav__actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    -ms-flex-negative: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    /* Hidden on mobile */
    display: none;
}

/* Hamburger button */
.nav-hamburger {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0.5rem 0.625rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    -webkit-transition: background-color 0.15s ease;
    -moz-transition: background-color 0.15s ease;
    transition: background-color 0.15s ease;
    /* min touch target */
    min-width: 44px;
    min-height: 44px;
}

.nav-hamburger:hover {
    background-color: #f9fafb;
}

/* Secondary nav (services bar) */
.secondary-nav {
    width: 100%;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 30;
    /* Hidden on mobile — shown at desktop */
    display: none;
}

.secondary-nav__inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.375rem 1rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Mobile slide-in menu panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: -webkit-min-content;
    width: -moz-min-content;
    width: min(320px, 88vw);
    background: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-box-shadow: -4px 0 24px rgba(0,0,0,0.13);
    -moz-box-shadow: -4px 0 24px rgba(0,0,0,0.13);
    box-shadow: -4px 0 24px rgba(0,0,0,0.13);
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: -moz-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: -o-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important; /* always in DOM, visibility via transform */
}

.mobile-menu.open {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
}

/* Keep .hidden Tailwind class compatible — still controlled by transform */
.mobile-menu.hidden {
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    display: block !important;
}

/* Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.48);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile menu header row */
.mobile-menu__header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -moz-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Mobile menu links */
.mobile-menu__body {
    padding: 1rem;
}

.mobile-menu__link {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    -webkit-transition: background-color 0.15s ease;
    -moz-transition: background-color 0.15s ease;
    transition: background-color 0.15s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
    background-color: #f3f4f6;
    color: #f4771d;
}

/* Mobile accordion toggle */
.mobile-menu__toggle {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    -webkit-transition: background-color 0.15s ease;
    -moz-transition: background-color 0.15s ease;
    transition: background-color 0.15s ease;
    min-height: 44px;
}

.mobile-menu__toggle:hover {
    background-color: #f3f4f6;
}

.mobile-menu__toggle svg {
    -webkit-transition: -webkit-transform 0.2s ease;
    -moz-transition: -moz-transform 0.2s ease;
    transition: transform 0.2s ease;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.mobile-menu__toggle.open svg {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* Mobile submenu */
.mobile-menu__sub {
    padding-left: 0.75rem;
    padding-top: 0.25rem;
}

/* Mobile action buttons */
.mobile-menu__footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.5rem;
}

/* ============================================================
   FOOTER — BASE STYLES
   ============================================================ */

.site-footer {
    width: 100%;
    background: #26b0b0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    -ms-flex-negative: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.site-footer__inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 1rem;
}

/* Footer 4-column grid — base (mobile: 1 col) */
.footer-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer column heading */
.footer-col__heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.875rem;
}

/* Footer links list */
.footer-col__list {
    list-style: none;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col__list a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    -webkit-transition: color 0.2s ease, opacity 0.2s ease;
    -moz-transition: color 0.2s ease, opacity 0.2s ease;
    -o-transition: color 0.2s ease, opacity 0.2s ease;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
    color: #ffffff;
    opacity: 1;
}

/* Contact item rows */
.footer-col__contact-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
    -webkit-align-items: flex-start;
    -moz-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    -moz-transition: color 0.2s ease;
    transition: color 0.2s ease;
    margin-bottom: 0.5rem;
}

.footer-col__contact-item:hover {
    color: #ffffff;
}

.footer-col__contact-item svg {
    -ms-flex-negative: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.88);
}

.footer-bottom__links {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 1rem;
}

.footer-bottom__links a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    -moz-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.footer-bottom__links a:hover {
    color: #ffffff;
}

/* ============================================================
   MOBILE — max-width: 767px
   Base styles already cover mobile. These are extra tweaks.
   ============================================================ */

@media screen and (max-width: 767px) {

    /* --- HEADER: Mobile --- */

    /* Hide desktop-only elements */
    .main-nav__links,
    .main-nav__actions,
    .secondary-nav,
    .topbar__address {
        display: none !important;
    }

    /* Show hamburger */
    .nav-hamburger {
        display: -webkit-inline-flex;
        display: -moz-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
    }

    /* Topbar: hide address text, keep phone & lang */
    .topbar__inner {
        padding: 0.375rem 1rem;
    }

    /* Main nav inner padding tightened */
    .main-nav__inner {
        padding: 0.375rem 1rem;
    }

    /* Topbar: hide address span and search on small screens — no wrapping */
    .topbar-address {
        display: none !important;
    }
    .topbar-search {
        display: none !important;
    }

    /* Logo slightly smaller */
    .main-nav__logo img {
        height: 3rem;
    }

    /* --- FOOTER: Mobile — 1 column, text centred --- */

    .footer-grid {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }

    .footer-col__list {
        -webkit-box-align: center;
        -webkit-align-items: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .footer-col__contact-item {
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .site-footer__inner {
        padding: 2rem 1rem;
    }

    /* Footer bottom stays centred — already column on base */

    /* --- CONTENT WRAPPER: Mobile --- */
    .page-content-wrapper {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
}

/* ============================================================
   TABLET — min-width: 768px and max-width: 1023px
   ============================================================ */

@media screen and (min-width: 768px) and (max-width: 1023px) {

    /* --- HEADER: Tablet --- */

    /* Still show hamburger — no room for full nav */
    .nav-hamburger {
        display: -webkit-inline-flex;
        display: -moz-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
    }

    /* Desktop nav still hidden at tablet */
    .main-nav__links,
    .main-nav__actions {
        display: none !important;
    }

    /* Show topbar address at tablet */
    .topbar__address {
        display: inline !important;
    }

    /* Secondary nav hidden — accessible via hamburger */
    .secondary-nav {
        display: none;
    }

    /* Topbar search visible at tablet */
    .topbar__search {
        display: -webkit-box;
        display: -webkit-flex;
        display: -moz-box;
        display: -ms-flexbox;
        display: flex;
    }

    /* --- FOOTER: Tablet — 2 columns --- */

    .footer-grid {
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        text-align: left;
    }

    .footer-col__list {
        -webkit-box-align: flex-start;
        -webkit-align-items: flex-start;
        -moz-box-align: flex-start;
        -ms-flex-align: flex-start;
        align-items: flex-start;
    }

    .footer-col__contact-item {
        -webkit-box-pack: flex-start;
        -webkit-justify-content: flex-start;
        -moz-box-pack: flex-start;
        -ms-flex-pack: flex-start;
        justify-content: flex-start;
    }

    /* Footer bottom: row at tablet */
    .footer-bottom {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -moz-box-orient: horizontal;
        -moz-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -moz-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        text-align: left;
    }

    /* --- CONTENT WRAPPER: Tablet --- */
    .page-content-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ============================================================
   DESKTOP — min-width: 1024px
   ============================================================ */

@media screen and (min-width: 1024px) {

    /* --- HEADER: Desktop --- */

    /* Hide hamburger */
    .nav-hamburger {
        display: none !important;
    }

    /* Show desktop nav links — evenly spaced via flex */
    .main-nav__links {
        display: -webkit-box;
        display: -webkit-flex;
        display: -moz-box;
        display: -ms-flexbox;
        display: flex;
        gap: 0.25rem;
        -webkit-box-pack: end;
        -webkit-justify-content: flex-end;
        -moz-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    /* Show action buttons */
    .main-nav__actions {
        display: -webkit-box;
        display: -webkit-flex;
        display: -moz-box;
        display: -ms-flexbox;
        display: flex;
    }

    /* Show secondary nav */
    .secondary-nav {
        display: block;
    }

    /* Show topbar address */
    .topbar__address {
        display: inline !important;
    }

    /* Show topbar search */
    .topbar__search {
        display: -webkit-box;
        display: -webkit-flex;
        display: -moz-box;
        display: -ms-flexbox;
        display: flex;
    }

    /* --- FOOTER: Desktop — 4 columns --- */

    .footer-grid {
        -ms-grid-columns: 1fr 1fr 1fr 1fr;
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        text-align: left;
    }

    .footer-col__list {
        -webkit-box-align: flex-start;
        -webkit-align-items: flex-start;
        -moz-box-align: flex-start;
        -ms-flex-align: flex-start;
        align-items: flex-start;
    }

    .footer-col__contact-item {
        -webkit-box-pack: flex-start;
        -webkit-justify-content: flex-start;
        -moz-box-pack: flex-start;
        -ms-flex-pack: flex-start;
        justify-content: flex-start;
    }

    /* Footer heading larger at desktop */
    .footer-col__heading {
        font-size: 1.125rem;
    }

    /* Footer bottom: row */
    .footer-bottom {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -moz-box-orient: horizontal;
        -moz-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -moz-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        text-align: left;
        font-size: 0.875rem;
    }

    /* --- CONTENT WRAPPER: Desktop --- */
    .page-content-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Nav links evenly spaced — distribute across full bar */
    .secondary-nav__inner {
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* ============================================================
   WIDE DESKTOP — min-width: 1280px
   ============================================================ */

@media screen and (min-width: 1280px) {

    .main-nav__link {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .main-nav__inner,
    .secondary-nav__inner,
    .topbar__inner,
    .site-footer__inner,
    .page-content-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================================
   REDUCED MOTION — respect user OS preference
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu-backdrop,
    .main-nav__link,
    .footer-col__list a,
    .footer-col__contact-item,
    .mobile-menu__link,
    .mobile-menu__toggle {
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -o-transition: none !important;
        transition: none !important;
    }
}

/* =========================================================
   Auth layout (login / register)
   Scoped under body.auth-layout so it cannot leak to other pages.
   ========================================================= */
body.auth-layout {
    background: #ffffff;
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    font-family: 'Inter', 'Noto Sans Lao Looped', sans-serif;
}
.auth-layout .auth-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    overflow: visible;
}
@media (min-width: 1024px) {
    .auth-layout .auth-shell {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        height: 100vh;
        overflow: hidden;
    }
}

/* Brand panel ------------------------------------------------ */
.auth-layout .auth-brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #2dd4bf 100%);
    color: #ffffff;
    padding: 2rem 2rem;
    display: none;
}
@media (min-width: 1024px) {
    .auth-layout .auth-brand {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 3rem 3.5rem;
    }
}
.auth-layout .auth-brand::before,
.auth-layout .auth-brand::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
}
.auth-layout .auth-brand::before {
    width: 420px;
    height: 420px;
    background: #5eead4;
    top: -120px;
    right: -120px;
}
.auth-layout .auth-brand::after {
    width: 360px;
    height: 360px;
    background: #0f766e;
    bottom: -140px;
    left: -100px;
}
.auth-layout .auth-brand > * {
    position: relative;
    z-index: 1;
}
.auth-layout .auth-brand > div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
}
.auth-layout .auth-brand-logo {
    width: 33.333%;
    height: auto;
    display: block;
    opacity: 0.92;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.18));
}
.auth-layout .auth-brand-heading {
    font-family: 'Poppins', 'Noto Sans Lao Looped', sans-serif;
    font-size: clamp(1.75rem, 2.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.auth-layout .auth-brand-sub {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 2rem;
    max-width: 420px;
}
.auth-layout .auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
.auth-layout .auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
.auth-layout .auth-benefits li svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #ccfbf1;
}
.auth-layout .auth-brand-footer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile brand strip ------------------------------------------- */
.auth-layout .auth-brand-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #fff;
}
@media (min-width: 1024px) {
    .auth-layout .auth-brand-mobile {
        display: none;
    }
}
.auth-layout .auth-brand-mobile img {
    height: 36px;
    width: auto;
}

/* Form panel -------------------------------------------------- */
.auth-layout .auth-form-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f9fafb;
}
@media (min-width: 1024px) {
    .auth-layout .auth-form-panel {
        height: 100vh;
        overflow-y: auto;
        min-height: unset;
    }
}
.auth-layout .auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .auth-layout .auth-top {
        padding: 1rem 2.5rem;
        background: transparent;
    }
}
.auth-layout .auth-lang {
    display: inline-flex;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 9999px;
    overflow: hidden;
    font-size: 0.8rem;
}
.auth-layout .auth-lang a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    color: #4b5563;
    text-decoration: none;
    transition: background 0.15s;
}
.auth-layout .auth-lang a.active {
    background: #14b8a6;
    color: #fff;
}
.auth-layout .auth-lang a img {
    width: 16px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}
.auth-layout .auth-home-link {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s;
}
.auth-layout .auth-home-link:hover {
    color: #0d9488;
}

.auth-layout .auth-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 1.25rem 2.5rem;
}
@media (min-width: 1024px) {
    .auth-layout .auth-content {
        align-items: center;
        padding: 1.5rem 2.5rem 2.5rem;
    }
}
.auth-layout .auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 1.5rem 1.75rem;
    width: 100%;
    max-width: 440px;
}
.auth-layout .auth-card--wide {
    max-width: 560px;
}
@media (min-width: 640px) {
    .auth-layout .auth-card {
        padding: 1.75rem 2rem;
    }
}
.auth-layout .auth-card h1 {
    font-family: 'Poppins', 'Noto Sans Lao Looped', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.3rem;
    letter-spacing: -0.01em;
}
.auth-layout .auth-card .auth-sub {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

/* Form fields ------------------------------------------------- */
.auth-layout .auth-field {
    margin-bottom: 0.65rem;
}
.auth-layout .auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.auth-layout .auth-input,
.auth-layout .auth-select {
    width: 100%;
    height: 42px;
    padding: 0 0.9rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.auth-layout .auth-select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}
.auth-layout .auth-input:focus,
.auth-layout .auth-select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.auth-layout .auth-input--pw {
    padding-right: 2.75rem;
}
.auth-layout .auth-pw-wrap {
    position: relative;
}
.auth-layout .auth-pw-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
}
.auth-layout .auth-pw-toggle:hover {
    color: #14b8a6;
}

/* Segmented toggle (account type) ----------------------------- */
.auth-layout .auth-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.auth-layout .auth-segmented label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    color: #6b7280;
}
.auth-layout .auth-segmented label:hover {
    border-color: #99f6e4;
}
.auth-layout .auth-segmented input:checked ~ .auth-seg-body {
    color: #0f766e;
}
.auth-layout .auth-segmented label:has(input:checked) {
    border-color: #14b8a6;
    background: #f0fdfa;
    color: #0f766e;
}
.auth-layout .auth-segmented svg {
    width: 28px;
    height: 28px;
}
.auth-layout .auth-segmented span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Tabs (login method) ----------------------------------------- */
.auth-layout .auth-tabs {
    display: flex;
    gap: 0.25rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.auth-layout .auth-tabs button {
    flex: 1;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}
.auth-layout .auth-tabs button.active {
    background: #fff;
    color: #0f766e;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Primary button ---------------------------------------------- */
.auth-layout .auth-btn-primary {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.auth-layout .auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}
.auth-layout .auth-btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.35), 0 6px 16px rgba(13, 148, 136, 0.35);
}
.auth-layout .auth-btn-secondary {
    width: 100%;
    height: 44px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
}
.auth-layout .auth-btn-secondary:hover {
    border-color: #14b8a6;
    color: #0f766e;
}

/* Google button ----------------------------------------------- */
.auth-layout .auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.auth-layout .auth-google:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}
.auth-layout .auth-google svg {
    width: 20px;
    height: 20px;
}

/* Divider ----------------------------------------------------- */
.auth-layout .auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.85rem 0;
    color: #9ca3af;
    font-size: 0.8rem;
}
.auth-layout .auth-divider::before,
.auth-layout .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Inline error ------------------------------------------------ */
.auth-layout .auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.auth-layout .auth-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Remember / forgot row --------------------------------------- */
.auth-layout .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}
.auth-layout .auth-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    cursor: pointer;
}
.auth-layout .auth-row label input {
    width: 16px;
    height: 16px;
    accent-color: #14b8a6;
}
.auth-layout .auth-link {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}
.auth-layout .auth-link:hover {
    text-decoration: underline;
}

.auth-layout .auth-foot {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

/* Stepper ----------------------------------------------------- */
.auth-layout .auth-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 0.5rem;
}
.auth-layout .auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    color: #9ca3af;
}
.auth-layout .auth-step-dot {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #9ca3af;
    transition: all 0.2s;
}
.auth-layout .auth-step-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.auth-layout .auth-step.is-active .auth-step-dot {
    background: #14b8a6;
    border-color: #14b8a6;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}
.auth-layout .auth-step.is-active {
    color: #0f766e;
}
.auth-layout .auth-step.is-done .auth-step-dot {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}
.auth-layout .auth-step.is-done {
    color: #0f766e;
}
.auth-layout .auth-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-top: 17px;
    align-self: flex-start;
    transition: background 0.2s;
}
.auth-layout .auth-step-line.is-done {
    background: #0f766e;
}

.auth-layout .auth-step-panel {
    display: none;
    animation: authFade 0.25s ease-out;
}
.auth-layout .auth-step-panel.is-active {
    display: block;
}
@keyframes authFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-layout .auth-nav-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.85rem;
}
.auth-layout .auth-nav-row .auth-btn-primary,
.auth-layout .auth-nav-row .auth-btn-secondary {
    flex: 1;
}

.auth-layout .auth-section-title {
    font-family: 'Inter', 'Noto Sans Lao Looped', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0.85rem 0 0.5rem;
}
.auth-layout .auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 520px) {
    .auth-layout .auth-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-layout .auth-btn-primary,
    .auth-layout .auth-step-panel {
        transition: none !important;
        animation: none !important;
    }
    .auth-layout .auth-btn-primary:hover {
        transform: none;
    }
}

/* ── Page-switch slide transitions ──────────────────────────── */
@keyframes authSlideInFromRight {
    from { opacity: 0; transform: translateX(56px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes authSlideInFromLeft {
    from { opacity: 0; transform: translateX(-56px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes authSlideOutToLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-56px); }
}
@keyframes authSlideOutToRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(56px); }
}

/* Register entrance — brand from right, form from left (converge inward) */
.auth-layout .auth-shell.auth-enter-register .auth-brand {
    animation: authSlideInFromRight 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-layout .auth-shell.auth-enter-register .auth-form-panel {
    animation: authSlideInFromLeft 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Login entrance — brand from left, form from right (converge inward) */
.auth-layout .auth-shell.auth-enter-login .auth-brand {
    animation: authSlideInFromLeft 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-layout .auth-shell.auth-enter-login .auth-form-panel {
    animation: authSlideInFromRight 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Exit to register — brand left, form right (diverge outward) */
.auth-layout .auth-shell.auth-exit-to-register .auth-brand,
.auth-layout .auth-shell.auth-exit-to-register .auth-form-panel,
.auth-layout .auth-shell.auth-exit-to-login .auth-brand,
.auth-layout .auth-shell.auth-exit-to-login .auth-form-panel {
    pointer-events: none;
}
.auth-layout .auth-shell.auth-exit-to-register .auth-brand {
    animation: authSlideOutToLeft 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.auth-layout .auth-shell.auth-exit-to-register .auth-form-panel {
    animation: authSlideOutToRight 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Exit to login — brand right, form left (diverge outward) */
.auth-layout .auth-shell.auth-exit-to-login .auth-brand {
    animation: authSlideOutToRight 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.auth-layout .auth-shell.auth-exit-to-login .auth-form-panel {
    animation: authSlideOutToLeft 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
    .auth-layout .auth-shell .auth-brand,
    .auth-layout .auth-shell .auth-form-panel {
        animation: none !important;
    }
}

/* ── Auth utility helpers (Tailwind not loaded on auth pages) ─── */
.auth-layout .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.auth-layout .w-4 { width:  1rem; }
.auth-layout .h-4 { height: 1rem; }
.auth-layout .w-5 { width:  1.25rem; }
.auth-layout .h-5 { height: 1.25rem; }
.auth-layout .hidden { display: none !important; }

