/* Coiffeur Salon — Modern responsive design */

:root {
    --color-bg: #faf8f5;
    --color-bg-alt: #f2efe8;
    --color-cream: #f5f0e8;
    --color-text: #2c2520;
    --color-text-muted: #5c534a;
    --color-accent: #b8864a;
    --color-accent-dark: #8b6919;
    --color-rose: #c9a88a;
    --color-border: #e5dfd6;
    --color-white: #fff;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Outfit", system-ui, sans-serif;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 20px rgba(44, 37, 32, 0.06);
    --shadow-hover: 0 8px 32px rgba(44, 37, 32, 0.1);
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--color-accent-dark);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: inherit;
    align-items: flex-start;
}
.logo-wrap:hover {
    color: inherit;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.02em;
}

.logo-definition {
    font-size: 0.65rem;
    font-style: italic;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
    margin-top: 2px;
}

.logo-pronunciation {
    font-style: normal;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.main-nav {
    display: flex;
    gap: var(--space-lg);
}
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
}

/* Main content - padding so fixed header doesn't overlap */
.main-content {
    min-height: calc(100vh - 180px);
    padding-top: 5.5rem;
}

/* Typography */
.page-hero {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-bg) 100%);
    border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-sm);
    letter-spacing: 0.02em;
}

.page-hero .subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-xl);
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
}
.btn:hover {
    background: var(--color-accent-dark);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}
.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-hover);
}

/* Footer */
.site-footer {
    background: var(--color-text);
    color: var(--color-cream);
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-hours h3,
.footer-links h3,
.footer-social h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--space-md);
    color: var(--color-white);
}

.footer-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
.footer-hours .day {
    flex-shrink: 0;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.footer-links a,
.footer-social a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}
.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-rose);
}

.footer-fb-badge {
    display: block;
    max-width: 140px;
    height: auto;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Messenger chat button - opens Facebook Messenger */
.messenger-chat {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 99;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: #0084ff;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: var(--shadow-hover);
    transition: transform var(--transition), box-shadow var(--transition);
}
.messenger-chat:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 132, 255, 0.4);
}
.messenger-chat-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.messenger-chat-label {
    white-space: nowrap;
}
@media (max-width: 480px) {
    .messenger-chat-label {
        display: none;
    }
    .messenger-chat {
        padding: var(--space-md);
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

/* Mobile nav */
/* Home: Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: hero-fade 20s infinite;
}

.hero-slide:first-child {
    opacity: 1;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }

@keyframes hero-fade {
    0%, 18% { opacity: 1; }
    22%, 100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(44, 37, 32, 0.35) 0%, rgba(44, 37, 32, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 var(--space-sm);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-rose);
    margin: 0 0 var(--space-xs);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 var(--space-xl);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero .btn + .btn {
    margin-left: var(--space-md);
}

@media (max-width: 480px) {
    .hero .btn + .btn {
        margin-left: 0;
        margin-top: var(--space-md);
    }
    .hero .btn { display: block; }
}

/* Home: Features */
.section-features {
    padding-top: var(--space-3xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.feature-card {
    display: flex;
    flex-direction: column;
}

.feature-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.feature-body {
    padding: var(--space-xl);
}

.feature-body h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 var(--space-md);
    color: var(--color-text);
}

.feature-body p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Home: News */
.section-news {
    background: var(--color-bg-alt);
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 560px;
    margin: 0 auto;
}

.news-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    color: var(--color-text);
}

.news-list a:hover {
    color: var(--color-accent);
}

/* Home: CTA */
.section-cta {
    text-align: center;
}

.cta-inner p {
    color: var(--color-text-muted);
    margin: 0 0 var(--space-xl);
}

/* Services */
.services-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-2xl);
}

.service-category {
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.service-category h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-rose);
}

.service-category ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
}

.service-category li {
    margin-bottom: var(--space-xs);
}

/* Gallery */
.videos-section.is-hidden {
    display: none;
}

.video-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.video-card {
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    color: var(--color-text);
    font-weight: 500;
}

.video-card:hover {
    color: var(--color-accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--color-white);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Gallery index: grid of gallery cards */
.gallery-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.gallery-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    overflow: hidden;
}

.gallery-card:hover {
    color: inherit;
}

.gallery-card:hover .gallery-card-thumb img {
    transform: scale(1.06);
}

.gallery-card-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-border);
}

.gallery-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card-body {
    padding: var(--space-lg);
}

.gallery-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--space-xs);
    color: var(--color-text);
}

.gallery-card-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Gallery detail: back link + small hero */
.page-hero--small {
    padding: var(--space-xl) var(--space-lg);
}

.back-link {
    display: inline-block;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    color: var(--color-accent);
}

.back-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.gallery-empty {
    color: var(--color-text-muted);
}

.gallery-empty code {
    background: var(--color-border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* FAQ */
.faq-list {
    max-width: 640px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-md);
    padding: 0;
}

.faq-item summary {
    padding: var(--space-lg) var(--space-xl);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--color-accent);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 0;
    padding: 0 var(--space-xl) var(--space-lg);
    color: var(--color-text-muted);
}

/* Stylist */
.stylist-intro {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.stylist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.stylist-card {
    text-align: center;
    padding: var(--space-xl);
}

.stylist-photo-wrap {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin: 0 0 var(--space-md);
}

.stylist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stylist-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 var(--space-xs);
    color: var(--color-text);
}

.stylist-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Testimonials */
.testimonial-intro {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--color-text-muted);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    padding: var(--space-xl);
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text);
    margin: 0 0 var(--space-md);
}

.testimonial-card footer {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.testimonial-card footer strong {
    display: block;
    color: var(--color-text);
}

.testimonial-card time {
    font-size: 0.85rem;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-sm);
    color: var(--color-text);
}

.contact-info h2:first-child {
    margin-top: 0;
}

.contact-info .address,
.contact-info p {
    margin: 0 0 var(--space-md);
    color: var(--color-text-muted);
}

.flash-messages {
    margin-bottom: var(--space-lg);
}
.flash {
    margin: 0 0 var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: 0.95rem;
}
.flash-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.flash-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.contact-form-wrap {
    padding: var(--space-2xl);
}

.contact-form-wrap h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
}

.form-note {
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
    font-size: 0.95rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form button {
    width: 100%;
}

.contact-form .btn-submit {
    position: relative;
    min-height: 2.75rem;
}
.contact-form .btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.contact-form .btn-submit.is-loading .btn-text {
    visibility: hidden;
}
.contact-form .btn-submit.is-loading .btn-loading {
    display: flex;
    position: absolute;
    inset: 0;
}
.contact-form .btn-submit .btn-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-spin 0.7s linear infinite;
}
.contact-form .btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}
@keyframes contact-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 6rem;
    }

    /* Footer - compact on mobile */
    .site-footer {
        padding: var(--space-lg) var(--space-md) var(--space-lg);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    .footer-links {
        display: none;
    }
    .footer-hours h3,
    .footer-links h3,
    .footer-social h3 {
        font-size: 0.95rem;
        margin-bottom: var(--space-sm);
    }
    .footer-hours li {
        font-size: 0.8rem;
        padding: 2px 0;
    }
    .footer-links a,
    .footer-social a {
        font-size: 0.85rem;
    }
    .footer-links,
    .footer-social {
        gap: 2px;
    }
    .footer-fb-badge {
        max-width: 100px;
    }
    .copyright {
        font-size: 0.75rem;
        padding-top: var(--space-md);
        line-height: 1.4;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--space-3xl) var(--space-xl);
        gap: var(--space-md);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 200;
    }
    .main-nav.is-open {
        transform: translateX(0);
    }
    .main-nav a {
        font-size: 1.1rem;
    }

    .page-hero {
        padding: var(--space-2xl) var(--space-md);
    }
    .section {
        padding: var(--space-2xl) var(--space-md);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}
