/* RenalSpa Home Dialysis. Mobile first. No framework. */

:root {
  --ink: #22312f;
  --ink-soft: #47605c;
  --bg: #fbf9f6;
  --surface: #ffffff;
  --teal-900: #0c4f48;
  --teal-800: #0d5c54;
  --teal-700: #0f6b62;
  --teal-100: #d7e9e6;
  --teal-050: #ecf4f2;
  --red-800: #8f2b2b;
  --red-050: #faeeee;
  --green-800: #1b6b3f;
  --green-050: #eaf6ee;
  --line: #dfe7e5;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(23, 48, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  padding-bottom: 4.75rem; /* room for the fixed call bar on phones */
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--teal-900);
  margin: 0 0 0.6em;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.75rem, 5.5vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  margin-top: 1.6em;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.4em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--teal-800);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-900);
}

:focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.prose {
  max-width: 46rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink);
}

.muted {
  color: var(--ink-soft);
}

.center {
  text-align: center;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-900);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--teal-900);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.header-call {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--teal-900);
  white-space: nowrap;
}

.nav-toggle {
  appearance: none;
  border: 1.5px solid var(--teal-700);
  background: var(--surface);
  color: var(--teal-900);
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.site-nav {
  display: none;
  width: 100%;
}

body.nav-open .site-nav {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0.4rem 0 0.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--teal-900);
  border-radius: 8px;
}

.site-nav a:hover {
  background: var(--teal-050);
}

.site-nav a[aria-current="page"] {
  background: var(--teal-050);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav .nav-cta {
  background: var(--teal-700);
  color: #fff;
  text-align: center;
  margin-top: 0.3rem;
}

.site-nav .nav-cta:hover {
  background: var(--teal-800);
}

/* Buttons */

.btn {
  display: inline-block;
  background: var(--teal-700);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--teal-700);
  border-radius: var(--radius);
  padding: 0.8rem 1.4rem;
  font-size: 1.05rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

.btn:hover {
  background: var(--teal-800);
  border-color: var(--teal-800);
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-outline {
  background: transparent;
  color: var(--teal-900);
}

.btn-outline:hover {
  background: var(--teal-050);
  color: var(--teal-900);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

/* Language switcher */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--teal-900);
  border: 1.5px solid var(--teal-700);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
}

.lang-switch:hover {
  background: var(--teal-050);
  color: var(--teal-900);
}

.lang-switch svg {
  flex: none;
}

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--teal-050), var(--bg));
  padding: 2.6rem 0 2.2rem;
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero .lead {
  max-width: 40rem;
}

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-800);
  margin-bottom: 0.8rem;
}

/* Sections and cards */

.section {
  padding: 2.4rem 0;
}

.section-tint {
  background: var(--teal-050);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 0;
  margin: 1.4rem 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

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

/* Numbered steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.6rem 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.6rem 3.4rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 2.6rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--teal-100);
}

.steps h3 {
  margin: 0.15rem 0 0.4rem;
}

/* Notices for coverage doctrine */

.notice,
.notice-no,
.notice-yes {
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal-700);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1.2rem 0;
}

.notice h3,
.notice h2 {
  margin-top: 0;
}

.notice-no {
  border-left-color: var(--red-800);
  background: var(--red-050);
}

.notice-no h3,
.notice-no h2 {
  color: var(--red-800);
}

.notice-yes {
  border-left-color: var(--green-800);
  background: var(--green-050);
}

.notice-yes h3,
.notice-yes h2 {
  color: var(--green-800);
}

.notice p:last-child,
.notice ul:last-child,
.notice-no p:last-child,
.notice-yes p:last-child {
  margin-bottom: 0;
}

/* Checklists */

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--teal-700);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-48deg);
}

.checklist-x li::before {
  background: var(--red-800);
}

.checklist-x li::after {
  content: "\00d7";
  content: "\00d7" / "";
  border: 0;
  color: #fff;
  font-weight: 800;
  top: 0.05em;
  left: 0.31rem;
  font-size: 0.95rem;
}

/* Comparison table */

.table-scroll {
  overflow-x: auto;
  margin: 1.4rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.6rem;
  color: var(--teal-900);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--teal-050);
  color: var(--teal-900);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* FAQ */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal-900);
  padding: 1rem 2.6rem 1rem 1.1rem;
  position: relative;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal-700);
}

.faq-item[open] summary::after {
  content: "\2212";
  content: "\2212" / "";
}

.faq-item .faq-body {
  padding: 0 1.1rem 1.1rem;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* Contact layout */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.phone-big {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--teal-900);
  display: inline-block;
}

address {
  font-style: normal;
}

/* Area lists */

.area-cols {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
}

.area-cols li {
  padding: 0.25rem 0;
  break-inside: avoid;
}

/* CTA band */

.cta-band {
  background: var(--teal-900);
  color: #eaf4f2;
  padding: 2.6rem 0;
  margin-top: 2.5rem;
}

.cta-band h2 {
  color: #ffffff;
  margin-top: 0;
}

.cta-band a:not(.btn) {
  color: #ffffff;
}

.cta-band .btn {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--teal-900);
}

.cta-band .btn:hover {
  background: var(--teal-050);
  border-color: var(--teal-050);
}

.cta-band .btn-outline {
  background: transparent;
  color: #ffffff;
}

.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Footer */

.site-footer {
  background: var(--teal-900);
  color: #d9e9e6;
  padding: 2.6rem 0 1.4rem;
  font-size: 0.97rem;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
  padding-bottom: 1.8rem;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 0.7rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  padding: 0.22rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.2rem;
  font-size: 0.88rem;
  color: #c3d9d5;
}

/* Fixed call bar on phones */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  z-index: 60;
}

.call-bar a {
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 0.65rem 0.5rem;
  font-size: 0.98rem;
}

.call-bar .call-now {
  background: var(--teal-700);
  color: #fff;
}

/* Larger screens */

@media (min-width: 600px) {
  .header-call {
    display: inline-flex;
  }

  .area-cols {
    columns: 3;
  }
}

@media (min-width: 880px) {
  body {
    padding-bottom: 0;
  }

  .call-bar {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    width: auto;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
  }

  .site-nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.98rem;
  }

  .site-nav .nav-cta {
    margin: 0 0 0 0.4rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 3.6rem 0 3.2rem;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1.3fr;
  }
}
