/*
Theme Name: Malie Hair Salon
Description: A calming and private hair salon theme.
Author: Google Deepmind
Version: 1.6.2
*/
@charset "UTF-8";

:root {
    --c-base: #F9F9F7;
    --c-text: #333333;
    --c-accent: #Dcd7d2;
    --c-dark-accent: #A89B93;

    --f-serif: 'Shippori Mincho', serif;
    --f-sans: 'Zen Kaku Gothic New', sans-serif;
}

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

body {
    background-color: var(--c-base);
    color: var(--c-text);
    font-family: var(--f-sans);
    font-weight: 300;
    line-height: 2.0;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .section {
        padding: 140px 0;
    }
}

.section__label {
    display: block;
    font-family: var(--f-serif);
    color: var(--c-dark-accent);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section__title {
    font-family: var(--f-serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 3rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .section__title {
        font-size: 2.2rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 249, 247, 0.9);
    backdrop-filter: blur(5px);
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.header__logo {
    font-family: var(--f-serif);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1;
    /* Fix for image vertical alignment */
}

.header__logo img {
    height: 50px;
    /* Adjusted to 50px */
    width: auto;
    vertical-align: middle;
}

/* Hamburger Menu */
.hamburger-menu {
    display: block;
    position: relative;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 9px;
}

.hamburger-menu span:nth-child(3) {
    top: 18px;
}

/* Open State for Hamburger */
.hamburger-menu.open span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.header__nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(249, 249, 247, 0.98);
    z-index: 100;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.header__nav.open {
    opacity: 1;
    pointer-events: auto;
}

.header__nav ul {
    list-style: none;
    text-align: center;
}

.header__nav li {
    margin: 20px 0;
}

.header__nav a {
    font-family: var(--f-serif);
    font-size: 1.2rem;
    display: block;
    padding: 10px;
}

@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }

    .header__nav {
        position: static;
        height: auto;
        background-color: transparent;
        padding-top: 0;
        opacity: 1;
        pointer-events: auto;
        display: block;
    }

    .header__nav ul {
        display: flex;
        gap: 30px;
    }

    .header__nav li {
        margin: 0;
    }

    .header__nav a {
        font-size: 0.9rem;
        padding: 0;
    }
}

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

/* Hero Slideshow */
.hero__slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
}

.hero__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5em;
    /* Scalable padding */
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* Square & Responsive */
    width: 85vw;
    /* Mobile base width */
    max-width: 500px;
    /* Desktop max width */
    aspect-ratio: 1 / 1;
    /* Always square */

    /* Grid to stack text groups */
    display: grid;
    grid-template-areas: "stack";
    justify-items: center;
    /* align-items: center;  <-- Removing this to allow child to stretch full height */
    color: #333;
}

/* Hero Slide Text Animation */
.hero__text-group {
    grid-area: stack;
    width: 100%;
    /* Simplified Centering with Flexbox */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: opacity 1.0s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.hero__text-group.active {
    opacity: 1;
    pointer-events: auto;
}

/* ... existing styles ... */

.hero__title {
    /* Responsive font size based on viewport width, capped at desktop size */
    font-size: clamp(1.4rem, 6vw, 2.4rem);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    font-family: var(--f-serif);
    text-shadow: none;
    color: #333;
    line-height: 1.4;
    text-align: center;
    /* Ensure text itself is centered */
}

/* ... */

/* Hair Catalog */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .style-grid {
        grid-template-columns: repeat(6, 1fr);
        /* Force 6 columns on Desktop */
    }
}

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

.style-card a {
    display: block;
}

.style-card__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.style-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.style-card:hover .style-card__img img {
    transform: scale(1.05);
}

.style-card__title {
    font-family: var(--f-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--c-text);
    margin-top: 10px;
}


.hero__eyebrow {
    /* Responsive font size */
    font-size: clamp(0.75rem, 3.2vw, 1.0rem);
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    text-shadow: none;
    color: #555;
    font-family: var(--f-sans);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero__content {
        padding: 30px 20px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__eyebrow {
        font-size: 0.9rem;
    }
}


.hero__copy-vertical {
    font-family: var(--f-serif);
    font-size: 1.8rem;
    writing-mode: vertical-rl;
    margin: 0 auto 30px;
    letter-spacing: 0.2em;
    height: 300px;
    line-height: 2;
}

.hero__sub {
    font-size: 0.9rem;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .hero__copy-vertical {
        font-size: 2.8rem;
        height: 400px;
    }
}

/* Concept */
.concept .section__body {
    max-width: 600px;
    margin: 0 auto;
}

.concept p {
    margin-bottom: 2rem;
}

/* Stylist */
.stylist__profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.stylist__image {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.stylist__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stylist__text {
    text-align: left;
    max-width: 500px;
}

.stylist__name {
    font-family: var(--f-serif);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--c-accent);
    padding-bottom: 10px;
    display: inline-block;
}

.stylist__name-en {
    font-size: 0.9rem;
    margin-left: 10px;
    color: #666;
}

@media (min-width: 768px) {
    .stylist__profile {
        flex-direction: row;
        justify-content: center;
        gap: 60px;
    }
}

/* Menu */
.menu__list {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: left;
}

.menu__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dotted var(--c-accent);
    padding: 15px 0;
    margin-bottom: 10px;
}

.menu__item dt {
    font-weight: 400;
}

.menu__item dd {
    font-family: var(--f-serif);
    font-size: 1.1rem;
}

.menu__note {
    font-size: 0.8rem;
    color: #888;
}

/* Access */
.access__info {
    margin-bottom: 2rem;
}

.access__map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Contact */
.contact__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin: 2rem 0;
}

.btn {
    display: block;
    width: 260px;
    padding: 15px;
    text-align: center;
    font-family: var(--f-serif);
    font-size: 1rem;
    border-radius: 4px;
    /* Minimal radius */
}

.btn--line {
    background-color: #06c755;
    color: white;
    border: 1px solid #06c755;
}

.btn--insta {
    background-color: transparent;
    border: 1px solid #333;
    color: #333;
    /* Ensure text visible */
}

@media (min-width: 768px) {
    .contact__actions {
        flex-direction: row;
        justify-content: center;
    }
}

.contact__note {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    padding: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    background-color: #f1f1ef;
    margin-bottom: 60px;
    /* Space for sticky bar on mobile */
}

@media (min-width: 768px) {
    .footer {
        margin-bottom: 0;
    }
}

/* Sticky Bar */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #eee;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.sticky-bar__inner {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.sticky-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 12px;
    font-family: var(--f-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
}

.sticky-bar__btn--line {
    background-color: #8FA895;
    /* Sage Green */
    color: white;
    border: 1px solid #8FA895;
}

.sticky-bar__btn--insta {
    background: #C49A9A;
    /* Dusty Rose */
    color: white;
    border: 1px solid #C49A9A;
}

@media (min-width: 768px) {
    .sticky-bar {
        display: none;
    }
}

/* Custom Additions for New Content */

.topic-hero .hero__title {
    font-family: var(--f-serif);
    font-size: 2.4rem;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    /* Reset margins for Grid centering */

    /* Grid Positioning */
    grid-row: 2;
    grid-column: 1;
    align-self: center;
}

.topic-hero .hero__eyebrow {
    font-family: var(--f-sans);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: #555;
    margin: 0 0 20px 0 !important;
    display: block;
    text-align: center !important;
    /* Removed grid-row, grid-column, align-self as parent is Flex, not Grid */
}

/* Slide 2: Eyebrow AFTER Title - REMOVED (All slides are now Text -> Title) */

.intro__lead {
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 30px;
    font-weight: 400;
}

.feature-list {
    text-align: left;
    display: inline-block;
    margin: 20px 0 30px;
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    font-family: var(--f-serif);
    font-size: 1.05rem;
}

.feature-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--c-dark-accent);
}

.check-list-wrapper {
    background-color: white;
    padding: 30px;
    display: inline-block;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
}

.check-list {
    text-align: left;
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.check-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #A89B93;
    font-size: 0.9rem;
}

.section__highlight-text {
    font-weight: 500;
    color: #555;
    margin-top: 20px;
    display: block;
}

.bg-light {
    background-color: #F3F3F1;
}

.btn-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.btn-wrapper-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

.btn--primary {
    background-color: #333;
    color: white;
    border: 1px solid #333;
}

.btn--secondary {
    background-color: transparent;
    border: 1px solid #333;
    color: #333;
}

.sub-page-header {
    margin-top: 80px;
    padding-bottom: 40px;
}

/* Feature List Ordered */
.feature-list-ordered {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-list-ordered li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px dotted var(--c-accent);
}

.feature-list-ordered li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.feature-number {
    font-family: var(--f-serif);
    font-size: 3rem;
    color: var(--c-dark-accent);
    line-height: 1;
    font-weight: 500;
}

.feature-content {
    flex: 1;
    text-align: left;
}

.feature-content h3 {
    font-family: var(--f-serif);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-accent);
    padding-bottom: 10px;
    display: inline-block;
}

.feature-content p {
    font-size: 1rem;
    line-height: 2;
    color: #555;
    margin: 0;
}



/* Q&A Section */
.qa-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.qa-item {
    background-color: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.qa-question {
    display: block;
    /* Remove default triangle */
    list-style: none;
    padding: 20px 25px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding-right: 50px;
    font-family: var(--f-serif);
    font-size: 1.05rem;
}

.qa-question::-webkit-details-marker {
    display: none;
}

.qa-question::after {
    content: "+";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--c-dark-accent);
    transition: transform 0.3s ease;
}

.qa-item[open] .qa-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.qa-answer {
    padding: 0 25px 25px;
    color: #555;
    line-height: 1.8;
}

.qa-answer p {
    margin: 0;
}

/* ================================================
   Booking Calendar Styles
   ================================================ */

.booking-calendar-page {
    min-height: 60vh;
}

.calendar-section {
    max-width: 900px;
    margin: 0 auto;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 10px;
}

.calendar-title {
    font-family: var(--f-serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
}

.calendar-nav-btn {
    background-color: var(--c-accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--c-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background-color: var(--c-dark-accent);
    color: white;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .calendar-grid {
        gap: 12px;
    }
}

.calendar-day-header {
    text-align: center;
    font-family: var(--f-serif);
    font-weight: 500;
    padding: 10px 5px;
    background-color: var(--c-accent);
    border-radius: 4px;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: relative;
    transition: all 0.2s ease;
}

.calendar-day.empty {
    background-color: transparent;
    border: none;
}

.calendar-day.has-booking:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.day-number {
    font-family: var(--f-serif);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .day-number {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
}

.time-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .time-status {
        font-size: 0.85rem;
        padding: 6px 8px;
        margin-bottom: 4px;
    }
}

.time-label {
    font-weight: 400;
    opacity: 0.8;
}

/* Status Colors */
.time-status.available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.time-status.limited {
    background-color: #fff3e0;
    color: #ef6c00;
}

.time-status.full {
    background-color: #ffebee;
    color: #c62828;
}

.time-status.closed {
    background-color: #f5f5f5;
    color: #757575;
}

.no-booking-data {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: auto;
    margin-bottom: auto;
}

/* Legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.legend-icon.available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.legend-icon.limited {
    background-color: #fff3e0;
    color: #ef6c00;
}

.legend-icon.full {
    background-color: #ffebee;
    color: #c62828;
}

.legend-icon.closed {
    background-color: #f5f5f5;
    color: #757575;
}

/* Modal */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.modal-title {
    font-family: var(--f-serif);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-accent);
}

.modal-body {
    line-height: 2;
}

.booking-detail-item {
    margin-bottom: 15px;
}

.booking-detail-item strong {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.status-badge.available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.limited {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-badge.full {
    background-color: #ffebee;
    color: #c62828;
}

.status-badge.closed {
    background-color: #f5f5f5;
    color: #757575;
}

.booking-detail-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}
