/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    /* Brand Colors matching PUCHKAS F&B CO. Logo */
    --color-primary: #143318; /* Deep Forest Green from Logo */
    --color-primary-container: #1c4522;
    --color-on-primary-container: #f5dfb8;
    --color-secondary: #2f6029; /* Leaf Green */
    --color-secondary-container: #f7e8c6;
    --color-on-secondary-container: #143318;
    
    --color-gold: #c5892b; /* Warm Puchka Golden Amber */
    --color-gold-light: #e4a743;
    --color-gold-dim: #99671d;
    
    --color-background: #fbf9f4; /* Warm Organic Cream Base */
    --color-on-background: #191c1b;
    
    --color-surface: #fbf9f4;
    --color-surface-dim: #eae5d9;
    --color-surface-bright: #fffdfa;
    --color-surface-container-lowest: #ffffff;
    --color-surface-container-low: #f6f2e8;
    --color-surface-container: #eee8dc;
    --color-surface-container-high: #e6dfcf;
    --color-surface-container-highest: #ded6c3;
    
    --color-on-surface: #191c1b;
    --color-on-surface-variant: #454a43;
    --color-outline: #787e74;
    --color-outline-variant: #d5cebd;
    
    --color-saffron: #c5892b; /* Logo Amber */
    --color-saffron-light: #e4a743;
    --color-tamarind: #ba1a1a;
    
    --font-cursive: 'Great Vibes', cursive;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
}

.font-cursive {
    font-family: var(--font-cursive);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-surface-container-low);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-on-surface);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
}

/* Ambient Grain Overlay from Stitch Frame */
.ambient-grain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glassmorphism Classes matching Warm Organic Pani-Blur */
.glass-nav {
    background: rgba(253, 251, 247, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 137, 43, 0.2);
    box-shadow: 0 8px 30px rgba(20, 51, 24, 0.06);
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 137, 43, 0.18);
    box-shadow: 0 8px 28px 0 rgba(20, 51, 24, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px 0 rgba(197, 137, 43, 0.16);
    border-color: rgba(197, 137, 43, 0.45);
}

.text-gradient-amber {
    background: linear-gradient(135deg, #fcedd0 0%, #e4a743 45%, #c5892b 80%, #a66a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e4a743;
    display: inline-block;
}

/* Organic Mask styling for images from Stitch Frame */
.organic-mask {
    mask-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M48.5,5.5 C68.5,5.5 86.5,21.5 93.5,41.5 C100.5,61.5 96.5,84.5 80.5,95.5 C64.5,106.5 35.5,105.5 19.5,89.5 C3.5,73.5 -5.5,44.5 4.5,25.5 C14.5,6.5 28.5,5.5 48.5,5.5 Z"/></svg>');
    mask-size: cover;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M48.5,5.5 C68.5,5.5 86.5,21.5 93.5,41.5 C100.5,61.5 96.5,84.5 80.5,95.5 C64.5,106.5 35.5,105.5 19.5,89.5 C3.5,73.5 -5.5,44.5 4.5,25.5 C14.5,6.5 28.5,5.5 48.5,5.5 Z"/></svg>');
    -webkit-mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

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

.float-anim {
    animation: float 5s ease-in-out infinite;
}

/* Keyframes for Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Viewer Hotspot positioning styles */
.hotspot-label {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 53, 39, 0.15);
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.12);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translate(-50%, -100%) scale(0.9);
    white-space: nowrap;
    z-index: 30;
}

.hotspot-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.hotspot-active {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
}

/* Active buttons in Custom Builder */
.builder-option {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(0, 53, 39, 0.08);
    background-color: var(--color-surface-container-low);
}

.builder-option:hover {
    border-color: rgba(0, 53, 39, 0.3);
    background-color: var(--color-surface-container);
}

.builder-option.active {
    border-color: var(--color-primary);
    background: rgba(6, 78, 59, 0.05);
    box-shadow: 0 0 15px rgba(6, 78, 59, 0.15);
}

/* Custom indicator animations for custom builder */
@keyframes drip {
    0% {
        transform: scale(0.8) translateY(-10px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.2) translateY(20px);
        opacity: 0;
    }
}

.drip-animate {
    animation: drip 1.5s infinite ease-in;
}

/* Customized Alert / Modal styling */
.modal-active {
    overflow: hidden;
}

.success-modal-backdrop {
    background: rgba(0, 53, 39, 0.4);
    backdrop-filter: blur(8px);
}

/* ====================================================
   Floating Action Button (Call)
   ==================================================== */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.call-float-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(20, 51, 24, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.call-float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 51, 24, 0.5);
    color: #ffffff;
}

/* Tooltip badge on hover */
.floating-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: rgba(0, 53, 39, 0.95);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.call-float-btn:hover .floating-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Brand badge styling matching logo */
.brand-badge {
    box-shadow: 0 10px 35px rgba(197, 137, 43, 0.28);
    border: 2px solid rgba(197, 137, 43, 0.65);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.brand-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 45px rgba(197, 137, 43, 0.4);
    border-color: rgba(197, 137, 43, 0.9);
}
