/* 
    Shivam Paper Products - Industrial B2B Layout Redesign
    Colors:
    - Deep Espresso: #50280c
    - Primary Brown: #785437
    - Accent Tan: #b78f6e
    - Professional Gray: #f7f7f7
*/

:root {
    --primary: #785437;
    --primary-dark: #50280c;
    --accent: #b78f6e;
    --light-bg: #f7f7f7;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Industrial Resets */
*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    width: auto; /* Counteract legacy width: 100% */
    height: auto; /* Fix aspect ratio by default */
}

.logo img {
    width: auto !important;
    max-width: 210px;
    height: 60px !important;
    object-fit: contain;
}

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    line-height: 1.2;
}

.section-padding {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Helpers */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 992px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 0; }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 3px 35px 0; /* Slight top padding to offset baseline */
    border-radius: 4px;
    font-weight: 600;
    font-family: inherit;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 54px;
    min-width: 220px;
    text-align: center;
    line-height: normal;
    cursor: pointer;
    box-sizing: border-box;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    padding: 3px 35px 0; /* Slight top padding to offset baseline */
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-weight: 600;
    font-family: inherit;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 54px;
    min-width: 220px;
    text-align: center;
    line-height: normal;
    cursor: pointer;
    box-sizing: border-box;
}

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

/* Hero Section */
.hero-industrial {
    position: relative;
    padding: 140px 0 60px;
    background: #fdfdfd;
}

.hero-industrial h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 25px;
    max-width: 900px;
}

.hero-industrial p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
}

/* Stats */
.stat-card {
    background: var(--white);
    padding: 30px 20px; /* Reduced from 50px 30px */
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden; /* For the shine effect */
}

/* Shine Streak Effect */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

.stat-card:hover::before {
    left: 150%;
    transition: all 0.8s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.stat-card h3 {
    font-size: 36px; /* Further reduced from 42px */
    margin-bottom: 10px; /* Reduced from 15px */
    color: var(--primary-dark);
    font-weight: 800;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
}

/* Number Glow Accent */
.stat-card h3::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    transition: transform 0.5s ease;
}

.stat-card:hover h3 {
    transform: scale(1.15);
    color: var(--primary);
}

.stat-card:hover h3::after {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: visible; /* Fix: Allow content to expand */
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure both side cards are equal height but can scroll/expand */
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.1);
}

.product-card:hover .primary-img {
    opacity: 0;
    transform: scale(0.95);
}

.product-card:hover .hover-img {
    opacity: 1;
    transform: scale(1);
}

.product-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-content p:last-of-type {
    margin-bottom: auto; /* Pushes the button to the bottom */
}

.product-card-content .btn-primary {
    margin-top: 25px;
    align-self: center;
}

.product-card h3 {
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    padding-bottom: 8px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card h4 {
    color: var(--primary);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.product-card-content p {
    font-size: 18px; /* Increased from 15px */
    line-height: 1.7;
    color: var(--text-muted);
}

.product-card-content ul li {
    position: relative;
    padding: 10px 15px; /* Increased padding */
    background: rgba(120, 84, 55, 0.03);
    border-radius: 4px;
    margin-bottom: 8px;
    transition: var(--transition);
    border-left: 2px solid transparent;
    font-size: 18px; /* Added explicit font size */
}

.product-card-content ul li:hover {
    background: rgba(120, 84, 55, 0.08);
    border-left-color: var(--accent);
    transform: translateX(5px);
}

.product-card-content ul li strong {
    color: var(--primary-dark);
}

.product-card-content .btn-primary {
    margin-top: auto;
    padding-top: 0;
}

/* Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
}

.faq-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.faq-item.active .faq-content {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Global Presence Map Simulation */
.presence-grid {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px;
    border-radius: 15px;
}

.presence-grid h2, .presence-grid h3 {
    color: var(--accent);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    position: relative;
}

.testimonial-card::before {
    display: none;
}

/* Final CTA */
.final-cta {
    background: #222;
    color: var(--white);
}

.final-cta h2 { color: var(--accent); }

/* Utility Classes */
.bg-light { background-color: var(--light-bg); }
.industrial-border { border-left: 5px solid var(--primary); padding-left: 20px; }

/* Inquiry Modal Styles */
.inquiry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.inquiry-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.inquiry-modal-content {
    background: var(--white);
    width: 95%;
    max-width: 500px;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.inquiry-modal-overlay.active .inquiry-modal-content {
    transform: translateY(0);
}

.inquiry-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.inquiry-modal-close:hover {
    color: var(--primary);
}

.inquiry-modal-header h3 {
    margin-bottom: 10px;
}

.inquiry-modal-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.inquiry-form-group {
    margin-bottom: 20px;
}

.inquiry-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.inquiry-form-group input,
.inquiry-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    box-sizing: border-box;
}

.inquiry-form-group input:focus,
.inquiry-form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(120, 84, 55, 0.1);
}

.inquiry-submit-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inquiry-submit-btn:hover {
    background-color: var(--primary-dark);
}

/* Footer Social Icons */
.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #222;
    color: #888;
    border-radius: 50%;
    font-size: 20px;
    transition: var(--transition);
    border: 1px solid #333;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Industry Cards Section */
.industry-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.industry-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition);
}

.industry-card:hover .industry-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent);
}

.industry-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.industry-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.industries-grid .industry-card {
    flex: 0 1 calc(33.33% - 20px);
    height: auto;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .industries-grid .industry-card {
        flex: 0 1 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .industries-grid .industry-card {
        flex: 0 1 100%;
    }
}

/* Why Choose Us Redesign */
.why-section {
    position: relative;
    overflow: hidden;
}

.why-section::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.03;
    animation: float 20s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, 50px) rotate(10deg); }
}

.why-grid {
    counter-reset: why-counter;
}

.why-card {
    background: var(--white);
    padding: 60px 40px 50px; /* Increased top padding for index */
    border-radius: 4px;
    border: 1px solid var(--border-color);
    /* Removed border-left to prevent layout jerk */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    counter-increment: why-counter;
    overflow: hidden; 
    will-change: transform, box-shadow;
}

.why-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--primary);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    transform-origin: left;
    will-change: transform, background-color;
}

.why-card::before {
    content: counter(why-counter, decimal-leading-zero);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 80px;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.03;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.why-card:hover {
    transform: translate3d(0, -10px, 0) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.why-card:hover::after {
    transform: scaleX(2); /* 6px * 2 = 12px */
    background-color: var(--accent);
}

.why-card:hover::before {
    opacity: 0.08;
    transform: translate3d(-10px, 5px, 0);
}

.why-card h4 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--primary-dark);
    line-height: 1.3;
    z-index: 1;
}

.why-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
    z-index: 1;
}

.tech-support-banner {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 60px;
}

.tech-support-label {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}




/* Footer Redesign */
.site-footer {
    background: #111 !important;
    color: #888 !important;
    padding: 100px 0 30px !important;
    font-size: 16px !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr !important;
    gap: 60px !important;
    margin-bottom: 80px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 0 30px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 40px !important;
    }
}

.footer-logo {
    height: 50px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-about {
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

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

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--accent);
    font-size: 18px;
    margin-top: 3px;
}

.footer-contact a {
    color: #888;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 4px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #555;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
}

.footer-bottom-links a {
    color: #555;
}

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

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 60px 0 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Global Presence Redesign */
.presence-section {
    background-color: #fcfcfc;
    position: relative;
    overflow: hidden;
}

/* Subtle Industrial Background Visual */
.presence-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(120, 84, 55, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.presence-card {
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary);
    transition: var(--transition);
    height: 100%;
}

.presence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.presence-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(120, 84, 55, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.presence-icon-box i {
    font-size: 32px;
    color: var(--primary);
}

.stat-card p {
    font-size: 16px;
    margin-bottom: 0;
}

#stats-section {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.presence-card h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.presence-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.presence-group {
    border-left: 3px solid #eee;
    padding-left: 20px;
    transition: var(--transition);
}

.presence-card:hover .presence-group {
    border-left-color: var(--accent);
}

.presence-group strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 5px;
}

.presence-group p {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 500;
}

.presence-cta {
    margin-top: 80px;
    padding: 60px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.presence-cta h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.btn-cta-large {
    background: var(--primary);
    color: var(--white);
    padding: 20px 50px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.btn-cta-large:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(80, 40, 12, 0.2);
}

@media (max-width: 768px) {
    .presence-card {
        padding: 30px;
    }
    .presence-cta {
        padding: 40px 20px;
    }
}

/* City Grid Styles (Landmark Icons) */
.city-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.city-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100px;
    text-align: center;
}

.city-landmark {
    font-size: 36px;
    color: var(--primary);
    transition: var(--transition);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.city-item:hover .city-landmark {
    transform: translateY(-5px) scale(1.1);
    color: var(--accent);
}

/* Export Markets with Flags */
.export-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.export-item {
    background: #f8f8f8;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ebebeb;
    transition: var(--transition);
}

.export-item:hover {
    border-color: var(--accent);
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE OPTIMIZATION (MAX-WIDTH: 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    /* Header & Navigation */
    header .container .row {
        flex-direction: row !important; /* Keep logo and menu on same line */
        justify-content: space-between !important;
        align-items: center !important;
    }

    .logo img {
        height: 45px !important;
        max-width: 160px;
    }

    header nav {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        background: var(--white) !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
        display: none !important; 
        z-index: 99999 !important;
        border-top: 1px solid var(--border-color) !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
    }

    header nav.show, header nav ul.show {
        display: block !important;
        animation: slideDown 0.3s ease forwards !important;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    header nav ul {
        flex-direction: column !important;
        padding: 10px 0 !important;
        width: 100%;
        display: flex !important;
        transform: scaleY(1) !important;
        position: relative !important;
        top: 0 !important;
        background-color: transparent !important;
    }

    header nav ul li {
        width: 100%;
        margin: 0 !important;
    }

    header nav ul li a {
        padding: 18px 25px !important;
        display: block !important;
        width: 100%;
        border-bottom: 1px solid #f8f8f8;
        font-size: 17px !important;
        color: var(--primary-dark) !important;
        font-weight: 600 !important;
    }

    /* Handle Dropdowns on Mobile */
    header nav ul li .dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        background: #fdfaf7 !important;
        padding: 0 !important;
        display: block !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    header nav ul li:hover .dropdown {
        max-height: 250px;
    }

    header nav ul li .dropdown ul li a {
        padding-left: 45px !important;
        font-size: 16px !important;
        border-bottom: 1px solid #eee;
    }

    .icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 100000; /* Above nav */
        padding: 8px;
        background: rgba(80, 40, 12, 0.05); /* Subtle background for visibility */
        border-radius: 6px;
        width: 44px;
        height: 44px;
    }

    .toggle {
        font-size: 32px !important;
        color: var(--primary-dark) !important;
        display: block !important;
    }

    #hero-toggle-btn {
        font-size: 18px !important;
        margin: 25px auto 0 !important;
        background: rgba(120, 84, 55, 0.08) !important;
        padding: 15px 25px !important;
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 320px;
        justify-content: center !important;
        border: 1px solid rgba(120, 84, 55, 0.2) !important;
        display: inline-flex !important;
    }

    /* Footer Adjustments */
    .site-footer {
        padding: 40px 0 20px !important;
    }
    .footer-logo {
        max-width: 130px !important;
        margin-bottom: 15px !important;
    }

    /* Hero Section - High Impact Mobile */
    .hero-industrial {
        padding: 100px 15px 40px !important;
        background: #fdfdfd !important;
        text-align: center;
        min-height: auto !important;
    }

    .hero-industrial h1 {
        font-size: 28px !important; /* Reduced for elegance */
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
    }

    .hero-industrial h3 {
        font-size: 18px !important;
        margin-bottom: 20px !important;
        font-weight: 600 !important;
    }

    .hero-description {
        font-size: 16px !important;
        margin-bottom: 30px !important;
        line-height: 1.6 !important;
    }

    .btn-primary, .btn-secondary {
        width: 100% !important;
        margin: 8px 0 !important;
        height: 56px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        letter-spacing: 0.5px !important;
    }

    #hero-toggle-btn {
        font-size: 16px !important;
        margin: 20px auto 0 !important;
        background: rgba(120, 84, 55, 0.08) !important;
        padding: 15px 20px !important;
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 320px;
        justify-content: center !important;
        border: 1px solid rgba(120, 84, 55, 0.2) !important;
        display: inline-flex !important;
    }
    /* Global Mobile Typography & Spacing Resets */
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    h2 { font-size: 24px !important; margin-bottom: 20px !important; }
    h3 { font-size: 20px !important; }
    h4 { font-size: 18px !important; margin-bottom: 10px !important; }
    p { word-wrap: break-word !important; margin-bottom: 15px !important; }

    header .container {
        padding: 0 15px !important; /* Screen utilization */
    }

    .container {
        padding: 0 15px !important;
    }

    .section-padding {
        padding: 40px 0 !important; /* Remove excessive vertical gaps */
    }

    /* Grids & Layout Improvement */
    .grid-4 {
        grid-template-columns: 1fr 1fr !important; /* 2x2 grid instead of 1x4 stack */
        gap: 15px !important;
    }

    .grid-2, .grid-3, .why-grid, .stack-on-mobile {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .row:not(header .row) {
        flex-direction: column;
        gap: 15px; /* Consistent spacing */
    }
    
    .header .row, .justify-content-between {
        flex-direction: row !important; /* Keep logo and toggle on same line */
    }

    /* Cards & Components Space Optimization */
    .product-card-content, .industry-card, .why-card {
        padding: 20px !important; /* Reduced from 40px */
    }

    .stat-card {
        padding: 20px 15px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .stat-card h3 {
        font-size: 24px !important; /* Reduced from 28px */
        margin-bottom: 5px !important;
    }

    /* Images */
    img, .primary-img, .hover-img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .product-img-wrapper {
        height: 180px !important; /* Reduced to avoid oversized images */
    }

    /* AOS Fix */
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Hero Enhancements */
.premium-hero {
    background: radial-gradient(circle at center, #ffffff 0%, #f2f2f2 100%) !important;
    overflow: hidden;
    padding: 160px 0 80px !important;
}

.hero-decoration-blob {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(120, 84, 55, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-decoration-grid {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 250px;
    height: 250px;
    background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

.hero-main-image-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-accent-circle {
    position: absolute;
    width: 120%;
    height: 120%;
    border: 2px solid rgba(120, 84, 55, 0.15);
    border-radius: 50%;
    z-index: -1;
    animation: rotateSlow 20s linear infinite;
}

.hero-floating-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(80, 40, 12, 0.2);
    display: block;
    animation: floating 6s ease-in-out infinite;
    border: 10px solid var(--white);
}

.hero-text-content h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .premium-hero {
        padding: 120px 15px 40px !important;
    }
    .hero-floating-img {
        border-width: 6px;
        border-radius: 12px;
    }
    .hero-decoration-blob, .hero-decoration-grid {
        display: none;
    }
}

/* ==========================================================================
   HOMEPAGE SOURCE OF TRUTH: PERFECT HEADER (STRICT SYNC)
   ========================================================================== */

header.fixed {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 10px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border-bottom: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    height: auto !important;
    top: 0 !important;
}

/* Container alignment matching home */
header .container {
    max-width: 1200px !important;
    padding: 0 20px !important;
}

/* Nav Link Styles - Exact Copy from Home Logic (Inheriting PT Serif) */
header nav ul li a {
    font-family: "PT Serif", serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    color: #50280c !important;
    padding: 10px 15px !important;
    margin-left: 20px !important;
    text-transform: capitalize !important;
    display: inline-block !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    text-decoration: none !important;
}

/* Underline Indicator - Exact Logic Copy */
header nav ul li a::after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important;
    height: 2px !important;
    bottom: 5px !important;
    left: 10px !important;
    background-color: #785437 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

header nav ul li a:hover {
    color: #b78f6e !important;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: calc(100% - 20px) !important;
}

header nav ul li a.active {
    color: #b78f6e !important;
}

/* Dropdown Consistency */
header nav ul li .dropdown {
    top: 50px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    padding: 15px 0 !important;
    border: none !important;
}

header nav ul li .dropdown ul li a {
    margin-left: 0 !important;
    padding: 10px 25px !important;
    font-size: 16px !important;
    text-transform: capitalize !important;
    width: 100% !important;
}

header nav ul li .dropdown ul li a::after {
    display: none !important;
}

/* Mobile Menu - Strict Sync */
/* Premium Mobile Menu Redesign - Final Fix v2 */
@media (max-width: 991px) {
    header.fixed {
        height: 70px !important;
        background: #fff !important;
        z-index: 99998 !important;
        overflow: visible !important;
    }

    /* Make the nav element itself the overlay when active */
    header nav.show {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    header nav ul {
        display: none !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    header nav.show ul {
        display: flex !important;
    }

    header nav ul li {
        margin: 6px 0 !important;
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        font-family: 'Outfit', sans-serif !important;
        font-size: 1.1rem !important;
        color: #50280c !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        text-decoration: none !important;
        padding: 6px !important;
        display: block !important;
    }

    header nav ul li a.active {
        color: #b78f6e !important;
    }

    /* Floating Toggle Button — scoped to header only */
    header .icon {
        position: fixed !important;
        top: 12px !important;
        right: 15px !important;
        z-index: 100000 !important;
        width: 46px !important;
        height: 46px !important;
        background: #50280c !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    /* Hamburger bars — scoped to header only */
    header .toggle {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #fff !important;
        position: relative !important;
        transition: all 0.3s ease !important;
    }

    header .toggle:before, header .toggle:after {
        content: '' !important;
        position: absolute !important;
        width: 24px !important;
        height: 2px !important;
        background: #fff !important;
        left: 0 !important;
        transition: all 0.3s ease !important;
        display: block !important;
    }

    header .toggle:before { top: -8px !important; }
    header .toggle:after  { top:  8px !important; }

    /* Morph to X when menu is open */
    header nav.show + header .icon header .toggle,
    header nav.show ~ header .icon header .toggle {
        background: transparent !important;
    }

    /* Use :has() for X morph where supported */
    header:has(nav.show) .toggle {
        background: transparent !important;
    }
    header:has(nav.show) .toggle:before {
        top: 0 !important;
        transform: rotate(45deg) !important;
    }
    header:has(nav.show) .toggle:after {
        top: 0 !important;
        transform: rotate(-45deg) !important;
    }
}

/* ── Prevent horizontal scroll on mobile ── */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    * {
        box-sizing: border-box !important;
    }

    img, video, iframe, table {
        max-width: 100% !important;
    }
}
