/* ==========================================================
   styles.css - global styles for the public website
   Sections: 1 Variables, 2 Base, 3 Buttons, 4 Navbar, 5 Hero,
   6 Sections, 7 Cards, 8 Steps, 9 Footer, 10 Responsive
   ========================================================== */

/* 1. VARIABLES: change a colour here and it changes everywhere */
:root {
  --navy: #0f2a4a;
  --navy-dark: #0a1d34;
  --teal: #0d9488;
  --teal-dark: #0b7a70;
  --gray-bg: #f3f5f8;
  --border: #e1e6ee;
  --text: #1f2937;
  --muted: #5b6676;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 42, 74, 0.08);
  --max-width: 1120px;
}

/* 2. BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* 3. BUTTONS */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }

/* 4. NAVBAR */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { font-weight: 500; color: var(--navy); }
.nav-links a:not(.btn):hover { color: var(--teal); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--navy); cursor: pointer; }

/* 5. HERO */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); padding: 80px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.8rem; line-height: 1.15; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Simple visual built with CSS only - no image files needed yet */
.hero-visual { background: rgba(255,255,255,0.08); border-radius: 20px; padding: 28px; }
.doc-card { background: var(--white); color: var(--text); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.doc-card + .doc-card { margin-top: 14px; }
.doc-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.doc-line { height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 8px; }
.doc-line.short { width: 60%; }
.doc-line.hl { background: #99f6e4; }
.doc-tag { display: inline-block; font-size: 0.8rem; background: #ccfbf1; color: var(--teal-dark); padding: 3px 10px; border-radius: 20px; font-weight: 600; }

/* 6. SECTIONS */
section { padding: 72px 0; }
.section-gray { background: var(--gray-bg); }
.section-title { text-align: center; font-size: 2rem; color: var(--navy); margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

/* 7. CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; margin-bottom: 16px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice { background: #ecfeff; border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 8px; margin-top: 36px; color: var(--navy); }

/* 8. STEPS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { text-align: center; padding: 10px; }
.step-number { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.step h3 { color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Call to action band */
.cta { background: var(--navy); color: var(--white); text-align: center; }
.cta h2 { margin-bottom: 12px; font-size: 1.9rem; }
.cta p { color: #cbd5e1; margin-bottom: 24px; }

/* 9. FOOTER */
.footer { background: var(--navy-dark); color: #cbd5e1; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: var(--white); margin-bottom: 12px; }
.footer li { margin-bottom: 8px; font-size: 0.95rem; }
.footer a:hover { color: #5eead4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; font-size: 0.9rem; text-align: center; }

/* 10. RESPONSIVE (tablets and phones) */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 18px 20px; gap: 14px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 520px) {
  section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
