/* --- CSS VARIABLES --- */
:root {
    --bg-color: #F7F6F2;
    --text-color: #2D2C2B;
    --accent-color: #988264;
    --font-main: "Helvetica Neue", "Times New Roman", sans-serif;
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER & LOGO --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes button left, nav right */
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(45, 44, 43, 0.1);
}

/* --- HAMBURGER BUTTON --- */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: center;
}

/* Animates the hamburger into an 'X' */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- NAVIGATION --- */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* --- MOBILE STYLES (Slide-out Menu) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show button on mobile */
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        transform: translateX(-100%); /* Hidden off-screen to the left */
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999; /* Below the button */
    }

    .main-nav.active {
        transform: translateX(0); /* Slides in */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .main-nav a {
        font-size: 1.5rem;
    }
}

/* --- DESKTOP STYLES --- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* Hide button on desktop */
    }
}

/* --- HOME PAGE HERO SECTION --- */
.hero {
    margin-top: 90px; /* Space for the fixed header */
    min-height: calc(100vh - 90px); /* Fills the rest of the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* --- HERO LOGO STYLES --- */
.hero-logo {
    /* Responsive sizing */
    max-width: 100%; 
    width: 450px; /* Ideal size for desktop */
    height: auto;
    display: block;
    
    /* Fade-in animation setup */
    opacity: 0; /* Starts invisible */
    animation: fadeIn 1.5s ease-out forwards;
}

/* Fade-in keyframes */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* --- SERVICES PAGE SPECIFIC STYLES --- */

.services-page {
    padding-top: 100px;
    padding-bottom: 60px;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.service-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(152, 130, 100, 0.2);
}

.service-section:last-child {
    border-bottom: none;
}

.section-title {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-description {
    color: var(--text-color);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 30px;
    opacity: 0.8;
    line-height: 1.6;
}

.pricing-header {
    text-align: right;
    margin-bottom: 20px;
    padding-right: 10px;
}

.pricing-header span {
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: normal;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.treatment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(152, 130, 100, 0.3);
}

.treatment-item:last-child {
    border-bottom: none;
}

.treatment-name {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
    padding-right: 20px;
}

.treatment-name em {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
    font-weight: 400;
}

.treatment-price {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
    min-width: 120px;
}

.treatment-price.highlight {
    font-style: italic;
    font-weight: 500;
}

.treatment-section {
    margin-top: 35px;
}

.subsection-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.subsection-description {
    color: var(--text-color);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 15px;
    opacity: 0.7;
}

/* Important Information Section */
.important-info {
    margin-top: 60px;
}

.important-info .section-title {
    margin-bottom: 30px;
}

.info-block {
    margin-bottom: 25px;
    padding: 15px;
    border-left: 3px solid var(--accent-color);
    background-color: rgba(152, 130, 100, 0.05);
}

.info-block p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
}

.info-block strong {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-notice {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(152, 130, 100, 0.4);
    text-align: center;
}

.footer-notice p {
    color: var(--text-color);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-notice em {
    font-style: italic;
    opacity: 0.8;
}

.footer-meta {
    font-size: 0.8rem !important;
    opacity: 0.6 !important;
    margin-top: 15px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-page {
        padding-top: 80px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-title {
        font-size: 1.4rem;
        font-weight: 600;
    }

    .subsection-title {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .treatment-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 18px 0;
        gap: 15px;
    }

    .treatment-name {
        font-size: 0.95rem;
        font-weight: 500;
        flex: 1;
        padding-right: 15px;
    }

    .treatment-price {
        font-size: 0.95rem;
        font-weight: 600;
        min-width: 100px;
        text-align: right;
        flex-shrink: 0;
    }

    .pricing-header {
        text-align: right;
        margin-top: 0;
        margin-bottom: 15px;
    }

    .pricing-header span {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .info-block {
        padding: 12px;
        border-left-width: 2px;
    }

    .info-block p {
        font-size: 0.9rem;
    }
}

/* Fade-in animation for page load */
.services-page {
    opacity: 0;
    animation: pageFadeIn 1s ease-out forwards;
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* --- GLOBAL FOOTER STYLES --- */
.site-footer {
    position: relative;
    padding: 50px 20px 30px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--accent-color);
    margin-top: 80px; /* Creates space between page content and footer */
    text-align: center;
}

/* The small diamond sitting on the top border */
.footer-diamond {
    position: absolute;
    top: -7px; /* Half of the diamond's height (12px/2) + 1px for the border */
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    /* Centers it horizontally and rotates it to form a diamond */
    transform: translateX(-50%) rotate(45deg); 
}

/* QR Codes Layout */
.qr-codes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Space between the QR codes */
    flex-wrap: wrap; /* Allows them to stack on very small screens if needed */
    margin-bottom: 30px;
}

/* Individual QR Code Styling */
.qr-code {
    width: 100px;  /* Fixed width for uniform size */
    height: 100px; /* Fixed height for uniform size */
    object-fit: contain;
    display: block;
    /* Optional: adds a very subtle border if your QR codes are transparent */
    /* border: 1px solid rgba(152, 130, 100, 0.1); */
    /* border-radius: 4px; */
}

/* Copyright Text */
.footer-copyright {
    color: var(--text-color);
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Responsive adjustments for the footer */
@media (max-width: 600px) {
    .qr-codes-container {
        gap: 20px; /* Reduce gap on mobile */
    }
    
    .qr-code {
        width: 80px;  /* Slightly smaller on mobile */
        height: 80px;
    }
}

/* --- LEGAL / POLICY FOOTER STYLES --- */
.legal-footer {
    background-color: var(--text-color); /* #2D2C2B - Darkest color in palette */
    padding: 25px 20px;
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Space between the links */
    flex-wrap: wrap; /* Allows links to stack on very small screens */
}

.legal-links a {
    color: var(--accent-color); /* #988264 - Accent color */
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: opacity 0.3s ease;
    position: relative;
}

/* Subtle underline animation on hover */
.legal-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.legal-links a:hover {
    opacity: 0.8;
}

.legal-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Responsive adjustments for the legal footer */
@media (max-width: 600px) {
    .legal-links {
        flex-direction: column;
        gap: 15px; /* Stack links vertically on mobile */
    }
}