:root {
    /* Brand Palette */
    --c-sand: #E8DDC7;
    --c-sea: #7FA7B8;
    --c-moss: #4F6B5B;
    --c-paper: #F7F6F2;
    --c-charcoal: #2E2E2E;

    /* Fonts */
    --f-serif: 'Playfair Display', serif;
    --f-sans: 'Outfit', sans-serif;

    /* Spacing */
    --s-xs: 0.5rem;
    --s-sm: 1rem;
    --s-md: 2rem;
    --s-lg: 4rem;
    --s-xl: 6rem;
    --s-xxl: 10rem;
    
    /* Animation & Flow */
    --transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --morph-1: 50% 50% 50% 50% / 50% 50% 50% 50%;
    --morph-2: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --morph-3: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--c-paper);
    color: var(--c-charcoal);
    font-family: var(--f-sans);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--f-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--c-moss);
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--s-sm);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--s-md);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--s-xs);
}

p {
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: var(--s-md);
    opacity: 0.85;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--s-md);
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--s-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
}

header.scrolled {
    background: rgb(247 246 242 / 90%);
    backdrop-filter: blur(10px);
    padding: var(--s-sm) var(--s-md);
    border-bottom: 1px solid rgb(46 46 46 / 5%);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.sanna {
    font-family: var(--f-serif);
    font-size: 2.25rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--c-moss);
}

.therapies {
    font-family: var(--f-sans);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--c-charcoal);
    margin-left: 0.2rem;
}

nav {
    display: flex;
    gap: var(--s-md);
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--c-charcoal);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}

nav a:not(.btn-book):hover {
    color: var(--c-moss);
    opacity: 0.7;
}

.btn-book {
    border: 1px solid var(--c-moss);
    padding: var(--s-xs) var(--s-sm);
    border-radius: 50px;
}

.btn-book:hover,
.btn-book.active {
    background: var(--c-moss);
    color: var(--c-paper);
}

/* Active nav link (current page) */
nav a.nav-active:not(.btn-book) {
    color: var(--c-moss);
    border-bottom: 1px solid var(--c-moss);
    padding-bottom: 2px;
}

/* Logo as link */
a.logo-link {
    text-decoration: none;
}

/* Subpage header: solid from the start */
body.subpage header {
    background: rgb(247 246 242 / 95%);
    backdrop-filter: blur(10px);
    padding: var(--s-sm) var(--s-md);
    border-bottom: 1px solid rgb(46 46 46 / 5%);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform-origin: center;
    will-change: transform;

    /* Soften the image so it's not too harsh */
    opacity: 0.85; 
}

/* Soft overlay on top of BG */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(247 246 242 / 40%) 0%, rgb(247 246 242 / 90%) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5vh;
}

.hero-content p {
    font-size: 1.25rem;
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-charcoal);
}

.scroll-down {
    margin-top: var(--s-md);
    color: var(--c-moss);
    animation: bounce 2s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Blend sections */
.section-blend {
    padding: var(--s-xxl) 0;
    background: linear-gradient(to bottom, var(--c-paper), var(--c-sand));
}

.section-blend-alt {
    padding: var(--s-xxl) 0;
    background: linear-gradient(to bottom, var(--c-sand), var(--c-sea));
    color: var(--c-paper);
}

.section-blend-alt h2,
.section-blend-alt p {
    color: var(--c-paper);
}

/* Reset text color inside booking card (sits within section-blend-alt) */
#booking-card h2,
#booking-card h3,
#booking-card p {
    color: var(--c-charcoal);
}

/* Organic Masks */
.organic-mask {
    border-radius: var(--morph-2);
    overflow: hidden;
    transition: border-radius 8s ease-in-out alternate infinite;
    box-shadow: 0 20px 40px rgb(46 46 46 / 8%);
}

.organic-mask img {
    width: 100%;
    height: 100%;
    transition: transform 10s ease-out;
}

.organic-mask:hover img {
    transform: scale(1.05);
}

/* Flow animation for the mask */
@keyframes organicFlow {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50%  { border-radius: 30% 60% 70% 40% / 50% 60% 30%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.organic-mask {
    animation: organicFlow 15s ease-in-out infinite;
}

.mask-alt {
    animation: organicFlow 12s ease-in-out infinite reverse;
}

.mask-large {
    height: 600px;
    width: 100%;
}

/* Services */
.section-badge {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--c-moss);
    margin-bottom: var(--s-xs);
}

.service-flow {
    display: flex;
    flex-direction: column;
    gap: var(--s-xl);
    margin-top: var(--s-lg);
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-lg);
    align-items: center;
}

.service-card .organic-mask {
    height: 500px;
}

.service-card .service-text {
    padding: 0 var(--s-md);
}

.service-card.flow-right {
    background: rgb(255 255 255 / 20%);
    border-radius: 40px;
    padding: var(--s-lg);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--s-xxl);
    align-items: center;
}

.signature {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 2.5rem;
    margin-top: var(--s-md);
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--c-moss);
    color: var(--c-sand);
    padding: var(--s-xl) 0 var(--s-sm);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-lg);
    border-bottom: 1px solid rgb(232 221 199 / 20%);
    padding-bottom: var(--s-lg);
    margin-bottom: var(--s-md);
}

.logo-light .sanna { color: var(--c-sand); }
.logo-light .therapies { color: rgb(232 221 199 / 80%); }
.footer-brand p { color: rgb(232 221 199 / 80%); font-size: 0.9rem; margin-top: var(--s-sm); }

.footer-links, .footer-location {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h4, .footer-location h4 {
    color: var(--c-paper);
    margin-bottom: 0.5rem;
}

footer a {
    color: rgb(232 221 199 / 80%);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--c-paper);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgb(232 221 199 / 50%);
}

/* Animations (Intersection Observer Targets) */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Integrated Page Layouts & Components */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }

.bento-card {
    background: var(--c-paper);
    padding: var(--s-md);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgb(46 46 46 / 5%);
    display: flex;
    flex-direction: column;
}
.bento-card.primary { background: var(--c-sand); color: var(--c-charcoal); }
.bento-card.dark { background: var(--c-moss); color: var(--c-paper); }
.bento-card.dark p, .bento-card.dark h3 { color: var(--c-paper); }

/* Booking Forms */
.radio-card {
    padding: var(--s-sm);
    border: 1.5px solid rgb(46 46 46 / 15%);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    margin-bottom: var(--s-sm);
    box-shadow: 0 2px 8px rgb(46 46 46 / 5%);
}

.radio-card:hover {
    border-color: var(--c-moss);
    box-shadow: 0 4px 12px rgb(46 46 46 / 10%);
}

.radio-card input { display: none; }

.radio-card input:checked + .radio-content {
    color: var(--c-moss);
}

.radio-card.selected {
    border: 2px solid var(--c-moss);
    background: #fff;
    box-shadow: 0 4px 16px rgb(79 107 91 / 15%);
}

.calendar-wrapper { background: #fff; padding: var(--s-md); border-radius: 12px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 5px; margin-bottom: 10px; font-weight: bold; opacity: 0.5; font-size: 0.8rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 5px; }
.cal-day { padding: 10px; border-radius: 50%; cursor: pointer; transition: 0.2s; }
.cal-day:hover { background: var(--c-sand); color: var(--c-moss); }
.cal-day.active { background: var(--c-moss); color: var(--c-paper); font-weight: bold; }
.cal-day.disabled { opacity: 0.3; pointer-events: none; }

.time-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.time-btn { padding: 10px; border: 1px solid rgb(46 46 46 / 10%); border-radius: 8px; cursor: pointer; background: transparent; transition: 0.2s; font-family: var(--f-sans); font-size: 0.9rem; }
.time-btn:hover { background: var(--c-sand); }
.time-btn.active { background: var(--c-sea); color: var(--c-paper); border-color: var(--c-sea); }

.material-icons { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; overflow-wrap: normal; direction: ltr; font-feature-settings: 'liga'; }

/* Layout & Utility Classes */
.pt-15vh { padding-top: 15vh; }
.pb-md { padding-bottom: var(--s-md); }
.pt-md { padding-top: var(--s-md); }
.pt-lg { padding-top: var(--s-lg); }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--s-sm); }
.mt-md { margin-top: var(--s-md); }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--s-xs); }
.mb-sm { margin-bottom: var(--s-sm); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }
.my-0-auto { margin: 0 auto; }
.my-0-sm-auto { margin: 0 auto var(--s-sm) auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.font-italic { font-style: italic; }
.font-bold { font-weight: bold; }
.font-sans { font-family: var(--f-sans); }
.font-serif { font-family: var(--f-serif); }
.block { display: block; }
.inline-block { display: inline-block; }

.order-1 { order: 1; }
.order-2 { order: 2; }
.max-w-800 { max-width: 800px; }

/* Colors & Typography */
.color-sea { color: var(--c-sea); }
.color-moss { color: var(--c-moss); }
.color-paper { color: var(--c-paper); }
.color-charcoal { color: var(--c-charcoal); }

.font-size-2rem { font-size: 2rem; }
.font-size-2_2rem { font-size: 2.2rem; }
.font-size-3rem { font-size: 3rem; }
.font-size-1_25rem { font-size: 1.25rem; }
.font-size-1_1rem { font-size: 1.1rem; }
.font-size-0_9rem { font-size: 0.9rem; }
.font-size-0_8rem { font-size: 0.8rem; }
.line-height-1 { line-height: 1; }
.opacity-0_7 { opacity: 0.7; }
.opacity-0_6 { opacity: 0.6; }

/* The Sanna Way Specifics */
.stats-number { display: block; font-family: var(--f-serif); font-size: 2.5rem; line-height: 1; }
.stats-label { color: var(--c-paper); }
.border-top-subtle { border-top: 1px solid rgb(255 255 255 / 20%); padding-top: var(--s-md); }

/* Buttons Overrides */
.btn-book-alt {
    background: var(--c-paper); 
    color: var(--c-moss); 
    border-color: var(--c-paper); 
    padding: 1rem 2rem; 
    font-size: 1.1rem; 
    display: inline-block;
}

.btn-full {
    width: 100%; 
    padding: 15px; 
    font-size: 1.2rem; 
    background: var(--c-moss); 
    color: var(--c-paper); 
    border: none; 
    cursor: pointer; 
    transition: 0.2s;
}
.btn-full:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
    margin-top: var(--s-md); 
    padding: 12px 30px; 
    border: 1px solid var(--c-moss); 
    background: transparent; 
    color: var(--c-moss); 
    cursor: pointer; 
    font-family: var(--f-sans);
    transition: 0.2s;
}
.btn-outline:hover { background: var(--c-moss); color: var(--c-paper); }

/* Booking Card & Flow */
.booking-card {
    background: var(--c-paper);
    color: var(--c-charcoal);
    border-radius: 30px;
    padding: var(--s-lg);
    margin-top: -30px;
    box-shadow: 0 40px 60px rgb(0 0 0 / 10%);
}

.booking-hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgb(0 0 0 / 5%);
}

.booking-hero-image img { border-radius: 20px; }
.calendar-wrapper-shadow { box-shadow: 0 5px 15px rgb(0 0 0 / 3%); border: 1px solid rgb(46 46 46 / 5%); }

.calendar-nav-controls {
    display: flex; 
    align-items: center; 
    background: var(--c-sand); 
    border-radius: 50px; 
    padding: 5px 15px; 
    color: var(--c-moss);
}

.calendar-month-label { font-family: var(--f-serif); font-weight: bold; margin: 0 10px; }
.icon-cursor { cursor: pointer; }
.inline-icon { font-size: 14px; margin-right: 5px; }

.booking-secure-note { text-align: center; font-size: 0.8rem; opacity: 0.6; margin-top: 10px; }

/* Booking Confirmation (JS created) */
.confirmation-wrapper { text-align: center; padding: var(--s-lg); }
.confirmation-icon { font-size: 3rem; margin-bottom: var(--s-sm); color: var(--c-moss); }
.confirmation-heading { font-size: 2.2rem; margin-bottom: var(--s-md); }

.confirmation-summary {
    background: var(--c-sand); 
    border-radius: 16px; 
    padding: var(--s-md); 
    display: inline-block; 
    text-align: left; 
    min-width: 300px;
}
.confirmation-label { font-size: 0.9rem; margin-bottom: 8px; opacity: 0.6; }
.confirmation-value { font-size: 1.1rem; margin-bottom: var(--s-sm); }
.confirmation-value.mb-0 { margin-bottom: 0; }

.confirmation-note {
    margin-top: var(--s-md); 
    font-size: 0.95rem; 
    max-width: 400px; 
    margin-left: auto; 
    margin-right: auto;
}

/* Responsive */
@media (width <= 900px) {
    .service-card, .about-grid {
        grid-template-columns: 1fr;
    }

    .service-card.flow-right {
        display: flex;
        flex-direction: column-reverse;
    }

    .mask-large, .service-card .organic-mask {
        height: 400px;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (width <= 600px) {
    nav {
        gap: var(--s-sm);
    }

    nav a:not(.btn-book) {
        font-size: 0.8rem;
    }

    .btn-book {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}
