/* ================================
   APH Market Co. - Premium Modern Design
   ================================ */

/* CSS Variables - Premium Color Palette */
:root {
    --forest-green: #2F4F3A;
    --sage-green: #A8B89A;
    --warm-cream: #F6F1E8;
    --soft-beige: #DCCDB8;
    --natural-brown: #8B6B4A;
    --soft-gold: #C8A96B;
    
    --text-primary: #2F4F3A;
    --text-secondary: #5A6B5B;
    --text-light: #8A9B8B;
    --bg-light: #F6F1E8;
    --bg-white: #FFFFFF;
    
    --shadow-sm: 0 2px 8px rgba(47, 79, 58, 0.08);
    --shadow-md: 0 4px 16px rgba(47, 79, 58, 0.12);
    --shadow-lg: 0 12px 32px rgba(47, 79, 58, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--forest-green);
    transition: var(--transition);
}

a:hover {
    color: var(--natural-brown);
}

/* Containers */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-green);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.logo-text {
    letter-spacing: 2px;
}

.navbar.scrolled .logo {
    color: var(--forest-green);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.nav-login {
    padding: 10px 20px;
    border: 1px solid var(--forest-green);
    border-radius: var(--radius-sm);
    color: var(--forest-green) !important;
}

.nav-login:hover {
    background: var(--forest-green);
    color: white !important;
}

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

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--forest-green);
    transition: var(--transition);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 79, 58, 0.4) 0%, rgba(168, 184, 154, 0.3) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.logo-mark {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.logo-leaf {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    color: white;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 50px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--forest-green);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--natural-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--forest-green);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ================================
   About Section
   ================================ */
.about {
    padding: 100px 0;
    background: var(--warm-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat {
    border-left: 4px solid var(--soft-gold);
    padding-left: 30px;
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--soft-gold);
}

.stat p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ================================
   Products Section
   ================================ */
.products-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    margin-bottom: 15px;
    font-size: 3rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out both;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

.category-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    height: 350px;
    background: var(--soft-beige);
}

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

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

.category-card h3 {
    font-size: 1.5rem;
    color: var(--forest-green);
    text-align: center;
}

/* ================================
   Wholesale Section
   ================================ */
.wholesale {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--forest-green) 0%, #3A5C45 100%);
    color: white;
    text-align: center;
}

.wholesale h2 {
    color: white;
    margin-bottom: 15px;
}

.wholesale > .container-wide > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.wholesale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.wholesale-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.wholesale-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.wholesale-card h3 {
    color: var(--soft-gold);
    margin-bottom: 15px;
}

.wholesale-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ================================
   Contact Section
   ================================ */
.contact {
    padding: 100px 0;
    background: var(--warm-cream);
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-content h2 {
    margin-bottom: 15px;
}

.contact-content > p {
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-method {
    text-align: left;
    padding: 30px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-method h3 {
    color: var(--forest-green);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-method a {
    color: var(--forest-green);
    font-weight: 500;
}

.contact-method p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.contact-form-note {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form-note p {
    margin-bottom: 0;
}

/* ================================
   Footer
   ================================ */
.footer {
    background: var(--soft-beige);
    padding: 80px 0 30px;
    border-top: 1px solid var(--natural-brown);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--forest-green);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--forest-green);
}

.footer-bottom {
    border-top: 1px solid var(--natural-brown);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    .container-wide {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

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

    .category-image {
        height: 300px;
    }

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

    .products-section {
        padding: 80px 0;
    }

    .about {
        padding: 80px 0;
    }

    .wholesale {
        padding: 80px 0;
    }

    .contact {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}