/* --- FROM globals.css --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #333;
    padding-top: 60px; /* same or slightly larger than your header height */
}

section {
    padding: 100px 20px;
}

h1 { color: #fff; }

h2 {
    margin-bottom: 20px;
    color: #0d47a1;
}

button {
    background-color: #0d47a1;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #083078;
}

/* --- HEADER STYLES (From Header.js inline styles) --- */
.header {
    background-color: #000038;
    color: #fff;
    padding: 15px 20px;
    font-size: 22px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

/* Class added by JS when scrolling */
.header.scrolled {
    background-color: #000038d0; 
}

.logo {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.desktop-nav {
    margin-left: auto;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    margin-left: 40px;
}

.menu-button {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 3000;
    display: block; 
}

.menu-button:hover {
    background: none; /* override default button hover */
}

/* --- MOBILE OVERLAY (From Header.js <style jsx>) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 50, 0.96);
    display: none; /* Hidden by default in pure CSS */
    justify-content: center;
    align-items: center;
    z-index: 2500;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.overlay.active {
    display: flex;
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.mobile-link {
    color: white;
    text-decoration: none;
    font-size: 26px;
    font-weight: 500;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: #ffd700;
}

/* Hide desktop nav on small screens */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
}

/* Show desktop nav on larger screens */
@media (min-width: 901px) {
    .menu-button {
        display: none;
    }
    .overlay {
        display: none !important; /* Force hide overlay on desktop */
    }
}

/* --- HOME CAROUSEL STYLES (From Home.js) --- */
.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 400px;
    width: 100%;
    /* background-image is set by JS */
    background-size: 50% 95%;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
    padding: 0; /* Override the default section padding for the hero */
}

@media (max-width: 768px) {
    .hero-carousel {
        background-size: 80% 95% !important;
    }
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: 0.3s;
    padding: 0; /* override default button padding */
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

.dots-container {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #0d47a1;
}

/* --- PRODUCTS STYLES (From Products.js Inline Styles) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: center;
}

.product-img-container {
    width: 100%;
    height: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px solid #f0f0f0;
}

.product-title {
    color: #0f1724;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.product-desc {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- CONTACT FORM STYLES (From contact.css) --- */
:root {
    --accent: #ff7a30;
    --input-border: #e6e9ee;
    --input-bg: #fff;
    --text: #0f1724;
    --muted: #6b7280;
    --error: #d9534f;
    --radius: 8px;
    --max-width: 880px;
}

.inquiry-form {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px;
    color: var(--text);
    background: #fff;
    border-radius: 12px;
}

.inquiry-title {
    font-size: 16px;
    font-weight: 700;
    color: #0b3b59;
    margin-bottom: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #16324f;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: #9aa3ad;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 2px 8px rgba(11,59,89,0.06);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.input-error {
    border-color: var(--error) !important;
}

.field-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 18px; /* prevents layout shifting */
}

.form-actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(180deg, var(--accent), #ff6a10);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255,122,48,0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
}

.status { margin-top: 12px; }
.status-success { color: #0f7a52; font-weight: 600; margin-top: 10px; }
.status-error { color: var(--error); font-weight: 600; margin-top: 10px; }

@media (max-width: 768px) {
    .inquiry-form { padding: 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .inquiry-title { font-size: 1.125rem; }
}