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

:root {
    --text-main: #FFFFFF;
    --accent-color: #ce5d36; /* Orange-red color */
    --bg-dark: #121212;
    --text-button-size: 1.05rem;
    --text-button-weight: 500;
    --text-button-spacing: 0.05em;
    --text-button-transform: uppercase;
    --font-secondary: 'Instrument Serif', serif;
    --text-subheader-size: 48px;
    --text-title-size: clamp(4rem, 6vw, 10rem);
    --text-title-weight: 800;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    text-wrap: pretty;
}

/* Wrapper to hold everything full screen */
.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem;
}

/* Background Placeholder 
   Add your image here later like this:
   background-image: url('../assets/images/your-photo.jpg');
   background-size: cover;
   background-position: center;
*/
.background-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark); /* Fallback */
    z-index: 1;
    
    /* Spotlight mask */
    --x: 50%;
    --y: 50%;
    -webkit-mask-image: radial-gradient(circle 400px at var(--x) var(--y), black 0%, transparent 100%);
    mask-image: radial-gradient(circle 400px at var(--x) var(--y), black 0%, transparent 100%);
    opacity: 0; /* Hidden by default until hovered */
    transition: opacity 0.5s ease;
}

.background-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-wrapper:hover .background-placeholder {
    opacity: 1; /* Зроблено більш видимим при наведенні курсору */
}

/* Ensure content stays above the background */
.hero-content, .hero-footer {
    position: relative;
    z-index: 2;
}

/* --- Header --- */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    padding: 2.5rem 3rem;
    z-index: 100;
    pointer-events: none; /* Let clicks pass through header background */
}
.header > * {
    pointer-events: auto; /* Enable clicks on logo and buttons */
}

.header.header-inverted .logo-white {
    display: none !important;
}

.header.header-inverted .logo-black {
    display: block !important;
}

@media (max-width: 1024px) {
    .header.header-inverted .btn-primary {
        color: var(--bg-dark) !important;
        border-color: var(--bg-dark) !important;
    }

    .header.header-inverted .btn-menu span {
        background-color: var(--bg-dark) !important;
    }
}

/* Force white logo when mobile menu is open, regardless of header-inverted */
.header.menu-open .logo-white {
    display: block !important;
}

.header.menu-open .logo-black {
    display: none !important;
}

.header.menu-open .btn-primary {
    color: var(--text-main) !important;
    border-color: var(--accent-color) !important;
}

.header.menu-open .btn-menu span {
    background-color: var(--text-main) !important;
}

.logo {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 1364px) {
    .desktop-nav {
        display: block;
    }
    .btn-menu {
        display: none !important;
    }
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: var(--text-button-size);
    font-weight: var(--text-button-weight);
    text-transform: var(--text-button-transform);
    letter-spacing: var(--text-button-spacing);
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-text {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.nav-text::after {
    content: attr(data-text);
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    letter-spacing: var(--text-button-spacing);
    font-size: var(--text-button-size);
}

.desktop-nav a:hover {
    color: var(--accent-color);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    padding: 1rem 0; /* Add padding to prevent hover drop-off */
}

.desktop-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    background-color: transparent;
    min-width: 300px;
    box-shadow: none;
    padding: 1.5rem 0 0.5rem 0; /* Оптимальний відступ, щоб не було занадто низько */
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Збільшена вертикальна відстань між пунктами */
    border: none;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0;
    font-size: var(--text-button-size);
    text-transform: var(--text-button-transform);
    font-weight: var(--text-button-weight);
    letter-spacing: var(--text-button-spacing);
    color: var(--text-main) !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a .nav-text::after {
    font-size: var(--text-button-size);
    letter-spacing: var(--text-button-spacing);
}

.dropdown-menu a:hover {
    color: var(--accent-color) !important;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-primary {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-main);
    text-decoration: none;
    padding: 18px 32px;
    border-radius: 50px;
    font-family: inherit;
    font-size: var(--text-button-size);
    font-weight: var(--text-button-weight);
    text-transform: var(--text-button-transform);
    letter-spacing: 0.1em;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                font-weight 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease;
    z-index: 1;
}

.btn-primary.btn-primary-dark {
    color: var(--bg-dark);
}

.btn-primary.btn-primary-dark:hover {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Invisible pseudo-element to define width based on hover letter-spacing */
.btn-primary::after {
    content: attr(data-text);
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.1em;
    font-size: var(--text-button-size);
    font-weight: 600;
}

/* Background animation - bottom to top fill */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: inherit;
}

.btn-primary:hover {
    color: #fff;
    font-size: calc(var(--text-button-size) - 1px);
    font-weight: 600;
    border-color: var(--accent-color);
}

.btn-primary:hover::before {
    transform: translateY(0);
}

.btn-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.btn-menu span {
    display: block;
    width: 35px;
    height: 1px;
    background-color: var(--text-main);
}

/* --- Mobile Nav --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background-color: var(--bg-dark);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .mobile-nav {
        padding-left: 72px;
        padding-right: 72px;
    }
}

.mobile-nav-list {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-right: 1.5rem;
    margin: 0;
}

.mobile-nav-list > li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-list > li:last-child {
    border-bottom: none;
}

.mobile-nav-list > li > a, .mobile-nav-list > li > .mobile-dropdown-toggle {
    font-size: var(--text-button-size);
    font-weight: var(--text-button-weight);
    letter-spacing: var(--text-button-spacing);
    text-transform: var(--text-button-transform);
    line-height: 1.1;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}

.mobile-dropdown-menu {
    list-style: none;
    display: none;
    flex-direction: column;
    margin-top: 1rem;
    padding-left: 2rem;
}

.mobile-dropdown-menu li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-dropdown-menu li:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu.active {
    display: flex;
}

.mobile-dropdown-menu li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-button-size);
    font-weight: var(--text-button-weight);
    letter-spacing: var(--text-button-spacing);
    text-transform: var(--text-button-transform);
    line-height: 1.2;
}

/* Hamburger Animation */
.btn-menu {
    position: relative;
    z-index: 100;
    pointer-events: auto; /* ensure clickable */
}
.btn-menu span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.btn-menu.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}
.btn-menu.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 1364px) {
    .mobile-nav {
        display: none !important;
    }
}

body.menu-open .scroll-indicators {
    display: none !important;
}

/* --- Main Content --- */
.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 2rem;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 9.5rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-char {
    display: inline-block;
    transition: font-weight 0.1s ease-out;
}

.hero-italic {
    font-style: italic;
    font-weight: 300;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
    text-transform: uppercase;
    max-width: 600px;
}

/* --- Footer --- */
.hero-footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: auto;
}

.contact-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem 4rem;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 300;
}

.address {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.address p {
    line-height: 1.2;
    font-size: 1.1rem;
}

.icon {
    margin-top: 2px;
    color: var(--text-main);
}

.details {
    display: flex;
    flex-direction: column;
}

.details a, .social-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}
.details a:hover, .social-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: rgba(234, 227, 222, 0.5); /* Semi-transparent text-main */
    text-transform: uppercase;
    padding-left: calc(16px + 0.75rem);
}

.contact-info.contact-info-footer {
    z-index: 10;
}

/* --- Section Tabs Navigation --- */
.section-tabs {
    width: 100%;
    background-color: var(--bg-main, #ffffff);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 128px;
    z-index: 90;
    display: none; /* Hidden on desktop by default */
}

.section-tabs-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.section-tabs-list li {
    flex: 1;
    text-align: center;
}

.section-tabs .tab-link {
    display: block;
    padding: 1.5rem 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.section-tabs .tab-link:hover,
.section-tabs .tab-link.active {
    color: var(--accent-color, #D35431);
    border-bottom: 2px solid var(--accent-color, #D35431);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-wrapper {
        padding: 1.5rem 1.5rem;
    }
    
    .header {
        padding: 1.5rem 1.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .header-right {
        gap: 1rem;
    }
}

/* --- Split Layout (Left Scroll, Right Fixed) --- */
.split-layout-container {
    display: flex;
    width: 100%;
    background-color: #E3D3CF;
    color: #121212;
}

.left-content {
    width: 50%;
}

.approach-section {
    padding: 6rem 3rem;
    position: relative;
    min-height: 150vh;
    background-color: #FFFFFF;
    color: #121212;
}

.right-fixed {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    
    /* Default state: hidden at the bottom (for photos AFTER the active one) */
    clip-path: inset(100% 0 0 0);
    transform: scale(1.05);
    opacity: 1;
    z-index: 1;
    
    transition: clip-path 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.photo-quote {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 64px;
    color: #FFFFFF;
    text-align: left;
    max-width: 900px;
    width: 85%;
    text-wrap: balance;
    z-index: 20;
    line-height: 0.95;
    /* Optional shadow to ensure readability on images */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.photo-01 {
    background-image: url('../assets/images/biography.jpg');
}

.photo-02 {
    background-image: url('../assets/images/massage-bodywork.jpg');
}

.photo-03 {
    background-image: url('../assets/images/energy-alternative-therapie.jpg');
}

.photo-04 {
    background-image: url('../assets/images/specialized treatments.jpg');
}

.photo-05 {
    background-image: url('../assets/images/client’s-voice.jpg');
}

/* The active photo */
.photo.show {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
    z-index: 10;
}

/* Any photo BEFORE the active photo (hidden at the top) */
.photo:has(~ .photo.show) {
    clip-path: inset(0 0 100% 0);
    transform: scale(0.95);
    z-index: 1;
}

/* Any photo AFTER the active photo */
.photo.show ~ .photo {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.05);
    z-index: 1;
}

/* Sticky heading wrapper */
.approach-heading-wrapper {
    position: sticky;
    top: 200px;
    margin-bottom: 30vh;
    z-index: 10;
    /* Native scroll animation setup */
    animation: slideRight linear both;
    animation-timeline: view();
    animation-range: entry 100% exit -50%;
}

@media (min-width: 768px) {
    #section-services .approach-heading-wrapper {
        top: 144px;
        margin-bottom: 0;
    }
    #section-services .approach-title {
        opacity: 0; /* Hidden initially until scroll */
    }
}

@keyframes slideRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(15%);
    }
}

@supports not (animation-timeline: view()) {
    .approach-heading-wrapper {
        animation: none;
    }
}

h2, .approach-title, .approach-title-bg {
    font-size: var(--text-title-size);
    font-weight: var(--text-title-weight);
    line-height: 0.85;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
}

.approach-title {
    color: var(--accent-color);
    position: relative;
    z-index: 2;
}

.approach-title-bg {
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 15%;
    left: 5%;
    z-index: 1;
}

/* Text block animations (Staggered Children) */
.services-text > h3, 
.services-text > p, 
.services-text .services-list > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger Delays */
.services-text > h3 { transition-delay: 0.1s; }
.services-text > p.services-quote { transition-delay: 0.3s; }
.services-text .services-list > *:nth-child(1) { transition-delay: 0.5s; }
.services-text .services-list > *:nth-child(2) { transition-delay: 0.7s; }
.services-text .services-list > *:nth-child(3) { transition-delay: 0.9s; }
.services-text .services-list > *:nth-child(4) { transition-delay: 1.1s; }
.services-text .services-list > *:nth-child(5) { transition-delay: 1.3s; }
.services-text .services-list > *:nth-child(6) { transition-delay: 1.5s; }
.services-text .services-list > *:nth-child(7) { transition-delay: 1.7s; }
.services-text .services-list > *:nth-child(8) { transition-delay: 1.9s; }

/* In view state */
.services-text.in-view > h3, 
.services-text.in-view > p, 
.services-text.in-view .services-list > * {
    opacity: 1;
    transform: translateY(0);
}

/* Out of view state */
.services-text.out-view > h3, 
.services-text.out-view > p, 
.services-text.out-view .services-list > * {
    opacity: 0;
    transform: translateY(-40px);
    transition-delay: 0s !important;
}

.approach-text {
    max-width: 600px;
    margin-top: 5rem;
}

h3, .approach-lead, .services-subtitle {
    font-family: var(--font-secondary);
    font-size: var(--text-subheader-size);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.approach-lead {
    /* Styles are now inherited from the shared h3 block */
}

.services-subtitle {
    margin-bottom: 24px;
}

.approach-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-wrap: pretty;
}

@media (max-width: 767px) {
    .split-layout-container {
        flex-direction: column;
    }
    .left-content, .right-fixed {
        width: 100%;
    }
    .right-fixed {
        position: relative;
        height: 60vh;
        border-left: none;
    }
    .approach-section {
        min-height: auto;
        padding: 3rem 1.5rem;
    }
    .approach-heading-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 3rem;
    }
    

}

/* --- Services Section Specifics --- */
.sticky-text-content.services-text {
    max-width: 600px;
    margin-top: 5rem;
    color: #121212;
}



.services-quote {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 22px;
}

.services-quote + p strong {
    text-transform: uppercase;
    color: var(--accent-color);
}

.service-item {
    margin-bottom: 1rem;
    border-top: 1px solid var(--accent-color);
    padding-top: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 32px;
    align-items: baseline;
}

.service-info {
    display: contents;
}

.service-info .text-body {
    grid-column: 1 / -1;
    grid-row: 2;
}

.service-title {
    grid-column: 1 / 2;
    grid-row: 1;
    font-size: var(--text-button-size, 14px);
    font-weight: var(--text-button-weight, 500);
    text-transform: var(--text-button-transform, uppercase);
    letter-spacing: 0.1em;
}

.service-caption {
    grid-column: 2 / 3;
    grid-row: 1;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200; /* thin */
    font-size: 24px;
    color: var(--accent-color); /* orange color */
    text-align: right;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.price-bullet {
    font-size: 0.6em;
    opacity: 0.5;
}

.text-body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 24px;
    margin-top: 0;
    color: rgba(0, 0, 0, 0.7); /* black color with 70% opacity */
    font-weight: 400; /* regular */
}

.category-spacing {
    margin-top: 35rem; /* Збільшена відстань між текстами */
    margin-bottom: 25rem;
}

#section-approach {
    min-height: 250vh;
}

#section-services {
    min-height: 450vh; /* Збільшена висота для більшого скролу */
}

/* --- Sticky Approach Section --- */
.approach-section {
    position: relative;
    padding-top: 2rem;
    min-height: 400vh; /* Збільшена висота для ще довшого скролу */
    display: block; /* Fix for Safari sticky bug with min-height */
}

.approach-heading-wrapper {
    position: sticky;
    top: 150px; /* Опущено нижче, щоб не закривати лого */
    z-index: 20;
    margin-bottom: 2rem;
}
/* Removed slide-up animation per user request */

/* Base styles for all scrollytelling text */
.approach-text,
.services-text {
    position: sticky;
    top: var(--services-sticky-top, 25vh);
    align-self: flex-start; /* CRITICAL for sticky to work in flex container! */
    max-width: 600px;
    background: transparent;
    z-index: 10;
}

/* Base states for children to allow staggered animation */
.approach-text .approach-lead,
.approach-text .approach-body > *,
.services-text .services-subtitle,
.services-text .services-quote,
.services-text .services-list > *,
.approach-text > div > div {
    opacity: 0;
    transform: translateY(40px); /* Starts from below */
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered delays: headers first */
.approach-text .approach-lead,
.services-text .services-subtitle {
    transition-delay: 0s;
}
.services-text .services-quote {
    transition-delay: 0.01s;
}

/* For individual list items or paragraphs, stagger up to 6 items */
.approach-body > *:nth-child(1), .approach-text > div > div:nth-child(1) { transition-delay: 0.1s; }
.approach-body > *:nth-child(2), .approach-text > div > div:nth-child(2) { transition-delay: 0.15s; }
.approach-body > *:nth-child(3), .approach-text > div > div:nth-child(3) { transition-delay: 0.2s; }
.approach-body > *:nth-child(4), .approach-text > div > div:nth-child(4) { transition-delay: 0.25s; }
.approach-body > *:nth-child(5), .approach-text > div > div:nth-child(5) { transition-delay: 0.3s; }
.approach-body > *:nth-child(6), .approach-text > div > div:nth-child(6) { transition-delay: 0.35s; }

/* Extremely fast staggering and transition specifically for Services list (Massage & Bodywork etc) */
.services-text .services-list > * {
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.services-list > *:nth-child(1) { transition-delay: 0.02s; }
.services-list > *:nth-child(2) { transition-delay: 0.04s; }
.services-list > *:nth-child(3) { transition-delay: 0.06s; }
.services-list > *:nth-child(4) { transition-delay: 0.08s; }
.services-list > *:nth-child(5) { transition-delay: 0.10s; }
.services-list > *:nth-child(6) { transition-delay: 0.12s; }

.approach-text.in-view .approach-lead,
.approach-text.in-view .approach-body > *,
.services-text.in-view .services-subtitle,
.services-text.in-view .services-quote,
.services-text.in-view .services-list > *,
.approach-text.in-view > div > div {
    opacity: 1;
    transform: translateY(0); /* Moves up to final position */
}

.approach-text.is-above .approach-lead,
.approach-text.is-above .approach-body > *,
.services-text.is-above .services-subtitle,
.services-text.is-above .services-quote,
.services-text.is-above .services-list > *,
.approach-text.is-above > div > div {
    opacity: 0;
    transform: translateY(-40px); /* Exits upwards when scrolling down */
    transition: opacity 0.3s ease-in, transform 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.approach-text.is-below .approach-lead,
.approach-text.is-below .approach-body > *,
.services-text.is-below .services-subtitle,
.services-text.is-below .services-quote,
.services-text.is-below .services-list > *,
.approach-text.is-below > div > div {
    opacity: 0;
    transform: translateY(40px); /* Enters from below / Exits downwards when scrolling up */
    transition: opacity 0.3s ease-in, transform 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.sticky-block-wrapper {
    position: relative;
    height: 150vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

#category-01,
#category-02,
#category-03 {
    height: 350vh; /* Ще більше збільшено висоту для всіх блоків послуг, щоб вони ДОВШЕ були на екрані */
}

#category-04 {
    height: 350vh; /* Ще більша висота для відгуків, оскільки сам блок тексту великий */
}

.sticky-text-content {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    top: var(--services-sticky-top, 25vh);
}

.sticky-out-trigger {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    height: 10vh;
    width: 1px;
    pointer-events: none;
}

.services-categories-container {
    display: flex;
    flex-direction: column;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding: 8rem 3rem 3rem 3rem;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.contact-background-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark); /* Fallback */
    z-index: 1;
    overflow: hidden;
    
    /* Spotlight mask */
    --x: 50%;
    --y: 50%;
    -webkit-mask-image: radial-gradient(circle 400px at var(--x) var(--y), black 0%, transparent 100%);
    mask-image: radial-gradient(circle 400px at var(--x) var(--y), black 0%, transparent 100%);
    opacity: 0; /* Hidden by default until hovered */
    transition: opacity 0.5s ease;
}

.contact-background-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: url('../assets/images/get in touch.png');
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: -1;
}

.contact-section:hover .contact-background-placeholder {
    opacity: 1;
}

.contact-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    width: 100%;
    gap: 4rem;
}

.contact-title-wrapper {
    /* Title aligned to top edge by default in grid */
}

.contact-form-wrapper {
    max-width: 600px;
    width: 100%;
    justify-self: center; /* Centers horizontally in the right column */
}

.contact-title {
    font-size: clamp(4rem, 10vw, 9.5rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

@media (max-width: 1024px) {
    .contact-title br {
        display: none;
    }
    
    .contact-title {
        font-size: clamp(3rem, 12vw, 6rem);
    }
    
    .contact-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
        justify-self: stretch;
    }
    
    .contact-section {
        min-height: auto;
        padding-bottom: 4rem;
        flex-direction: column;
    }
    
    .contact-info.contact-info-footer {
        position: relative !important;
        z-index: 2;
        bottom: auto !important;
        left: auto !important;
        margin-top: 4rem;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        column-gap: 64px !important;
        row-gap: 1.5rem !important;
        width: 100% !important;
    }

    .contact-info.contact-info-footer .address {
        width: auto;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        order: 1;
    }

    .contact-info.contact-info-footer .address p,
    .contact-info.contact-info-footer .details a {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 18px;
        line-height: 24px;
        font-weight: 400;
        color: var(--text-main);
    }

    .contact-info.contact-info-footer .details {
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        overflow-wrap: anywhere;
        word-break: break-word;
        padding-left: 0;
        order: 2;
    }

    .contact-info.contact-info-footer .social-links {
        display: flex !important;
        flex-direction: row !important;
        gap: 24px !important;
        align-items: center !important;
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
        padding-left: calc(16px + 0.75rem);
        order: 3;
    }

    .contact-info.contact-info-footer .copyright {
        display: block !important;
        width: 100%;
        padding-left: calc(16px + 0.75rem);
        margin-top: 1rem;
        text-align: left;
        order: 4;
        font-size: 14px !important;
    }
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input, 
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(234, 227, 222, 0.4);
    padding: 0.5rem 0 1rem;
    font-family: inherit;
    font-size: 1.5rem;
    color: var(--accent-color);
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--accent-color);
    opacity: 1;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-bottom-color: var(--text-main);
}

.form-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
}

.recaptcha-placeholder {
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: #333;
    font-size: 0.85rem;
    font-family: Roboto, sans-serif;
    box-shadow: 0px 0px 4px rgba(0,0,0,0.1);
    min-width: 250px;
    justify-content: space-between;
}

.recaptcha-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recaptcha-placeholder input[type="checkbox"] {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: #fff;
}

.recaptcha-placeholder input[type="checkbox"]:checked {
    background: #fff;
}

.recaptcha-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.6rem;
    color: #555;
    gap: 2px;
}

@media (max-width: 767px) {
    .contact-section {
        padding: 6rem 1.5rem;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
    
    .btn-submit {
        width: 100%;
    }
}

/* --- Scroll Indicators --- */
.scroll-indicators {
    position: fixed;
    bottom: 24px;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% black by default */
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

/* Light mode overrides (for dark backgrounds like Hero and Contact) */
.scroll-indicators.theme-dark-bg .scroll-dot {
    background-color: var(--text-main);
    opacity: 0.3;
}

.scroll-dot:hover {
    opacity: 1; /* Make full opacity on hover */
    transform: scale(1.2);
}
.scroll-indicators.theme-dark-bg .scroll-dot:hover {
    opacity: 0.7;
}

.scroll-dot.active {
    background-color: var(--accent-color) !important; /* Always orange when active */
    opacity: 1 !important;
    transform: scale(1.5);
}

/* --- Mobile Typography Adjustments --- */
@media (max-width: 767px) {
    .scroll-indicators {
        display: none;
    }
    
    :root {
        --text-subheader-size: 36px;
        --text-title-size: clamp(48px, 6vw, 10rem);
    }
    
    .hero-title, 
    .contact-title {
        font-size: clamp(32px, 10vw, 9.5rem);
    }
    
    .photo-quote {
        font-size: 48px;
    }
    
    /* Hero section adjustments */
    .hero-wrapper {
        min-height: 100vh;
        min-height: 100svh;
        height: 100vh;
        height: 100svh;
        padding-bottom: 1.5rem;
    }

    .hero-content {
        margin-top: 6rem; /* Push down to avoid header overlap */
    }

    /* Contact info layout */
    .contact-info {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }

    .contact-info .address {
        width: 100%;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .contact-info .address p,
    .contact-info .details a {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 18px;
        line-height: 24px;
        font-weight: 400;
    }

    .contact-info .details {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        overflow-wrap: anywhere;
        word-break: break-word;
        padding-left: calc(16px + 0.75rem); /* Align with address text */
    }

    /* Show copyright on mobile with 50% opacity */
    .contact-info .copyright {
        display: block !important;
        opacity: 0.5;
    }

    .hero-footer .contact-info .copyright {
        display: none !important;
    }

    /* Social icons */
    .contact-info .social-links {
        display: flex !important;
        flex-direction: row !important;
        gap: 24px !important;
        align-items: center !important;
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
        padding-left: calc(16px + 0.75rem); /* Align with address text */
    }

    .contact-info .social-links svg {
        width: 32px !important;
        height: 32px !important;
    }



    /* Override inline absolute positioning in contact section footer */
    .contact-info.contact-info-footer {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 4rem;
    }

}

/* --- Mobile Only (Normal Scroll) --- */
@media (max-width: 767px) {
    /* Disable screen-by-screen scroll logic */
    .sticky-block-wrapper,
    #category-01,
    #category-02,
    #category-03,
    #category-04 {
        height: auto !important;
        display: block !important;
    }

    .sticky-text-content {
        margin-top: 0 !important;
        margin-bottom: 4rem;
    }

    /* Always show content (disable fade animations) */
    .approach-text > *,
    .approach-text > div > div,
    .approach-body > *,
    .services-text > h3,
    .services-text > p,
    .services-text .services-list > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        transition-delay: 0s !important;
    }

    .approach-text.is-above,
    .approach-text.is-below,
    .services-text.is-above,
    .services-text.is-below,
    .approach-text,
    .services-text {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Force normal scroll on biography and remove sticky headings */
    .approach-section,
    #section-approach,
    #section-services,
    #section-reviews {
        min-height: auto !important;
        height: auto !important;
    }

    #section-approach,
    #section-services,
    #section-reviews,
    #category-01,
    #category-02,
    #category-03,
    #category-04 {
        scroll-margin-top: 170px; /* Offset for header + sticky tabs */
    }

    .approach-heading-wrapper,
    .approach-text,
    .services-text {
        position: relative !important;
        top: auto !important;
    }
    
    .approach-heading-wrapper {
        margin-bottom: 3rem !important;
    }
}

/* --- Tablet Global Padding --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .right-fixed {
        display: none !important;
    }
    
    .left-content {
        width: 100% !important;
    }

    .services-text,
    .approach-text,
    .sticky-text-content {
        max-width: 100% !important;
    }

    .hero-wrapper,
    .header,
    .approach-section,
    .contact-section {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .hero-footer .contact-info {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        gap: 2rem 3rem !important;
    }
    
    .hero-footer .contact-info .details {
        padding-left: 0 !important;
    }
    
    .hero-footer .contact-info .copyright {
        display: flex !important;
    }
    
    .hero-footer .contact-info .social-links {
        padding-left: 0 !important;
    }
}

/* --- Services Mobile Layout (<= 767px) --- */
@media (max-width: 767px) {
    .service-item {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .service-title {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 1rem;
    }
    
    .service-caption {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .service-info .text-body {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

/* --- Small Desktop Adjustments (<= 1400px) --- */
@media (max-width: 1400px) {
    .text-body {
        font-size: 16px;
        line-height: 18px;
    }
}

/* --- Tablet & Mobile Hero Adjustments (<= 1024px) --- */
@media (max-width: 1024px) {
    .background-placeholder {
        opacity: 1; /* Always show image, no spotlight hover needed */
        -webkit-mask-image: none;
        mask-image: none;
    }
    
    .background-placeholder::before {
        background-image: linear-gradient(to bottom, rgba(18, 18, 18, 0.2) 0%, rgba(18, 18, 18, 1) 100%), url('../assets/images/home-mobile.jpg');
        background-size: cover;
        background-position: center;
    }
    
    .contact-background-placeholder {
        display: none !important;
    }
}

/* --- Mobile Contact Adjustments (< 768px) --- */
@media (max-width: 767px) {
    .contact-section {
        padding-bottom: 24px !important;
    }

    .contact-info.contact-info-footer {
        flex-direction: column !important;
        row-gap: 0.75rem !important;
    }

    .contact-info.contact-info-footer .address {
        margin-bottom: 0.75rem !important;
    }

    .contact-info.contact-info-footer .address p {
        font-size: 22px !important;
    }

    .contact-info.contact-info-footer .details {
        padding-left: calc(16px + 0.75rem) !important;
        margin-bottom: 1.5rem !important;
    }

    .header.header-inverted {
        background-color: #ffffff !important;
        border-bottom: 1px solid #eaeaea !important;
    }

    .section-tabs {
        top: 104px !important;
    }
}

/* --- Tablet Only Adjustments (768px - 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {


    .contact-info.contact-info-footer .address p {
        font-size: 22px !important;
    }

    .header.header-inverted {
        background-color: #ffffff !important;
        border-bottom: 1px solid #eaeaea !important;
    }

    .header {
        padding: 1.5rem 3rem;
    }

    .scroll-indicators {
        left: 0.5rem;
    }
    .section-tabs {
        top: 104px !important;
    }
    
    .approach-heading-wrapper {
        top: 200px;
        margin-bottom: 2rem !important;
    }

    .approach-text,
    .services-text {
        margin-top: 1rem !important;
    }
}

@media (max-width: 1024px) {
    .section-tabs {
        display: block !important;
    }
}

.approach-title, .approach-title-bg {
    color: var(--accent-color) !important;
    -webkit-text-stroke: 2px var(--accent-color);
    paint-order: stroke fill;
}
