/* --- Global Setup & Variables --- */
:root {
    --color-background: #FAFCFA;
    --color-text: #34282C;
    --color-text-light: #25383C;
    --color-surface: #FFFFFF;
    --color-primary: #34282C;
    --color-on-primary: #F5F5F5;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--color-dark);
    background-color: #F9F8F6;
    /* background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAARlJREFUaI7t0sENAiEMgOFS/0H/oP+iWgg2gUFxifV9m5mZzUR8u/eY92Jv1gDmz1gDh5iAzqgIyiAyyECVoAOKECgDRyFQQyGDIiEMKkAY9IBiEAIYhAAOIcBxCFQQyEAIhBgyQgY5oDSIAOKAiCAJiAgiQpggA5yHEAiBDHIgBEKQARFIQAKaIEPaIFfEACoQBSJQgSgQgSRIABFIEGGBHBAi3ogA1D/xEBGDIhAGGYSAhCAHHQgBIQhAwgAJKIAKJEBqiAEgBghAByCAHcQADmIAKRAFGohAQYQgA0QQA0QAGaAIeCAH8IBeEAiEIBkIQCwQgEgQAYyHEBghiAAh0IDKEAIKEDDEgBEyQAZ5oAIkQBSIAhE4/wWmg34FBYgK+pX/AAAAAElFTSuQmCC'); */

    /* --- ADD THESE 3 LINES --- */
    display: flex;             /* Turns on flexbox layout */
    flex-direction: column;    /* Stacks elements vertically */
    min-height: 100vh;         /* Ensures body is at least as tall as the screen */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-text-light);
}

/* --- Header --- */
.header {
    background-color: var(--color-background);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 700;
    padding: 0.25rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.icon-menu {
    width: 28px;
    height: 28px;
    color: var(--color-text-light);
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: var(--color-text-light);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --- About Us Summary --- */
.about-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    background-color: var(--color-surface);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content {
    padding: 2rem;
}

.about-content h2 {
    font-size: 2.2rem;
}

.about-content p {
    margin: 1rem 0 1.5rem;
    color: var(--color-text-light);
}

.about-content ul {
    list-style: none;
}

.about-content li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
}

.about-content svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-primary);
}

main {
    flex-grow: 1; /* This tells the main content to grow and fill empty space */
}

/* --- Features Section --- */
/* .features {
    
    background-image: url('../assets/features-bg.png');

    
    background-size: cover;       
    background-position: center;  
    background-repeat: no-repeat; 
} */
.features {
    /* This sets a white background at 80% opacity */
    background-color: rgba(255, 255, 255, 0.9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background-color: var(--color-background);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* --- Portfolio Preview --- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    background-color: var(--color-surface);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Testimonials --- */
.testimonials {
    background-color: var(--color-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2rem;
    background-color: var(--color-background);
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--color-text-light);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 700;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-text-light);
    color: #e5e7eb;
    padding: 4rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-surface);
    margin-bottom: 1rem;
}

.footer-about p {
    max-width: 300px;
    opacity: 0.8;
}

.footer-address p {
    max-width: 300px;
    opacity: 0.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-contact a {
    color: #e5e7eb;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .header-actions .btn { display: none; }
    .nav-toggle { display: block; }

    .main-nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-top: 1px solid #e5e7eb;
    }
    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    .main-nav.active li {
        text-align: center;
    }
    .main-nav.active a {
        display: block;
        padding: 1rem;
    }
    .main-nav.active a::after {
        display: none;
    }

    .hero-title { font-size: 2.8rem; }
    .about-card { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}

/* --- Add to the bottom of css/style.css --- */

/* --- Page Header for Inner Pages --- */
.page-header {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--color-text-light);
    color: var(--color-surface);
    margin-top: 70px; /* Header height */
}

.page-header h1 {
    font-size: 2.8rem;
    max-width: 800px;
    margin: 0 auto 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
}


/* --- Factory Infrastructure Section --- */
/* .factory-infra {
    background-color: var(--color-background);
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    text-align: center;
}

.infra-item {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.infra-item h4 {
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.infra-item p {
    color: var(--color-primary);
    font-size: 1.75rem;
    font-weight: 800;
}

.infra-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.infra-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 1rem;
} */

/* --- ADD TO THE BOTTOM OF CSS/STYLE.CSS --- */

/* --- New About Page Sections --- */
.story-section, .why-choose-us {
    padding: 6rem 0;
}

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

.story-grid.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.story-images {
    position: relative;
    min-height: 500px;
}

.story-images img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 2;
}

.story-images img:last-child {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1;
}

/* For sections with only one image */
.story-grid.reverse .story-images img:first-child {
    width: 100%;
    position: relative;
}


.story-content .subtitle {
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.story-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.certifications {
    background-color: var(--color-surface);
    padding: 6rem 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-item {
    text-align: center;
}

.cert-item img {
    max-width: 120px;
    margin: 0 auto 1rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.cert-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.cert-item span {
    font-weight: 700;
    color: var(--color-text-light);
}


/* Responsive adjustments for new About page */
@media (max-width: 992px) {
    .story-grid,
    .story-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .story-images {
        min-height: 400px;
        margin-bottom: 2rem;
    }
    .story-grid.reverse .story-images {
        grid-row: 1; /* Puts image on top on mobile */
    }
}

/* --- Responsive adjustments for new sections --- */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* --- Add to the bottom of css/style.css --- */

/* --- Portfolio Page Section --- */
.portfolio-page {
    background-color: var(--color-background);
}

.portfolio-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background-color: var(--color-surface);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.portfolio-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-tag {
    display: inline-block;
    background-color: var(--color-text-light);
    color: var(--color-on-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.portfolio-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-card p {
    color: var(--color-text-light);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.btn-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    transition: transform 0.2s ease;
}

.btn-link:hover {
    transform: translateX(3px);
}

/* --- Add to the bottom of css/style.css --- */

/* --- FAQ Page Section --- */
.faq-section {
    background-color: var(--color-surface);
    padding: 5rem 0;
}

.faq-section .container {
    max-width: 800px;
}

.faq-accordion .faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    color: var(--color-text-light);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    line-height: 1.7;
}

/* --- Add to the bottom of css/style.css --- */

/* --- Contact Page Section --- */
.contact-section {
    background-color: var(--color-background);
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-details h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-details p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-info-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-info-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-form-wrapper {
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.contact-form-wrapper h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
}

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

.contact-page-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-page-form input,
.contact-page-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 40, 44, 0.1);
}

.contact-page-form button {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* --- Responsive adjustments for contact page --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Add to the bottom of css/style.css --- */

/* Fixed Decorative Background Image */
body::before {
    content: '';
    position: fixed; /* This makes it stay in one place */
    z-index: -1;     /* This puts it behind your content */

    /* --- Position and Size --- */
    /* Adjust these values to move the image around */
    top: -28vh;   
    left: -25vw;
    width: 60vw;     /* Adjust the size */
    height: 140vh;

    /* --- Your Image --- */
    /* Replace this URL with your chosen image */
    background-image: url('../assets/chairpad_nobg.png');
    background-size: contain;
    background-repeat: no-repeat;

    /* --- Adjust Visibility --- */
    /* Lower this value to make it more faint (e.g., 0.03) */
    opacity: 0.9;

    /* Optional: Rotate the image slightly */
    transform: rotate(-0deg);
    
    /* Optional: Add a blur effect like in your example */
    /* filter: blur(50px); */
}

/* --- Add to the bottom of css/style.css --- */

/* Hero Section Background Image */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh; /* This makes the section cover the full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px; /* This pushes your text down so it's not hidden by the header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/home-banner.png'); /* REPLACE with your image path */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1; /* Place it behind the text content */

    /* Overlay for fading/darkening, like in your example */
    /* Adjust rgba values for darkness/color, and 0.4 for opacity */
    background-blend-mode: multiply; /* Blends image with background-color */
    background-color: rgba(52, 40, 44, 0.4); /* Dark overlay color */
    
    /* Optional: Add a subtle blur if desired, like your example */
    /* filter: blur(5px); */
}

/* Ensure hero text is on top of the background image */
.hero .container {
    position: relative; /* Brings container above the background */
    z-index: 1; /* Ensures text is clickable and visible */
    color: var(--color-on-primary); /* Change text color for better contrast */
}

.hero-subtitle {
    color: var(--color-on-primary); /* Ensure subtitle is visible */
    opacity: 0.8;
}

.hero-text {
    color: var(--color-on-primary); /* Ensure text is visible */
    opacity: 0.9;
}

/* Adjust primary button for dark background if needed */
.hero-buttons .btn-primary {
    background-color: var(--color-on-primary);
    color: var(--color-primary);
}

.hero-buttons .btn-secondary {
    border-color: var(--color-on-primary);
    color: var(--color-primary);
}

/* --- Full-Width Image Section --- */
.full-width-image {
    padding: 0;
    line-height: 0; /* Removes any extra space around the image */
}

.full-width-image img {
    width: 100%;
    height: 450px; /* You can adjust this height */
    object-fit: cover; /* Ensures the image covers the space without distortion */
    display: block;
}