/* ==========================================================================
   1. CSS Reset & Global Base Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.6; background-color: #f4f7f6; }

/* Reusable Containers */
.container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.section-container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; text-align: center; }

.section-container h3, .section-header h3, .intro-text h3 { font-size: 36px; color: #004b87; margin-bottom: 25px; position: relative; display: inline-block; }
.section-container h3::after, .section-header h3::after { content: ''; width: 60px; height: 3px; background: #004b87; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }
.intro-text h3::after { content: ''; width: 60px; height: 3px; background: #2e8b57; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }

/* ==========================================================================
   2. Header & Navigation 
   ========================================================================== */
header { background: #ffffff; padding: 15px 50px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #004b87; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.brand { display: flex; align-items: center; gap: 15px; }
.logo-svg { width: 60px; height: 60px; }
.rotating-track { animation: spin 8s linear infinite; transform-origin: center; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.brand-text h1 { font-size: 22px; color: #004b87; text-transform: uppercase; letter-spacing: 1px; }
.brand-text span { font-size: 13px; color: #777; font-weight: normal; }

nav ul { list-style: none; display: flex; gap: 25px; }
nav a { text-decoration: none; color: #444; font-weight: 600; font-size: 15px; transition: color 0.3s ease; }
nav a:hover, nav a.active { color: #004b87; }

/* ==========================================================================
   3. Banners & Hero Sections
   ========================================================================== */
.hero { background: linear-gradient(rgba(0, 32, 96, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; color: #ffffff; text-align: center; padding: 180px 20px; }
.hero h2 { font-size: 52px; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.hero p { font-size: 22px; margin-bottom: 40px; font-weight: 300; max-width: 800px; margin-left: auto; margin-right: auto; }

.page-banner { color: #ffffff; text-align: center; padding: 100px 20px; }
.page-banner h2 { font-size: 42px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.page-banner p { font-size: 18px; font-weight: 300; max-width: 800px; margin: 0 auto; }

body[data-page="about"] .page-banner { background: linear-gradient(rgba(0, 32, 96, 0.8), rgba(0, 32, 96, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; }
body[data-page="services"] .page-banner { background: linear-gradient(rgba(0, 32, 96, 0.85), rgba(0, 32, 96, 0.85)), url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; }
body[data-page="sustainability"] .page-banner { background: linear-gradient(rgba(0, 75, 40, 0.75), rgba(0, 32, 96, 0.85)), url('https://images.unsplash.com/photo-1518398046578-8cca57782e17?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; }
body[data-page="contact"] .page-banner { background: linear-gradient(rgba(0, 32, 96, 0.8), rgba(0, 32, 96, 0.8)), url('https://images.unsplash.com/photo-1596524430615-b46475ddff6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; }
body[data-page="real-estate"] .page-banner { background: linear-gradient(rgba(0, 32, 96, 0.8), rgba(0, 32, 96, 0.8)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; }

.btn { background: #004b87; color: #fff; padding: 15px 35px; text-decoration: none; font-size: 18px; font-weight: bold; border-radius: 4px; transition: background 0.3s ease; display: inline-block; }
.btn:hover { background: #003366; }
.btn-light { background: #fff; color: #004b87; padding: 15px 40px; text-decoration: none; font-size: 18px; font-weight: bold; border-radius: 4px; transition: background 0.3s ease; display: inline-block; }
.btn-light:hover { background: #e0e0e0; }

/* ==========================================================================
   4. Page Specific Components
   ========================================================================== */
/* Home Page */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card { background: #fff; padding: 40px 20px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid #004b87; transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); }
.feature-card h4 { font-size: 22px; margin-bottom: 15px; color: #222; }

/* About Page */
.overview-section { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-bottom: 80px; }
.overview-text { flex: 1; min-width: 300px; }
.overview-text h3 { font-size: 32px; color: #004b87; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.overview-text h3::after { content: ''; width: 50px; height: 3px; background: #004b87; position: absolute; bottom: 0; left: 0; }
.overview-text p { font-size: 17px; color: #555; margin-bottom: 20px; text-align: justify; }
.overview-image { flex: 1; min-width: 300px; }
.overview-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.divisions-wrapper { background: #fff; padding: 60px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.divisions-header { text-align: center; margin-bottom: 50px; }
.divisions-header h3 { font-size: 32px; color: #004b87; display: inline-block; position: relative; }
.divisions-header h3::after { content: ''; width: 60px; height: 3px; background: #004b87; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }
.divisions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.division-card { background: #f9f9f9; padding: 30px; border-left: 4px solid #004b87; transition: all 0.3s ease; }
.division-card:hover { background: #004b87; color: #fff; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.division-card:hover h4, .division-card:hover p { color: #fff; }
.division-card h4 { font-size: 22px; color: #222; margin-bottom: 15px; }
.division-card p { font-size: 16px; color: #555; }
.mv-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin: 80px 0; }
.mv-box { background: #fff; padding: 40px; text-align: center; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.mv-box .icon { font-size: 40px; color: #004b87; margin-bottom: 20px; }
.mv-box h4 { font-size: 24px; color: #333; margin-bottom: 15px; }
.mv-box p { font-size: 16px; color: #666; }

/* Services Page */
.section-header { text-align: center; margin-bottom: 60px; }
.service-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; margin-bottom: 80px; }
.service-row:nth-child(even) { flex-direction: row-reverse; }
.service-image { flex: 1; min-width: 300px; }
.service-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-bottom: 5px solid #004b87; }
.service-content { flex: 1; min-width: 300px; }
.service-content h4 { font-size: 28px; color: #222; margin-bottom: 20px; border-left: 4px solid #004b87; padding-left: 15px; }
.service-content p { font-size: 17px; color: #555; margin-bottom: 15px; text-align: justify; }
.service-list { list-style: none; margin-top: 20px; }
.service-list li { font-size: 16px; color: #444; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.service-list li::before { content: '✓'; color: #004b87; font-weight: bold; font-size: 18px; }
.cta-section { background: #004b87; color: #fff; text-align: center; padding: 60px 20px; margin-top: 40px; }
.cta-section h3 { font-size: 32px; margin-bottom: 20px; color: #fff; }
.cta-section h3::after { display: none; }
.cta-section p { font-size: 18px; margin-bottom: 30px; font-weight: 300; color: #fff; }

/* Sustainability Page */
.intro-text { text-align: center; margin-bottom: 70px; }
.intro-text p { font-size: 18px; color: #555; max-width: 900px; margin: 0 auto; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
.pillar-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease; border-bottom: 4px solid #2e8b57; }
.pillar-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.pillar-icon { background: #f0f7f4; color: #2e8b57; font-size: 40px; padding: 30px; text-align: center; }
.pillar-content { padding: 30px; }
.pillar-content h4 { font-size: 22px; color: #004b87; margin-bottom: 15px; }
.pillar-content p { font-size: 16px; color: #666; text-align: justify; }
.impact-section { background: #f9f9f9; padding: 60px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.impact-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.impact-text { flex: 1; min-width: 300px; }
.impact-text h3 { font-size: 32px; color: #004b87; margin-bottom: 20px; }
.impact-text p { font-size: 17px; color: #555; margin-bottom: 20px; }
.impact-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-box { background: #fff; padding: 30px 20px; text-align: center; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-left: 4px solid #2e8b57; }
.stat-box h4 { font-size: 36px; color: #2e8b57; margin-bottom: 10px; }
.stat-box p { font-size: 15px; color: #555; font-weight: 600; text-transform: uppercase; }

/* Contact Page */
.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 50px; max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.contact-info { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid #004b87; }
.contact-info h3 { font-size: 28px; color: #004b87; margin-bottom: 25px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.info-icon { font-size: 24px; color: #004b87; }
.info-content h4 { font-size: 18px; color: #222; margin-bottom: 5px; }
.info-content p { color: #555; font-size: 16px; }
.contact-form { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.contact-form h3 { font-size: 28px; color: #004b87; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; font-family: inherit; transition: border-color 0.3s ease; }
.form-control:focus { outline: none; border-color: #004b87; }
textarea.form-control { resize: vertical; min-height: 150px; }
.submit-btn { background: #004b87; color: #fff; padding: 15px 30px; border: none; border-radius: 4px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background 0.3s ease; width: 100%; }
.submit-btn:hover { background: #003366; }
.map-container { max-width: 1200px; margin: 0 auto 60px; padding: 0 20px; }
.map-container iframe { width: 100%; height: 400px; border: none; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* ==========================================================================
   6. Products Page Layout (AKG Global Style)
   ========================================================================== */
body[data-page="products"] .page-banner { 
    background: linear-gradient(rgba(0, 32, 96, 0.8), rgba(0, 32, 96, 0.8)), url('https://images.unsplash.com/photo-1587293852726-70cdb56c2866?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; 
}

.products-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    max-width: 1200px; 
    margin: 60px auto; 
    padding: 0 20px; 
}

/* Sidebar Categories */
.products-sidebar { 
    flex: 1; 
    min-width: 250px; 
    background: #fff; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-top: 4px solid #004b87; 
    align-self: start; 
    position: sticky;
    top: 100px;
}
.products-sidebar h4 { 
    font-size: 20px; 
    color: #004b87; 
    margin-bottom: 20px; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
}
.products-sidebar ul { 
    list-style: none; 
    margin-bottom: 30px; 
}
.products-sidebar ul li { 
    margin-bottom: 12px; 
}
.products-sidebar ul li a { 
    color: #555; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s ease; 
    display: flex;
    align-items: center;
}
.products-sidebar ul li a::before {
    content: '▸';
    color: #2e8b57;
    margin-right: 8px;
    font-size: 18px;
}
.products-sidebar ul li a:hover, .products-sidebar ul li a.active-cat { 
    color: #004b87; 
}

/* Main Product Content */
.products-main { 
    flex: 3; 
    min-width: 300px; 
}
.product-item { 
    background: #fff; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    margin-bottom: 40px; 
    border-left: 4px solid #004b87; 
}
.product-item h3 { 
    font-size: 28px; 
    color: #004b87; 
    margin-bottom: 15px; 
}
.product-item img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover;
    border-radius: 8px; 
    margin-bottom: 25px; 
}
.product-item p { 
    color: #555; 
    font-size: 16px; 
    margin-bottom: 15px; 
    line-height: 1.8; 
    text-align: justify;
}
.product-item h5 {
    font-size: 18px;
    color: #222;
    margin: 20px 0 10px 0;
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
footer { background: #1a1a1a; color: #ccc; padding: 60px 20px 20px; font-size: 15px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 20px; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 10px; display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 13px; color: #777; }