/* ===========================
   Macdol Water Plant – CSS
   =========================== */

:root {
  --blue-dark:   #0d2f5e;
  --blue-mid:    #1565c0;
  --blue-light:  #42a5f5;
  --cyan:        #00bcd4;
  --white:       #ffffff;
  --off-white:   #f4f9ff;
  --gray:        #6b7280;
  --gray-light:  #e5e7eb;
  --text:        #1e293b;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(13,47,94,.12);
  --transition:  all .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(13,47,94,.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-brand {
  display: flex; align-items: center; gap: .75rem;
}
.nav-logo {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--cyan), var(--blue-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.nav-title { color: var(--white); font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.nav-title span { display: block; font-size: .7rem; font-weight: 400; color: var(--blue-light); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .93rem; font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--cyan);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--blue-light));
  color: var(--white) !important;
  padding: .5rem 1.25rem;
  border-radius: 25px; font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--cyan) 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,192L60,186.7C120,181,240,171,360,186.7C480,203,600,245,720,245.3C840,245,960,203,1080,186.7C1200,171,1320,181,1380,186.7L1440,192L1440,320L0,320Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .4rem 1.2rem;
  border-radius: 25px;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--cyan); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 600px; margin: 0 auto 2.5rem;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--white);
  color: var(--blue-dark);
  padding: .85rem 2rem;
  border-radius: 50px; font-weight: 700; font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.25); }

.btn-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 50px; font-weight: 600; font-size: 1rem;
  transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }

.hero-stats {
  display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap;
  margin-top: 4rem;
  position: relative; z-index: 1;
}
.stat { text-align: center; color: var(--white); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--cyan); }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: .2rem; }

/* ── SECTIONS ── */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--off-white); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  background: rgba(21,101,192,.1);
  color: var(--blue-mid);
  padding: .3rem 1rem;
  border-radius: 20px; font-size: .82rem; font-weight: 600;
  margin-bottom: .75rem;
}
.section-header h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; color: var(--blue-dark); margin-bottom: .75rem; }
.section-header p { color: var(--gray); max-width: 560px; margin: 0 auto; }

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

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-mid), var(--cyan));
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 36px rgba(13,47,94,.18); }
.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .6rem; }
.service-card p { color: var(--gray); font-size: .93rem; }
.service-nic {
  margin-top: 1rem;
  display: inline-block;
  background: rgba(21,101,192,.08);
  color: var(--blue-mid);
  padding: .25rem .75rem;
  border-radius: 20px; font-size: .78rem; font-weight: 600;
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: clamp(1.6rem,2.5vw,2.2rem); font-weight: 800; color: var(--blue-dark); margin-bottom: 1rem; }
.about-text p { color: var(--gray); margin-bottom: 1rem; }
.about-features { list-style: none; margin-top: 1.5rem; }
.about-features li {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: .95rem;
}
.about-features li:last-child { border: none; }
.check { color: var(--cyan); font-size: 1.2rem; }

.about-visual {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center; color: var(--white);
}
.about-visual .big-icon { font-size: 5rem; margin-bottom: 1rem; }
.about-visual h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: .75rem; }
.about-visual p { color: rgba(255,255,255,.8); font-size: .95rem; }

/* ── NIC TABLE ── */
.nic-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table {
  width: 100%; border-collapse: collapse;
  background: var(--white);
}
thead { background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid)); color: var(--white); }
th { padding: 1rem 1.5rem; text-align: left; font-size: .9rem; font-weight: 600; }
td { padding: .9rem 1.5rem; font-size: .9rem; color: var(--gray); border-bottom: 1px solid var(--gray-light); }
tr:hover td { background: var(--off-white); }
.badge-mfg {
  background: linear-gradient(90deg, var(--blue-mid), var(--cyan));
  color: var(--white);
  padding: .3rem .9rem; border-radius: 20px; font-size: .78rem; font-weight: 700;
}

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h3 { font-size: 1.4rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 1.5rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-item h4 { font-size: .9rem; color: var(--gray); margin-bottom: .25rem; }
.contact-item a, .contact-item p { font-size: 1rem; font-weight: 600; color: var(--blue-dark); }

.contact-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
}
.contact-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.contact-card p { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; font-size: .95rem; }
.hours-list { list-style: none; }
.hours-list li {
  display: flex; justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .9rem;
}
.hours-list li:last-child { border: none; }
.hours-list .label { color: rgba(255,255,255,.7); }
.hours-list .value { font-weight: 600; }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  padding: 3rem 2rem 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-brand .nav-title { font-size: 1.1rem; }
.footer-brand p { margin-top: .75rem; font-size: .88rem; color: rgba(255,255,255,.6); max-width: 280px; }

.footer-col h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: var(--cyan); }

/* ── LEGAL PAGES ── */
.legal-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  padding: 8rem 2rem 4rem;
  text-align: center; color: var(--white);
}
.legal-hero h1 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; margin-bottom: .75rem; }
.legal-hero p { color: rgba(255,255,255,.75); font-size: 1rem; }

.legal-content { max-width: 860px; margin: 3rem auto; padding: 0 2rem 4rem; }
.legal-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); margin: 2rem 0 .75rem; }
.legal-content h3 { font-size: 1.05rem; font-weight: 600; color: var(--blue-mid); margin: 1.25rem 0 .5rem; }
.legal-content p, .legal-content li { color: var(--gray); font-size: .95rem; margin-bottom: .6rem; line-height: 1.75; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content .last-updated {
  background: rgba(21,101,192,.08);
  border-left: 4px solid var(--blue-mid);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .88rem; color: var(--blue-mid); font-weight: 600;
  margin-bottom: 2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}
