/* ==================================
   VARS & DESIGN SYSTEM
================================== */
:root {
    --primary-color: #A01509; /* Deep Saffron Red */
    --primary-hover: #7b0e05;
    --secondary-color: #D4AF37; /* Saffron Gold */
    --secondary-hover: #b89626;
    --dark-bg: #111111;
    --light-bg: #F8F5F2; /* Off white/cream */
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #F9F9F9;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

/* ==================================
   RESET & BASE STYLES
================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold { color: var(--secondary-color); }
.text-primary { color: var(--primary-color); }
.text-white { color: var(--text-light); }
.text-center { text-align: center; }

/* ==================================
   BUTTONS
================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(160, 21, 9, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ==================================
   NAVBAR
================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
    letter-spacing: 2px;
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

.navbar.scrolled .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.navbar.scrolled .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background-color: var(--primary-color);
}

/* ==================================
   HERO SECTION
================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05); /* initial scale for subtle animation */
    animation: slowZoom 20s infinite alternate;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    max-width: 800px;
    padding-top: 80px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* ==================================
   ORIGIN SECTION
================================== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.origin-section .section-title {
    text-align: left;
}

.origin-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.origin-text {
    flex: 1;
}

.origin-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
}

.origin-visual {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
}

.rounded-image {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    max-height: 500px;
}

.shadow-premium {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary-color);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--light-bg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.experience-badge .number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================================
   QUALITIES SECTION
================================== */
.dark-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.dark-section .section-title {
    color: var(--text-light);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.card {
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 50px 30px 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    z-index: 1;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17,17,17, 0.95) 0%, rgba(17,17,17, 0.2) 100%);
    z-index: -1;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.card:hover::before {
    background: linear-gradient(to bottom, rgba(17,17,17, 0.85) 0%, rgba(17,17,17, 0.1) 100%);
}

.card-color {
    background: url('images/card_color.png') center/cover no-repeat;
}

.card-aroma {
    background: url('images/card_aroma.png') center/cover no-repeat;
}

.card-traceability {
    background: url('images/card_traceability.png') center/cover no-repeat;
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.card p {
    color: #f1f1f1;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ==================================
   CTA SECTION
================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section .section-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-main);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ==================================
   FOOTER
================================== */
.footer {
    background-color: #0a0a0a;
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 12px;
    color: #999;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================================
   ANIMATIONS UTILS (ScrollReveal)
================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ==================================
   RESPONSIVE DESIGN
================================== */
@media (max-width: 900px) {
    .origin-container {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .flex-center {
        justify-content: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links, .navbar .btn-outline {
        display: none; /* simple mobile setup, could add true mobile menu in js */
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cta-section .section-title {
        font-size: 2rem;
    }
    
    .experience-badge {
        width: 90px;
        height: 90px;
        bottom: -15px;
        left: -15px;
    }
    .experience-badge .number {
        font-size: 1.2rem;
    }
}
