/*! style.css v3.0.1 | Safis Spa | MIT License */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');

/* 
  Please add the Mistrully font files to a 'fonts' directory in your project root.
  You can download it from various font websites.
*/

@font-face {
    font-family: 'Mistrully';
    src: url('../assets/fonts/Mistrully.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
    --ivory: #f9f6f0;
    --gold: #c9a01b;
    --goldlight: #837123;
    --jade: #332219;
    --lavender: #D8BF9F;
    --extrawhite: #F3ECE2;
    --incense: #1b1b19;
    --dark: #2c2c2c;
    --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.1);
    --heavenwhite: #fffdf9;
    --blackout: #121212;
    --lightdark: #1e1e1e;
    --fairdark: #242323;
    --grey: #7a7a7a;
    --greylight: #faeded;
    --cream: #fff5e1;
    --charcoal: #333333;
}


/* CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'cinzel', 'Noto Serif SC', serif;
    background-color: var(--ivory);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2 {
    font-family: 'Mistrully', regular;
    font-weight: 500;
    line-height: 1.2;
    color: var(--dark);
}

h3, h4, h5, h6 {
    font-family: 'cinzel', regular;
    font-weight: 500;
    line-height: 1.2;
    color: var(--dark);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--gold);
    color: var(--ivory);
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
}

.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;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Padding */
.section-padding {
    padding: 100px 0;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ivory);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.lotus-loader {
    width: 80px;
    height: 80px;
    position: relative;
    animation: lotus-rotate 3s infinite linear;
}

.lotus-petal {
    position: absolute;
    width: 40px;
    height: 20px;
    background: var(--gold);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    opacity: 0.8;
}

.lotus-petal:nth-child(1) { transform: rotate(0deg); }
.lotus-petal:nth-child(2) { transform: rotate(45deg); }
.lotus-petal:nth-child(3) { transform: rotate(90deg); }
.lotus-petal:nth-child(4) { transform: rotate(135deg); }
.lotus-petal:nth-child(5) { transform: rotate(180deg); }
.lotus-petal:nth-child(6) { transform: rotate(225deg); }
.lotus-petal:nth-child(7) { transform: rotate(270deg); }
.lotus-petal:nth-child(8) { transform: rotate(315deg); }

@keyframes lotus-rotate {
    0% { transform: rotate(0deg) scale(0.8); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(0.8); }
}

/* Navigation */
.nav-logo {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1000;
    transition: var(--transition);
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: rgba(95, 93, 89, 0.534);
    border-radius: 50%;
    z-index: -1;
    transition: var(--transition);
}

.nav-logo img {
    height: 60px;
    object-fit: contain;
    width: auto;
}

.nav-trigger {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
}

.nav-trigger:hover,
.nav-trigger:focus {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    outline: none;
}

.nav-trigger span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--ivory);
    position: relative;
    transition: var(--transition);
}

.nav-trigger span::before,
.nav-trigger span::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--ivory);
    transition: var(--transition);
}

.nav-trigger span::before {
    top: -8px;
}

.nav-trigger span::after {
    top: 8px;
}

.nav-trigger[aria-expanded="true"] span {
    background: transparent;
}

.nav-trigger[aria-expanded="true"] span::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-trigger[aria-expanded="true"] span::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 44, 44, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.nav-portal {
    position: relative;
    width: 400px;
    height: 400px;
}

.nav-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--goldlight) 0%, transparent 70%);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-overlay[aria-hidden="false"] .nav-circle {
    width: 600px;
    height: 600px;
}

.nav-items {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    list-style: none;
    text-align: center;
}

.nav-item {
    margin: 25px 0;
    opacity: 0;
    transform: translateY(20px);
}

.nav-overlay[aria-hidden="false"] .nav-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.nav-overlay[aria-hidden="false"] .nav-item:nth-child(1) { transition-delay: 0.2s; }
.nav-overlay[aria-hidden="false"] .nav-item:nth-child(2) { transition-delay: 0.3s; }
.nav-overlay[aria-hidden="false"] .nav-item:nth-child(3) { transition-delay: 0.4s; }
.nav-overlay[aria-hidden="false"] .nav-item:nth-child(4) { transition-delay: 0.5s; }
.nav-overlay[aria-hidden="false"] .nav-item:nth-child(5) { transition-delay: 0.6s; }
.nav-overlay[aria-hidden="false"] .nav-item:nth-child(6) { transition-delay: 0.7s; }

.nav-link {
    color: var(--heavenwhite);
    text-decoration: none;
    font-size: 18px;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    position: relative;
    padding: 10px 15px;
    display: inline-block;
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    text-wrap: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--gold);
    outline: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
    left: 0;
}

/* Side Panel */
.side-panel {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-button {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--ivory);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
    border: none;
    font-size: 1.2rem;
}

.panel-button:hover,
.panel-button:focus {
    transform: translateX(-5px);
    background: var(--jade);
    outline: none;
}

.panel-button::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: var(--ivory);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.panel-button:hover::before,
.panel-button:focus::before {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* Enhanced Hero Section with Better Video Overlay */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.vertical-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Enhanced video overlay for better text contrast */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.2);
    filter: brightness(0.8);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(42, 42, 42, 0.6) 0%,
        rgba(58, 58, 58, 0.5) 50%,
        rgba(212, 175, 55, 0.3) 100%
    );
    z-index: 1;
    backdrop-filter: blur(2px);
}

/* Additional gradient overlay for text protection */
.video-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(42, 42, 42, 0.4) 70%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center !important;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    position: relative;
}

.hero-logo .lotus-loader {
    width: 150px;
    height: 150px;
}

.hero-logo .lotus-petal {
    width: 75px;
    height: 37px;
    background: var(--gold);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: var(--heavenwhite);
    opacity: 0;
    transform: translateY(30px);
    font-family: 'Mistrully', 'Noto Serif SC', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 10px;
    color: var(--gold);
    opacity: 0;
    transform: translateY(30px); 
    font-family: 'Yuji Syuku', 'Noto Serif SC', serif;
    font-weight: 400;
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--cream);
    font-style: italic;
    opacity: 0;
    transform: translateY(30px);
    font-family: 'cinzel', serif;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--heavenwhite);
    border: 2px solid var(--heavenwhite);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
    border-radius: 5px;
}

.cta-button:hover,
.cta-button:focus {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    outline: none;
}

.cta-button.primary {
    background: var(--gold);
    color: var(--dark);
}

.cta-button.secondary {
    background: transparent;
    color: var(--heavenwhite);
    border-color: var(--heavenwhite);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background: var(--dark);
    color: var(--ivory);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--gold);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gold);
}

/* Features Section */
#features {
    background: var(--ivory);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: stretch; /* Ensures all cards in a row have the same height */
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    flex: 1 1 300px; /* Flex properties for grow, shrink, and basis */
    max-width: 350px; /* Prevents cards from becoming too wide on some screens */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--lavender);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    color: var(--gold);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--incense);
    line-height: 1.6;
}

/* Services Section */
#services-preview {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--ivory) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--incense);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.service-duration {
    color: var(--incense);
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-price {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 600;
}

.service-book {
    width: 100%;
    padding: 12px;
    background: var(--gold);
    color: var(--ivory);
    border: none;
    border-radius: 5px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    text-align: center;
}

.service-book:hover,
.service-book:focus {
    background: var(--jade);
    outline: none;
}

/* Membership Section */
#membership {
    background: linear-gradient(135deg, var(--gold) 0%, var(--jade) 100%);
    color: var(--ivory);
}

.membership-content {
    text-align: center;
}

.membership-description {
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.membership-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.membership-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
}

.membership-option.featured {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border: 2px solid var(--ivory);
}

.membership-option:hover {
    transform: translateY(-10px);
}

.membership-option.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ivory);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.membership-option h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--ivory);
}

.membership-option .price {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ivory);
}

.membership-option .price span {
    font-size: 1rem;
    opacity: 0.8;
}

.membership-option ul {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.membership-option li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.membership-option li::before {
    content: '✓';
    color: var(--heavenwhite);
    font-weight: bold;
}

/* Testimonials Section */
#testimonials {
    background: var(--ivory);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--gold);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--incense);
}

.testimonial cite {
    font-weight: 500;
    color: var(--lightdark);
    font-style: normal;
}

.rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.rating-badge::before {
    content: '"';
    font-size: 4rem;
    color: var(--gold);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
}

.stars {
    color: var(--gold);
    font-size: 1.1rem;
}

.rating-badge span {
    font-weight: 600;
    color: var(--dark);
}

/* CTA Section */
#cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--jade) 100%);
    color: var(--heavenwhite);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--heavenwhite);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: var(--heavenwhite);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--extrawhite);
    color: var(--ivory);
    padding: 60px 0 30px;
    font-weight: 600;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    color: var(--lightdark);
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    margin-bottom: 20px;
}
.footer-logo img {
    height: 80px;
    object-fit: contain;
    width: auto;
    margin-bottom: -15px;
}
.footer-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gold);
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: var(--lightdark);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--gold);
    padding-left: 5px;
    outline: none;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgb(40 13 5 / 10%) !important;
    border-radius: 50%;
    color: var(--ivory) !important;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--gold) !important;
    transform: translateY(-5px);
    outline: none;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input:focus {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--gold);
    color: var(--ivory);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover,
.newsletter-form button:focus {
    background: var(--jade);
    outline: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--lightdark);
    font-size: 0.9rem;
}

.footer-bottom p a {
    color: var(--gold) !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: var(--incense) !important;
    outline: none;
}

/* Modal Base Styles - Enhanced for both FAQ and Blog */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
}

.modal[aria-hidden="false"] {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--ivory);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal[aria-hidden="false"] .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--heavenwhite);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover,
.modal-close:focus {
    background: var(--jade);
    transform: rotate(90deg);
    outline: none;
}

/* Blog-specific modal width */
#blog-modal .modal-content {
    max-width: 800px;
}

/* FAQ-specific modal width */
#faq-modal .modal-content {
    max-width: 600px;
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--dark);
}

.modal p {
    margin-bottom: 20px;
    color: var(--incense);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--lavender);
    padding-bottom: 20px;
}

.faq-question {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 0;
    font-size: 1rem;
    transition: var(--transition);
}

.faq-question:hover,
.faq-question:focus {
    color: var(--gold);
    outline: none;
}

.faq-question[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.faq-answer {
    color: var(--incense);
    display: none;
}

.faq-item .faq-answer[aria-hidden="false"] {
    display: block;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--lavender);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.form-submit {
    background: var(--gold);
    color: var(--ivory);
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.form-submit:hover,
.form-submit:focus {
    background: var(--jade);
    outline: none;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===============================
   Video Lightbox - Safis Spa
   =============================== */
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.video-lightbox.active {
  display: flex;
}

.video-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.video-lightbox video {
  width: 100%;
  height: auto;
  display: block;
}

.video-lightbox .lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  transition: background 0.2s;
}

.video-lightbox .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
  .video-lightbox-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.service-category {
  scroll-margin-top: 80px; /* Offset for the sticky navigation bar */
}