/* ======================================
   CUSTOM STYLES FOR DIVYORA CREATIONS
   ====================================== */

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #7a2626;
    --primary-indigo: #8c5b5b;
    --secondary-orange: #ead8d8;
    --secondary-gold: #fcf8f8;
    --light-gray: #f7f0f0;
    --dark-gray: #6d1d1d;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Fallback utility used by JS toggles */
.hidden {
    display: none !important;
}

/* ========== COMPACT NAVBAR ========== */
.site-header {
    min-height: 66px;
}

.site-nav {
    min-height: 66px;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.site-brand {
    text-decoration: none;
}

.site-brand-logo {
    width: 44px;
    height: 44px;
}

.site-brand-copy {
    display: none;
}

.site-brand-subtext {
    font-size: 0.56rem;
    letter-spacing: 0.28em !important;
}

.brand-name {
    font-weight: 700 !important;
}

.site-nav-links,
.site-nav-social {
    display: none;
}

.site-nav-link {
    font-size: 0.88rem;
}

.site-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid #ead8d8;
    border-radius: 0.45rem;
}

@media (min-width: 640px) {
    .site-brand-copy {
        display: block !important;
    }
    
    .site-brand-logo {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 768px) {
    .site-nav {
        gap: 2rem !important;
    }
}

@media (min-width: 1024px) {
    .site-nav-links {
        display: flex !important;
    }

    .site-mobile-btn {
        display: none !important;
    }

    #mobile-menu {
        display: none !important;
    }
    
    .site-nav {
        gap: 3rem !important;
    }
}

@media (min-width: 1280px) {
    .site-nav-social {
        display: flex !important;
    }
    
    .site-nav {
        gap: 4rem !important;
    }
}

.brand-heading,
.brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.header-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid #ead8d8;
    color: #111111;
    background: #ffffff;
    font-size: 0.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-icon-link:hover {
    color: #7a2626;
    border-color: #c08a8a;
    box-shadow: 0 8px 18px rgba(109, 29, 29, 0.12);
    transform: translateY(-1px);
}

.maroon-button,
.service-card-top {
    background: linear-gradient(135deg, #7a2626 0%, #9a4747 100%);
}

.maroon-outline-button {
    color: #6d1d1d;
    border: 1px solid #c08a8a;
    background: #fff;
}

.maroon-outline-button:hover {
    color: #6d1d1d;
    border-color: #8c5b5b;
    box-shadow: 0 18px 30px -20px rgba(109, 29, 29, 0.45);
}

/* ========== NAVIGATION LINKS ========== */
.nav-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ========== HERO SECTION ========== */
.hero-gradient {
    background: linear-gradient(135deg, #fcf8f8 0%, #ffffff 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    opacity: 0;
    transition: opacity 750ms ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 9999px;
    background: rgba(109, 29, 29, 0.24);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    background: #6d1d1d;
    transform: scale(1.2);
}

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: 0 20px 28px -10px rgba(109, 29, 29, 0.2);
}

.service-card img {
    transition: transform 0.5s ease;
}

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

/* ========== BUTTONS ========== */
button, a.btn {
    position: relative;
    overflow: hidden;
}

button::before, a.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, a.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ========== SCROLL ANIMATION ========== */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

/* ========== REVEAL ON SCROLL (PRO) ========== */
/* Progressive enhancement: only animate when JS is enabled (.js on <html>). */
.reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
}

.js .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(2px);
    transition: opacity 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform, filter;
}

.js .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ABOUT SECTION ========== */
.owner-image {
    box-shadow: 0 0 0 8px rgba(122, 38, 38, 0.18);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(122, 38, 38, 0.18), 0 0 0 12px rgba(122, 38, 38, 0.08);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(122, 38, 38, 0.12), 0 0 0 16px rgba(122, 38, 38, 0);
    }
}

/* ========== WORK / GALLERY CARDS (SAME SIZE) ========== */
.work-card {
    height: 20rem;
    background: linear-gradient(135deg, rgba(122, 38, 38, 0.04), rgba(255, 255, 255, 0.92));
    border: 1px solid #ead8d8;
    box-shadow: 0 12px 30px -22px rgba(109, 29, 29, 0.35);
}

.work-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.work-card img {
    transition: transform 500ms ease;
}

.work-card:hover img {
    transform: scale(1.04);
}

/* Keep the final mug row centered (e.g., when 2 cards remain). */
@media (min-width: 1024px) {
    .mug-gallery-grid {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .mug-gallery-grid > .work-card {
        width: 31%;
        min-width: 260px;
    }
}

/* ========== ENHANCED GALLERY SECTION ========== */
#gallery {
    scroll-behavior: smooth;
}

#gallery .reveal-on-scroll {
    transform: translateY(20px);
    opacity: 0;
}

#gallery .reveal-on-scroll.is-visible {
    animation: slideUp 0.7s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Gallery group hover effects */
#gallery .group {
    cursor: pointer;
}

/* Improved gallery card styling */
#gallery .relative {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

#gallery .group:hover .relative {
    box-shadow: 0 15px 50px rgba(122, 38, 38, 0.2);
}

/* Image zoom effect on hover */
#gallery .group img {
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category badge styling */
#gallery .inline-block.bg-\[\#7a2626\] {
    animation: fadeIn 0.4s ease-out 0.1s forwards;
    opacity: 0;
}

#gallery .group:hover .inline-block.bg-\[\#7a2626\] {
    opacity: 1;
}

/* CTA Button enhanced */
#gallery a[href*="whatsapp"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#gallery a[href*="whatsapp"]:hover {
    box-shadow: 0 20px 40px rgba(122, 38, 38, 0.3);
}

/* ========== FOOTER STYLES ========== */
footer {
    background: linear-gradient(135deg, #4a1010 0%, #2b0909 100%);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-orange);
    transform: translateX(4px);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem !important;
    }
    
    h2 {
        font-size: 1.875rem !important;
    }
    
    .service-card {
        transform: none !important;
    }
    
    .service-card:hover {
        transform: translateY(-8px) !important;
    }
}

/* ========== LOADING ANIMATIONS ========== */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== HIGHLIGHTS SECTION ========== */
.highlight-box {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.highlight-box:hover {
    border-left-color: var(--secondary-orange);
    transform: translateX(8px);
}

/* ========== ICON ANIMATIONS ========== */
.icon-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== SMOOTH TRANSITIONS ========== */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-indigo);
}

/* ========== FORM ELEMENTS ========== */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #c08a8a;
    box-shadow: 0 0 0 3px rgba(122, 38, 38, 0.12);
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        filter: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    header, footer {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}
