/* ===================================================
   Studio Salon — Main Stylesheet
   =================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #f7f5f2;
    --color-dark: #1a1a1a;
    --color-sidebar: #3d3d3d;
    --color-accent: #b08968;
    --color-light: #ffffff;
    --color-muted: #8a8580;
    --color-cream: #efe9e1;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
    --font-heading: 'Cinzel', serif;
    --font-script: 'Great Vibes', cursive;

    --sidebar-width: 280px;
    --header-height: 80px;
    --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-dark);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
    background: transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.btn:hover {
    background: var(--color-dark);
    color: var(--color-light);
}

.btn-light {
    border-color: var(--color-light);
    color: var(--color-light);
}

.btn-light:hover {
    background: var(--color-light);
    color: var(--color-dark);
}

/* ---------- Section Label ---------- */
.section-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* ===================================================
   SIDEBAR (desktop)
   =================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-sidebar);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 3rem 2.5rem;
}

.sidebar-logo {
    display: block;
    padding: 0;
}

.sidebar-logo img {
    width: 90%;
    height: auto;
    filter: brightness(0) invert(1);
}

.sidebar-logo span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: lowercase;
    color: var(--color-accent);
    margin-top: 0.2rem;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-nav a {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-light);
    padding: 0.5rem 0;
    opacity: 0.75;
    transition: opacity var(--transition), color var(--transition);
}

.sidebar-nav a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.sidebar-social {
    display: flex;
    gap: 1rem;
}

.sidebar-social a {
    color: var(--color-light);
    opacity: 0.6;
    transition: opacity var(--transition);
}

.sidebar-social a:hover {
    opacity: 1;
}

/* Push all page content to the right of the sidebar */
.hero,
.intro,
.services,
.about,
.reviews,
.team,
.blog,
.cta,
.newsletter,
.site-footer {
    margin-left: var(--sidebar-width);
}

/* ===================================================
   MOBILE HEADER (hidden on desktop)
   =================================================== */
.mobile-header {
    display: none;
}

.mobile-nav {
    display: none;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-dark);
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

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

/* ===================================================
   HERO
   =================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--color-light);
    padding: 0 1rem;
}

.hero-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.3s forwards;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.4;
    width: 75%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.6s forwards;
}

.hero-logo {
    display: inline;
    height: 2.2em;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    margin-right: 0.05em;
}

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

/* ===================================================
   INTRO
   =================================================== */
.intro {
    padding: 8rem 0 4rem;
    text-align: center;
}

.intro-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.intro-sub {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--color-muted);
}

/* ===================================================
   SERVICES
   =================================================== */
.services {
    padding: 4rem 0 8rem;
}

.services .section-label {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    display: block;
    text-align: center;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin-bottom: 1.2rem;
}

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

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

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
}

/* ===================================================
   ABOUT
   =================================================== */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}

.about-image {
    overflow: hidden;
}

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

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6%;
    background: var(--color-cream);
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* ===================================================
   REVIEWS
   =================================================== */
.reviews {
    padding: 8rem 0;
    text-align: center;
    background: var(--color-dark);
    color: var(--color-light);
}

.reviews .section-label {
    color: var(--color-accent);
}

.reviews-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
}

.review-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.review-slide.active {
    position: relative;
    opacity: 1;
}

.review-slide blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.review-slide cite {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-style: normal;
    color: var(--color-accent);
}

.review-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid var(--color-accent);
}

.review-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--color-light);
    background: transparent;
    cursor: pointer;
    transition: background var(--transition);
}

.dot.active {
    background: var(--color-light);
}

/* ===================================================
   TEAM
   =================================================== */
.team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}

.team-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--color-cream);
}

.team-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 2rem;
}

.team-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.team-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===================================================
   BLOG
   =================================================== */
.blog {
    padding: 8rem 0;
}

.blog .section-label {
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    display: block;
    transition: transform var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-img {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 1rem;
}

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

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

.blog-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
}

/* ===================================================
   CTA
   =================================================== */
.cta {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.cta-content {
    position: relative;
    text-align: center;
    color: var(--color-light);
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
}

/* ===================================================
   NEWSLETTER
   =================================================== */
.newsletter {
    padding: 6rem 0;
    text-align: center;
    background: var(--color-cream);
}

.newsletter h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 0.9rem;
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    border: 1px solid var(--color-dark);
    background: transparent;
    outline: none;
    border-right: none;
}

.newsletter-form input::placeholder {
    color: var(--color-muted);
}

.newsletter-form .btn {
    border-left: none;
    white-space: nowrap;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
    padding: 6rem 0 3rem;
    background: var(--color-dark);
    color: var(--color-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-grid .section-label {
    color: var(--color-accent);
}

.footer-grid p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-grid a:hover {
    color: var(--color-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-light);
}

/* ===================================================
   WOW.js + Animate.css overrides
   =================================================== */
.wow {
    visibility: hidden;
}

.wow.animate__animated {
    visibility: visible;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    /* Hide desktop sidebar */
    .sidebar {
        display: none;
    }

    /* Show mobile header */
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: var(--header-height);
        align-items: center;
        justify-content: space-between;
        padding: 0 1.5rem;
        background: var(--color-sidebar);
    }

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

    .mobile-logo img {
        height: 50px;
        width: auto;
        filter: brightness(0) invert(1);
    }

    .header-cta {
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        padding: 8px 16px;
        border: 1px solid var(--color-light);
        color: var(--color-light);
        transition: background var(--transition), color var(--transition);
    }

    .header-cta:hover {
        background: var(--color-light);
        color: var(--color-dark);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle span {
        background: var(--color-light);
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        inset: 0;
        background: var(--color-bg);
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), visibility var(--transition);
        z-index: 1050;
    }

    .mobile-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav ul {
        text-align: center;
    }

    .mobile-nav a {
        display: block;
        font-family: var(--font-serif);
        font-size: 2rem;
        padding: 0.6rem 0;
        color: var(--color-dark);
    }

    /* Remove sidebar margin on all sections */
    .hero,
    .intro,
    .services,
    .about,
    .reviews,
    .team,
    .blog,
    .cta,
    .newsletter,
    .site-footer {
        margin-left: 0;
    }

    .hero {
        margin-top: var(--header-height);
    }

    /* Full-screen sections on mobile */
    .hero,
    .intro,
    .services,
    .about,
    .reviews,
    .team,
    .cta {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .intro {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .services {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .reviews {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .about-image {
        overflow: hidden;
    }

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

    .about-content {
        padding: 3rem 6%;
    }

    .team {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .team-content {
        padding: 3rem 2rem;
    }

    .team-image {
        order: -1;
        overflow: hidden;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-right: 1px solid var(--color-dark);
        border-bottom: none;
    }

    .newsletter-form .btn {
        border-left: 1px solid var(--color-dark);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}