/*
    Custom Styles for idee cookie (Original Premium Design)
    Typography: Mali (Cute Heading) & Prompt (Premium Body)
*/

:root {
    --dark-red: #8b1e1f; /* A rich, elegant cherry red */
    --gold: #d8aa53; /* Soft gold */
    --gold-hover: #c49642;
    --cream: #fbf9f4; /* Very soft cream background */
    --text-dark: #3a322c; /* Warm dark brown instead of harsh black */
    --text-muted: #6a625a;
}

html {
    scroll-padding-top: 77px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text-dark);
    background-color: var(--cream);
    padding-top: 77px; /* Compensate for fixed-top navbar */
}

/* Headings use Mali for a cute yet structured look */
h1, h2, h3, h4, h5, h6, .font-mali, .navbar-brand {
    font-family: 'Mali', cursive;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: var(--dark-red);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6a1617;
}

/* Custom Line Height for Thai Headings to prevent overlapping vowels */
.lh-thai {
    line-height: 1.65 !important;
}

/* Colors & Backgrounds */
.bg-cream { background-color: var(--cream) !important; }
.bg-white { background-color: #ffffff !important; }
.text-dark-red { color: var(--dark-red) !important; }
.text-gold { color: var(--gold) !important; }
.text-gold-dark { color: #9a7615 !important; } /* Darker gold for WCAG contrast on white */
.bg-dark-red { background-color: var(--dark-red) !important; }
.bg-gold { background-color: var(--gold) !important; }

/* Spacing Utilities for Perfect Balance */
.py-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.tracking-wide { letter-spacing: 1px; }
.transition-all { transition: all 0.3s ease; }

/* Navbar */
.custom-navbar {
    border-bottom: 1px solid rgba(0,0,0,0.03);
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(10px);
}

.brand-text {
    color: var(--dark-red);
    letter-spacing: -0.5px;
}

.brand-subtext {
    font-family: 'Prompt', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    position: relative;
    transition: color 0.3s;
    padding-bottom: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--dark-red) !important;
}

/* Dot active state indicator */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    border-radius: 50%;
    background-color: var(--gold);
    transition: width 0.3s ease, border-radius 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 6px;
}

/* Buttons */
.btn-dark-red {
    background-color: var(--dark-red);
    color: white;
    border: none;
}
.btn-dark-red:hover {
    background-color: #721819;
    color: white;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--text-dark);
    border: none;
}
.btn-gold:hover {
    background-color: var(--gold-hover);
    color: var(--text-dark);
}

.btn-hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-hover-scale:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Hero Section (Carousel) */
.hero-section {
    min-height: 85vh; /* Adjusted from fixed height to min-height */
}

/* Carousel Image Styling */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 12s linear; /* Smooth slow zoom (Ken Burns effect) */
    transform: scale(1);
}
.carousel-item.active .hero-bg-image {
    transform: scale(1.05); /* Zooms in slowly when active */
}

/* Darker overlay to make white text pop */
.hero-overlay {
    background: rgba(0, 0, 0, 0.55);
    z-index: 1; /* Sits above images, below content */
}

/* Text Shadows for Hero */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.text-shadow-lg {
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Scroll Down Bouncing Arrow */
.hover-opacity-100:hover { opacity: 1 !important; }
.bounce {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.badge-premium {
    background-color: rgba(216, 170, 83, 0.15);
    border: 1px solid rgba(216, 170, 83, 0.4);
}
.badge-premium-light {
    background-color: rgba(139, 30, 31, 0.08);
}

/* Carousel Controls (Subtle) */
.carousel-control-prev,
.carousel-control-next {
    z-index: 2; /* Ensure clickable above overlay */
    width: 10%;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
}
.fab-top {
    background-color: var(--dark-red);
}
.fab-line {
    background-color: #00B900;
}
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-scale:hover {
    transform: scale(1.15);
    color: white;
}

/* About Section */
.blob-shape {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* Modern Product Cards (Circular Images) */
.product-card-modern {
    transition: transform 0.4s ease;
}
.product-card-modern:hover {
    transform: translateY(-10px);
}
.product-card-modern img {
    transition: transform 0.5s ease;
}
.product-card-modern:hover img {
    transform: scale(1.08) rotate(3deg);
}

/* Gallery */
.gallery-wrapper {
    background: #fff;
}
.hover-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-zoom:hover {
    transform: scale(1.05);
}

/* Footer */
.custom-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}
.social-icon {
    width: 48px;
    height: 48px;
    text-decoration: none;
}
.hover-lift:hover {
    transform: translateY(-3px);
    background-color: var(--gold) !important;
    color: white !important;
}

/* Custom Accordion (FAQ) */
.custom-accordion .accordion-item {
    transition: all 0.3s ease;
}
.custom-accordion .accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important;
}
.custom-accordion .accordion-button {
    box-shadow: none !important;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #fbf9f4 !important; /* Cream color for the question bar */
}
.custom-accordion .accordion-button:focus {
    box-shadow: none;
}
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #BE1A1A !important; /* Red color for active question bar */
    color: white !important;
}
.custom-accordion .accordion-button:not(.collapsed) .text-gold {
    color: white !important;
}
/* Change Bootstrap Accordion Icon to +/- */
.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233a322c'%3e%3cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

/* Custom Text Indent for FAQ */
.custom-indent {
    text-indent: 2.5rem;
}
