/* Global Styles */
:root {
    /* Colors */
    --color-primary: #D4AF37;
    /* Gold */
    --color-primary-dark: #B08D28;
    --color-secondary: #F9F5F0;
    /* Off-white/Beige */
    --color-bg-light: #FFFFFF;
    --color-bg-dark: #2C2C2C;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-text-accent: #D4AF37;
    --color-border: #E0E0E0;
    --color-success: #28a745;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.4;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--color-primary);
}

.bg-light {
    background-color: var(--color-secondary);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    /* Rounded pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    text-align: center;
    margin-bottom: 0.5rem;
    /* Add spacing for stacked buttons */
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 60px;
    /* Fixed height */
    width: 60px;
    /* Fixed width to ensure perfect circle */
    object-fit: cover;
    /* Ensures image covers the circle without distortion */
    border-radius: 50%;
    /* Perfect circle */
    border: 2px solid var(--color-primary);
    /* Gold border for a premium look */
    /* Optional: shadow if user likes that */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    /* transition: color 0.3s ease; */
}

/* Header CTA (Desktop) */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    padding: 0.5rem 1.5rem !important;
    /* Force desktop padding */
    font-size: 0.9rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn i {
    font-size: 1.1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    background-color: var(--color-secondary);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-content h2 {
    margin-bottom: var(--spacing-sm);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    color: var(--color-primary);
}

/* Treatments Section */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.treatment-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
    padding-bottom: var(--spacing-sm);
}

.treatment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.treatment-image {
    height: 200px;
    overflow: hidden;
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.treatment-card:hover .treatment-image img {
    transform: scale(1.1);
}

.treatment-content {
    padding: var(--spacing-md);
}

.treatment-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* Tech Section */
.tech-container {
    background-color: var(--color-bg-dark);
    /* Subtle premium gradient overlay */
    background-image: linear-gradient(135deg, rgba(44, 44, 44, 0.95), rgba(20, 20, 20, 0.98));
    color: #fff;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.tech-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.tech-container h2 {
    color: var(--color-primary);
    position: relative;
    z-index: 2;
    margin-bottom: var(--spacing-xs);
}

.tech-container>.container>p {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.tech-item {
    background: #fff;
    padding: var(--spacing-md);
    border-radius: 12px;
    /* Slightly softer corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    /* Deep shadow for lift */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--color-primary);
    /* Gold bottom border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    /* Uniform height */
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    /* Gold glow on hover */
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    background: var(--color-secondary);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.tech-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    /* Dark text on white card */
    font-family: var(--font-heading);
}

.tech-item p {
    color: var(--color-text-light);
    /* Readable grey text */
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    /* Rounded card */
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    /* Keeps content contained */
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    background: #fff;
    padding: 0 1.5rem;
    /* Horizontal padding always present */
}

/* Open state styles */
.faq-item.active .faq-answer {
    /* No restrictive max-height like 200px. 
       The JS will set a precise pixel value.
       We set a large fallback here just in case JS fails. */
    max-height: 1000px;
    opacity: 1;
    /* Add vertical padding only when open to avoid 'half-open' look when closed */
    padding-bottom: 1.5rem;
}

.faq-answer p {
    margin-bottom: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.faq-toggle {
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* Map */
.map-container {
    width: 100%;
    margin-top: var(--spacing-md);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #fff;
    /* White frame effect */
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    /* Fixed height for consistency */
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--color-primary);
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Responsive & Mobile Optimization */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 6rem 0;
    }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 768px) {

    /* General Layout */
    .hero-grid,
    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: var(--spacing-md);
    }

    /* Hero Section */
    .hero-content {
        order: 1;
        /* Ensure text comes first */
        margin-bottom: var(--spacing-md);
    }

    .hero-image-wrapper {
        order: 2;
        margin: 0 auto;
        max-width: 100%;
    }

    /* About Section */
    .about-content {
        order: 1;
    }

    .about-grid .hero-image-wrapper {
        order: 2;
    }

    /* Treatment Cards & Tech Grid */
    .treatments-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    /* Typography Adjustments */
    h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        /* Full width buttons for easier tapping */
        margin-bottom: 0.8rem;
    }

    .header-cta .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        width: auto;
        /* Keep header button compact */
    }

    /* Navigation */
    .nav-menu {
        display: none;
        /* Hidden by default, toggled by JS */
        flex-direction: column;
        position: fixed;
        /* Fixed to cover screen or drop down */
        top: 70px;
        /* Below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        display: block;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
        color: var(--color-primary);
        cursor: pointer;
        margin-left: 1rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Mobile Header Layout Fixes */
    .logo span {
        display: none;
        /* Hide logo text on mobile */
    }

    .logo img {
        height: 50px;
        width: 50px;
    }

    .header-cta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .header-cta .btn {
        display: inline-flex !important;
        /* Bring it back */
        padding: 0 !important;
        /* Remove padding entirely for perfect circle */
        font-size: 0 !important;
        /* Hide text */
        border-radius: 50%;
        /* Make it circular/compact */
        width: 40px;
        /* Slightly larger for touch target */
        height: 40px;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        gap: 0 !important;
    }

    .header-cta .btn i {
        font-size: 1rem;
        /* Smaller icon */
        margin: 0;
        /* Align perfectly */
    }

    .mobile-menu-btn {
        font-size: 1.5rem;
        margin-left: 0;
    }
}

/* iOS Safe Areas */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(var(--spacing-sm), env(safe-area-inset-top));
        padding-left: max(var(--spacing-sm), env(safe-area-inset-left));
        padding-right: max(var(--spacing-sm), env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
        padding-left: max(var(--spacing-sm), env(safe-area-inset-left));
        padding-right: max(var(--spacing-sm), env(safe-area-inset-right));
    }

    .floating-whatsapp {
        bottom: max(30px, env(safe-area-inset-bottom));
        right: max(30px, env(safe-area-inset-right));
    }
}