/* Font Face - NeueHaasDisplay */
@font-face {
    font-family: 'NeueHaasDisplay';
    src: url('../assets/NeueHaasDisplay-Mediu.woff2') format('woff2'),
         url('../assets/NeueHaasDisplay-Mediu.woff') format('woff'),
         url('../assets/NeueHaasDisplay-Mediu.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Normalize default link colors to inherit from context */
a {
	color: inherit;
	text-decoration: none;
}

a:visited {
	color: inherit;
}

:root {
    --primary-black: #1a1a1a;
    --primary-white: #ffffff;
    --off-white: #f5f5f5;
    --background-cream: #faf6ed;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    /* Prevent text size adjustments on mobile */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Fix for mobile Safari viewport height */
    height: 100%;
    height: -webkit-fill-available;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--background-cream);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* Page transition animation */
    opacity: 0;
    animation: pageTransitionIn 0.4s ease-in forwards;
}

body.page-transition-out {
    animation: pageTransitionOut 0.3s ease-out forwards;
}

/* Page Transition Keyframes */
@keyframes pageTransitionIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pageTransitionOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
}


/* Scrolling animation - seamless infinite loop */
@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Make images responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Apply NeueHaasDisplay to all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    text-transform: lowercase;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 20px;
    z-index: 10002;
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: top 0.3s, opacity 0.3s;
}

.skip-link:focus {
    top: 10px;
    opacity: 1;
    pointer-events: all;
    outline: 2px solid var(--primary-white);
    outline-offset: 2px;
}

/* Menu Bar */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: transparent;
    z-index: 9999;
    transition: var(--transition-smooth);
}

/* Ensure toggle button is always above menu bar */
.menu-bar ~ .mobile-menu-toggle,
.menu-bar .mobile-menu-toggle {
    z-index: 10002 !important;
}

/* Light mode menu (default - dark text on light bg) */
.menu-bar.light-mode {
    color: var(--primary-black);
}

.menu-bar.light-mode .menu-item {
    color: var(--primary-black);
}

.menu-bar.light-mode .mobile-menu-toggle span {
    background-color: var(--primary-black);
}

/* Dark mode menu (light text on dark bg) */
.menu-bar.dark-mode {
    color: var(--primary-white);
}

.menu-bar.dark-mode .menu-item {
    color: var(--primary-white);
}

.menu-bar.dark-mode .mobile-menu-toggle span {
    background-color: var(--primary-white);
}

.menu-bar.dark-mode .menu-logo svg {
    color: var(--primary-white);
}

.menu-bar.light-mode .menu-logo svg {
    color: var(--primary-black);
}

.menu-bar.hidden {
    transform: translateY(-100%);
}

.menu-container {
    max-width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    padding-left: max(40px, env(safe-area-inset-left) + 20px);
    padding-right: max(40px, env(safe-area-inset-right) + 20px);
}

.menu-left,
.menu-right {
    display: flex;
    gap: 30px;
}

.menu-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-logo a {
    display: block;
    text-decoration: none;
}

.menu-logo svg {
    display: block;
}

.menu-logo .logo-image {
    width: 250px;
    height: auto;
    display: block;
}

/* Logo color adaptation for light/dark modes */
.menu-bar.light-mode .logo-image {
    filter: brightness(0);
}

.menu-bar.dark-mode .logo-image {
    filter: brightness(0) invert(1);
}

/* Force dark logo when mobile menu is open */
.mobile-menu.active ~ .menu-bar .logo-image,
body:has(.mobile-menu.active) .logo-image {
    filter: brightness(0) !important;
}

.menu-item {
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 2px;
}

.menu-item:visited {
	color: inherit;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.menu-item:hover::after {
    width: 100%;
}

.menu-item:focus {
    outline: none;
}

.menu-item:focus-visible {
    outline: 2px solid var(--primary-black);
    outline-offset: 4px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10002 !important; /* Higher than mobile menu to stay visible */
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background: none;
    border: none;
    outline: none;
    pointer-events: auto !important;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--primary-black);
    outline-offset: 4px;
    border-radius: 4px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--primary-black);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Force dark hamburger when menu is active */
.mobile-menu-toggle.active {
    z-index: 10003 !important; /* Ensure it stays above menu when active */
    pointer-events: auto !important;
    display: flex !important; /* Ensure it's visible when active */
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-toggle.active span {
    background-color: var(--primary-black) !important;
    opacity: 1 !important; /* Ensure spans are visible */
    visibility: visible !important;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background-color: var(--background-cream);
    padding: 120px 40px 60px;
    padding-top: max(120px, env(safe-area-inset-top) + 80px);
    padding-bottom: max(60px, env(safe-area-inset-bottom) + 40px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9998;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-black);
    text-decoration: none;
    text-transform: lowercase;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    min-height: 55px;
}

.mobile-menu-item:visited {
	color: var(--primary-black);
}

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

.mobile-menu-item:active {
    opacity: 0.6;
}

/* Staggered animation for menu items */
.mobile-menu.active .mobile-menu-item:nth-child(1) {
    animation: fadeInUp 0.5s ease forwards 0.15s;
}

.mobile-menu.active .mobile-menu-item:nth-child(2) {
    animation: fadeInUp 0.5s ease forwards 0.25s;
}

.mobile-menu.active .mobile-menu-item:nth-child(3) {
    animation: fadeInUp 0.5s ease forwards 0.35s;
}

.mobile-menu.active .mobile-menu-item:nth-child(4) {
    animation: fadeInUp 0.5s ease forwards 0.45s;
}

.mobile-menu.active .mobile-menu-item:nth-child(5) {
    animation: fadeInUp 0.5s ease forwards 0.55s;
}

.mobile-menu.active .mobile-menu-item:nth-child(6) {
    animation: fadeInUp 0.5s ease forwards 0.65s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Backdrop - Not needed for full-screen menu */
.menu-backdrop {
    display: none;
}

/* Hero Banner - Behind Menu */
.hero-banner {
    width: 100%;
    height: calc(780px + env(safe-area-inset-top));
    margin: 0;
    margin-top: calc(-1 * env(safe-area-inset-top));
    padding: 0;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Push content after hero banner down */
.intro-section {
    position: relative;
    z-index: 2;
    margin-top: 780px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Hero Video Styles */
.hero-video {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.hero-background-video.playing {
    opacity: 1;
}

/* Hide video controls for all browsers */
.hero-background-video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none !important;
}

.hero-background-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.hero-background-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-background-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-background-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* For Safari - disable interaction with video */
video.hero-background-video {
    pointer-events: none;
}

/* Fallback image */
.hero-fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Page Header */
.page-header {
    padding: 140px 20px 40px;
    padding-top: calc(140px + env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    background-color: var(--background-cream);
    text-align: center;
}

.page-header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 36px;
    font-weight: 500;
    text-transform: lowercase;
    color: var(--primary-black);
}

/* Content Section */
.content-section {
    padding: 60px 20px;
    background-color: var(--background-cream);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.content-text {
    margin-bottom: 60px;
}

.content-text:last-child {
    margin-bottom: 0;
}

.content-section .content-container {
    padding-bottom: 100px;
}

/* Reduce spacing for treatments page intro */
.content-section.treatments-intro {
    padding: 20px 20px 0 20px;
}

.content-section.treatments-intro .content-container {
    padding-bottom: 0;
}

.content-section.treatments-intro .content-text {
    margin-bottom: 0;
}

.content-text h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-black);
}

.content-text p {
    font-size: 16px;
    line-height: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-black);
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background-color: var(--background-cream);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.cta-container h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-black);
}

.cta-container p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

/* Intro Section */
.intro-section {
    padding: 100px 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    background-color: var(--background-cream);
}

/* Carousel Slider */
.carousel-section {
    width: 100%;
    overflow: hidden;
    background-color: var(--background-cream);
    padding: 60px 0;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding-left: 20px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll-left 40s linear infinite;
    width: max-content;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-slide {
    flex-shrink: 0;
    width: 400px;
    height: 400px;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
    .carousel-slide {
        width: 300px;
        height: 300px;
    }
    
    .carousel-container {
        padding-left: 15px;
    }
    
    /* Hide carousel on concept page on mobile */
    .content-section ~ .carousel-section {
        display: none;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        width: 280px;
        height: 280px;
    }
    
    .carousel-container {
        padding-left: 10px;
    }
    
    .carousel-track {
        gap: 15px;
    }
}

.intro-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.intro-container h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--primary-black);
}

.intro-container p {
    font-size: 16px;
    line-height: 1.6em;
    margin-bottom: 20px;
    color: var(--primary-black);
}

.intro-container p:last-of-type {
    margin-bottom: 40px;
}

/* Text CTA with underline animation */
.text-cta {
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-black);
    text-decoration: none;
    text-transform: lowercase;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

/* Ensure spans inside text-cta don't inherit text-transform twice */
.text-cta span {
    text-transform: lowercase;
}

.text-cta:visited {
	color: var(--primary-black);
}

.text-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--primary-black);
    transition: width 0.3s ease, left 0.3s ease, transform 0.3s ease;
}

.text-cta:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.text-cta:focus {
    outline: none;
}

.text-cta:focus::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.text-cta:focus-visible {
    outline: none;
}

/* Unavailable CTA with flip animation */
.text-cta.unavailable-cta {
    position: relative;
    display: inline-block;
    overflow: visible;
    min-height: 1.2em; /* Ensure space for both texts */
    text-align: center;
}

/* Left align unavailable CTA on stylist profile page - overridden below with more specific rules */

.text-cta.unavailable-cta .cta-text-default {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.text-cta.unavailable-cta .cta-text-hover {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
    text-align: center;
}

.text-cta.unavailable-cta:hover .cta-text-default {
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
}

.text-cta.unavailable-cta:hover .cta-text-hover {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

/* Ensure underline animation works correctly - override for unavailable CTA */
.text-cta.unavailable-cta {
    text-align: center;
}

.text-cta.unavailable-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--primary-black);
    transition: width 0.3s ease, left 0.3s ease, transform 0.3s ease;
    z-index: -1;
}

.text-cta.unavailable-cta:hover::after {
    width: calc(100% - 0px);
    left: 0;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

/* Simple text link style (used in content areas) */
.text-link {
	font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: var(--primary-black);
	text-decoration: none;
	text-transform: lowercase;
	position: relative;
	display: inline-block;
	padding-bottom: 2px;
}

.text-link:visited {
	color: var(--primary-black);
}

.text-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--primary-black);
	transition: width 0.3s ease;
}

.text-link:hover::after {
	width: 100%;
}

.text-link:focus {
	outline: 2px solid var(--primary-black);
	outline-offset: 4px;
}

.text-link:focus::after {
	width: 100%;
}
/* CTA Button - Only background color hover, no transform */
.cta-button,
a.cta-button {
    min-width: 100px;
    padding: 15px 40px;
    background-color: var(--primary-black);
    color: var(--primary-white);
    border: none;
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: lowercase;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 0.5px;
    /* Better touch target for mobile */
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #333;
}

.cta-button:active {
    background-color: #000;
}

.cta-button:focus {
    outline: 2px solid var(--primary-black);
    outline-offset: 4px;
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.section-container h2 {
    font-size: 26px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-black);
}

/* Hide introductory text under hairstylists heading on homepage */
.hairstylists-section .section-container h2 + p {
    display: none !important;
}

/* Treatments Section */
.treatments-section {
    background-color: var(--background-cream);
    margin-bottom: 100px;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.treatment-card {
    background-color: var(--primary-white);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.treatment-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.treatment-card p {
    font-size: 14px;
    line-height: 1.6em;
    color: #666;
}

/* Hairstylists Section */
.hairstylists-section {
    background-color: var(--background-cream);
}

/* Desktop: Grid layout */
.stylists-carousel {
    position: relative;
    overflow: visible;
}

.stylists-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* If only 2 stylists, center them - using data attribute for better browser support */
.stylists-track[data-stylist-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Fallback using :has() for modern browsers */
.stylists-track:has(.stylist-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* If only 1 stylist, center it */
.stylists-track:has(.stylist-card:first-child:last-child),
.stylists-track[data-stylist-count="1"] {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .stylists-track {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: 40px;
    }
    
    .stylists-track:has(.stylist-card:first-child:last-child) {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.stylists-dots {
    display: none;
}

.stylists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.stylist-card {
    text-align: center;
}

.stylist-image-link {
    display: block;
    text-decoration: none;
    width: 100%;
    margin-bottom: 25px;
}

.stylist-image {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background-color: #f5f5f5; /* Placeholder color to prevent flash */
}

.stylist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.stylist-image-link:hover .stylist-image img {
    opacity: 0.9;
    filter: brightness(1.1);
}

/* Hover effect for stylist images on hairstylists page (when not in a link) */
.stylist-card:hover .stylist-image img {
    opacity: 0.9;
    filter: brightness(1.1);
}

.stylist-card h3 {
    font-size: 22px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 15px;
}

.stylist-card p {
    font-size: 14px;
    line-height: 1.6em;
    color: #666;
    margin-bottom: 20px;
}

.stylist-card .text-cta {
    margin-top: 5px;
    text-align: center;
    position: relative;
    display: inline-block;
}

/* Ensure unavailable-cta styles work even inside stylist-card */
.stylist-card .text-cta.unavailable-cta {
    margin-top: 5px;
    position: relative;
    display: inline-block;
    overflow: visible;
    min-height: 1.2em;
    text-align: center;
}

/* Ensure hover state works on homepage stylist cards */
.stylists-section .stylist-card .text-cta.unavailable-cta .cta-text-default,
.hairstylists-section .stylist-card .text-cta.unavailable-cta .cta-text-default,
.stylists-carousel .stylist-card .text-cta.unavailable-cta .cta-text-default,
.stylists-track .stylist-card .text-cta.unavailable-cta .cta-text-default {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.stylists-section .stylist-card .text-cta.unavailable-cta .cta-text-hover,
.hairstylists-section .stylist-card .text-cta.unavailable-cta .cta-text-hover,
.stylists-carousel .stylist-card .text-cta.unavailable-cta .cta-text-hover,
.stylists-track .stylist-card .text-cta.unavailable-cta .cta-text-hover {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
    text-align: center;
}

.stylists-section .stylist-card .text-cta.unavailable-cta:hover .cta-text-default,
.hairstylists-section .stylist-card .text-cta.unavailable-cta:hover .cta-text-default,
.stylists-carousel .stylist-card .text-cta.unavailable-cta:hover .cta-text-default,
.stylists-track .stylist-card .text-cta.unavailable-cta:hover .cta-text-default {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    visibility: hidden !important;
}

.stylists-section .stylist-card .text-cta.unavailable-cta:hover .cta-text-hover,
.hairstylists-section .stylist-card .text-cta.unavailable-cta:hover .cta-text-hover,
.stylists-carousel .stylist-card .text-cta.unavailable-cta:hover .cta-text-hover,
.stylists-track .stylist-card .text-cta.unavailable-cta:hover .cta-text-hover {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    visibility: visible !important;
}

/* Stylist Profile Page */
.stylist-profile-section {
    background-color: var(--background-cream);
    padding: 0 !important;
    min-height: 100vh;
    margin-bottom: 0;
    margin-top: 0;
}

/* Remove footer margin-top on stylist profile pages */
body:has(.stylist-profile-section) .footer {
    margin-top: 0 !important;
}

/* Remove footer margin-top on concept page */
body:has(.content-section) .footer {
    margin-top: 0 !important;
}

/* More specific: only on concept page */
body:has([data-page="concept"]) .footer,
body:has(.content-section:has(h2:contains("the salon"))) .footer {
    margin-top: 0 !important;
}

.stylist-profile-section .content-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.stylist-profile-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

.stylist-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 100vh;
}

.stylist-profile-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.stylist-profile-image img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: filter 0.4s ease, brightness 0.4s ease;
}

.stylist-profile-image:hover img {
    filter: brightness(1.15);
}

.stylist-profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
    min-height: 100vh;
}

.stylist-profile-content h1 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.stylist-profile-content .stylist-function {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-transform: lowercase;
}

.stylist-profile-content .stylist-bio {
    margin-bottom: 15px;
}

.stylist-profile-content .stylist-bio p {
    font-size: 16px;
    line-height: 1.8em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.stylist-profile-content .stylist-contact,
.stylist-profile-content .stylist-social,
.stylist-profile-content .stylist-website {
    margin-top: 15px;
    font-size: 12px;
}

.stylist-profile-content .stylist-contact a,
.stylist-profile-content .stylist-social a,
.stylist-profile-content .stylist-website a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.stylist-profile-content .stylist-contact a:hover,
.stylist-profile-content .stylist-social a:hover,
.stylist-profile-content .stylist-website a:hover {
    color: var(--primary-black);
}

/* Left align CTA on stylist profile page */
.stylist-profile-content .text-cta {
    margin-top: 0;
    margin-bottom: 40px;
    text-align: left;
    display: inline-block;
    position: relative;
    width: fit-content;
    max-width: 100%;
}

/* Normal text-cta underline animation (for available stylists like Soumaya) */
.stylist-profile-content .text-cta:not(.unavailable-cta) {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.stylist-profile-content .text-cta:not(.unavailable-cta)::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: translateX(0) !important;
    width: 0 !important;
    height: 1px !important;
    background-color: var(--primary-black) !important;
    transition: width 0.3s ease !important;
}

.stylist-profile-content .text-cta:not(.unavailable-cta):hover::after {
    left: 0 !important;
    transform: translateX(0) !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Unavailable CTA styling (for unavailable stylists like Youri) */
.stylist-profile-content .text-cta.unavailable-cta {
    text-align: left !important;
    position: relative;
    display: inline-block;
    overflow: visible;
    min-height: 1.2em;
    width: fit-content;
    max-width: 100%;
}

.stylist-profile-content .text-cta.unavailable-cta .cta-text-default {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.stylist-profile-content .text-cta.unavailable-cta .cta-text-hover {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0 !important;
    transform: translateX(0) translateY(10px) !important;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
    text-align: left;
}

.stylist-profile-content .text-cta.unavailable-cta:hover .cta-text-default {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    visibility: hidden !important;
}

.stylist-profile-content .text-cta.unavailable-cta:hover .cta-text-hover {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
    visibility: visible !important;
}

/* Underline animation for unavailable CTA - starts from center */
.stylist-profile-content .text-cta.unavailable-cta::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    -webkit-transform: translateX(-50%) !important;
    width: 0 !important;
    height: 1px !important;
    background-color: var(--primary-black) !important;
    transition: width 0.3s ease, left 0.3s ease, transform 0.3s ease !important;
    -webkit-transition: width 0.3s ease, left 0.3s ease, transform 0.3s ease !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.stylist-profile-content .text-cta.unavailable-cta:hover::after {
    width: 100% !important;
    left: 0 !important;
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100% !important;
}

.stylist-profile-loading,
.stylist-profile-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* Ensure booking button is visible on stylist profile pages */
.stylist-profile-section ~ .booking-button-container,
body:has(.stylist-profile-section) .booking-button-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10003 !important;
    position: fixed !important;
}

/* Booking Section */
.booking-section {
    background-color: var(--background-cream);
}

.booking-section .section-container {
    padding: 50px 20px;
}

.booking-section p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.booking-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.salonhub-widget {
    min-height: 400px;
    margin-top: 40px;
}

/* Location Section */
.location-section {
    background-color: var(--background-cream);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.location-info h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.location-info p {
    font-size: 14px;
    line-height: 1.8em;
    margin-bottom: 25px;
    color: #666;
}

.location-map {
    width: 100%;
}

.location-map iframe {
    border-radius: 0;
}

.custom-map {
    width: 100%;
    height: 600px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Google Maps UI customization */
.custom-map .gm-style-iw {
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
}

.custom-map .gm-style .gm-style-iw-c {
    border-radius: 8px;
}

.custom-map .gm-style .gm-style-iw-d {
    overflow: auto !important;
}

/* Footer */
.footer {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 110px 20px 80px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    margin-top: 100px;
    margin-bottom: calc(-1 * env(safe-area-inset-bottom));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-column p {
    font-size: 11px;
    line-height: 1.6em;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column a {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-transform: lowercase;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-column a:visited {
	color: rgba(255, 255, 255, 0.7);
}

.footer-column a:hover {
    color: var(--primary-white);
}

/* Newsletter Form */
.newsletter-form {
    position: relative;
    margin-top: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--primary-white);
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    text-transform: lowercase;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-color: var(--primary-white);
    color: var(--primary-black);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.newsletter-form button svg {
    width: 10px;
    height: 10px;
    stroke-width: 2.5px;
}

.newsletter-form button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-container {
        padding: 0 20px;
    }
    
    .menu-left,
    .menu-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        top: 40px;
        z-index: 10002 !important; /* Ensure it stays above menu */
        pointer-events: auto !important;
    }
    
    .mobile-menu-toggle.active {
        z-index: 10002 !important; /* Ensure it stays above menu when active */
        pointer-events: auto !important;
    }
    
    .menu-logo {
        left: 20px;
        transform: none;
    }
    
    .menu-logo .logo-image {
        width: 200px;
    }
    
    .hero-banner {
        height: calc(600px + env(safe-area-inset-top));
        margin-top: calc(-1 * env(safe-area-inset-top));
    }
    
    .intro-section {
        margin-top: 600px;
    }
    
    .page-header {
        padding: 120px 20px 40px;
        padding-top: calc(120px + env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        margin-top: 0;
    }
    
    .page-header h1 {
        font-size: 30px;
    }
    
    .intro-section {
        padding: 60px 20px;
    }
    
    .intro-container {
        padding: 0 10px;
    }
    
    .intro-container h2 {
        font-size: 24px;
    }
    
    .intro-container p {
        font-size: 15px;
    }
    
    .text-cta {
        font-size: 15px;
    }
    
    .section-container {
        padding: 60px 20px;
    }
    
    .section-container h2 {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .content-container {
        padding: 0 10px;
    }
    
    .content-text h2 {
        font-size: 24px;
    }
    
    .content-text p {
        font-size: 15px;
    }
    
    .cta-container h2 {
        font-size: 24px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 13px;
    }
    
    .treatments-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .treatment-card {
        padding: 30px 20px;
    }
    
    .treatment-card h3 {
        font-size: 18px;
    }
    
    .treatment-card p {
        font-size: 13px;
    }
    
    /* Mobile: Swipeable carousel */
    .stylists-carousel {
        overflow: hidden !important; /* Hide overflow so cards don't show side by side */
        width: 100%;
        position: relative;
    }
    
    .stylists-carousel .stylists-track {
        overflow: visible; /* Allow cards to move */
    }
    
    .stylists-track {
        display: flex !important; /* Force flex layout on mobile */
        flex-direction: row; /* Cards side by side */
        gap: 0;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        cursor: grab;
        position: relative;
        width: 100%;
        /* Reset grid properties from desktop */
        grid-template-columns: none !important;
        grid: none !important;
    }
    
    .stylists-track:active {
        cursor: grabbing;
    }
    
    /* Visual feedback for clickable sides */
    .stylists-track::before,
    .stylists-track::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30%;
        pointer-events: none;
        z-index: 1;
        transition: background-color 0.3s ease;
    }
    
    .stylists-track::before {
        left: 0;
        background: linear-gradient(to right, rgba(0,0,0,0.02), transparent);
    }
    
    .stylists-track::after {
        right: 0;
        background: linear-gradient(to left, rgba(0,0,0,0.02), transparent);
    }
    
    .stylist-card {
        flex: 0 0 100% !important; /* Each card takes full width */
        width: 100% !important;
        min-width: 100%; /* Ensure cards don't shrink */
        max-width: 100%; /* Ensure cards don't grow */
        scroll-snap-align: start;
        /* Reset grid properties */
        grid-column: unset !important;
    }
    
    .stylist-image {
        aspect-ratio: 2/3;
        height: auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stylists-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 30px;
        padding: 5px 0;
        overflow: visible;
        width: 100%;
    }
    
    .stylists-dots .dot {
        width: 5px;
        height: 5px;
        min-width: 5px;
        min-height: 5px;
        border-radius: 50%;
        background-color: rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        cursor: pointer;
        flex-shrink: 0;
        display: block;
        box-sizing: border-box;
    }
    
    .stylists-dots .dot.active {
        background-color: var(--primary-black);
        transform: scale(1.3);
    }
    
    .stylist-card h3 {
        font-size: 20px;
    }
    
    .stylist-card p {
        font-size: 14px;
        padding: 0 20px;
    }
    
    .stylist-card .text-cta {
        font-size: 14px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .location-info h3 {
        font-size: 18px;
    }
    
    .location-info p {
        font-size: 13px;
    }
    
    .location-map iframe {
        height: 350px;
    }
    
    .footer {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-top: 110px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
        margin-top: 100px;
        margin-bottom: calc(-1 * env(safe-area-inset-bottom));
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .newsletter-form input {
        padding: 10px 38px 10px 18px;
        font-size: 10px;
    }
    
    .newsletter-form button {
        width: 26px;
        height: 26px;
        font-size: 15px;
        font-weight: 600;
        right: 5px;
        line-height: 1;
    }
    
    .newsletter-form button svg {
        width: 10px;
        height: 10px;
    }
    
    .booking-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .booking-buttons .cta-button {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .menu-bar {
        height: 70px;
    }
    
    .mobile-menu {
        padding: 100px 20px 40px;
    }
    
    .mobile-menu-toggle {
        top: 35px;
        right: 15px;
        z-index: 10002 !important; /* Ensure it stays above menu */
        pointer-events: auto !important;
    }
    
    .mobile-menu-toggle.active {
        z-index: 10002 !important; /* Ensure it stays above menu when active */
        pointer-events: auto !important;
        display: flex !important; /* Ensure it's visible when active */
    }
    
    .mobile-menu-toggle.active span {
        opacity: 1 !important; /* Ensure spans are visible */
    }
    
    .mobile-menu-toggle span {
        width: 25px;
    }
    
    .mobile-menu-item {
        padding: 16px 0;
        font-size: 22px;
        min-height: 48px;
    }
    
    .menu-logo {
        left: 15px;
    }
    
    .menu-logo .logo-image {
        width: 170px;
        max-height: 45px;
        object-fit: contain;
    }
    
    .hero-banner {
        height: calc(500px + env(safe-area-inset-top));
        margin-top: calc(-1 * env(safe-area-inset-top));
    }
    
    .intro-section {
        margin-top: 500px;
    }
    
    .page-header {
        padding: 100px 15px 30px;
        padding-top: calc(100px + env(safe-area-inset-top));
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
        margin-top: 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .intro-section {
        padding: 50px 15px;
    }
    
    .intro-container h2,
    .section-container h2,
    .content-text h2,
    .cta-container h2 {
        font-size: 22px;
    }
    
    .intro-container p,
    .content-text p {
        font-size: 14px;
    }
    
    .text-cta {
        font-size: 14px;
    }
    
    .section-container {
        padding: 50px 15px;
    }
    
    .content-section {
        padding: 40px 15px;
    }
    
    .cta-section {
        padding: 60px 15px;
    }
    
    .cta-button {
        padding: 11px 25px;
        font-size: 12px;
        min-width: 90px;
    }
    
    .treatment-card {
        padding: 25px 15px;
    }
    
    .treatment-card h3 {
        font-size: 17px;
    }
    
    .treatment-card p {
        font-size: 12px;
    }
    
    .stylist-card h3 {
        font-size: 20px;
    }
    
    .stylist-card p {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .stylist-card .text-cta {
        font-size: 13px;
    }
    
    /* Responsive: Stylist Profile */
    .stylist-profile {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }
    
    .stylist-profile-image {
        height: 70vh;
        min-height: 70vh;
        position: relative;
        order: 1;
    }
    
    .stylist-profile-image img {
        min-height: 70vh;
        height: 70vh;
    }
    
    .stylist-profile-content {
        padding: 40px 20px;
        min-height: auto;
        order: 2;
        text-align: center;
        justify-content: flex-start;
    }
    
    .stylist-profile-content h1 {
        font-size: 28px;
        text-align: center;
    }
    
    .stylist-profile-content .stylist-function {
        text-align: center;
    }
    
    .stylist-profile-content .stylist-bio {
        text-align: center;
    }
    
    .stylist-profile-content .stylist-bio p {
        text-align: center;
    }
    
    .stylist-profile-content .text-cta {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stylist-profile-content .text-cta.unavailable-cta {
        text-align: center;
    }
    
    .stylist-profile-content .text-cta.unavailable-cta .cta-text-hover {
        left: 50% !important;
        transform: translateX(-50%) translateY(10px) !important;
    }
    
    .stylist-profile-content .text-cta.unavailable-cta:hover .cta-text-hover {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .stylist-profile-content .text-cta.unavailable-cta::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .stylist-profile-content .text-cta.unavailable-cta:hover::after {
        left: 0 !important;
        transform: translateX(0) !important;
    }
    
    .stylist-profile-content .stylist-contact,
    .stylist-profile-content .stylist-social,
    .stylist-profile-content .stylist-website {
        text-align: center;
    }
    
    .stylist-image {
        max-width: 350px;
    }
    
    .location-map iframe {
        height: 300px;
    }
    
    .footer {
        padding: 100px 15px 75px;
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
        padding-bottom: calc(75px + env(safe-area-inset-bottom));
        margin-top: 100px;
        margin-bottom: calc(-1 * env(safe-area-inset-bottom));
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }
    
    .footer-column:last-child {
        grid-column: 1 / -1;
    }
    
    .footer-column h4 {
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    .footer-column p {
        font-size: 10px;
    }
    
    .footer-column a {
        font-size: 10px;
        margin-bottom: 7px;
    }
    
    .newsletter-form {
        margin-top: 12px;
    }
    
    .newsletter-form input {
        padding: 10px 36px 10px 16px;
        font-size: 10px;
    }
    
    .newsletter-form button {
        width: 24px;
        height: 24px;
        font-size: 14px;
        font-weight: 600;
        right: 5px;
        line-height: 1;
    }
    
    .newsletter-form button svg {
        width: 10px;
        height: 10px;
    }
    
    .footer-bottom {
        padding-top: 15px;
    }
    
    .footer-bottom p {
        font-size: 9px;
    }
    
    .booking-buttons .cta-button {
        max-width: 100%;
    }
}

/* reCAPTCHA Badge Styling - Subtle and minimal */
.grecaptcha-badge {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

/* Contact Form Styles */
.contact-section {
    padding: 60px 0 80px;
}

.contact-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.contact-intro p {
    font-size: 16px;
    line-height: 1.8em;
    color: var(--primary-black);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-success {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 0;
}

.contact-success h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.contact-success p {
    font-size: 16px;
    line-height: 1.8em;
    color: var(--primary-black);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 40px;
}

.form-group label {
    display: block;
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    text-transform: lowercase;
    color: var(--primary-black);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px; /* Increased to 16px to prevent iOS zoom on focus */
    color: var(--primary-black);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
    background-color: transparent;
    box-sizing: border-box;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    text-transform: lowercase;
    letter-spacing: 0;
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
}

.form-submit {
    text-align: center;
    margin-top: 50px;
}

/* 404 Page Styles */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 120px;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--primary-black);
}

.error-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.error-content p {
    font-size: 16px;
    line-height: 1.6em;
    margin-bottom: 40px;
    color: rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0 60px;
    }
    
    .contact-intro {
        margin-bottom: 40px;
    }
    
    .contact-intro p {
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 30px;
    }
    
    .form-submit {
        margin-top: 40px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-content h1 {
        font-size: 26px;
    }
    
    .error-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 60px;
    }
    
    .error-content h1 {
        font-size: 22px;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Newsletter Success Modal */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.newsletter-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.newsletter-modal-content {
    background-color: var(--primary-white);
    padding: 40px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.newsletter-modal.active .newsletter-modal-content {
    transform: scale(1);
    opacity: 1;
}

.newsletter-modal-content h3 {
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--primary-black);
    text-transform: lowercase;
}

.newsletter-modal-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.newsletter-modal-close {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-modal-close:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .newsletter-modal-content {
        padding: 30px 20px;
    }
    
    .newsletter-modal-content h3 {
        font-size: 20px;
    }
    
    .newsletter-modal-content p {
        font-size: 13px;
    }
}

/* Coming Soon Page */
.coming-soon-container {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--background-cream);
    text-align: center;
}

.coming-soon-title {
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-black);
    text-transform: lowercase;
    margin-bottom: 60px;
    line-height: 1.2;
}

.coming-soon-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.coming-soon-link {
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-black);
    text-transform: lowercase;
    text-decoration: none;
    padding: 15px 40px;
    border: 1px solid var(--primary-black);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: inline-block;
}

.coming-soon-link:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

.coming-soon-link:active {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .coming-soon-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .coming-soon-link {
        font-size: 16px;
        padding: 12px 30px;
    }
    
    .coming-soon-links {
        gap: 20px;
    }
}

/* ========================================
   FIXED BOOKING BUTTON
   ======================================== */

.booking-button-container {
    position: fixed !important;
    -webkit-position: fixed !important; /* Safari fix */
    bottom: 20px !important;
    right: 20px !important;
    z-index: 10003 !important;
    display: flex !important;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
    visibility: visible !important;
    opacity: 1 !important;
    /* Safari iOS fixes - critical for visibility */
    -webkit-transform: translate3d(0, 0, 0) !important; /* Force hardware acceleration */
    transform: translate3d(0, 0, 0) !important;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure button is always visible on Safari iOS */
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Prevent any parent from hiding it */
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
}

.booking-button {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform-origin: center;
    -webkit-transform-origin: center;
    position: relative;
    z-index: 10004 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    /* Safari iOS fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.booking-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.booking-button:active {
    transform: scale(0.95);
}

.booking-button-container.expanded .booking-button {
    border-radius: 12px;
    transform: scale(1);
}

/* Elastic animation on click */
@keyframes elasticBlop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@-webkit-keyframes elasticBlop {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    75% {
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.booking-button.animating {
    animation: elasticBlop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-animation: elasticBlop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.booking-menu {
    background-color: var(--primary-black);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    -webkit-transform: scale(0.8) translateY(10px);
    transform-origin: bottom right;
    -webkit-transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                visibility 0.3s;
    -webkit-transition: opacity 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                        -webkit-transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                        visibility 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: none !important;
    flex-direction: column;
    gap: 4px;
    visibility: hidden;
    position: relative;
    z-index: 10005;
    margin: 0;
    /* Safari iOS fixes */
    -webkit-transform: translateZ(0) scale(0.8) translateY(10px);
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.booking-button-container.expanded .booking-menu {
    display: flex !important;
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
    -webkit-transform: translateZ(0) scale(1) translateY(0) !important;
    pointer-events: all !important;
    visibility: visible !important;
    margin-bottom: 12px;
}

.booking-option {
    color: var(--primary-white) !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    transition: background-color 0.2s ease;
    cursor: pointer;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

.booking-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.booking-option:active {
    background-color: rgba(255, 255, 255, 0.15);
}

.booking-option span {
    display: inline;
}

.booking-option .booking-name {
    font-weight: 500;
}

.booking-option .booking-function {
    font-weight: 400;
    opacity: 0.7;
    font-size: 11px;
}

.booking-option.unavailable {
    cursor: pointer;
    opacity: 0.6;
}

.booking-option.unavailable:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 0.8 !important;
}

.booking-option .no-availability {
    font-size: 12px;
    opacity: 0.7;
    font-style: italic;
    margin-left: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .booking-button-container {
        bottom: 10px !important;
        right: 10px !important;
        left: auto !important;
        top: auto !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10006 !important; /* Higher than mobile menu backdrop */
        position: fixed !important;
        -webkit-position: fixed !important;
        /* Safari iOS specific fixes - CRITICAL for visibility */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        /* Force visibility */
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        /* Prevent Safari from hiding fixed elements */
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    .booking-button {
        padding: 14px 28px;
        font-size: 14px;
        min-height: 48px; /* Minimum touch target size (Apple recommends 44px+) */
        min-width: 140px;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        -webkit-touch-callout: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        pointer-events: auto !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .booking-menu {
        min-width: 200px;
        max-width: calc(100vw - 40px); /* Prevent overflow on small screens */
        z-index: 10007 !important;
        -webkit-transform: translateZ(0) scale(0.8) translateY(10px) !important;
        transform: translateZ(0) scale(0.8) translateY(10px) !important;
    }
    
    .booking-option {
        padding: 14px 20px;
        font-size: 14px;
        min-height: 48px; /* Minimum touch target size */
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1) !important;
        -webkit-touch-callout: none !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    /* Ensure booking button is above mobile menu backdrop */
    .menu-backdrop {
        z-index: 10002 !important;
    }
    
    .mobile-menu {
        z-index: 10001 !important;
    }
}

/* Safari iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .booking-button-container {
        position: -webkit-sticky;
        position: sticky;
        position: fixed;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .booking-button {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}
