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

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

:root {
  --navy: #0b1f3a;
  --navy-mid: #163156;
  --teal: #0d9488;
  --teal-dark: #0a7a70;
  --green: #16a34a;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(11,31,58,.1), 0 2px 6px rgba(11,31,58,.06);
  --shadow-lg: 0 12px 32px rgba(11,31,58,.14), 0 4px 12px rgba(11,31,58,.08);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* HEADER & NAV */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.navbar {
  width: min(1160px, 96%);
  margin: 0 auto;
  padding: .85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo a {
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--navy);
  letter-spacing: -.3px;
}

.logo a span { color: var(--teal); }

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--navy);
  background: none;
  border: none;
  line-height: 1;
  padding: .2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex-wrap: wrap;
}

.nav-menu > a, .dropbtn {
  text-decoration: none;
  color: var(--navy-mid);
  background: none;
  border: none;
  font-size: .88rem;
  font-weight: 600;
  padding: .46rem .78rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .18s, color .18s;
  font-family: inherit;
  line-height: 1.4;
}

.nav-menu > a:hover, .dropbtn:hover, .nav-menu > a.active {
  background: #f0fdf9;
  color: var(--teal);
}

.nav-menu > a:focus-visible, .dropbtn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.dropdown { position: relative; display: inline-block; }

.dropdown-content {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: .4rem;
  overflow: hidden;
}

.dropdown.open .dropdown-content {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  color: var(--navy-mid);
  padding: .52rem .76rem;
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.dropdown-content a:hover { background: #f0fdf9; color: var(--teal); }

/* LAYOUT */
.container {
  width: min(1160px, 96%);
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
  animation: fadeSlide .4s ease;
}

main.container > section { scroll-margin-top: 80px; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  color: #fff;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.35) 0%, transparent 70%);
  top: -80px; right: -60px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,.18) 0%, transparent 70%);
  bottom: -60px; left: -40px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(13,148,136,.2);
  border: 1px solid rgba(13,148,136,.4);
  color: #5eead4;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  letter-spacing: .3px;
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  line-height: 1.18;
  font-weight: 800;
  color: #fff;
  max-width: 640px;
  margin-bottom: 1rem;
  letter-spacing: -.4px;
}

.hero-sub {
  color: #cbd5e1;
  font-size: 1.02rem;
  max-width: 560px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero p {
  color: #cbd5e1;
  font-size: .96rem;
  max-width: 560px;
  margin-bottom: 1rem;
}

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding: .72rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(13,148,136,.35);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,148,136,.45);
}

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  padding: .72rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .2s;
}

.btn-secondary:hover { background: rgba(255,255,255,.2); }

/* CATEGORY STRIP */
.category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: .88rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--teal);
}

.cat-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

/* SECTION HEADERS */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.2px;
}

.section-link {
  font-size: .85rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.section-link:hover { text-decoration: underline; }

/* CALCULATOR CARDS GRID */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s, border-color .22s;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: #f0fdf9;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: .85rem;
}

.card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}

.card h3 a:hover { color: var(--teal); }

.card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }

.card-arrow {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  color: var(--muted-light);
  font-size: .9rem;
  transition: color .18s, transform .18s;
}

.card:hover .card-arrow { color: var(--teal); transform: translateX(2px); }

/* ABOUT SECTION */
.about-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.about-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .85rem;
  letter-spacing: -.2px;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-col p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: .75rem;
}

.about-col p:last-child { margin-bottom: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: .5rem;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  font-size: .855rem;
  font-weight: 600;
  color: var(--navy-mid);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.feature::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* FORM */
.calc-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.calc-head h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.field { display: flex; flex-direction: column; gap: .4rem; }

label { font-size: .84rem; font-weight: 600; color: var(--navy-mid); }

input, textarea, select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .62rem .8rem;
  font-size: .95rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}

select#country {
  font-family: 'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}

input::placeholder { color: var(--muted-light); }

/* BUTTONS */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .68rem 1.4rem;
  font-size: .92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(11,31,58,.2);
}

button:hover, .button:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11,31,58,.28);
}

button:focus-visible, .button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.dropbtn {
  background: none !important;
  color: var(--navy-mid) !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 600;
  padding: .46rem .78rem;
  font-size: .88rem;
  border-radius: var(--radius-sm);
  transform: none !important;
}

.dropbtn:hover { background: #f0fdf9 !important; color: var(--teal) !important; box-shadow: none !important; transform: none !important; }

/* RESULT BOX */
.result {
  background: #f0fdf9;
  border: 1.5px solid #99f6e4;
  border-radius: var(--radius);
  color: var(--navy);
  padding: 1.1rem 1.25rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: .95rem;
  white-space: pre-line;
  line-height: 1.8;
}

/* ARTICLE / INFO */
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.article h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .75rem;
}

.article h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin: 1rem 0 .4rem;
}

.article p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: .65rem;
  max-width: 74ch;
}

.article p:last-child { margin-bottom: 0; }

.article ul { color: var(--muted); font-size: .92rem; padding-left: 1.25rem; margin: .5rem 0; }

.article li { margin: .28rem 0; }

/* FAQ */
.faq-item { margin-bottom: .6rem; }

details {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
  cursor: pointer;
  padding: .8rem 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  transition: background .15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--teal);
  flex-shrink: 0;
  font-weight: 700;
}

details[open] summary::after { content: '−'; }

.faq-item summary:hover { background: #f8fafc; }

details[open] { border-color: #99f6e4; }

.faq-item p {
  padding: .1rem 1rem .85rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  max-width: 100%;
}

/* RELATED LINKS */
.related { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

.related a {
  display: inline-block;
  text-decoration: none;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--navy-mid);
  padding: .38rem .82rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  transition: background .16s, border-color .16s, color .16s;
}

.related a:hover { background: #f0fdf9; border-color: #99f6e4; color: var(--teal); }

/* CURRENCY SELECTOR */
.currency-selector {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .65rem .85rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
}

.currency-selector label { font-weight: 700; font-size: .86rem; }

.currency-selector select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: .38rem .65rem;
  font-size: .9rem;
  width: auto;
  min-height: unset;
}

/* GLOBAL AI WIDGET */
.global-ai-widget { border-left: 4px solid var(--teal); background: #f0fdf9; }
.global-ai-widget h2 { color: var(--navy); }
.global-ai-widget .result { background: #ecfdf5; border-color: #6ee7b7; }
.global-ai-widget textarea { min-height: 80px; }
.global-ai-widget p { margin: .1rem 0 .5rem; color: var(--muted); font-size: .9rem; }

/* FOOTER */
.footer {
  margin-top: 2rem;
  background: var(--navy);
  color: #94a3b8;
  font-size: .875rem;
}

.footer-inner {
  width: min(1160px, 96%);
  margin: 0 auto;
  padding: 2rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

.footer-brand h3 {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .4rem;
  font-weight: 800;
}

.footer-brand p { color: #94a3b8; font-size: .875rem; max-width: 56ch; line-height: 1.7; }

.footer-links { display: flex; flex-wrap: wrap; gap: .45rem; align-content: start; }

.footer-links a {
  text-decoration: none;
  color: #94a3b8;
  font-size: .84rem;
  font-weight: 500;
  transition: color .18s;
}

.footer-links a:hover { color: #5eead4; }

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #64748b;
  font-size: .82rem;
}

/* ANIMATIONS */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .category-strip { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 2.25rem 1.5rem; }
  .hero h1 { font-size: 1.85rem; }
  .category-strip { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .article, .card { padding: 1.25rem; }
  .navbar { flex-wrap: wrap; padding: .75rem 0; }
  .hamburger { display: block; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .5rem;
    margin-top: .5rem;
    gap: .15rem;
  }

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

  .nav-menu > a, .dropbtn { width: 100%; text-align: left; }

  .dropdown { width: 100%; }

  .dropdown-content {
    position: static;
    pointer-events: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: opacity .18s ease, max-height .25s ease;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 .75rem;
    background: var(--bg);
  }

  .dropdown.open .dropdown-content {
    pointer-events: auto;
    opacity: 1;
    max-height: 400px;
  }

  input, select, textarea, button, .button {
    font-size: 1rem;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.55rem; }
  .category-strip { grid-template-columns: 1fr 1fr; }
  .hero { padding: 1.75rem 1.25rem; }
  .feature-grid { grid-template-columns: 1fr; }
}