/* ============================================
   JLSublime - Custom Styles
   Bootstrap 5 + Custom Design System
   ============================================ */

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    /* Colors */
    --color-primary: #722F37;
    --color-primary-dark: #4A1F24;
    --color-primary-light: #8B4049;
    --color-gold: #C9A227;
    --color-gold-light: #D4B84A;
    --color-cream: #FAF7F2;
    --color-cream-dark: #F5F0E8;
    
    /* Text Colors */
    --text-dark: #2D2926;
    --text-muted: #6B6560;
    --text-light: rgba(255, 255, 255, 0.8);
    
    /* Backgrounds */
    --bg-light: #FAF7F2;
    --bg-section: #F5F0E8;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px -4px rgba(45, 41, 38, 0.08);
    --shadow-elegant: 0 10px 40px -10px rgba(114, 47, 55, 0.15);
    --shadow-gold: 0 8px 30px -8px rgba(201, 162, 39, 0.3);
    
    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

/* ============================================
   Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-primary {
    color: var(--color-primary) !important;
}

.text-gold {
    color: var(--color-gold) !important;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.hover-gold:hover {
    color: var(--color-gold) !important;
}

/* ============================================
   Navigation
   ============================================ */
.navbar-custom {
    background: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
}

.brand-icon {
    font-size: 1.75rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.1);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.navbar-custom .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--color-primary);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: var(--shadow-elegant);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    color: var(--text-dark);
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url('../images/hero-basket.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(74 31 66 / 95%) 0%, rgba(114, 47, 55, 0.85) 50%, rgba(74, 31, 36, 0.75) 100%);
    z-index: 1;
}

.hero-decorative-1,
.hero-decorative-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
    pointer-events: none;
}

.hero-decorative-1 {
    top: 20%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: rgba(201, 162, 39, 0.15);
    animation: float 6s ease-in-out infinite;
}

.hero-decorative-2 {
    bottom: 20%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: rgba(114, 47, 55, 0.15);
    animation: float 6s ease-in-out infinite 1s;
}

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

.z-3 {
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 540px;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ============================================
   Section Styles
   ============================================ */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}

/* ============================================
   Baskets Section
   ============================================ */
.baskets-section {
    background-color: var(--bg-section);
}

.basket-card {
    position: relative;
    background: linear-gradient(180deg, white 0%, var(--cream) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.basket-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elegant);
}

.basket-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--text-dark);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-gold);
}

.basket-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.basket-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.basket-content {
    padding: 1.5rem;
}

.basket-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.basket-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.basket-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.basket-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

.about-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, var(--bg-section), transparent);
    pointer-events: none;
}

.about-stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
}

.about-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elegant);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(114, 47, 55, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
}

.contact-decorative-1,
.contact-decorative-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.contact-decorative-1 {
    top: 30%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(201, 162, 39, 0.15);
}

.contact-decorative-2 {
    bottom: 20%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
}

.z-1 {
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
    background: var(--color-gold);
}

.contact-item:hover .contact-icon i {
    color: var(--text-dark);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: white;
    transition: var(--transition-smooth);
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-value {
    display: block;
    font-weight: 500;
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-link:hover {
    background: var(--color-gold);
}

.social-link i {
    font-size: 1.25rem;
    color: white;
    transition: var(--transition-smooth);
}

.social-link:hover i {
    color: var(--text-dark);
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-elegant);
}

@media (min-width: 768px) {
    .contact-form-card {
        padding: 2.5rem;
    }
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.form-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control {
    background: var(--bg-section);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    background: white;
    border-color: var(--color-primary);
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================
   Footer Section
   ============================================ */
.footer-section {
    background-color: var(--color-primary-dark);
}

.footer-brand .brand-text {
    font-size: 1.25rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
    }
    
    .navbar-custom .nav-link::after {
        display: none;
    }
    
    .navbar-custom .btn-gold {
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   Animation Classes
   ============================================ */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 100px;
}
