/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLE TOKENS
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #0D3A2C;         /* Forest Green */
    --primary-light: #164E3E;
    --primary-dark: #061F17;
    --accent: #F25C05;          /* Electric Laser Orange */
    --accent-hover: #D44A00;
    --accent-glow: rgba(242, 92, 5, 0.2);
    --wood: #8C6239;            /* Warm Timber */
    --bg-cream: #FAF8F5;        /* Soft Alabaster/Cream background */
    --bg-white: #FFFFFF;
    --bg-input: #F3F5F4;
    --border-color: #E2E6E4;
    
    /* Typography colors */
    --text-color: #1C2321;      /* Charcoal */
    --text-muted: #58605D;      /* Medium Grey */
    --text-light: #EDF0EE;      /* Soft Light Grey */

    /* Typography Families */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Shadow & Radius Tokens */
    --shadow-sm: 0 2px 4px rgba(13, 58, 44, 0.05);
    --shadow-md: 0 8px 24px rgba(13, 58, 44, 0.08);
    --shadow-lg: 0 16px 32px rgba(13, 58, 44, 0.12);
    --shadow-glow: 0 0 20px rgba(242, 92, 5, 0.35);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Spacing & Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL RESET & INITIALIZATION
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
    width: 100% !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100% !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Container Utility */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    will-change: opacity, transform;
}

.scroll-reveal.fade-up {
    transform: translateY(40px);
}

.scroll-reveal.fade-down {
    transform: translateY(-40px);
}

.scroll-reveal.fade-left {
    transform: translateX(-40px);
}

.scroll-reveal.fade-right {
    transform: translateX(40px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0) !important;
}

/* Stagger delays */
.scroll-reveal[data-delay="100"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="200"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="300"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="400"] { transition-delay: 0.4s; }
.scroll-reveal[data-delay="500"] { transition-delay: 0.5s; }
.scroll-reveal[data-delay="600"] { transition-delay: 0.6s; }
.scroll-reveal[data-delay="700"] { transition-delay: 0.7s; }

/* ==========================================================================
   TYPOGRAPHY SYSTEM
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark);
}

.section-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-badge.badge-light {
    color: var(--accent);
    background-color: rgba(242, 92, 5, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 48px;
}

.center-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

@media screen and (max-width: 768px) {
    .section-header-split {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px !important;
        border-bottom: none;
        padding-bottom: 0;
    }
}

.text-white {
    color: var(--bg-cream) !important;
}

/* ==========================================================================
   BUTTON COMPONENT DESIGN
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    text-align: center;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-cream);
    box-shadow: 0 4px 12px rgba(242, 92, 5, 0.2);
}

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

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

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

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(242, 92, 5, 0.12);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION SYSTEM
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 58, 44, 0.06);
    transition: var(--transition-smooth);
}

.header.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    line-height: 0.95;
}

.logo-accent {
    color: var(--accent);
}

.logo .sub-logo {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.logo.text-white .sub-logo.text-light {
    color: rgba(237, 240, 238, 0.7);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-dark);
}

.nav-link:not(.btn-nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-nav-cta {
    background-color: var(--primary);
    color: var(--bg-cream) !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.btn-nav-cta::after {
    display: none !important;
}

.btn-nav-cta:hover {
    background-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1001;
}

.toggle-bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION DESIGN
   ========================================================================== */
/* ==========================================================================
   HERO SECTION DESIGN (FULL-SCREEN BACKGROUND SLIDER & VIDEO SUPPORT)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--primary-dark);
}

/* Dark Tint Overlay - Left-to-right gradient to maximize text contrast on the left, while preserving image visibility on the right */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6, 31, 23, 0.95) 0%, rgba(6, 31, 23, 0.8) 45%, rgba(6, 31, 23, 0.25) 80%, rgba(6, 31, 23, 0.05) 100%);
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .hero-section::before {
        background: linear-gradient(to bottom, rgba(6, 31, 23, 0.95) 0%, rgba(6, 31, 23, 0.85) 60%, rgba(6, 31, 23, 0.5) 100%);
    }
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 20s infinite;
    will-change: opacity;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }

@keyframes slideFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* Background video for desktop only */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

@media screen and (max-width: 767px) {
    .hero-video {
        display: none;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-content-layer {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--bg-cream);
}

.hero-subtext {
    font-size: 1.125rem;
    color: rgba(237, 240, 238, 0.85);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-section .btn-secondary {
    color: var(--bg-cream);
    border-color: var(--bg-cream);
}

.hero-section .btn-secondary:hover {
    background-color: var(--bg-cream);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-section .trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.hero-section .trust-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(237, 240, 238, 0.75);
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.hero-image-overlay-card {
    background-color: var(--primary);
    color: var(--bg-cream);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--accent);
    z-index: 10;
}

.overlay-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 4px;
}

.overlay-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

/* ==========================================================================
   STATS SECTION DESIGN
   ========================================================================== */
.stats-section {
    padding: 60px 0;
    background-color: var(--primary);
    color: var(--bg-cream);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    border-right: 1px solid rgba(237, 240, 238, 0.15);
}

.stat-card:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-lbl {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ==========================================================================
   ABOUT US SECTION DESIGN
   ========================================================================== */
.about-section {
    padding: 100px 0;
}

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

.about-image {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.about-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.feat-bullet {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--accent);
    flex-shrink: 0;
}

/* ==========================================================================
   PRODUCTS & SERVICES SECTION DESIGN
   ========================================================================== */
.products-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.product-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 31, 23, 0.82) 0%, rgba(6, 31, 23, 0.96) 100%);
    z-index: -1;
    transition: background var(--transition-smooth);
}

.product-card:hover::before {
    background: linear-gradient(to bottom, rgba(6, 31, 23, 0.62) 0%, rgba(6, 31, 23, 0.88) 100%);
}

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

.product-icon-box {
    color: var(--accent);
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.product-card:hover .product-icon-box {
    color: var(--bg-cream);
    transform: scale(1.05);
}

.product-svg {
    width: 48px;
    height: 48px;
}

.product-card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--bg-cream);
}

.product-card-desc {
    font-size: 0.9rem;
    color: rgba(237, 240, 238, 0.85);
    margin-bottom: 28px;
    flex-grow: 1;
}

.product-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: var(--transition-fast);
}

.product-link:hover {
    color: var(--bg-cream);
    padding-left: 4px;
}

/* ==========================================================================
   MACHINERY SECTION DESIGN
   ========================================================================== */
.machinery-section {
    padding: 100px 0;
}

.machinery-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.machinery-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.machinery-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.machinery-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.machinery-item-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.machinery-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--accent);
}

.machinery-item-title h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.machinery-item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 20px;
}

.machinery-media {
    position: relative;
}

.machinery-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.machinery-card-overlay {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: rgba(13, 58, 44, 0.85);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    color: var(--bg-cream);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(237, 240, 238, 0.1);
}


.machines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.machine-card {
    background-color: var(--bg-cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.machine-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(242, 92, 5, 0.3);
}

.machine-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: rgba(6, 31, 23, 0.05);
}

.machine-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

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

.machine-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.machine-card-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    flex-grow: 1;
}

/* ==========================================================================
   OUR PROCESS TIMELINE DESIGN
   ========================================================================== */
.process-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.timeline {
    position: relative;
    max-width: 860px;
    margin: 40px auto 0;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: -48px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--bg-cream);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-number {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-cream);
    box-shadow: var(--shadow-glow);
}

.timeline-content {
    background-color: var(--bg-cream);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(242, 92, 5, 0.3);
    box-shadow: var(--shadow-sm);
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   WHY CHOOSE US DESIGN
   ========================================================================== */
.why-choose-section {
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background-color: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(242, 92, 5, 0.2);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-block;
}

.why-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.why-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   FAQ ACCORDION DESIGN
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.faq-accordion-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background-color: var(--bg-cream);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(242, 92, 5, 0.2);
}

.faq-trigger {
    width: 100%;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background: transparent;
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
    padding-right: 16px;
}

.faq-icon-arrow {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.faq-icon-arrow::before, .faq-icon-arrow::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

/* Horizontal line */
.faq-icon-arrow::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

/* Vertical line */
.faq-icon-arrow::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.faq-trigger[aria-expanded="true"] .faq-icon-arrow {
    transform: rotate(135deg);
}

.faq-trigger[aria-expanded="true"] .faq-icon-arrow::before,
.faq-trigger[aria-expanded="true"] .faq-icon-arrow::after {
    background-color: var(--accent);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.faq-panel-content {
    padding: 0 32px 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid transparent;
}

/* ==========================================================================
   CONTACT SECTION & B2B QUOTE FORM DESIGN
   ========================================================================== */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info-panel {
    background-color: var(--primary);
    color: var(--bg-cream);
    padding: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.contact-intro-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 16px;
    margin-bottom: 36px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-detail-icon {
    font-size: 1.5rem;
    line-height: 1;
    background-color: rgba(237, 240, 238, 0.1);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-detail-text h5 {
    color: var(--bg-cream);
    font-size: 0.9rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-detail-text p {
    font-size: 1rem;
    color: var(--text-light);
}

.contact-link-light:hover {
    color: var(--accent);
}

.b2b-assurance-card {
    background-color: rgba(237, 240, 238, 0.05);
    border: 1px solid rgba(237, 240, 238, 0.1);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-top: 40px;
}

.b2b-assurance-card h5 {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.b2b-assurance-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-form-panel {
    background-color: var(--bg-white);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.form-panel-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.form-panel-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-row {
    margin-bottom: 20px;
}

.flex-row {
    display: flex;
    gap: 20px;
}

.flex-1 {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
}

.form-group label .req {
    color: var(--accent);
}

.form-group input, .form-group select, .form-group textarea {
    background-color: var(--bg-input);
    border: 1px solid transparent;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #9A9E9C;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    background-color: var(--bg-white);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Error message indicators */
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea {
    border-color: #E63946;
    background-color: #FDF2F4;
}

.error-msg {
    display: none;
    font-size: 0.75rem;
    color: #E63946;
    font-weight: 600;
}

.form-group.invalid .error-msg {
    display: block;
}

/* ==========================================================================
   SUCCESS MODAL DIALOG DESIGN
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 31, 23, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-cream);
    padding: 48px;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

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

.modal-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(13, 58, 44, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 24px;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER DESIGN
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--bg-cream);
    padding-top: 80px;
    border-top: 2px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(237, 240, 238, 0.1);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 16px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: rgba(237, 240, 238, 0.08);
    color: var(--text-light);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.social-icon-link:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--bg-cream);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    border-left: 2px solid var(--accent);
    padding-left: 12px;
    line-height: 1;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.75;
}

.footer-link-item:hover {
    color: var(--accent);
    opacity: 1;
    padding-left: 4px;
}

.footer-contact-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 12px;
}

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

.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.6;
}

.seo-footer-term {
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES) - MOBILE-FIRST APPROACH
   ========================================================================== */

/* Tablet viewports (under 1024px) */
@media screen and (max-width: 1024px) {
    .hero-grid, .about-grid, .machinery-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-img {
        height: 380px;
    }

    .hero-image-overlay-card {
        bottom: -12px;
        left: 24px;
    }

    .about-image {
        order: -1;
    }

    .about-img {
        height: 350px;
    }

    .machinery-media {
        order: -1;
    }

    .machinery-img {
        height: 380px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .machines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile navigation layout (under 768px) */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--bg-cream);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: var(--transition-smooth);
        padding: 40px 24px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        display: block;
    }

    .btn-nav-cta {
        display: block;
        text-align: center;
        margin-top: 12px;
    }

    /* Change toggle icon to an 'X' close indicator when active */
    .nav-toggle.active .toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Adjust typography sizes */
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        border-right: none;
        background-color: rgba(237, 240, 238, 0.05);
        padding: 16px;
        border-radius: var(--radius-sm);
    }
    
    .timeline {
        padding-left: 20px;
    }
    .timeline-number {
        left: -36px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .contact-info-panel, .contact-form-panel {
        padding: 32px 24px;
    }

    .flex-row {
        flex-direction: column;
        gap: 20px;
    }

    /* Mobile responsive grid stacking overrides */
    .hero-section {
        height: auto !important;
        min-height: auto !important;
        padding-top: 120px !important;
        padding-bottom: 60px !important;
    }
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .spec-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .products-grid, .machines-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .machine-specs-list {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Small optimized stat cards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .stat-card {
        padding: 12px !important;
    }
    .stat-num {
        font-size: 1.85rem !important;
    }
    .stat-lbl {
        font-size: 0.78rem !important;
    }

    /* Center buttons and layouts on mobile */
    .hero-ctas, .about-ctas, .back-link {
        justify-content: center !important;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-section .trust-icon {
        display: none !important;
    }
    
    .back-link {
        width: 100%;
    }

    /* Center contact detail list container block, keep icons vertically aligned on the left */
    .contact-details-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin: 0 auto !important;
        width: fit-content !important;
    }
    .contact-detail-item {
        justify-content: flex-start !important;
    }

    /* Center footer contents and stack to 1 column on mobile */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .footer-brand, .footer-links, .footer-contact {
        text-align: center !important;
    }
    
    .footer-tagline {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .footer-title {
        border-left: none !important;
        padding-left: 0 !important;
        text-align: center !important;
    }
    
    .footer-list {
        align-items: center !important;
    }
    
    .footer-contact-detail {
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .footer-socials {
        justify-content: center !important;
    }

    /* Fixed section paddings to avoid overlaps and excessive spacing */
    .about-section, .products-section, .machinery-section, .process-section, .faq-section, .contact-section {
        padding: 50px 0 !important;
    }
}

/* Small mobile devices (under 480px) */
@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
}

/* Inline SVG Icon Helper */
.icon-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
}

.why-svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-bottom-link-item {
    color: var(--text-light);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-bottom-link-item:hover {
    opacity: 1;
    color: var(--accent);
}

/* Make whole product card hover transition trigger the nested link hover */
.product-card {
    text-decoration: none !important;
}

.product-card:hover .product-link {
    color: var(--bg-cream);
    padding-left: 4px;
}

/* Scroll to Top Button styling */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: var(--bg-cream);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}


