/* --- Global Token Hierarchy & Reset --- */
:root {
    /* Brand Colors based on P.P. Industries Catalog */
    --bg-main: #FFFBF4;         /* Warm White - Main Background */
    --bg-surface: #F4F0DD;      /* Light Cream - Cards & Alternate Sections */
    --primary-accent: #7B6859;  /* Grounded Taupe - Buttons, Headers, Emphases */
    --primary-hover: #5E4E42;   /* Darker Taupe - Interactive States */
    
    /* Typography Colors for Light Backgrounds */
    --text-main: #2B2520;       /* Deep Charcoal/Brown - High Readability */
    --text-muted: #5A5047;      /* Medium Taupe - Secondary Copy */
    --text-light: #FFFFFF;      /* White text for dark overlays/buttons */
    
    /* Structural Elements */
    --border-color: #E8E3CF;    /* Soft beige border */
    --shadow-sm: 0 2px 8px rgba(123, 104, 89, 0.08);
    --shadow-md: 0 8px 24px rgba(123, 104, 89, 0.12);
    
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-main);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Typographic Foundation --- */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--primary-accent);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* --- Reusable Design Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--text-light);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary:hover {
    background-color: rgba(123, 104, 89, 0.05);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: rgba(123, 104, 89, 0.1);
    border: 1px solid rgba(123, 104, 89, 0.2);
    color: var(--primary-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

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

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

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

/* --- Header & Layout System --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 251, 244, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

/* .logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 20%;
    width: 20%;
}

.logo-text {
    display: flex;
    flex-direction: column;
} */

/* --- Fine-tuned Navigation Branding Architecture --- */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.85rem; /* Precise breathing space between icon and brand text */
    height: 100%;
}

.logo-icon {
    height: 48px; /* Perfectly balanced for an elegant navigation grid */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    color: var(--primary-accent); /* Taupe branding color */
    line-height: 1.1;
}

.tagline {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-top: 0.15rem;
}

/* Micro-interaction layout look */
.logo-area:hover .logo-icon {
    transform: scale(1.03);
}

/* .brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: var(--primary-accent);
}

.tagline {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
} */

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:not(.btn):hover {
    color: var(--primary-accent);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-accent);
    transition: var(--transition-smooth);
}

/* --- Hero Section Display --- */
.hero-section {
    position: relative;
    padding: 180px 0 100px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-image: url('media/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* Elegant warm gradient overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 240, 221, 0.92) 0%, rgba(255, 251, 244, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--primary-accent);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Allows natural shifting if desktop windows are small */
    margin-top: 2rem;
}

/* --- Core Metrics Display --- */
.metrics-section {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}

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

.metric-card h3 {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 0.25rem;
}

.metric-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- About & Feature Grid --- */
.about-section {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.quote {
    border-left: 3px solid var(--primary-accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--primary-accent);
    font-size: 1.1rem;
    margin: 2rem 0;
    font-weight: 500;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-accent);
}

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

/* --- Capabilities Block --- */
.capabilities-section {
    padding: 8rem 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.capability-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.capability-card:hover {
    border-color: var(--primary-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cap-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.capability-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.capability-card p {
    color: var(--text-muted);
}

/* --- Product Cards Showcase --- */
.products-section {
    padding: 8rem 0;
}

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

.product-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-accent);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    background-color: #FFFFFF; /* Pure white background makes white/clear bottles pop */
    border-bottom: 1px solid var(--border-color);
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
}

.product-info {
    padding: 2rem;
    background-color: var(--bg-surface);
}

.prod-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-info h3 {
    font-size: 1.25rem;
    margin: 0.25rem 0 0.75rem 0;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-text {
    font-size: 0.9rem;
    color: var(--primary-accent);
    font-weight: 600;
}

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

/* --- Contact & Production Forms --- */
.contact-section {
    padding: 8rem 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-details h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-details p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.info-block p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
    font-weight: 500;
}

.contact-form-wrapper {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 0.95rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(123, 104, 89, 0.1);
}

/* --- Footer Platform --- */
.main-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-main);
    padding: 2.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* --- Adaptive Layout Queries --- */
@media (max-width: 1024px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Adaptive Layout Queries --- */
@media (max-width: 768px) {
    /* Mobile Navigation Architecture */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        
        /* Hidden by default using clip-path for a smooth dropdown animation */
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }

    /* Class toggled via JS */
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .mobile-nav-toggle { 
        display: flex; 
    }

    /* Adjust typography and grids for mobile
    .hero-content h1 { 
        font-size: 2.5rem; 
    } */
    
    .products-grid, .capabilities-grid, .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-section {
        padding: 140px 0 60px 0; /* Tightens up excess top spacing on mobile screens */
        text-align: center;      /* Centers the text content nicely for mobile viewing */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;    /* Keeps your badge and elements perfectly centered */
    }

    .hero-content h1 {
        font-size: 2.2rem;       /* Scaled down text sizing to stop text breaking awkwardly */
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;  /* Stack the buttons cleanly on top of each other */
        width: 100%;             /* Allow full width behavior */
        gap: 0.85rem;            /* Distinct vertical spacing between stacked choices */
    }

    .hero-actions .btn {
        width: 100%;             /* Scales buttons uniformly across phone dimensions */
        max-width: 340px;        /* Limits max expansion so they stay elegant on tablets */
        box-sizing: border-box;
    }
}