/* ============================================================
   HyperClean TX — Custom Overrides & Modernization
   ============================================================ */

/* Position chat button on right bottom */
#chat-btn, #chat-button {
    position: fixed !important;
    right: 20px !important;
    left: auto !important;
    bottom: 20px !important;
    z-index: 9999 !important;
}

/* Style chat modal width and position */
#chat-modal {
    right: 20px !important;
    left: auto !important;
    bottom: 80px !important;
    z-index: 9999 !important;
    width: 100%;
    max-width: 400px;
    height: calc(100% - 100px);
}

/* Desktop: show nav links inline */
@media (min-width: 768px) {
  .nav-container .container .hidden {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hamburger { display: none !important; }
  .mobile-nav { display: none !important; }
}

/* Mobile: hide desktop nav, show hamburger, mobile menu toggles via .active */
@media (max-width: 767px) {
  .nav-container .container .hidden.md\:flex {
    display: none !important;
  }
  .hamburger {
    display: inline-flex !important;
  }
  .mobile-nav {
    display: none;
  }
  .mobile-nav.active {
    display: flex !important;
    flex-direction: column;
    padding: 1rem;
    background: rgba(11, 12, 38, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-nav.active a {
    padding: 12px 16px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  /* Language button visible on mobile */
  #lang-btn { display: none !important; }
  #lang-btn-mobile { display: inline-flex !important; }
  /* Chat widget repositioned */
  #chat-btn, #chat-button {
    bottom: 12px !important;
    right: 12px !important;
  }
  #chat-modal {
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    max-width: 100%;
    height: 80vh;
    border-radius: 16px 16px 0 0 !important;
  }
}

/* Ensure language toggle (ESP) is visible on desktop */
@media (min-width: 768px) {
  #lang-btn,
  #lang-toggle,
  #language-switcher {
    display: inline-flex !important;
  }
}

/* Enhance mission section styling */
#mission {
    background-color: var(--primary);
    color: var(--accent);
    text-align: center;
    padding: 4rem 1rem;
}

#mission h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#mission p {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}


/* ============================================================
   MODERNIZATION — Glassmorphism & Polish
   ============================================================ */

/* 1. Inter font site-wide */
body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Border-radius upgrade (6px → 16px for cards, 12px for inputs) */
.pricing-table,
.price-breakdown,
.chat-modal,
section[id] > .max-w-6xl > div,
.trust-badge {
    border-radius: 16px !important;
}

.form-input,
.form-select,
textarea,
input[type="date"].form-input,
input[type="time"].form-input {
    border-radius: 12px !important;
}

.yellow-btn,
.outline-btn,
.btn-primary {
    border-radius: 12px !important;
}

/* 3. Glassmorphism on key surfaces */
.pricing-table {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

.price-breakdown {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Glass effect on nav */
.nav-container {
    background: rgba(11, 12, 38, 0.85) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Glass effect on form containers */
form[id*="booking"],
#standard-booking-section,
#str-booking-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Glass on form inputs */
.form-input,
.form-select,
textarea {
    background: rgba(19, 23, 61, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus,
.form-select:focus,
textarea:focus {
    background: rgba(19, 23, 61, 0.8) !important;
    border-color: rgba(225, 182, 104, 0.5) !important;
    box-shadow:
        0 0 0 3px rgba(225, 182, 104, 0.15),
        0 0 20px rgba(225, 182, 104, 0.08) !important;
}

/* 4. Animated background orb — single subtle golden orb */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -15%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(225, 182, 104, 0.08) 0%, transparent 60%);
    animation: site-orb 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -25%;
    left: -15%;
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    animation: site-orb2 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes site-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-10%, 8%) scale(1.08); }
    66% { transform: translate(5%, -12%) scale(0.92); }
}

@keyframes site-orb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8%, -10%) scale(1.1); }
    66% { transform: translate(-6%, 8%) scale(0.9); }
}

/* Ensure all content sits above orbs */
body > *:not(script):not(style) {
    position: relative;
    z-index: 1;
}

/* 5. Button hover glow + micro-scale */
.yellow-btn:hover,
.yellow-btn:focus {
    box-shadow:
        0 0 20px rgba(225, 182, 104, 0.3),
        0 0 40px rgba(225, 182, 104, 0.1) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.outline-btn:hover,
.outline-btn:focus {
    box-shadow:
        0 0 20px rgba(225, 182, 104, 0.25),
        0 0 40px rgba(225, 182, 104, 0.08) !important;
    transform: translateY(-1px) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow:
        0 0 24px rgba(225, 182, 104, 0.35),
        0 0 48px rgba(225, 182, 104, 0.12) !important;
    transform: translateY(-2px) scale(1.01) !important;
}

.btn-primary:disabled:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Smooth transition for all interactive elements */
.yellow-btn,
.outline-btn,
.btn-primary,
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 6. Inset shadow on cards for depth */
.pricing-table,
section .bg-white\/5,
[class*="bg-opacity"] {
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.02),
        0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

/* 7. Increased spacing on sections */
section[id] {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Hero section extra breathing room */
#hero {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* Pricing cards spacing */
.pricing-table {
    padding: 2rem !important;
}

/* Trust badges with glass */
.trust-badge {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

/* Chat widget modernization */
.chat-modal {
    border-radius: 20px !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    background: rgba(19, 23, 61, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Footer glass treatment */
footer {
    background: rgba(11, 12, 38, 0.9) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Referral section glass */
.referral-cta {
    background: rgba(225, 182, 104, 0.04) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(225, 182, 104, 0.12) !important;
    border-radius: 16px;
}

/* Social proof bar polish */
.social-proof-inline {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

/* Subtle hover on table rows */
tbody tr {
    transition: background 0.2s ease;
}
tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none !important;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
