/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

/* --- CSS Variables and Root Styles --- */
:root {
    --primary-color: #740202;    /* New Deep Red */
    --secondary-color: #920303;  /* A slightly lighter red for highlights */
    --accent-color: #d8a92a;     /* New Gold */
    --dark-color: #212121;       /* Almost Black */
    --light-color: #f4f4f4;      /* Light Grey */
    --white-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* --- Base and Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    padding-top: 70px; /* Offset for fixed header */
}

/* --- Utility and Layout --- */
.container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent-color);
    color: var(--white-color);
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #e6b840; 
    transform: translateY(-3px);
}

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

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

/* --- Header and Navigation (Shared) --- */
.main-header {
    background: var(--white-color);
    height: 70px;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.2rem;
}

.main-nav {
    display: block;
}

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

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

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

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

/* --- Footer (Shared) --- */
.main-footer {
    background: #dfb300;
    color: #003038;
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
}

/* --- Animations (Shared) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HOME PAGE SPECIFIC STYLES ===== */
.hero-slider {
    position: relative;
    height: calc(100vh - 70px);
    overflow: hidden;
    color: var(--white-color);
    background: var(--dark-color);
}
.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.slide.active {
    opacity: 1;
}
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}
.slide.active .slide-content {
    animation: fadeInUp 1s ease-in-out 0.5s forwards;
    opacity: 0;
}
.slide-title {
    font-size: 3.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}
.slide-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white-color);
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}
.slider-control:hover {
    background: rgba(0, 0, 0, 0.6);
}
.slider-control.prev {
    left: 15px;
}
.slider-control.next {
    right: 15px;
}
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background: var(--white-color);
}

/* ===== OTHER PAGES SPECIFIC STYLES ===== */
.page-header { background: var(--primary-color); color: var(--white-color); padding: 50px 0; text-align: center; }
.page-header h1 { font-size: 3rem; color: var(--white-color); }
.page-header p { font-size: 1.1rem; opacity: 0.9; }
.page-section { padding: 60px 0; }
.about-content { display: flex; gap: 40px; align-items: center; text-align: left; }
.about-text { flex: 2; }
.about-image-placeholder { flex: 1; height: 400px; background: var(--light-color) url('https://placehold.co/600x400/e0e0e0/333?text=Our+Facility') center/cover; border-radius: 8px; }
.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--light-color); padding: 40px; border-radius: 8px; margin-top: 50px; text-align: left; }
.mission-vision h3 { border-left: 4px solid var(--accent-color); padding-left: 15px; }
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; text-align: left; }
.why-us-item { padding: 25px; border: 1px solid #ddd; border-radius: 8px; display: flex; gap: 20px; align-items: flex-start; background: var(--white-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.why-us-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.why-us-item .icon-placeholder { width: 50px; height: 50px; background: var(--secondary-color); border-radius: 8px; flex-shrink: 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: var(--white-color); border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: left; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.product-card-content { padding: 25px; }
.product-card-content h3 { color: var(--secondary-color); margin-bottom: 15px; }
.product-card-content h4 { font-size: 1rem; color: var(--dark-color); margin-top: 20px; margin-bottom: 5px; border-bottom: 2px solid var(--light-color); padding-bottom: 5px; }
.product-cta { text-align: center; margin-top: 50px; }
.product-cta .btn { margin: 10px; }

/* --- ENHANCED 50-50 CONTACT GRID --- */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    text-align: left; 
    align-items: center; 
}
.contact-info h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.contact-info p { font-size: 1.2rem; margin-bottom: 2rem; }
.contact-info ul { list-style: none; }
.contact-info li { 
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 25px; /* Increased vertical spacing between items */
    font-size: 1.2rem; /* Increased font size for contact text */
    gap: 20px; /* Increased gap between icon and text */
}
.contact-info a { color: var(--dark-color); text-decoration: none; transition: color 0.3s ease; }
.contact-info a:hover { color: var(--accent-color); }
.contact-info .icon-placeholder { 
    width: 18px; /* Scaled up icons to match text weight */
    height: 18px; 
    background: var(--accent-color); 
    flex-shrink: 0; 
    border-radius: 50%; 
    margin-top: 4px; 
}

.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--dark-color); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; font-family: var(--font-secondary); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; font-size: 1.1rem; }

.map-container { margin-top: 50px; }
.map-container iframe { width: 100%; height: 450px; border: none; border-radius: 8px; }

/* ===== RESPONSIVE DESIGN & MOBILE MENU (SHARED) ===== */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1001; padding: 5px; }
.menu-toggle span { display: block; width: 25px; height: 3px; background-color: var(--dark-color); margin: 5px 0; transition: all 0.3s ease-in-out; }

@media (max-width: 992px) { 
    .contact-grid { grid-template-columns: 1fr; gap: 40px; } 
    .contact-info li { font-size: 1rem; }
}

@media (max-width: 768px) {
    h2, .page-header h1 { font-size: 2rem; }
    .slide-title { font-size: 2.5rem; }
    .menu-toggle { display: block; }
    .main-nav { display: block; position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: var(--white-color); transform: translateX(100%); transition: transform 0.3s ease-in-out; padding-top: 80px; }
    .main-nav.active { transform: translateX(0); }
    .nav-links { flex-direction: column; text-align: center; gap: 2.5rem; }
    .nav-links a { font-size: 1.5rem; }
    .menu-toggle.active { position: fixed; right: 20px; top: 15px; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .logo img { height: 30px; }
    .logo span { font-size: 1rem; }
}
