/* ===== KGN Engineering Works – Fire Safety Website CSS ===== */

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

:root {
  --red: #c0392b;
  --red-dark: #96281b;
  --red-light: #e74c3c;
  --orange: #e67e22;
  --green: #27ae60;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --gray: #555;
  --gray-light: #f5f5f5;
  --white: #fff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 10px;
  --font: 'Segoe UI', Arial, sans-serif;
}

body { font-family: var(--font); color: #333; line-height: 1.7; background: var(--white); }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TOP BAR ===== */
.topbar { background: var(--dark); color: #aaa; font-size: 0.82rem; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left { display: flex; gap: 20px; }
.topbar-right { display: flex; gap: 15px; align-items: center; }
.topbar-link { color: #ccc; }
.topbar-link:hover { color: var(--white); }
.topbar-wa { background: var(--wa); color: var(--white) !important; padding: 3px 10px; border-radius: 4px; font-weight: 600; }
.topbar-wa:hover { background: var(--wa-dark); }

/* ===== HEADER ===== */
.header { background: var(--dark); padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 15px; }
.logo a { color: var(--white); font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.6rem; }
.logo-accent { color: var(--red-light); }
.logo-tag { color: #aaa; font-size: 0.78rem; font-weight: 400; }
.nav ul { list-style: none; display: flex; gap: 2px; align-items: center; }
.nav ul li a { color: #ccc; padding: 8px 12px; border-radius: 6px; font-size: 0.9rem; transition: all 0.2s; display: block; }
.nav ul li a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--dark2); border-radius: var(--radius); min-width: 250px; box-shadow: var(--shadow-lg); padding: 8px 0; border-top: 3px solid var(--red); }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { padding: 10px 20px; font-size: 0.88rem; border-radius: 0; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { background: none; border: 1px solid #555; color: var(--white); padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 1.1rem; display: none; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; text-align: center; }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white) !important; border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: var(--white) !important; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; display: block; margin-bottom: 8px; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 40%, #0f3460 100%); color: var(--white); padding: 90px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(192,57,43,0.3)"/><circle cx="80" cy="60" r="1.5" fill="rgba(192,57,43,0.2)"/><circle cx="50" cy="80" r="1" fill="rgba(192,57,43,0.3)"/></svg>'); }
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.badge { background: var(--red); color: var(--white); padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; display: inline-block; margin-bottom: 20px; }
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero-motto { font-size: 1.3rem; font-style: italic; color: var(--red-light); font-weight: 700; margin-bottom: 16px !important; }
.hero p { font-size: 1.1rem; color: #b0c4de; margin-bottom: 35px; max-width: 700px; }
.footer-motto { font-style: italic; color: var(--red-light) !important; font-weight: 600; margin-bottom: 6px !important; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--red-light); }
.stat span { font-size: 0.8rem; color: #aaa; }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--red); padding: 14px 0; }
.trust-items { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.trust-item { color: var(--white); font-size: 0.88rem; font-weight: 600; }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); color: var(--white); padding: 60px 0; }
.page-hero h1 { font-size: 2.1rem; font-weight: 800; margin: 10px 0 15px; }
.page-hero p { font-size: 1.05rem; color: #b0c4de; margin-bottom: 25px; max-width: 700px; }
.breadcrumb { font-size: 0.88rem; color: #aaa; margin-bottom: 10px; }
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: var(--white); }

/* ===== SECTIONS ===== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 1.9rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-header p { font-size: 1rem; color: var(--gray); max-width: 700px; margin: 0 auto; }

/* ===== SERVICES ===== */
.services { padding: 80px 0; background: var(--gray-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 25px; }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; display: block; color: inherit; border: 2px solid transparent; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red); color: inherit; }
.service-img { height: 180px; background-size: cover; background-position: center; position: relative; }
/* Fire safety SVG backgrounds using CSS gradients to simulate fire safety imagery */
.fire-hydrant-img { background: linear-gradient(135deg, #c0392b 0%, #8e1a0e 50%, #1a1a2e 100%); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.fire-hydrant-img::after { content: '🚒'; font-size: 5rem; }
.sprinkler-img { background: linear-gradient(135deg, #2980b9 0%, #1a5276 50%, #1a1a2e 100%); }
.sprinkler-img::after { content: '💧'; font-size: 5rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.alarm-img { background: linear-gradient(135deg, #e67e22 0%, #a04000 50%, #1a1a2e 100%); }
.alarm-img::after { content: '🔔'; font-size: 5rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.noc-img { background: linear-gradient(135deg, #27ae60 0%, #1a6b3a 50%, #1a1a2e 100%); }
.noc-img::after { content: '📋'; font-size: 5rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.extinguisher-img { background: linear-gradient(135deg, #c0392b 0%, #6e1a0e 50%, #1a1a2e 100%); }
.extinguisher-img::after { content: '🧯'; font-size: 5rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.amc-img { background: linear-gradient(135deg, #8e44ad 0%, #4a235a 50%, #1a1a2e 100%); }
.amc-img::after { content: '🔧'; font-size: 5rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.service-img { display: flex; align-items: center; justify-content: center; }
.service-body { padding: 22px; }
.service-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.service-card p { color: var(--gray); font-size: 0.9rem; margin-bottom: 12px; }
.learn-more { color: var(--red); font-weight: 600; font-size: 0.88rem; }

/* ===== CO2 BANNER ===== */
.co2-banner { background: linear-gradient(135deg, #1a1a2e, #0f3460); padding: 60px 0; }
.co2-content { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.co2-icon { font-size: 5rem; flex-shrink: 0; }
.co2-text { flex: 1; min-width: 280px; }
.co2-text h2 { color: var(--white); font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.co2-text p { color: #b0c4de; font-size: 0.95rem; }
.co2-cta { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ===== WHY US ===== */
.why-us { padding: 80px 0; background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.why-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; transition: box-shadow 0.2s; }
.why-card:hover { box-shadow: var(--shadow); }
.why-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.why-card p { color: var(--gray); font-size: 0.88rem; }

/* ===== GALLERY ===== */
.gallery { padding: 80px 0; background: var(--dark); }
.gallery .section-header h2 { color: var(--white); }
.gallery .section-header p { color: #aaa; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery-item { height: 220px; border-radius: var(--radius); position: relative; overflow: hidden; cursor: pointer; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(192,57,43,0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.gallery-overlay span { color: var(--white); font-weight: 700; font-size: 1rem; text-align: center; padding: 10px; }
/* Gallery item backgrounds – fire safety themed gradients with icons */
.hydrant-gallery { background: linear-gradient(135deg, #8e1a0e, #c0392b); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.hydrant-gallery::before { content: '🚒'; font-size: 5rem; }
.sprinkler-gallery { background: linear-gradient(135deg, #1a5276, #2980b9); display: flex; align-items: center; justify-content: center; }
.sprinkler-gallery::before { content: '💧'; font-size: 5rem; }
.alarm-gallery { background: linear-gradient(135deg, #a04000, #e67e22); display: flex; align-items: center; justify-content: center; }
.alarm-gallery::before { content: '🔔'; font-size: 5rem; }
.pump-gallery { background: linear-gradient(135deg, #1a3a1a, #27ae60); display: flex; align-items: center; justify-content: center; }
.pump-gallery::before { content: '⚙️'; font-size: 5rem; }
.extinguisher-gallery { background: linear-gradient(135deg, #6e1a0e, #c0392b); display: flex; align-items: center; justify-content: center; }
.extinguisher-gallery::before { content: '🧯'; font-size: 5rem; }
.co2-gallery { background: linear-gradient(135deg, #1a1a4e, #3498db); display: flex; align-items: center; justify-content: center; }
.co2-gallery::before { content: '🔵'; font-size: 5rem; }

/* ===== PORTFOLIO ===== */
.portfolio { padding: 80px 0; background: var(--gray-light); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.portfolio-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.portfolio-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.portfolio-warehouse { background: linear-gradient(135deg, #1a1a2e, #c0392b); }
.portfolio-warehouse::before { content: '🏭'; font-size: 5rem; }
.portfolio-factory { background: linear-gradient(135deg, #1a1a2e, #2980b9); }
.portfolio-factory::before { content: '🏗️'; font-size: 5rem; }
.portfolio-commercial { background: linear-gradient(135deg, #1a1a2e, #27ae60); }
.portfolio-commercial::before { content: '🏢'; font-size: 5rem; }
.portfolio-content { padding: 25px; }
.portfolio-tag { background: var(--red); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.portfolio-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin: 12px 0 10px; }
.portfolio-content p { color: var(--gray); font-size: 0.88rem; margin-bottom: 12px; }
.portfolio-content ul { list-style: none; }
.portfolio-content ul li { font-size: 0.88rem; color: var(--gray); padding: 3px 0; }
.portfolio-note { text-align: center; margin-top: 30px; padding: 20px; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--red); }
.portfolio-note p { color: var(--gray); font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq { padding: 80px 0; background: var(--white); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question { width: 100%; background: var(--white); border: none; padding: 18px 22px; text-align: left; font-size: 0.97rem; font-weight: 600; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-question:hover, .faq-question.active { background: #fff5f5; color: var(--red); }
.faq-question span { font-size: 1.4rem; font-weight: 400; color: var(--red); transition: transform 0.2s; flex-shrink: 0; margin-left: 10px; }
.faq-question.active span { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 22px 18px; }
.faq-answer.open { display: block; }
.faq-answer p { color: var(--gray); font-size: 0.92rem; }

/* ===== CONTACT ===== */
.contact { padding: 80px 0; background: var(--gray-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; margin-bottom: 50px; }
.contact-info h3 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.contact-tagline { color: var(--gray); margin-bottom: 25px; font-size: 0.9rem; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-item > span { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.82rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item a { color: var(--dark); font-weight: 600; font-size: 1rem; }
.contact-item a:hover { color: var(--red); }
.contact-cta-btns { margin: 25px 0; display: flex; flex-direction: column; gap: 10px; }
.service-areas { padding: 18px; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--red); }
.service-areas h4 { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.service-areas p { font-size: 0.85rem; color: var(--gray); line-height: 1.8; }
.contact-right { }
.contact-form { background: var(--white); padding: 35px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.92rem; font-family: var(--font); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }
.form-note { font-size: 0.8rem; color: #888; text-align: center; margin-top: 10px; }

/* ===== MAP ===== */
.map-section { margin-top: 20px; }
.map-section h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 15px; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--red); }
.map-actions { display: flex; gap: 12px; margin-top: 15px; flex-wrap: wrap; }
.map-link { color: var(--red); font-weight: 600; font-size: 0.9rem; }

/* ===== SERVICE DETAIL ===== */
.service-detail { padding: 60px 0; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.service-main h2 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin: 30px 0 12px; }
.service-main h2:first-child { margin-top: 0; }
.service-main p { color: var(--gray); margin-bottom: 15px; font-size: 0.95rem; }
.service-list { list-style: none; margin-bottom: 20px; }
.service-list li { padding: 8px 0; color: var(--gray); border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.service-list li:last-child { border-bottom: none; }
.building-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.building-types span { background: var(--gray-light); padding: 5px 12px; border-radius: 20px; font-size: 0.82rem; color: var(--dark); font-weight: 600; }
.cost-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; font-size: 0.9rem; }
.cost-table th { background: var(--dark); color: var(--white); padding: 11px 14px; text-align: left; }
.cost-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--gray); }
.cost-table tr:nth-child(even) td { background: var(--gray-light); }
.sidebar-card { background: var(--gray-light); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.sidebar-card p { color: var(--gray); font-size: 0.88rem; margin-bottom: 15px; }
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--red); font-size: 0.88rem; font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: #aaa; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 35px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 15px; }
.footer-col p { font-size: 0.88rem; line-height: 1.8; }
.footer-contact { margin-top: 15px; }
.footer-contact p { margin-bottom: 5px; }
.footer-contact a { color: #ccc; }
.footer-contact a:hover { color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-col ul li a { color: #aaa; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: var(--white); }
.map-link { color: #aaa; font-size: 0.88rem; }
.map-link:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #333; padding: 20px 0; text-align: center; font-size: 0.82rem; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--white); }

/* ===== FLOATING WHATSAPP ===== */
.float-wa { position: fixed; bottom: 25px; right: 25px; background: var(--wa); color: var(--white) !important; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,0.5); z-index: 9999; transition: all 0.3s; text-decoration: none; }
.float-wa:hover { background: var(--wa-dark); transform: scale(1.1); width: auto; border-radius: 30px; padding: 0 20px; gap: 8px; }
.float-wa-text { display: none; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.float-wa:hover .float-wa-text { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero h1 { font-size: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav.open { display: block; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark2); padding: 15px; }
  .nav.open ul { flex-direction: column; }
  .nav-toggle { display: block; }
  .topbar-left { display: none; }
  .co2-content { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .trust-items { flex-direction: column; align-items: center; gap: 8px; }
  .map-actions { flex-direction: column; }
}
