/* ============================================================
    Triage AI — Global Stylesheet
    Colors: #0F1113  background
              #0A3D3F  primary teal
              #14C3C9  accent turquoise
              #2F2F2F  smoke grey
              #FFFFFF  text
    ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0F1113;
  color: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: #14C3C9; text-decoration: none; transition: color .2s; }
a:hover { color: #FFFFFF; }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: .75rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; color: #d1d1d1; }

/* --- Layout Utilities --- */
.container { width: 90%; max-width: 1120px; margin: 0 auto; }
.section   { padding: 5rem 0; }
.section--alt { background: #161819; }
.text-center { text-align: center; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(15, 17, 19, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #2F2F2F;
  z-index: 1000;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.navbar__brand {
  font-size: 1.35rem; font-weight: 800; color: #FFFFFF;
  display: flex; align-items: center; gap: .5rem;
}
.navbar__brand span { color: #14C3C9; }

.navbar__links { display: flex; gap: 2rem; list-style: none; }
.navbar__links a {
  color: #d1d1d1; font-size: .95rem; font-weight: 500;
  position: relative; padding: .25rem 0;
}
.navbar__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: #14C3C9;
  transition: width .25s ease;
}
.navbar__links a:hover { color: #FFFFFF; }
.navbar__links a:hover::after,
.navbar__links a.active::after { width: 100%; }
.navbar__links a.active { color: #14C3C9; }

/* Hamburger */
.navbar__toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.navbar__toggle span {
  display: block; width: 26px; height: 2px; background: #FFFFFF;
  border-radius: 2px; transition: .3s;
}

/* --- Hero --- */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  text-align: center; padding-top: 68px;
  background:
     radial-gradient(ellipse at 50% 0%, rgba(10,61,63,.45) 0%, transparent 65%),
     #0F1113;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: #14C3C9; }
.hero p  { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; color: #c8c8c8; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: .8rem 2rem; border-radius: 6px;
  font-weight: 600; font-size: .95rem; transition: .25s; cursor: pointer;
  border: none;
}
.btn--primary { background: #14C3C9; color: #0F1113; }
.btn--primary:hover { background: #11a8ae; color: #0F1113; }
.btn--outline {
  background: transparent; color: #14C3C9;
  border: 2px solid #14C3C9;
}
.btn--outline:hover { background: #14C3C9; color: #0F1113; }

/* --- Cards / Feature Grid --- */
.grid { display: grid; gap: 2rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: #1a1c1e;
  border: 1px solid #2F2F2F;
  border-radius: 10px;
  padding: 2rem;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: #14C3C9; }
.card__icon {
  font-size: 2rem; margin-bottom: 1rem; display: inline-block;
}

/* --- Contact Form --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: .4rem;
  font-size: .9rem; color: #d1d1d1;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .75rem 1rem;
  background: #1a1c1e; color: #FFFFFF;
  border: 1px solid #2F2F2F; border-radius: 6px;
  font-family: inherit; font-size: .95rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: #14C3C9;
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* --- Legal Pages --- */
.legal { padding-top: calc(68px + 3rem); padding-bottom: 4rem; }
.legal h1 { margin-bottom: .5rem; }
.legal .updated { color: #888; font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; color: #14C3C9; }
.legal p, .legal li { color: #c8c8c8; }
.legal ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .4rem; }

/* --- About Page --- */
.about-hero {
  padding-top: calc(68px + 4rem); padding-bottom: 3rem;
  text-align: center;
  background:
     radial-gradient(ellipse at 50% 20%, rgba(10,61,63,.35) 0%, transparent 60%),
     #0F1113;
}
.about-hero p { max-width: 660px; margin: 0 auto; }

.values-grid { margin-top: 1rem; }

/* --- Footer --- */
.footer {
  background: #0b0c0e;
  border-top: 1px solid #2F2F2F;
  padding: 3rem 0 2rem;
  font-size: .9rem; color: #888;
}
.footer__inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
  gap: 2rem;
}
.footer__brand { max-width: 300px; }
.footer__brand h3 { color: #FFFFFF; margin-bottom: .5rem; }
.footer__brand h3 span { color: #14C3C9; }
.footer__nav h4 { color: #d1d1d1; margin-bottom: .75rem; font-size: .95rem; }
.footer__nav ul { list-style: none; }
.footer__nav li { margin-bottom: .4rem; }
.footer__nav a { color: #888; }
.footer__nav a:hover { color: #14C3C9; }
.footer__bottom {
  text-align: center; margin-top: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid #1e1e1e;
  color: #555;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar__links {
     position: fixed; top: 68px; left: 0; width: 100%;
     flex-direction: column; align-items: center;
     background: rgba(15,17,19,.97);
     padding: 2rem 0; gap: 1.5rem;
     transform: translateY(-120%);
     transition: transform .35s ease;
  }
  .navbar__links.open { transform: translateY(0); }
  .navbar__toggle { display: flex; }

  .hero { min-height: 80vh; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
}
