/* =========================================================
   The Modern IV Nurse — styles.css
   Palette: deep saline blue + IV-fluid aqua on clinical white
   Type: Sora (display) / Nunito Sans (body)
   ========================================================= */

:root {
  --ink: #12242e;          /* near-black blue for text */
  --ink-soft: #45606e;     /* secondary text */
  --saline: #14506b;       /* deep primary blue */
  --saline-dark: #0d3b50;
  --aqua: #2fb5a8;         /* accent — IV fluid */
  --aqua-soft: #e3f6f3;
  --mist: #f4f9fb;         /* section background */
  --white: #ffffff;
  --line: #dcE8ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 60, 84, 0.10);
  --font-display: "Sora", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

.container { width: min(1120px, 92%); margin-inline: auto; }
.container.narrow { width: min(820px, 92%); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); }

a { color: var(--saline); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

.btn-primary {
  background: var(--saline);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--saline-dark); }

.btn-ghost {
  background: transparent;
  color: var(--saline);
  border-color: var(--saline);
}
.btn-outline {
  background: transparent;
  color: var(--saline);
  border-color: var(--line);
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
}
.btn-outline:hover { border-color: var(--aqua); color: var(--aqua); }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--saline-dark);
  color: #cfe6ef;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.brand strong { color: var(--saline); }
.brand-drop { color: var(--aqua); display: inline-flex; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover { color: var(--saline); }
.nav-cta { padding: 0.6rem 1.2rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 3px;
  background: var(--saline);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--aqua-soft), transparent 60%),
    linear-gradient(180deg, var(--white), var(--mist));
  padding-block: 4.5rem 3.5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 1.1rem;
}
.hero-sub { color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }

.hero-checks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  font-weight: 600;
  color: var(--saline-dark);
  font-size: 0.95rem;
}
.hero-checks li::before {
  content: "✔";
  color: var(--aqua);
  margin-right: 0.5rem;
}

/* Hero art: IV bag + drip line (the signature element) */
.hero-art { position: relative; display: flex; justify-content: center; }
.iv-bag { width: min(240px, 70%); filter: drop-shadow(0 16px 28px rgba(18, 60, 84, 0.18)); }
.bag-hook { fill: var(--line); }
.bag-body { fill: var(--white); stroke: var(--saline); stroke-width: 4; }
.bag-fluid { fill: var(--aqua-soft); }
.bag-label { fill: var(--mist); stroke: var(--line); }
.bag-label-line { fill: var(--line); }
.bag-tube { stroke: var(--saline); stroke-width: 4; stroke-linecap: round; }
.bag-port { fill: var(--aqua); }

.drip-line {
  position: absolute;
  top: -4.5rem;
  left: 50%;
  width: 2px;
  height: 4.5rem;
  background: linear-gradient(180deg, transparent, var(--aqua));
}
.drip-drop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50% 50% 60% 60%;
  background: var(--aqua);
  animation: drip 2.6s ease-in infinite;
  opacity: 0;
}
@keyframes drip {
  0%   { top: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .drip-drop { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- Stats strip ---------- */
.stats { background: var(--saline); color: var(--white); padding-block: 1.6rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #9fe8df;
}
.stats span { font-size: 0.85rem; opacity: 0.9; }

/* ---------- Sections ---------- */
.section { padding-block: 4.5rem; }
.section-alt { background: var(--mist); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-title.left { text-align: left; }
.section-lede {
  text-align: center;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
}
.step-badge {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--aqua-soft);
  color: var(--saline);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Treatment filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--aqua); color: var(--saline); }
.filter-btn.is-active {
  background: var(--saline);
  border-color: var(--saline);
  color: var(--white);
}
.filter-btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* ---------- Treatment cards ---------- */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.treatment-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--aqua);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.treatment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.treatment-card.is-hidden { display: none; }
.treatment-card h3 { font-size: 1.15rem; }
.treatment-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--saline);
}
.treatment-card p:not(.price) { color: var(--ink-soft); font-size: 0.93rem; flex-grow: 1; }
.treatment-card .btn { align-self: flex-start; }

/* ---------- Add-ins ---------- */
.addins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.addin {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.addin h4 { font-size: 0.98rem; margin-bottom: 0.3rem; color: var(--saline-dark); }
.addin p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.review-card footer {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--saline);
  font-size: 0.9rem;
}

/* ---------- Service area ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.service-grid p { color: var(--ink-soft); margin-bottom: 1rem; }
.service-card {
  background: linear-gradient(160deg, var(--saline), var(--saline-dark));
  border-radius: var(--radius);
  color: var(--white);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}
.service-pin { color: #9fe8df; }
.service-tag { font-family: var(--font-display); letter-spacing: 0.06em; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 1.3rem;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding-block: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aqua);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--ink-soft); padding-bottom: 1.1rem; font-size: 0.95rem; }

/* ---------- Contact form ---------- */
.contact {
  background:
    radial-gradient(900px 400px at 15% 110%, var(--aqua-soft), transparent 60%),
    var(--white);
}
#appointment-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--saline-dark);
}
.form-grid .span-2 { grid-column: span 2; }
.form-grid input,
.form-grid select,
.form-grid textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  color: var(--ink);
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--aqua);
  background: var(--white);
}
.honeypot { display: none !important; }
.form-status { margin-top: 1rem; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: #1c7a4d; }
.form-status.err { color: #b3372f; }
.form-fineprint { margin-top: 0.8rem; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--saline-dark);
  color: #cfe6ef;
  padding-top: 3.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.footer-brand strong { color: #9fe8df; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.site-footer a { color: #9fe8df; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; display: grid; gap: 0.4rem; }
.footer-disclaimer p { font-size: 0.8rem; opacity: 0.85; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; margin-bottom: 1rem; }
  .drip-line { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .treatments-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .addins-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 4%;
    gap: 0.9rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .steps-grid, .treatments-grid, .reviews-grid, .addins-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 3rem 2.5rem; }
}
