/**
 * Patagonia Wild Flower Honey
 * Premium B2B Distribution Platform
 * 
 * Color Palette:
 * - Primary Gold: #c9a227
 * - Dark Background: #0d0d0d
 * - Card Background: #1a1a1a
 * - Accent Dark: #2a2a2a
 * - Text Light: #f5f5f5
 * - Text Muted: #888888
 */

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    --color-gold: #c9a227;
    --color-gold-light: #d4b445;
    --color-gold-dark: #a88a1f;
    --color-honey: #eb9605;
    --color-bg-dark: #0d0d0d;
    --color-bg-card: #1a1a1a;
    --color-bg-accent: #2a2a2a;
    --color-text: #f5f5f5;
    --color-text-muted: #888888;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* ========================================
   LAYOUT
======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
}

section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--color-bg-card);
}

/* ========================================
   NAVIGATION
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    padding: 1rem 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(13, 13, 13, 0.98);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo {
    height: 50px;
    width: auto;
}

.navbar-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    letter-spacing: 0.5px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.navbar-nav a {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

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

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

.navbar-cta {
    display: flex;
    gap: 1rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--color-gold);
}

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

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

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

.btn-ghost:hover {
    color: var(--color-gold);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1510 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg-placeholder.jpg') center/cover no-repeat;
    opacity: 0.3;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--color-bg-dark), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid var(--color-gold);
    border-radius: 50px;
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--color-gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s 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); }
}

/* ========================================
   CARDS
======================================== */
.card {
    background: var(--color-bg-card);
    border: 1px solid rgba(201, 162, 39, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.card:hover {
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 250px;
    background: var(--color-bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.card-image-placeholder {
    color: var(--color-text-muted);
    font-size: 3rem;
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.card-meta-item {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.card-meta-item strong {
    color: var(--color-gold);
}

/* ========================================
   PRODUCT GRID
======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ========================================
   FEATURES / STORY SECTION
======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-gold);
}

.feature-title {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Story/About content */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.story-image-placeholder {
    aspect-ratio: 4/3;
    background: var(--color-bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 4rem;
}

.story-content h2 {
    color: var(--color-text);
}

.story-content h2 span {
    color: var(--color-gold);
}

.story-content p {
    font-size: 1.1rem;
}

/* ========================================
   FORMS
======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-label-optional {
    color: var(--color-text-muted);
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

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

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c9a227' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

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

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-message-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.form-message-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

/* ========================================
   CONTACT / ACCESS REQUEST SECTION
======================================== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.contact-details li span:first-child {
    color: var(--color-gold);
    font-size: 1.25rem;
    width: 30px;
}

.contact-form-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    padding: 2.5rem;
}

.contact-form-card h3 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.contact-form-card > p {
    margin-bottom: 2rem;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--color-bg-card);
    border-top: 1px solid rgba(201, 162, 39, 0.1);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-gold);
}

.footer-brand p {
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

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

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 50%;
    color: var(--color-gold);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

/* ========================================
   SECTION HEADERS
======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    color: var(--color-text);
}

.section-header h2 span {
    color: var(--color-gold);
}

.section-header p {
    font-size: 1.1rem;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.letter-spacing { letter-spacing: 2px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .story-section,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-dark);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav a {
        display: block;
        padding: 1rem 2rem;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-cta {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 10rem 1.5rem 5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   PLACEHOLDER IMAGES
======================================== */
.placeholder-image {
    background: linear-gradient(135deg, var(--color-bg-accent) 0%, var(--color-bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.placeholder-image::before {
    content: '🍯';
    font-size: 3rem;
    opacity: 0.5;
}
