/* --- 1. ROOT VARIABLES & GLOBAL RESET --- */
:root {
    --gold: #D4AF37;
    --charcoal: #36454F;
    --ivory: #FFFFF0;
    --white: #ffffff;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--charcoal);
    padding-top: 60px; /* Mobile navbar height */
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
    font-weight: 700;
}

/* --- 2. NAVIGATION & NAVBAR --- */
.navbar {
    background-color: var(--charcoal) !important;
    padding: 0.75rem 0;
    transition: var(--transition-smooth);
}

.navbar-brand span {
    font-size: 1.1rem;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--gold) !important;
}

/* Responsive Navbar Scaling */
@media (min-width: 768px) {
    .navbar-brand span { font-size: 1.3rem; }
    .nav-link { font-size: 0.8rem; }
}

@media (min-width: 992px) {
    body { padding-top: 85px; }
    .navbar { padding: 1rem 0; }
    .navbar-brand span { font-size: 1.5rem; }
    .nav-link { font-size: 0.85rem; }
}

/* --- 3. HERO SECTIONS --- */
.hero-v2, .about-hero, .contact-hero, .gallery-hero, .service-hero, .book-hero, .cookie-hero, .shipping-hero, .terms-hero, .privacy-hero, .measure-hero {
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-v2, .about-hero, .contact-hero, .gallery-hero, .service-hero, .book-hero, .measure-hero {
    min-height: 80vh;
}

.cookie-hero, .shipping-hero, .terms-hero, .privacy-hero {
    min-height: 45vh;
}

.hero-tagline {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-btns {
    margin-bottom: 30px;
}

.heritage-badge-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

@media (min-width: 768px) {
    .hero-tagline { font-size: 0.85rem; letter-spacing: 3px; }
    .hero-btns { margin-bottom: 0; }
}

/* --- 4. SEA TIDE TRANSITIONS (WAVES) --- */
.sea-tide-container {
    width: 100%;
    height: 40px;
    overflow: hidden;
}

.tide-waves {
    width: 100%;
    height: 40px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* --- 5. CARDS & GRID COMPONENTS --- */
.service-card, .portfolio-card {
    transition: var(--transition-smooth);
    border: none !important;
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
}

.service-img-container {
    height: 300px;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) { .service-img-container { height: 350px; } }
@media (min-width: 1200px) { .service-img-container { height: 400px; } }

.service-img-container img, .hover-zoom {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.service-card:hover, .portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

@media (min-width: 992px) {
    .service-card:hover, .portfolio-card:hover { transform: translateY(-10px); }
    .service-card:hover .service-img-container img, 
    .portfolio-card:hover .hover-zoom { transform: scale(1.08); }
}

/* --- 6. ABOUT PAGE: STUDIO GRID --- */
.main-img-fixed {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

.studio-item-stack {
    height: 250px;
    overflow: hidden;
    border-radius: 1rem;
}

@media (min-width: 992px) {
    .main-img-fixed { height: 750px; }
    .studio-item-stack { height: calc((750px - 32px) / 3); }
}

.stack-img-fixed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.studio-item-stack:hover .stack-img-fixed { transform: scale(1.1); }

.founder-frame { 
    transition: transform 0.4s ease; 
    border: 6px solid var(--gold); 
}

@media (min-width: 768px) { .founder-frame { border-width: 8px; } }

/* --- 7. APPOINTMENT PAGE: PROCESS STEPS --- */
.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--ivory);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

@media (min-width: 768px) { .step-number { width: 60px; height: 60px; line-height: 60px; font-size: 1.5rem; } }

/* --- 8. WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: var(--white) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    text-decoration: none !important;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (min-width: 768px) {
    .whatsapp-float { width: 60px; height: 60px; bottom: 30px; right: 30px; font-size: 30px; }
}

/* --- 9. LEGAL & POLICY PAGES --- */
.legal-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

.legal-container section { margin-bottom: 30px; }

.legal-container h2 {
    color: var(--charcoal);
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--ivory);
    padding-bottom: 10px;
}

.cookie-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th, .cookie-table td {
    padding: 12px;
    min-width: 120px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* --- 10. DYNAMIC HERO BACKGROUNDS --- */

/* Desktop (Landscape) */
@media (min-width: 992px) {
    .hero-v2, .about-hero, .contact-hero, .gallery-hero, .book-hero, .service-hero, .measure-hero, .cookie-hero, .shipping-hero, .terms-hero, .privacy-hero {
        background-attachment: fixed !important;
    }
    .hero-v2 { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('/assets/images/hero-bg.avif'); }
    .about-hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('/assets/about-bg.avif'); }
    .contact-hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assets/images/contact-bg.avif'); }
    .service-hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assets/images/service-bg.avif'); }    
    .gallery-hero { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/portfolio-bg-web.avif'); }
    .book-hero { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/book-bg.avif'); }    
    .measure-hero { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/measure-bg.avif'); }    
    .cookie-hero, .shipping-hero, .terms-hero, .privacy-hero { 
        background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assets/images/legal-bg.avif') !important; 
    }
}

/* Mobile (Portrait) */
@media (max-width: 991px) {
    .hero-v2 { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('/assets/images/hero-mobile.avif') !important; }
    .about-hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('/assets/images/about-mobile.avif') !important; }
    .contact-hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assets/images/contact-mobile.avif') !important; }
    .service-hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('/assets/images/mobile-service.avif') !important; }    
    .book-hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('/assets/images/mobile-book.avif') !important; } 
    .gallery-hero { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/portfolio-mobile.avif') !important; }
    .measure-hero { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/measure-mobile.avif') !important; }
    .cookie-hero, .shipping-hero, .terms-hero, .privacy-hero { 
        background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/assets/images/legal-mobile.avif') !important; 
    }
}

/* --- 11. GALLERY & LIGHTBOX --- */
.showcase-hover {
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.showcase-hover img {
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.showcase-hover:hover img {
    transform: scale(1.3) translateY(-10px);
    filter: saturate(1.1) contrast(1.1);
}

@media (max-width: 991px) {
    .showcase-hover:hover img { transform: none !important; }
    .showcase-hover::after {
        content: '\f00e'; 
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        bottom: 15px; right: 15px;
        background: rgba(212, 175, 55, 0.8);
        color: #000;
        width: 30px; height: 30px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 0.8rem; z-index: 2;
    }
}

.k2-lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.k2-lightbox-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; width: 100%;
}

.k2-lightbox-img {
    max-width: 90%; max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.2);
    object-fit: contain;
}

@media (max-width: 767px) {
    .k2-lightbox-img { max-width: 95vw !important; max-height: 70vh !important; }
}

/* --- 12. UTILITIES & STATUS --- */
.ls-wide { letter-spacing: 2px; font-size: 0.75rem; }
@media (min-width: 768px) { .ls-wide { letter-spacing: 3px; font-size: 0.85rem; } }

#studioStatus {
    background: rgba(0, 0, 0, 0.8) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

#statusText.text-success { color: #28a745 !important; }
#statusText.text-muted { color: #adb5bd !important; }

.trust-col { border-right: none; }
@media (min-width: 768px) { .trust-col { border-right: 1px solid rgba(212, 175, 55, 0.2); } }
@media (max-width: 767px) { .trust-col:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.1); } }

/* Custom Dropdown Styling */
.dropdown-menu {
    background-color: var(--charcoal) !important;
    border-radius: 12px !important;
    margin-top: 10px !important;
}

.dropdown-item {
    color: var(--white) !important;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.1) !important;
    color: var(--gold) !important;
    padding-left: 1.5rem !important; /* Gentle slide effect on hover */
}

/* Ensure dropdowns open on hover for Desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}    