/* ==========================================================================
   TANGWAR FOODS PROFESSIONAL DESIGN SYSTEM
   Theme: Corporate, Reliable, Fresh, Institutional
   Mobile-First Approach
   ========================================================================== */

:root {
    /* Colors - Matching COLOR_SYSTEM_GUIDE.md */
    --primary: #196A36;
    --primary-dark: #124d27;
    --primary-light: #24924b;
    --accent: #F4D03F;
    --accent-dark: #d4b126;

    --text-main: #1A202C;
    /* Dark Gray for headings */
    --text-body: #4A5568;
    /* Slate for readability */
    --text-light: #718096;
    --white: #FFFFFF;

    --bg-light: #F7FAFC;
    /* Slight cool gray */
    --bg-white: #FFFFFF;
    --bg-dark: #2D3748;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing & Sizing */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --container-padding: 1.5rem;
    /* 24px default for mobile */
    --container-width: 1280px;

    --header-height: 70px;

    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
    font-weight: 700;
}

/* Mobile Headings */
h1 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.section-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   ICONS
   ========================================================================== */
.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(25, 106, 54, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.icon-box svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    background: rgba(25, 106, 54, 0.1);
    padding: 2px;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.specs-list {
    margin-top: 2rem;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   BUTTONS (REQUEST QUOTE SPECIFIC)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 6px;
    /* Specific rounded corners */
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding: 12px 24px;
    /* Default */
}

/* Specific styling for the Quote Button on Mobile */
.nav-cta {
    padding: 10px 20px;
    /* Slightly smaller padding */
    font-size: 0.9rem;
    /* Professional, not oversize */
    width: 100%;
    /* Fullish width on mobile menu */
    max-width: 90%;
    margin-top: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    /* Slight bg for visibility */
    color: #FFFFFF !important;
    /* Force White */
    border: 2px solid #FFFFFF;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Mobile size */
}

/* Mobile Menu - Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Nav Menu */
.nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    display: flex;
    /* Added display flex */
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin: 1.5rem 0;
}

.nav-link {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Mobile CTA in menu is handled by duplicating the button or JS moving it. 
   For this implementation, assuming structure: 
   .nav-cta is OUTSIDE ul in HTML, so we hide it on default mobile/desktop split 
   and show it inside menu if moved, OR style it specifically.
   Actually, common pattern: Hide independent CTA on mobile, duplicate inside menu.
   OR: Use the one in header if space permits (usually doesn't).
   
   Let's assume the button is IN structure like:
   NAV > CONTAINER > LOGO, HAMBURGER, UL, BTN
   On Mobile: UL is hidden drawer. BTN is hidden or moved.
   
   We will hide the desktop .nav-cta on mobile.
*/
.nav-cta {
    display: none;
    /* Hidden on mobile header, presumably inside menu or effectively replaced */
}

/* Wait, if logic is "inside menu", we need it there. 
   If it's outside UL in HTML, we can't easily put it inside without JS.
   We'll assume JS moves it or usage of a mobile-only button inside UL. 
   Existing HTML had it Outside. We'll use media queries to show/hide.
*/

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-color: #000;
    overflow: hidden;
    padding-top: var(--header-height);
    text-align: center;
}

.hero-carousel,
.hero-slide,
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(8, 38, 19, 0.7) 0%, rgba(8, 38, 19, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 100%;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    /* Stack or wrap on small mobile */
}

/* Carousel Indicators */
.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: var(--accent);
    width: 20px;
    border-radius: 5px;
}

/* ==========================================================================
   SECTIONS: Mobile Defaults (Stacked)
   ========================================================================== */
.about-section,
.products-section,
.operations-section,
.contact-section,
.process-section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stacked */
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stacked */
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-img-wrapper {
    height: 200px;
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.25rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Sourcing Section - Dark Overlay Look */
.sourcing-section {
    background-image: url('images/TAN%202.webp');
    /* Use one of the site images */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 100px 0;
    position: relative;
    color: var(--white);
}

.sourcing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 38, 19, 0.85);
    /* Slightly dark green/black overlay */
    z-index: 1;
}

.sourcing-content {
    position: relative;
    z-index: 2;
}

/* Ensure about section has background to prevent hero bleed */
.about-section {
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.ops-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.ops-image img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

/* Base Hero Overrides for Mobile */
.hero h1 {
    color: var(--white);
    font-weight: 800;
}

.stat-item strong {
    color: var(--accent);
    /* Yellow Figures */
    display: block;
    font-size: 2rem;
    /* Initial size */
    font-weight: 800;
    /* BOLD TEXTS */
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-item span {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    /* Bold label too */
    letter-spacing: 0.05em;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    /* No horizontal line on mobile */
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CBD5E0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 106, 54, 0.1);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Base styles for split panel components (Mobile Default) */
.contact-info-panel {
    background-color: transparent;
    /* Removed shouting green */
    color: var(--text-main);
    padding: 0;
    border-radius: 0;
    margin-bottom: 2rem;
}

.contact-info-panel h3 {
    color: var(--primary);
    /* Green Text instead of background */
    margin-bottom: 1.5rem;
}



.info-label {
    color: var(--text-light);
    /* Readable gray */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
    /* Matching Get In Touch Green */
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    /* Mobile: separate card feel */
    border: 1px solid #E2E8F0;
}

.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-col a {
    color: #CBD5E0;
}

/* ==========================================================================
    MEDIA QUERIES: RESTORING DESKTOP & TABLET
   ========================================================================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
    :root {
        --container-padding: 32px;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/* Desktop (1024px+) - matching the User's "Previous One" styling */
@media (min-width: 1024px) {
    :root {
        --header-height: 80px;
        --container-padding: 24px;
        --section-spacing: 120px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .text-center {
        text-align: center;
    }

    /* Reinforce alignment */

    /* Buttons */
    .btn {
        padding: 14px 32px;
        /* Restore desktop size */
        margin: 0;
    }

    /* Request Quote Button Desktop Overrides */
    .nav-cta {
        display: inline-flex;
        /* Visible */
        padding: 10px 24px;
        /* Medium specs */
        width: auto;
        max-width: none;
        margin-top: 0;
        margin-left: 2rem;
    }

    /* Navigation Restore */
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        display: flex;
        /* Ensure flex is active */
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        gap: 2.5rem;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    /* Hero Restore */
    .hero {
        height: 90vh;
        /* Restore viewport height */
        text-align: center;
        /* CENTERED */
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        /* CENTERED */
        max-width: 800px;
        margin: 0 auto;
        /* CENTERED */
        padding-left: 0;
    }

    .hero h1 {
        color: var(--white);
        /* FORCE WHITE */
        font-weight: 800;
        /* BOLD */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        /* Legibility */
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
        /* CENTERED */
    }

    .hero-stats {
        justify-content: center;
        /* CENTERED */
        gap: 3rem;
        margin-top: 4rem;
        padding-top: 2rem;
    }

    .hero-overlay {
        /* Centered radial or balanced gradient */
        background: linear-gradient(180deg, rgba(8, 38, 19, 0.8) 0%, rgba(8, 38, 19, 0.6) 100%);
    }

    /* Grids Restore */
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        margin-top: 4rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .ops-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .ops-image img {
        height: 500px;
    }

    /* Process Timeline Fixes */
    .step-connector {
        display: none;
        /* Hide legacy HTML connectors */
    }

    /* Desktop (1024px+) */
    /* Process Restore */
    .process-steps {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        /* Context for line */
    }

    .process-step {
        flex: 1;
        position: relative;
        z-index: 1;
        /* Sit above the line */
        padding: 0 1rem;
        /* Spacing */
    }

    .process-steps::before {
        content: '';
        position: absolute;
        top: 20px;
        /* Exact center of 40px circle */
        left: 50px;
        /* Start after first half-circle */
        right: 50px;
        height: 2px;
        background: #E2E8F0;
        z-index: 0;
        display: block;
    }

    .step-number {
        position: relative;
        background: var(--primary);
        z-index: 2;
        margin: 0 auto 1.5rem;
    }

    /* Contact Restore - Previous Design (Focus on Text) */
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
        padding: 3rem;
        background: var(--white);
        box-shadow: var(--shadow-md);
        border-radius: var(--radius-md);
        border: none;
        overflow: visible;
    }

    .contact-info-panel {
        background-color: transparent;
        color: var(--text-main);
        /* Dark text for readability */
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Align top */
    }

    .contact-info-panel h3 {
        color: var(--primary);
        margin-bottom: 2rem;
        font-size: 1.75rem;
    }

    .info-label {
        color: var(--text-light);
        /* Distinct label */
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: block;
        margin-bottom: 0.25rem;
    }

    .info-value {
        color: var(--primary);
        /* Matching Green */
        font-size: 1.25rem;
        /* Larger text */
        font-weight: 600;
        margin-bottom: 0;
        /* Reset */
    }

    .contact-form {
        padding: 0;
        background-color: transparent;
        border: none;
    }

    /* Fix Alignment for Desktop */
    .about-section .text-center,
    .products-section .text-center,
    .process-section .text-center {
        text-align: center;
        margin-bottom: 4rem;
    }

    .value-card {
        text-align: left;
        /* Keep cards readable */
        padding: 2rem;
        transition: transform 0.3s ease;
    }

    .value-card:hover {
        /* Add some interaction */
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    /* Ensure icon box doesn't center itself if flex column default */
    .value-card .icon-box {
        margin-left: 0;
        /* Align left */
    }
}

/* Large Screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}