/* ==========================================================================
   Oro del Desierto – Landing Page Styles
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette */
    --gold:        #B8922F;
    --gold-light:  #D4AF37;
    --gold-dark:   #8A6D1F;
    --olive:       #4A5A3A;
    --olive-dark:  #2F3A25;
    --desert:      #C49A6C;
    --desert-light:#E8D5B7;
    --cream:       #FAF7F2;
    --warm-white:  #FDFCFA;
    --charcoal:    #2C2A27;
    --text:        #3D3B37;
    --text-light:  #6B6862;
    --border:      #E5E0D8;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-pad: clamp(4rem, 8vw, 8rem);
    --container-max: 1200px;
    --container-pad: clamp(1.25rem, 4vw, 2.5rem);

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--gold);
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
    color: var(--charcoal);
}

/* ---------- Layout ---------- */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--section-pad) 0;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-intro {
    font-size: 1.125rem;
    max-width: 680px;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 2.25rem;
    border-radius: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-align: center;
}

.btn-primary {
    background-color: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
}

.btn-secondary {
    background-color: var(--olive);
    color: #fff;
    border-color: var(--olive);
}

.btn-secondary:hover {
    background-color: var(--olive-dark);
    border-color: var(--olive-dark);
    color: #fff;
}

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

.btn-outline:hover {
    background-color: var(--gold);
    color: #fff;
}

.btn-large {
    padding: 1.1rem 3rem;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    background-color: rgba(253, 252, 250, 0.98);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--gold);
    transition: width 0.3s var(--ease);
}

.main-nav a:hover {
    color: var(--charcoal);
}

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

.nav-cta {
    background-color: var(--gold);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8125rem !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background-color: var(--gold-dark);
    color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--charcoal);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/hero-olive-grove.jpg');
    background-size: cover;
    background-position: center 40%;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem var(--container-pad);
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--desert-light);
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--desert-light);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(184, 146, 47, 0.15);
    border: 1px solid var(--gold);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.badge-score {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.badge-score small {
    font-size: 1rem;
    font-weight: 400;
}

.badge-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-top: 2px;
}

.hero .btn {
    margin-top: 0;
}

/* ==========================================================================
   Story Section
   ========================================================================== */

.section-story {
    background-color: var(--cream);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.story-image img {
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 3 / 2;
}

.story-text h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

/* ==========================================================================
   Quality Section
   ========================================================================== */

.quality-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.quality-header .section-intro {
    margin-left: auto;
    margin-right: auto;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.quality-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.quality-icon {
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.quality-card h3 {
    font-size: 1.125rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.quality-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.section-products {
    background-color: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background-color: var(--warm-white);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.product-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border-color: var(--gold);
    border-width: 2px;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--gold);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    z-index: 2;
}

.product-image {
    overflow: hidden;
    background-color: var(--cream);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-card:not(.product-featured) .product-image {
    aspect-ratio: 4 / 5;
}

.product-info {
    padding: 1.75rem;
}

.product-featured .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}

.product-type {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.product-info p:not(.product-type) {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* More Products */
.more-products {
    margin-bottom: 3rem;
}

.more-products h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.more-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.more-product {
    background-color: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
}

.more-product h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--charcoal);
}

.more-product p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.products-cta {
    text-align: center;
}

/* ==========================================================================
   Awards Section
   ========================================================================== */

.section-awards {
    background-color: var(--charcoal);
    color: var(--desert-light);
}

.section-awards .section-eyebrow {
    color: var(--gold-light);
}

.section-awards h2 {
    color: #fff;
}

.section-awards .section-intro {
    color: var(--desert-light);
}

.awards-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.awards-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(212, 175, 55, 0.3);
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.25rem 0;
    position: relative;
}

.award-item::before {
    content: '';
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--gold);
    border: 2px solid var(--charcoal);
}

.award-year {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-light);
    min-width: 50px;
    text-align: right;
}

.award-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
}

.award-score {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.award-variety {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--desert-light);
}

.award-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: var(--gold);
    color: var(--charcoal);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

.award-source {
    font-size: 0.8125rem;
    color: var(--text-light);
    flex-basis: 100%;
}

/* ==========================================================================
   Origin Section
   ========================================================================== */

.section-origin {
    background-color: var(--warm-white);
}

.origin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.origin-image img {
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 3 / 2;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.section-faq {
    background-color: var(--cream);
}

.faq-list {
    max-width: 750px;
    margin: 2rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.75;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.section-cta {
    padding: var(--section-pad) 0;
}

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 100%);
    border-radius: 6px;
    padding: clamp(3rem, 6vw, 5rem);
    color: #fff;
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--desert-light);
    font-size: 1.125rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.cta-box .btn-primary {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
}

.cta-box .btn-primary:hover {
    background-color: var(--gold);
    border-color: var(--gold);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.section-contact {
    background-color: var(--warm-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-info address {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-info address p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--gold-dark);
}

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

.social-links a {
    color: var(--text-light);
    transition: color 0.2s var(--ease);
}

.social-links a:hover {
    color: var(--gold);
}

.contact-note {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-top: 1rem;
    line-height: 1.7;
}

.contact-map img {
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--charcoal);
    color: var(--desert-light);
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    color: #fff;
    font-size: 1.25rem;
}

.footer-brand p {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.footer-nav ul {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.8125rem;
    color: var(--desert-light);
}

.footer-nav a:hover {
    color: #fff;
}

.footer-legal ul {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.footer-legal a:hover {
    color: var(--desert-light);
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--warm-white);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
        padding: 2rem var(--container-pad);
        z-index: 999;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 1rem;
        text-align: center;
        display: block;
    }

    /* Layout adjustments */
    .story-grid,
    .origin-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image {
        order: -1;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-featured {
        grid-template-columns: 1fr;
    }

    .more-products-grid {
        grid-template-columns: 1fr;
    }

    .quality-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quality-card {
        padding: 1.5rem 1rem;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-nav ul,
    .footer-legal ul {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Awards */
    .awards-timeline::before {
        left: 50px;
    }

    .award-item::before {
        left: 46px;
    }

    .award-year {
        min-width: 40px;
        font-size: 1.1rem;
    }

    /* Hero */
    .hero-badge {
        width: 85px;
        height: 85px;
    }

    .badge-score {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .award-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .hero-subtitle br {
        display: none;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .site-header,
    .nav-toggle,
    .hero-bg,
    .btn,
    .section-cta {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        background: none;
        color: #000;
    }

    .hero h1,
    .hero-subtitle {
        color: #000;
        text-shadow: none;
    }
}

/* ==========================================================================
   Animations (reduced motion respected)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
