/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    --primary-blue: #0056b3;
    --brand-red: #e41e26;
    --dark-bg: #121212;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --text-main: #333333;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { line-height: 1.6; color: var(--text-main); scroll-behavior: smooth; background: var(--white); }

/* =========================================
   2. NAVIGATION & HEADER
   ========================================= */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; max-width: 1400px; margin: auto; height: 80px; }
.logo img { height: 55px; width: auto; display: block; }
.nav-links { display: flex; list-style: none; height: 100%; }
.nav-links li { position: relative; display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); padding: 0 15px; font-weight: 600; height: 100%; display: flex; align-items: center; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); }

.dropdown-content { display: none; position: absolute; background: var(--white); min-width: 220px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-top: 3px solid var(--primary-blue); top: 100%; left: 0; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { padding: 12px 20px; border-bottom: 1px solid #eee; display: block; color: var(--text-main); text-decoration: none; font-size: 14px; }

/* =========================================
   3. HERO & BANNER
   ========================================= */
.hero { height: 70vh; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1562254492-377a3ac576f4?auto=format&fit=crop&w=1500&q=80'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: var(--white); text-align: center; }
.hero h1 { font-size: 3.5rem; text-transform: uppercase; letter-spacing: 2px; }

.page-banner { height: 40vh; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1562254492-377a3ac576f4?auto=format&fit=crop&w=1500&q=80'); background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; }

/* =========================================
   4. LAYOUT COMPONENTS
   ========================================= */
.container { padding: 80px 10%; max-width: 1400px; margin: auto; }
.bg-light { background: var(--light-grey); }
.bg-white { background: var(--white); }
.section-title { text-align: center; margin-bottom: 20px; }
.underline { width: 60px; height: 4px; background: var(--brand-red); margin: 15px auto 0; }
.blue-title { color: var(--primary-blue); text-align: center; letter-spacing: 2px; font-size: 2.2rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

/* Service Cards */
.service-visual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.service-visual-card { position: relative; overflow: hidden; border-radius: 8px; display: flex; flex-direction: column; }
.service-visual-card img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.service-visual-card:hover img { transform: scale(1.05); }
.service-btn { background: #2b78bc; color: white; text-align: center; padding: 15px; text-decoration: none; font-weight: 600; border-radius: 0 0 8px 8px; }

/* Brand Cards */
.product-grid-brand { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.brand-card { background: var(--white); padding: 40px 20px; text-align: center; border: 1px solid #eeeeee; transition: var(--transition); }
.brand-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.brand-logo-container { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; }
.brand-logo-container img { max-width: 80%; max-height: 100%; object-fit: contain; }

/* About Us Detailed Layout */
.about-flex-row { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-text { flex: 1; min-width: 300px; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.gallery-item { overflow: hidden; height: 250px; border-radius: 5px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; cursor: pointer; }
.gallery-item img:hover { transform: scale(1.1); }

/* =========================================
   5. BUTTONS & FOOTER
   ========================================= */
.btn { padding: 14px 35px; border-radius: 4px; font-weight: bold; text-decoration: none; display: inline-block; cursor: pointer; }
.btn-red { background: var(--brand-red); color: var(--white); border: none; }
.btn-outline { border: 2px solid var(--white); color: var(--white); }

footer { background: var(--dark-bg); color: var(--white); padding: 70px 5% 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; }
.footer-info h3 { border-left: 4px solid var(--brand-red); padding-left: 15px; margin-bottom: 20px; }
.footer-form input, .footer-form textarea { width: 100%; padding: 12px; margin-bottom: 10px; background: #222; border: 1px solid #444; color: white; border-radius: 4px; }
.submit-btn { background: var(--brand-red); color: white; padding: 14px; border: none; cursor: pointer; width: 100%; font-weight: bold; }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #333; color: #888; font-size: 13px; }

/* =========================================
   6. MOBILE MENU
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
    .menu-toggle span { width: 25px; height: 3px; background: var(--text-main); }
    .nav-links { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: white; flex-direction: column; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 15px; border-bottom: 1px solid #eee; }
    .dropdown-content { position: static; display: none; box-shadow: none; padding-left: 20px; }
    .dropdown:hover .dropdown-content { display: block; }
    .about-flex-row { flex-direction: column; }
    .hero h1 { font-size: 2rem; }
}