/* ─── Brand Theme Custom Properties ───────────────────────────────────────── */
:root {
    --brand-cream: #FAF7F2;       /* Soft light ivory - primary bg */
    --brand-taupe: #D6C5B3;       /* Warm sandy taupe - secondary container bg */
    --brand-brown: #584C3F;       /* Warm earthy brown - active borders, selections */
    --brand-olive: #3C4336;       /* Sage/Olive green - artist bg */
    --brand-charcoal: #1C1C1C;    /* Elegant off-black - hero, footer, primary text */
    --brand-navy: #223346;        /* Deep midnight navy - inquiry bg */
    
    --brand-gold: #CFAD6B;        /* Primary branding gold */
    --brand-gold-accent: #A98446; /* Warm antique gold */
    --brand-oak-moss: #414433;    /* Oak Moss Green from reference image */
}

/* ─── Base & Font Rendering ───────────────────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
/* Extra breathing room after italic brand name */
#home p em,
#collections p em {
    margin-right: 0.3em;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: url('../images/Jashnkala_Cursor.svg') 2 2, auto !important;
}
/* Keep paintbrush on interactive elements and override Tailwind's cursor defaults */
a, button, select, input, textarea, label, [data-explore="true"], .cursor-pointer, .cursor-zoom-in, [role="button"],
a *, button *, select *, input *, textarea *, label *, [data-explore="true"] *, .cursor-pointer *, .cursor-zoom-in *, [role="button"] * {
    cursor: url('../images/Jashnkala_Cursor.svg') 2 2, pointer !important;
}
html {
    scroll-padding-top: 80px;
}

/* ─── Custom Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--brand-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold-accent);
}

/* ─── Text Selection ─────────────────────────────────────────────────────── */
::selection {
    background: var(--brand-brown);
    color: var(--brand-cream);
}

/* ─── Hero Grain Texture Overlay ─────────────────────────────────────────── */
#home::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    mix-blend-mode: overlay;
}

/* ─── Scroll Indicator Animation ─────────────────────────────────────────── */
.scroll-indicator-animation {
    animation: bounce 2.4s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.6; }
}

/* ─── Fade In Up Animations ──────────────────────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Active Nav Link ─────────────────────────────────────────────────────── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gold-accent);
    transition: width 0.3s ease;
}
.nav-link.active-section {
    color: var(--brand-gold-accent) !important;
}
.nav-link.active-section::after {
    width: 100%;
    border-color: transparent !important;
}

/* ─── Art Cards ──────────────────────────────────────────────────────────── */
.art-card-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.art-card-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.image-hover-zoom {
    overflow: hidden;
    position: relative;
}
.image-hover-zoom img {
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.image-hover-zoom:hover img {
    transform: scale(1.05);
}
/* Subtle gold shimmer on card image hover */
.image-hover-zoom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(230,193,130,0.06) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.image-hover-zoom:hover::before {
    opacity: 1;
}

/* ─── Carousel ───────────────────────────────────────────────────────────── */
.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar {
    display: none;
}
.carousel-item {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease;
    scroll-snap-align: center;
}
.carousel-wrapper {
    scroll-snap-type: x mandatory;
}

/* ─── Form Enhancements ──────────────────────────────────────────────────── */
/* Animated gold underline on focus */
input, textarea, select {
    position: relative;
}
input:focus, textarea:focus, select:focus {
    outline: none;
}
/* Focus glow effect on inputs */
input, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
input:focus, textarea:focus {
    box-shadow: 0 2px 0 0 #e6c182;
    border-color: #e6c182 !important;
}
select:focus {
    border-color: #e6c182 !important;
}

/* ─── Submit & WhatsApp Modal Buttons ─────────────────────────────────────── */
#form-submit-btn,
#modal-inquiry-btn {
    background: linear-gradient(135deg, #223346 0%, #162433 100%) !important;
    color: #CFAD6B !important;
    border: 1px solid rgba(207, 173, 107, 0.4) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(28, 43, 61, 0.15);
}

#form-submit-btn:hover,
#modal-inquiry-btn:hover {
    background: linear-gradient(135deg, #1b2a3a 0%, #0f1924 100%) !important;
    color: #FAF7F2 !important;
    border-color: #CFAD6B !important;
    box-shadow: 0 8px 20px rgba(207, 173, 107, 0.25) !important;
    transform: translateY(-2px);
    letter-spacing: 0.15em;
}

#form-submit-btn::before,
#modal-inquiry-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

#form-submit-btn:hover::before,
#modal-inquiry-btn:hover::before {
    left: 150%;
}

#form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── Form Result Message ────────────────────────────────────────────────── */
#form-result {
    padding: 12px 16px;
    border-left: 3px solid #e6c182;
    background: rgba(230,193,130,0.06);
    border-radius: 2px;
    transition: all 0.3s ease;
}
#form-result.hidden {
    display: none;
}

/* ─── Section Gold Divider Line ──────────────────────────────────────────── */
.gold-divider {
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, #e6c182, transparent);
    margin-bottom: 24px;
}

/* ─── Footer Icon Links Hover ────────────────────────────────────────────── */
footer a {
    transition: color 0.3s ease, transform 0.3s ease;
}
footer a:hover svg {
    transform: scale(1.2);
}

/* ─── Artist Image Frame Glow ────────────────────────────────────────────── */
#artist .aspect-\[3\/4\] {
    box-shadow: 0 0 0 1px rgba(230,193,130,0.15), 
                8px 8px 40px rgba(26,26,27,0.12);
    transition: box-shadow 0.6s ease;
}
#artist .group:hover .aspect-\[3\/4\] {
    box-shadow: 0 0 0 1px rgba(230,193,130,0.35), 
                12px 12px 60px rgba(26,26,27,0.18);
}

/* ─── Aside Links Row Hover ──────────────────────────────────────────────── */
.group:hover span.font-body-md {
    color: #755a25;
    transition: color 0.3s ease;
}

/* ─── Nav Header Blur Intensify on Scroll ────────────────────────────────── */
header.scrolled {
    background: rgba(250, 247, 242, 0.85) !important;
    border-color: rgba(88, 76, 63, 0.15) !important;
    box-shadow: 0 1px 20px rgba(28, 28, 28, 0.08);
}

/* ─── Inquiry Section Labels ─────────────────────────────────────────────── */
label {
    transition: color 0.3s ease;
}
input:focus ~ label,
textarea:focus ~ label {
    color: var(--brand-gold-accent);
}

/* ─── Smooth Hover on Nav Icons ──────────────────────────────────────────── */
header svg {
    transition: transform 0.3s ease, color 0.3s ease;
}
header a:hover svg {
    transform: scale(1.15);
}

/* ─── "Art of Slow Making" Banner Polish ─────────────────────────────────── */
#artist .relative.w-full {
    box-shadow: 0 20px 60px rgba(26,26,27,0.2);
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN — iPhone · Tablet · Laptop
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── iPhone (up to 640px) ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    /* Featured paintings: single column, consistent aspect */
    #featured-col-1 .art-card-reveal,
    #featured-col-2 .art-card-reveal {
        width: 100%;
    }
    #featured-col-2 {
        margin-top: 0 !important;
    }

    /* Carousel cards smaller on mobile */
    .carousel-item {
        width: 240px !important;
    }

    /* Form: full width button */
    #form-submit-btn {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }

    /* Contact aside on mobile: stack with breathing room */
    #inquiry aside {
        margin-top: 2.5rem;
        gap: 1.75rem !important;
    }

    /* Footer: center everything */
    footer .flex {
        align-items: center !important;
        text-align: center !important;
    }
    footer .mt-12 {
        margin-top: 1.5rem !important;
        text-align: center !important;
    }

    /* Scroll padding for anchors */
    html { scroll-padding-top: 70px; }

    /* Touch targets — minimum 44px height */
    .nav-link, button, a.group {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ─── Tablet (641px – 1023px) ────────────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 1023px) {
    /* Featured grid: 2 col, offset right col */
    #featured-col-2 {
        margin-top: 4rem;
    }

    /* Carousel cards */
    .carousel-item {
        width: 320px !important;
    }

    /* Contact aside: tablet spacing */
    #inquiry aside {
        gap: 2rem !important;
    }
}

/* ─── Laptop / Desktop (1024px+) ─────────────────────────────────────────── */
@media (min-width: 1024px) {
    /* Ensure featured grid right column offset */
    #featured-col-2 {
        margin-top: 6rem;
    }

    /* Carousel cards optimal width */
    .carousel-item {
        width: 420px !important;
    }

    /* Contact aside: good vertical rhythm */
    #inquiry aside {
        gap: 2.5rem !important;
    }
}

/* ─── Background Leaf Parallax Element ───────────────────────────────────── */
#bg-leaf {
    position: fixed;
    right: -80px;
    top: 15vh;
    width: 320px;
    height: 640px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.15s ease-out;
    transform: rotate(15deg);
    background-image: url('../images/bg_leaf.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
@media (max-width: 768px) {
    #bg-leaf {
        width: 180px;
        height: 360px;
        right: -40px;
        top: 25vh;
        opacity: 0.04;
    }
}

/* ─── Meet the Artist Background Wallpaper Parallax ──────────────────────── */
#artist-bg-parallax {
    position: absolute;
    right: -5%;
    top: -5%;
    width: 65%;
    height: 120%;
    background-image: url('../images/meet_the_artist_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    opacity: 0.22; /* Aesthetic subtle blend with cream theme */
    pointer-events: none;
    z-index: 0;
    transition: transform 0.1s ease-out;
}
@media (max-width: 768px) {
    #artist-bg-parallax {
        right: 0;
        top: -10%;
        width: 100%;
        height: 120%;
        opacity: 0.20; /* Increased opacity on mobile for visibility */
        background-position: center top;
        background-size: cover;
    }
}

/* ─── Complete Archive Background Wallpaper Parallax ────────────────────── */
#archive-bg-parallax {
    position: absolute;
    left: 0;
    top: -10%;
    width: 100%;
    height: 120%;
    background-image: url('../images/the_complete_archive_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: cover;
    opacity: 0.28; /* Subtly visible shadow and fabric folds */
    pointer-events: none;
    z-index: 0;
    transition: transform 0.1s ease-out;
}
@media (max-width: 768px) {
    #archive-bg-parallax {
        top: -10%;
        height: 120%;
        opacity: 0.22; /* Soft but visible on mobile */
    }
}

/* ─── Hamburger animation & active state ─────────────────────────────────── */
#mobile-menu-btn.active .hamburger-bar:nth-child(1) {
    transform: rotate(45deg);
}
#mobile-menu-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-btn.active .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg);
}

/* ─── Active mobile nav link styles ──────────────────────────────────────── */
.mobile-nav-link.active-section {
    color: var(--brand-gold-accent) !important;
    border-bottom-color: rgba(207, 173, 107, 0.4) !important;
}

/* ─── Footer Customization (Dark Olive Green per Brand Reference) ─────────── */
footer {
    background-color: #3C4232 !important; /* Rich dark olive green — matches brand reference */
    border-top: 1px solid rgba(207, 173, 107, 0.25) !important; /* Subtle gold separator */
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
}
