@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

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

:root {
  --navy: #2B4162;
  --green: #0B6E4F;
  --green-light: #e8f5f0;
  --gray-bg: #E0E0E2;
  --gray-light: #f5f5f6;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6070;
  --border: #d0d4dc;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(43,65,98,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* NAV */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.nav-logo {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-bg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-bg);
  border-radius: 2px;
  transition: all 0.3s;
}

/* HERO */
.hero {
  background: var(--navy);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.hero p {
  color: var(--gray-bg);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: #095c41; }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* STATS BAR */
.stats-bar {
  background: var(--green);
  padding: 1rem 1.5rem;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 600;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* MAIN */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* SECTION */
.section { margin-bottom: 3rem; }

.section-header {
  margin-bottom: 1.5rem;
}

.section-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* FORM ELEMENTS */
.form-group { margin-bottom: 1rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

input[type="number"], select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: #fffde7;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

input[type="number"]:focus, select:focus {
  outline: none;
  border-color: var(--green);
}

input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--green);
}

.checkbox-group label {
  margin: 0;
  font-size: 0.85rem;
  cursor: pointer;
}

.calc-btn {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.85rem;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.1s;
}

.calc-btn:hover { background: #095c41; }
.calc-btn:active { transform: scale(0.99); }

/* RESULT */
.result-box {
  display: none;
  margin-top: 1.25rem;
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
}

.result-box.show { display: block; }

.result-num {
  font-size: 2rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.result-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(11,110,79,0.15);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.result-item {
  background: var(--white);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
}

.result-item .num {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.result-item .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* TABS */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
  gap: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* TEXT SECTIONS */
.text-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.text-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.text-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.25rem 0 0.4rem;
}

.text-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.text-section ul {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  gap: 1rem;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--green);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

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

/* DISCLAIMER */
.disclaimer {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: #7a6000;
  margin-top: 1.5rem;
}

/* AD PLACEHOLDER */
.ad-slot {
  background: var(--gray-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}

#cookie-banner p {
  font-size: 0.82rem;
  color: var(--gray-bg);
  flex: 1;
  min-width: 200px;
}

#cookie-banner a { color: #7ec8a8; text-decoration: underline; }

.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }

.btn-accept {
  background: var(--green);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-decline {
  background: transparent;
  color: var(--gray-bg);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
}

/* FOOTER */
footer {
  background: var(--navy);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-info {
  font-size: 0.78rem;
  color: var(--gray-bg);
  margin-top: 0.4rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray-bg);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(224,224,226,0.5);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open a { padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); display: block; }
  .nav-toggle { display: flex; }
  .result-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 1rem; }
  .stat-item { flex: 1; min-width: 120px; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  main { padding: 1.5rem 1rem; }
  .card { padding: 1.25rem; }
  .text-section { padding: 1.25rem; }
}
