/* style.css */
:root {
    --alabaster: #FDFCFB;
    --onyx: #0A0A0A;
    --charcoal: #1A1A1A;
    --prism-1: rgba(255, 180, 180, 0.25);
    --prism-2: rgba(180, 255, 230, 0.25);
    --prism-3: rgba(180, 200, 255, 0.25);
    --tension-line: rgba(0, 0, 0, 0.08);
    --tension-line-dark: rgba(255, 255, 255, 0.15);
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --header-height: 70px;
    --spacing-sm: 24px;
    --spacing-md: 48px;
    --spacing-lg: 96px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--alabaster);
    color: var(--onyx);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 16px;
    padding-top: var(--header-height);
}

/* --- Utilities --- */
.mono {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #666;
    margin-bottom: 1rem;
    display: block;
}

/* Hybrid Text Visibility */
.show-mobile {
    display: inline;
}

.show-desktop {
    display: none;
}

.prism-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.35;
    mix-blend-mode: overlay;
}

/* --- Global Header --- */
.global-header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-sm);
    border-bottom: 1px solid var(--tension-line);
    background: rgba(253, 252, 251, 0.95);
    backdrop-filter: blur(16px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-logo-wrapper {
    flex: 0 0 auto;
    margin-right: 20px;
    position: relative;
    z-index: 1005;
}

.header-logo {
    height: 28px;
    width: auto;
    display: block;
}

/* --- Desktop Nav --- */
.desktop-nav {
    display: none;
    gap: 40px;
    flex: 1;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.nav-item-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--onyx);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #777;
}

.nav-chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-item-wrapper:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--alabaster);
    border: 1px solid var(--tension-line);
    border-top: none;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 1100;
    border-radius: 0 0 4px 4px;
    padding-top: 10px;
}

.nav-item-wrapper:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-submenu-inner {
    background: var(--alabaster);
    border: 1px solid var(--tension-line);
    border-radius: 4px;
    overflow: hidden;
}

.nav-submenu a {
    display: block;
    padding: 14px 20px;
    color: var(--onyx);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
}

.nav-submenu a:last-child {
    border-bottom: none;
}

.nav-submenu a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #000;
    padding-left: 24px;
}

/* --- Header Actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Reduced gap for mobile safety */
    flex: 0 0 auto;
    z-index: 2001;
}

/* PHONE BUTTON (Mobile Fix - Compact & Centered) */
.header-phone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    /* Tiny to prevent S25 Logo crash */
    font-weight: 600;
    color: var(--onyx);
    text-decoration: none;
    border: 1px solid var(--onyx);
    background-color: var(--alabaster);
    padding: 6px 10px;
    white-space: nowrap;
    border-radius: 2px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-phone:active {
    background-color: var(--onyx);
    color: var(--alabaster);
}

.header-book-btn {
    display: none;
    background-color: var(--onyx);
    color: var(--alabaster);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: opacity 0.3s;
    white-space: nowrap;
}

/* --- Mobile Controls --- */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    position: relative;
    z-index: 2005;
    flex-shrink: 0;
    /* CRITICAL: Prevents button from disappearing */
}

.menu-bar {
    background: var(--onyx);
    height: 2px;
    transition: var(--transition-smooth);
    display: block;
    flex-shrink: 0;
}

.menu-bar:nth-child(1) {
    width: 24px;
}

.menu-bar:nth-child(2) {
    width: 18px;
}

/* --- Mobile Full Screen Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--onyx);
    z-index: 10000;
    padding: var(--spacing-md) var(--spacing-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-smooth);
    overflow-y: auto;
}

.mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu-logo {
    position: absolute;
    top: 18px;
    left: var(--spacing-sm);
    height: 28px;
    width: auto;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
}

.close-icon-line {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--alabaster);
    transform-origin: center;
}

.close-icon-line:nth-child(1) {
    transform: rotate(45deg);
}

.close-icon-line:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

.mobile-nav-links li {
    position: relative;
    margin-bottom: 1.5rem;
}

.mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--alabaster);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: #ccc;
}

.mobile-chevron {
    width: 16px;
    height: 16px;
    stroke: var(--alabaster);
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
}

.mobile-submenu-wrapper.is-open .mobile-chevron {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 10px;
}

.mobile-submenu-wrapper.is-open .mobile-submenu {
    max-height: 300px;
}

.mobile-submenu-link {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.3s ease;
}

.mobile-submenu-link:hover {
    color: #fff;
}

.mobile-actions {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-phone {
    display: block;
    color: #888;
    font-size: 1rem;
    text-decoration: none;
}

.mobile-book-btn {
    display: inline-block;
    border: 1px solid var(--alabaster);
    color: var(--alabaster);
    padding: 16px 32px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: 0.3s;
}

.mobile-book-btn:hover {
    background: var(--alabaster);
    color: var(--onyx);
}

body.menu-open {
    overflow: hidden;
}

/* --- Layout & Sections --- */
.container {
    width: 100%;
    padding: 0 var(--spacing-sm);
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

section {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--tension-line);
    position: relative;
}

/* --- Hero --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--tension-line);
}

.hero-title {
    font-size: clamp(3rem, 13vw, 9rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: var(--spacing-md);
    z-index: 2;
}

.hero-subtitle {
    width: 100%;
}

.prism-shard {
    position: absolute;
    right: -25%;
    top: 20%;
    width: 90vw;
    height: 50vh;
    background: linear-gradient(135deg, var(--prism-1), var(--prism-2), var(--prism-3));
    filter: blur(70px);
    border-radius: 50%;
    animation: breathe 12s infinite alternate ease-in-out;
    z-index: 1;
    opacity: 0.7;
}

@keyframes breathe {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1.15) rotate(10deg);
    }
}

/* --- Philosophy --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.philosophy-badge {
    display: inline-block;
    border: 1px solid var(--onyx);
    padding: 8px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.philosophy-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 24px;
}

.philosophy-sub {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-top: 12px;
}

.experience-card {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #eee;
}

.experience-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.exp-number {
    font-size: 6rem;
    font-weight: 300;
    line-height: 1;
}

/* --- FIXED SLIDER CSS --- */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #eee;
    margin-bottom: 30px;
    cursor: ew-resize;
    user-select: none;
    border-radius: 4px;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-slider-img-after {
    z-index: 1;
}

.comparison-slider-img-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.comparison-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.comparison-slider-handle::before,
.comparison-slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transform: translateY(-50%);
}

.comparison-slider-handle::before {
    left: -10px;
    border-width: 8px 12px 8px 0;
    border-color: transparent #fff transparent transparent;
}

.comparison-slider-handle::after {
    right: -10px;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff;
}

.comparison-label {
    position: absolute;
    top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 2px;
    z-index: 3;
    pointer-events: none;
}

.comparison-label-before {
    left: 12px;
}

.comparison-label-after {
    right: 12px;
}

.checklist {
    list-style: none;
    margin: 30px 0 40px 0;
}

.checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #333;
}

.checklist li::before {
    content: '✓';
    margin-right: 12px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- Testimonials --- */
.testimonial-ticker {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    background: var(--onyx);
    color: var(--alabaster);
    white-space: nowrap;
}

.testimonial-content {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
}

.testimonial-item {
    display: inline-block;
    margin: 0 40px;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.testimonial-item span {
    font-weight: 700;
    color: #fff;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- Treatments --- */
.treatments-section {
    background-color: var(--charcoal);
    color: #fff;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.treatments-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 var(--spacing-sm);
}

.treatments-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 24px;
}

.treatments-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.treatments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.treatment-card {
    background: transparent;
    border: 1px solid var(--tension-line-dark);
    text-align: left;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.3s ease;
}

.treatment-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.treatment-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #333;
}

.treatment-content {
    padding: 30px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.treatment-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 400;
}

.treatment-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.treatment-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    transition: 0.3s;
}

.treatment-btn:hover {
    background: #fff;
    color: var(--onyx);
    border-color: #fff;
}

/* --- Portfolio --- */
.portfolio-section {
    background-color: var(--alabaster);
    padding: var(--spacing-lg) 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 var(--spacing-sm);
}

.portfolio-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 24px;
}

.portfolio-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Full Width Wrapper */
.portfolio-full-width-wrapper {
    width: 100%;
    background-color: var(--charcoal);
    padding: 60px 0;
    margin-bottom: 60px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.portfolio-card {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #eee;
    border-radius: 4px;
    transition: 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-video-row {
    max-width: 100%;
    margin: 0 auto 60px;
    padding: 0 var(--spacing-sm);
    aspect-ratio: 9 / 16;
    display: flex;
    justify-content: center;
}

.portfolio-video-row iframe {
    border-radius: 4px;
    width: 100%;
    height: 100%;
}

.mobile-video {
    display: flex;
}

.desktop-video {
    display: none;
}

/* --- Content & Footer --- */
.tension-block {
    border-left: 2px solid var(--onyx);
    padding-left: 20px;
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.big-copy {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
}

.body-copy {
    font-size: 1.05rem;
    color: #444;
    max-width: 600px;
    line-height: 1.6;
}

.content-block {
    width: 100%;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

.glass-card {
    background: #fff;
    padding: 40px var(--spacing-sm);
    border: 1px solid var(--tension-line);
    transition: transform 0.3s ease;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    font-weight: 700;
}

.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    background: var(--onyx);
    color: var(--alabaster);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-top: var(--spacing-md);
    transition: var(--transition-smooth);
}

footer {
    background-color: var(--onyx);
    color: var(--alabaster);
    padding: 60px 0 40px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-section h3 {
    font-size: 0.75rem;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--alabaster);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 40px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-section iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 4px;
    display: block;
}

/* --- Media Queries (DESKTOP) --- */
@media (min-width: 900px) {
    :root {
        --header-height: 100px;
        --spacing-sm: 40px;
        --spacing-lg: 160px;
    }

    .global-header {
        padding: 0 40px;
    }

    .header-logo {
        height: 36px;
    }

    .menu-toggle {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }

    /* PHONE OVERRIDE: Revert to plain text on desktop */
    .header-phone {
        position: static;
        transform: none;
        display: block;
        border: none;
        padding: 0;
        margin: 0;
        font-size: 0.9rem;
        font-weight: 500;
        pointer-events: none;
        /* Disable click */
        cursor: default;
        background-color: transparent;
    }

    /* DESKTOP TOGGLES */
    .show-mobile {
        display: none;
    }

    .show-desktop {
        display: inline;
    }

    .header-book-btn {
        display: inline-block;
    }

    /* SAFE CONTAINER: Default Layout (No squishing) */
    .container {
        display: block;
        padding: 0 40px;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* GRID 12: Opt-In for Complex Layouts (Homepage Only) */
    .grid-12 {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 20px;
    }

    /* Grid Items only apply when inside .grid-12 context */
    .hero-title {
        grid-column: 1 / 10;
    }

    .hero-subtitle {
        grid-column: 9 / 13;
        align-self: end;
        padding-bottom: 20px;
        width: auto;
    }

    .philosophy-grid {
        grid-column: 1 / 13;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 40px;
        align-items: start;
    }

    .philosophy-header-area {
        grid-column: 1 / 13;
        margin-bottom: 60px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        width: auto;
    }

    .philosophy-heading {
        max-width: 600px;
        margin-bottom: 0;
    }

    .philosophy-sub {
        max-width: 400px;
        margin-bottom: 0;
        text-align: right;
    }

    .philosophy-left {
        grid-column: 1 / 7;
        width: auto;
    }

    .experience-card {
        height: 700px;
    }

    .philosophy-right {
        grid-column: 8 / 13;
        padding-top: 40px;
        width: auto;
    }

    .treatments-grid {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
        padding: 0 40px;
    }

    .treatments-header {
        padding: 0;
    }

    .portfolio-grid {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
        padding: 0 40px;
    }

    .portfolio-header {
        padding: 0;
    }

    .portfolio-card {
        height: 350px;
    }

    .portfolio-video-row {
        max-width: 80%;
        padding: 0 40px;
        aspect-ratio: auto;
        height: 500px;
    }

    .desktop-video {
        display: flex;
    }

    .mobile-video {
        display: none;
    }

    .cta-button {
        width: auto;
        padding: 24px 60px;
    }

    .cta-button:hover {
        background: #333;
        padding-right: 80px;
    }

    .prism-shard {
        width: 40vw;
        height: 80vh;
        right: -5%;
    }

    .tension-block {
        grid-column: 1 / 4;
        margin-bottom: 0;
        width: auto;
    }

    .content-block {
        grid-column: 5 / 13;
        width: auto;
    }

    .card-grid {
        grid-column: 1 / 13;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        width: auto;
    }

    .cta-section-text {
        grid-column: 1 / 9;
        width: auto;
    }

    .cta-section-btn {
        grid-column: 1 / 4;
        width: auto;
    }

    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        padding: 0 40px;
    }

    .footer-section iframe {
        height: 300px;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- GLOBAL LAYOUT UTILITIES --- */
.span-full {
    grid-column: 1 / -1;
    width: 100%;
}

.grid-50-50 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    padding-top: 40px;
}

@media (min-width: 900px) {
    .grid-50-50 {
        grid-template-columns: 1fr 1fr;
    }
}

/* AI Widget Root Positioning */
#tressluxe-ai-widget-root {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: 9999 !important;
    background: transparent !important;
    pointer-events: none !important;
}

/* Only the direct button/panel should receive clicks, not wrapper divs */
#tressluxe-ai-widget-root button,
#tressluxe-ai-widget-root [role="dialog"] {
    pointer-events: auto;
}

@media (max-width: 640px) {
    #tressluxe-ai-widget-root {
        bottom: 0 !important;
        right: 0 !important;
    }
}