/*
 * Panchvan Paper - Main Stylesheet
 * --------------------------------
 * Organized into sections for maintainability:
 * 1. Variables & Base
 * 2. Utility Classes & Typography
 * 3. Header & Navigation
 * 4. Buttons & Forms
 * 5. Layouts (Grids, Boxes)
 * 6. Component Styles (Cards, Logos, Footer)
 * 7. Animations & Responsive Design
 */

/* ================================================= */
/* 1. Variables & Base Styles */
/* ================================================= */

:root {
    /* Colors */
    --heading-color: #003366; /* Deep Corporate Navy */
    --normal-text-color: #333333; /* Dark Grey */
    --icon-color: #E91E63; /* Deep Pink Accent */
    --primary-accent: #D81B60; /* Slightly Darker Pink for buttons/active states */
    --secondary-accent: #FFC0CB; /* Light Pink for subtle backgrounds */
    --light-bg: #FAFAFA; /* Very light, off-white background */
    --white-bg: #FFFFFF; /* Pure white */
    --border-color: #E0E0E0; /* Very light grey */
    
    /* Shadows & Transitions */
    --shadow-light: rgba(233, 30, 99, 0.1);
    --shadow-hover: rgba(233, 30, 99, 0.3);
    --transition-speed: 0.4s;
    
    /* Fonts */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--normal-text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ================================================= */
/* 2. Utility Classes & Typography */
/* ================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* NEW UTILITY CLASS FOR TOP MARGIN */
.margin-top-large {
    margin-top: 60px; /* Added 60px of top margin */
}

.bg-white {
    background-color: var(--white-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-light);
    padding: 80px 50px;
    margin-bottom: 50px;
    transition: box-shadow var(--transition-speed) ease;
}

.bg-white:hover {
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.bg-light {
    background-color: var(--light-bg);
}

.section-spacing {
    padding: 90px 0;
    position: relative;
    z-index: 1;
}

/* Section Titles */
.section-title {
    font-family: var(--font-serif);
    font-size: 3.2em;
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--icon-color);
    margin: 10px auto 0 auto; /* Centered by default, adjusted later for left-aligned */
    border-radius: 2px;
}

.section-title.text-left::after {
    margin-left: 0;
}

.subsection-title {
    font-family: var(--font-serif);
    font-size: 2.2em;
    color: var(--heading-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-description {
    font-size: 1.1em;
    color: var(--normal-text-color);
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Icon Sizing */
.icon-large {
    font-size: 3.5em;
    color: var(--icon-color);
    margin-bottom: 18px;
}

.icon-medium {
    font-size: 2em;
    color: var(--icon-color);
    margin-right: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* Text Block Spacing - INCREASED for requested space above Mission/Vision */
.text-block {
    margin-bottom: 80px; 
}


/* ================================================= */
/* 3. Header & Navigation */
/* ================================================= */

.main-header {
    background-color: var(--white-bg);
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.logo .site-title b {
    font-family: var(--font-serif);
}

.panchvan-text {
    color: var(--heading-color);
}

.paper-text {
    color: var(--icon-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--normal-text-color);
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 1em;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--icon-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--icon-color);
}

.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--heading-color);
}


/* Hero Sections */
.hero-section,
.page-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--heading-color) 0%, #001f3f 100%);
    color: var(--white-bg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 8px solid var(--icon-color);
}

.hero-section .headline,
.page-hero .headline {
    font-family: var(--font-serif);
    font-size: 4.5em;
    color: var(--white-bg);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero-section .sub-headline,
.page-hero .sub-headline {
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* ================================================= */
/* 4. Buttons & Forms */
/* ================================================= */

.btn {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-sans);
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-primary {
    background-color: var(--heading-color);
    color: var(--white-bg);
}

.btn-primary:hover {
    background-color: var(--icon-color);
    color: var(--heading-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--white-bg);
    color: var(--heading-color);
    border: 2px solid var(--heading-color);
}

.btn-secondary:hover {
    background-color: var(--heading-color);
    color: var(--white-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

/* Contact Form Styles (Minimal) */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 1em;
    transition: border-color var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--icon-color);
    outline: none;
}

/* ================================================= */
/* 5. Layouts (Grids, Boxes) */
/* ================================================= */

/* General Card/Item Hover Effect */
.advantage-item, .product-card, .highlight-item, .value-item, .step-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    background-color: var(--white-bg); /* Ensure all items have a background for the shadow to look right */
    border-radius: 5px; /* Consistent border radius */
    padding: 35px; /* Default padding for card-like items */
}

.advantage-item:hover, .product-card:hover, .highlight-item:hover, .value-item:hover, .step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

/* Mission/Vision/Values Grid Spacing */
.grid-2-col, .mission-vision-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px; 
}

.highlight-grid, .advantage-grid, .step-grid, .values-list-grid, .contact-info-grid, .process-steps-grid, .export-features-grid {
    display: grid;
    /* Sets up a responsive grid that fits between 200px and 320px depending on context */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    margin-top: 50px;
}

/* Override for specific grids */
.highlights-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

/* NEW RULE: Enforce side-by-side display for the three boxes on desktop/default */
.product-grid.new-category-grid {
    /* Enforce 3 columns at all screen sizes for the new categories */
    grid-template-columns: 1fr 1fr 1fr;
}


.values-list-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Box Container for sections like 'Why Choose Us' and 'Manufacturing' */
.box-container {
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-light);
    margin-top: 40px;
}


/* ================================================= */
/* 6. Component Styles (Cards, Logos, Footer) */
/* ================================================= */

/* Home Page Highlight/Advantage Items */
.highlight-item {
    border-bottom: 5px solid var(--icon-color);
}

.advantage-item {
    text-align: center;
    padding: 35px 20px;
}

/* Manufacturing Steps */
.step-card {
    text-align: left;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.step-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.step-card-header h4 {
    margin-bottom: 0;
}

.step-icon {
    font-size: 1.8em;
    color: var(--icon-color);
    min-width: 30px;
}

/* About Page Specific */
.value-card {
    background-color: var(--secondary-accent);
    padding: 30px;
    border-left: 5px solid var(--icon-color);
    border-radius: 5px;
}

.value-item {
    text-align: center;
    /* Overrides general card style for cleaner look on about page */
    background-color: transparent; 
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
}

.value-item:hover {
    transform: translateY(-8px); /* Keep the lift effect */
    box-shadow: none; /* Do not show the shadow on hover */
}

/* Product Card Styling */
.product-card {
    padding: 0;
    overflow: hidden;
    text-align: center;
}

/* Standard Product Card Image (Kept for reference/original product cards) */
.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-family: var(--font-serif);
    color: var(--heading-color);
    margin-bottom: 10px;
}

.product-specs {
    list-style: none;
    padding: 10px 0;
    margin: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.product-specs li {
    font-size: 0.95em;
    line-height: 1.8;
}

.btn-full-width {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    /* Spacing between multiple full-width buttons */
    margin-bottom: 10px; 
}

/* Contact Info */
.contact-details-container .contact-item {
    text-align: left;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

.contact-details-container .contact-item:last-child {
    border-bottom: none;
}

.contact-details-container h4 {
    display: inline-block;
    vertical-align: middle;
    color: var(--icon-color);
}

.social-links a {
    font-size: 2.5em;
    color: var(--heading-color);
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--icon-color);
}

/* Group Company Logos */
.group-logo-container.side-by-side-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.group-logo-item {
    text-align: center;
    max-width: 250px;
    width: 100%;
}

.group-logo-link {
    display: block;
    width: 158px;
    height: 158px;
    margin: 0 auto;
    border: 4px solid var(--icon-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 8px 20px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-logo-link:hover {
    border-color: var(--heading-color);
    transform: translateY(-10px) scale(1.05);
}

.group-logo-wrapper {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.group-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}


/* Footer */
.main-footer {
    background-color: var(--heading-color);
    color: var(--white-bg);
    text-align: center;
    padding: 40px 0;
    margin-top: 70px;
    border-top: 5px solid var(--icon-color);
}

.main-footer p {
    margin-bottom: 12px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links a {
    color: var(--white-bg);
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.9em;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--icon-color);
}

/* --- New Styles for Simple Product Boxes --- */

/* This new class styles the card to look like a full container */
.new-product-box {
    padding: 0; /* Resetting padding for image to reach edges */
    border: 3px solid var(--border-color);
    border-bottom: 8px solid var(--icon-color); /* Stronger accent border */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    min-height: 450px; /* Ensure boxes have a decent size now that images are back */
}

/* Styling for the new category image inside the box */
.product-category-img {
    width: 100%;
    height: 200px; /* Specific height for category hero images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

/* Adjust Product Info padding to fit the new box style */
.new-product-box .product-info {
    padding: 25px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Spacing between the multiple buttons in the new boxes */
.new-product-box .btn-full-width:last-child {
    margin-bottom: 0;
}

/* Remove specifications list which is no longer needed */
.new-product-box .product-specs {
    display: none;
}


/* ================================================= */
/* 7. Animations & Responsive Design */
/* ================================================= */

/* Scroll Progress Bar */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background-color: var(--icon-color);
    z-index: 1050;
    transition: width 0.1s linear;
}

/* --- Media Queries --- */

/* Tablet and Smaller Desktops (less than 992px) */
@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--white-bg);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .hero-section .headline,
    .page-hero .headline {
        font-size: 3em;
    }
    
    .bg-white {
        padding: 60px 30px;
    }
    
    .section-title {
        font-size: 2.5em;
    }
    
    .group-logo-container.side-by-side-logos {
        gap: 30px;
    }

    /* Adjust grids to single column when needed, but keep wider grids for larger tablets */
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* Large Phones and Tablets (less than 768px) */
@media (max-width: 768px) {
    .logo {
        gap: 5px;
    }
    
    .logo img {
        height: 60px;
    }
    
    .hero-section .headline,
    .page-hero .headline {
        font-size: 2.5em;
    }
    
    .section-spacing {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2em;
    }
    
    .section-description {
        margin-bottom: 40px;
    }
    
    /* Column Reductions to single column for most elements */
    .advantage-grid,
    .mission-vision-values,
    .contact-info-grid,
    .step-grid,
    .values-list-grid,
    .grid-2-col,
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* OVERRIDE: This ensures the three new boxes stay side-by-side */
    .product-grid.new-category-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .group-logo-container.side-by-side-logos {
        flex-direction: column;
        gap: 50px;
    }
    
    .box-container {
        padding: 20px;
    }

    .product-card img {
        height: 250px;
    }
}

/* Small Phones (less than 480px) */
@media (max-width: 480px) {
    .hero-section .headline,
    .page-hero .headline {
        font-size: 1.8em;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .section-spacing {
        padding: 40px 0;
    }
    
    .box-container {
        padding: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 25px;
    }
}

/* --- New styles for Contact Details (Two Office Layout) --- */

/* New Grid for Side-by-Side Offices */
.office-location-grid {
    display: grid;
    /* Two columns, equally sized, 30px gap */
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    margin-top: 40px; /* Space from Contact Information title */
    margin-bottom: 50px;
}

/* Adjusting the H3 for office titles to be inline with the icon */
.contact-details-container .subsection-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Adjust spacing below title */
}

/* Style for the company name below the office title */
.contact-details-container .company-name {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Base style for contact items */
.contact-details-container .contact-item {
    display: flex; /* Use flexbox for icon and text alignment */
    align-items: flex-start; /* Align icon and text at the top */
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color); /* Lighter dashed border as in image */
}

.contact-details-container .contact-item:last-of-type {
    border-bottom: none; /* No border for the last item in each box */
}

.contact-details-container .contact-item .icon-medium {
    margin-right: 15px; /* Spacing between icon and text */
    flex-shrink: 0; /* Prevent icon from shrinking */
    padding-top: 2px; /* Slight vertical adjustment for icon */
}

.contact-details-container .contact-item p {
    margin-bottom: 0; /* Remove default paragraph margin */
    line-height: 1.4;
}

/* Styling for the links within contact items (phone/email) */
.contact-details-container .contact-item a {
    color: var(--normal-text-color); /* Default text color for links */
    text-decoration: none; /* No underline by default */
    transition: color 0.3s ease;
}

.contact-details-container .contact-item a:hover {
    color: var(--primary-accent); /* Pink accent on hover */
}

/* Specific styling for the paragraphs in the address section to align second and third lines */
.contact-details-container .contact-item .fa-location-dot + p {
    margin-top: 0; /* Ensures the first line of address is directly next to the icon */
}
.contact-details-container .contact-item .address-line-2,
.contact-details-container .contact-item .address-line-3 {
    margin-left: 48px; /* Manual alignment for subsequent address lines */
    text-indent: -48px; /* Negative indent to pull text back */
    padding-left: 48px; /* Padding to create the visual indent */
}


/* Responsive adjustment: stack offices on smaller screens */
@media (max-width: 992px) {
    /* Stack the office locations on medium screens */
    .office-location-grid {
        grid-template-columns: 1fr;
    }
}