/* ========================================
   B Pure Juices — Custom Styles
   ======================================== */

/* ---- Base / Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #3a151d;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

p, span, a, li, input, textarea, select, button {
    font-family: 'Outfit', Arial, sans-serif;
}

/* ---- Navigation ---- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 249, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-btn-nav {
    background: #7B2D3B;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn-nav:hover {
    background: #642430;
    transform: translateY(-1px);
    color: #fff;
}

/* Mobile menu */
.mobile-link {
    font-family: 'Playfair Display', serif;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero-badge {
    animation: fadeInDown 0.8s ease both;
}

#hero h1 {
    animation: fadeInUp 0.8s ease 0.2s both;
}

#hero p {
    animation: fadeInUp 0.8s ease 0.4s both;
}

#hero .flex-col {
    animation: fadeInUp 0.8s ease 0.5s both;
}

#hero .grid {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ---- Geometric Shapes ---- */
.geo-circle {
    will-change: transform;
}

.geo-diamond {
    will-change: transform;
}

.geo-triangle {
    will-change: transform;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-2deg); }
}

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

.geo-1 { animation: float-slow 8s ease-in-out infinite; }
.geo-2 { animation: float-medium 10s ease-in-out infinite; }
.geo-3 { animation: float-fast 6s ease-in-out infinite; }
.geo-4 { animation: float-medium 7s ease-in-out infinite; }
.geo-5 { animation: float-fast 5s ease-in-out infinite; }
.geo-6 { animation: float-slow 9s ease-in-out infinite; }

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #7B2D3B;
    color: #fff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #642430;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(123, 45, 59, 0.3);
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: #fff;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #7B2D3B;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    background: #FFF0F2;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: #7B2D3B;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.btn-cta-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: #fff;
}

/* ---- Product Cards ---- */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(123, 45, 59, 0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
}

/* ---- Input Fields ---- */
.input-field {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid rgba(123, 45, 59, 0.15);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #3a151d;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.input-field::placeholder {
    color: rgba(58, 21, 29, 0.35);
}

.input-field:focus {
    border-color: #7B2D3B;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .geo-circle, .geo-diamond, .geo-triangle {
        animation: none;
    }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ---- Responsive ---- */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .product-card {
        border-radius: 16px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 4rem;
    }
}

/* ---- Focus visible for accessibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF9F5;
}

::-webkit-scrollbar-thumb {
    background: rgba(123, 45, 59, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 45, 59, 0.4);
}
