/* =========================
   NAVIGATION
========================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(
        90deg,
        rgba(158, 49, 65, 0.4) 0%,
        rgba(58, 10, 19, 0.85) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

nav.nav-scrolled {
    border-bottom: 1px solid rgba(250, 243, 236, 0.08);
}

nav.nav-hidden {
    transform: translateY(-120%);
}

.logo {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 18px;
    color: var(--text-light);
}

nav .logo img {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    transition: opacity 0.3s ease;
}

nav .logo:hover img {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    position: relative;
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-links a:hover {
    color: var(--maroon-rich);
    opacity: 1;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--maroon-rich);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.is-active {
    color: var(--maroon-main);
    font-weight: 700;
}

/* Hamburger (hidden above 960px) */
.nav-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    padding: 0;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Page Footer */
.page-footer {
    padding: 32px 6%;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(250, 243, 236, 0.92);
}

/* =========================
   PAGE HERO (shared)
========================= */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 160px 6% 130px;
    background: var(--maroon-darkest);
    text-align: center;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-top: 0;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(222, 8, 47, 0.36), rgba(119, 6, 24, 0.88)),
        url("a.jpg") center / cover;
    filter: contrast(1.04) brightness(0.82);
    transform: scale(1.04);
    z-index: -2;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(15, 15, 15, 0.08), rgba(20, 20, 20, 0.34));
    z-index: -1;
}

.page-hero-services::before {
    background:
        linear-gradient(180deg, rgba(222, 8, 47, 0.34), rgba(119, 6, 24, 0.86)),
        url("as.jpg") center / cover;
}

.page-hero-dark::before {
    background:
        linear-gradient(180deg, rgba(222, 8, 47, 0.34), rgba(119, 6, 24, 0.88)),
        url("a2.jpg") center / cover;
}

.page-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.05;
    margin: 0 auto 24px;
    max-width: 760px;
    color: var(--text-light);
    font-style: italic;
    text-shadow: 0 14px 42px rgba(235, 227, 228, 0.2);
}

.page-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-soft);
    opacity: 1;
    line-height: 1.9;
}

/* Dark variant */
.page-hero.page-hero-dark {
    color: var(--text-light);
}

.page-hero.page-hero-services {
    color: var(--text-light);
}

/* =========================
   SECTION HEADERS (shared)
========================= */
.section-head,
.studio-head,
.services-head {
    text-align: center;
    margin-bottom: 60px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--maroon-main);
    margin-bottom: 18px;
    font-weight: 700;
}

.section-title {
    font-size: clamp(32px, 3.2vw, 48px);
    font-weight: 400;
    color: var(--maroon-deep);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================
   GRID LAYOUTS (generic)
========================= */
.gallery-grid,
.services-grid,
.setup-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
}

.contact-layout,
.booking-layout {
    display: grid;
    gap: 28px;
}

.contact-layout {
    grid-template-columns: minmax(0, 1.3fr) 0.8fr;
    max-width: 1240px;
    margin: 0 auto;
}

.booking-layout {
    grid-template-columns: minmax(0, 1.6fr) 0.9fr;
    max-width: 1320px;
    margin: 0 auto;
    align-items: start;
}

/* Cards (shared appearance) */
.gallery-card,
.service-card,
.setup-card,
.sidebar-card,
.content-card,
.booking-form-card {
    background: var(--off-white);
    border-radius: 28px;
    border: 1px solid rgba(250, 243, 236, 0.78);
    box-shadow: 0 28px 90px rgba(74, 13, 23, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card:hover,
.service-card:hover,
.setup-card:hover,
.sidebar-card:hover,
.content-card:hover,
.booking-form-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 110px rgba(74, 13, 23, 0.12);
}

.gallery-card img,
.setup-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-card h3,
.service-card h3,
.setup-card h3 {
    font-size: 22px;
    margin: 0 24px 18px;
    color: var(--maroon-deep);
}

.gallery-card p,
.service-card p,
.setup-card p {
    margin: 0 24px 28px;
    color: var(--text-muted);
    line-height: 1.75;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: rgba(122, 28, 42, 0.08);
    border: 1px solid rgba(122, 28, 42, 0.12);
    border-radius: 999px;
    color: var(--maroon-deep);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================
   RESPONSIVE OVERRIDES
========================= */
@media (max-width: 1024px) {
    .booking-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero,
    .page-section,
    .booking-section {
        padding-left: 6%;
        padding-right: 6%;
    }
    .page-hero {
        min-height: 500px;
        padding-top: 130px;
        padding-bottom: 95px;
    }
    .gallery-grid,
    .services-grid,
    .setup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 80vw);
        height: 100vh;
        padding: 120px 28px 40px;
        background: rgba(250, 243, 236, 0.98);
        backdrop-filter: blur(18px);
        box-shadow: -12px 0 40px rgba(74, 13, 23, 0.12);
        border-left: 1px solid rgba(84, 21, 32, 0.12);
        transform: translateX(110%);
        transition: transform 0.35s ease;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 26px;
        z-index: 1001;
    }

    nav.nav-open .nav-links {
        transform: translateX(0);
    }

    .nav-links a {
        margin: 0;
        width: 100%;
        font-size: 14px;
        letter-spacing: 2px;
        padding: 14px 0;
    }

    body.nav-open {
        overflow: hidden;
    }
}
