/* ===== VARIABLES ===== */
:root {
  --blue-dark: #0d47a1;
  --blue-mid: #1976d2;
  --blue-light: #42a5f5;
  --teal: #00838f;
  --teal-light: #26c6da;
  --green: #2e7d32;
  --green-light: #43a047;
  --orange: #e65100;
  --orange-light: #ff9800;
  --yellow: #f9a825;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;
  --text: #1a1a2e;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-dark);
}

a { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.nav-brand:hover { color: var(--teal-light); text-decoration: none; }

.nav-brand-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  padding: 0; margin: 0;
}

.nav-menu a {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  text-decoration: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}

.hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  padding-top: 68px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--teal) 60%, var(--green) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 70px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 7rem;
  text-align: center;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(230,81,0,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(230,81,0,0.5);
  color: var(--white);
  text-decoration: none;
}

/* ===== WAVE DIVIDER ===== */
.wave {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-header {
  padding-top: calc(68px + 2rem);
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 50px;
  background: var(--gray-50);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  position: relative; z-index: 1;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.page-header-lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 600px;
}

.content-wrap {
  background: var(--gray-50);
  min-height: 60vh;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

/* ===== SECTION HEADINGS ===== */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-dark);
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(to right, var(--teal), var(--blue-light));
  border-radius: 2px;
  margin: 0.8rem 0 2rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.card-icon.blue { background: #e3f2fd; }
.card-icon.teal { background: #e0f7fa; }
.card-icon.green { background: #e8f5e9; }
.card-icon.orange { background: #fff3e0; }
.card-icon.yellow { background: #fffde7; }
.card-icon.purple { background: #f3e5f5; }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--blue-dark);
}

.card p { font-size: 0.93rem; color: var(--gray-600); margin-bottom: 0; }

/* ===== PROCESS STEPS ===== */
.process-steps { margin: 2.5rem 0; }

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue-mid), var(--teal));
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(25,118,210,0.35);
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--blue-dark);
}

.step-content p { font-size: 0.95rem; color: var(--gray-800); margin-bottom: 0; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #e0f7fa 100%);
  border-left: 4px solid var(--blue-mid);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box.green {
  background: linear-gradient(135deg, #e8f5e9 0%, #e0f7fa 100%);
  border-color: var(--green);
}

.highlight-box.orange {
  background: linear-gradient(135deg, #fff3e0 0%, #fffde7 100%);
  border-color: var(--orange);
}

.highlight-box h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.highlight-box p { margin-bottom: 0; font-size: 0.93rem; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--gray-50); }

.faq-arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--teal);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.2rem;
  color: var(--gray-800);
  font-size: 0.95rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
}

.faq-item.open .faq-answer { display: block; }

/* ===== GLOSSARY ===== */
.glossary-term {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 1rem;
}

.glossary-term dt {
  font-weight: 700;
  color: var(--teal);
  min-width: 140px;
  flex-shrink: 0;
}

.glossary-term dd { color: var(--gray-800); margin: 0; font-size: 0.95rem; }

/* ===== TIPS GRID ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--teal);
  transition: transform var(--transition);
}

.tip-card:hover { transform: translateY(-3px); }

.tip-card .tip-emoji {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.tip-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}

.tip-card p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 0; }

/* ===== STAT BOXES ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.stat-box {
  background: linear-gradient(135deg, var(--blue-dark), var(--teal));
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.82rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-mid), var(--teal));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.4rem;
  width: 14px; height: 14px;
  background: var(--teal);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.timeline-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.93rem; color: var(--gray-800); margin-bottom: 0; }

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  padding: 1rem 1.2rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.data-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.93rem;
  color: var(--gray-800);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--gray-50); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ===== INDEX PAGE CARDS ===== */
.index-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.index-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.index-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.index-card-header {
  padding: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.index-card-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.index-card-header h3 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--blue-dark); }
.index-card-header p { font-size: 0.85rem; color: var(--gray-600); margin: 0; }

.index-card-link {
  padding: 0.8rem 1.8rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.index-card-link:hover { color: var(--teal); background: var(--gray-50); text-decoration: none; }

/* ===== INTRO BANNER ===== */
.intro-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.intro-banner::before {
  content: '💧';
  position: absolute;
  right: 1.5rem; top: 1rem;
  font-size: 5rem;
  opacity: 0.15;
}

.intro-banner h2 { color: var(--white); margin-bottom: 0.8rem; }
.intro-banner p { color: rgba(255,255,255,0.92); margin-bottom: 0; font-size: 1.02rem; }

/* ===== LEGAL PAGES ===== */
.legal-content h2 {
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--gray-200);
}

.legal-content p { font-size: 0.97rem; color: var(--gray-800); }

/* ===== CONTACT PAGE ===== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.contact-box .contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-box h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.contact-box p { font-size: 0.9rem; color: var(--gray-600); margin: 0; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a237e 100%);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0;
}

.footer-disclaimer {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  border-left: 3px solid var(--teal-light);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--teal-light); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: 800px; }
.prose-wide { max-width: 960px; }
.bg-white-section { background: var(--white); }
.bg-gray-section { background: var(--gray-50); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .hero-inner { padding: 3rem 1.5rem 5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal { justify-content: center; }

  .step { flex-direction: column; gap: 0.8rem; }
  .step-number { width: 40px; height: 40px; font-size: 1rem; }

  .glossary-term { flex-direction: column; gap: 0.3rem; }
  .glossary-term dt { min-width: auto; }

  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 0.7rem 0.8rem; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .index-cards { grid-template-columns: 1fr; }
}
