:root {
  --ink: #1f2d2b;
  --muted: #65736f;
  --teal: #0f6f67;
  --teal-dark: #0a4f4a;
  --mint: #edf7f3;
  --mint-solid: #edf7f3;
  --coral: #c76a35;
  --amber: #c99535;
  --paper: #fafcfb;
  --line: #dfe8e5;
  --white: #ffffff;
  --shadow: 0 10px 24px rgba(31, 45, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 188px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 650;
}

.primary-nav a {
  text-decoration: none;
  color: var(--muted);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--teal);
}

.admin-nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink) !important;
}

.user-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--mint-solid);
  color: var(--ink);
  font-weight: 700;
}

.nav-logout {
  margin: 0;
}

.nav-logout button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-help {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-help a {
  color: var(--teal);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: var(--white) !important;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(15, 111, 103, 0.18);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn-light {
  color: var(--teal);
  background: var(--white);
}

.btn-full {
  width: 100%;
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  background: #d6eee8;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(250, 252, 251, 0.96) 0%, rgba(250, 252, 251, 0.84) 42%, rgba(250, 252, 251, 0.18) 100%);
}

.hero-copy {
  max-width: 620px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  color: var(--coral);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 3.7rem;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.35rem;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero p,
.section-heading p,
.page-hero p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.trust-grid div {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px;
  border-left: 1px solid var(--line);
}

.trust-grid div:last-child {
  border-right: 1px solid var(--line);
}

.trust-grid strong {
  font-size: 1.42rem;
}

.trust-grid span,
.muted-text {
  color: var(--muted);
}

.section {
  padding: 78px 0;
}

.section-muted {
  background: var(--mint-solid);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

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

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

.service-card,
.doctor-card,
.form-panel,
.values-list > div,
.process-list > div,
.metrics-row > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(31, 45, 43, 0.05);
}

.service-card {
  min-height: 230px;
  padding: 22px;
}

.service-card a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--teal);
  background: var(--mint-solid);
  font-weight: 800;
}

.service-card-large {
  min-height: 330px;
}

.service-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.service-meta span {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff7e8;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.process-list,
.values-list {
  display: grid;
  gap: 14px;
}

.process-list > div,
.values-list > div {
  padding: 22px;
}

.process-list span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 700;
}

.doctor-card {
  overflow: hidden;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
  background: var(--mint-solid);
}

.doctor-card div {
  padding: 22px;
}

.doctor-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--coral);
  font-weight: 700;
}

.doctor-contact {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.doctor-contact a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.cta-band {
  padding: 64px 0;
  color: var(--white);
  background: #183a37;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-inner h2 {
  margin-bottom: 0;
}

.page-hero {
  padding: 82px 0;
  background: #f4f8f6;
  border-bottom: 1px solid var(--line);
}

.compact-hero .container {
  max-width: 880px;
}

.form-hero {
  padding: 70px 0 90px;
}

.form-panel {
  padding: 28px;
}

.smart-form,
.field {
  display: grid;
  gap: 10px;
}

.smart-form {
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--teal);
}

.field-error {
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 800;
}

.flash {
  padding: 14px 0;
  font-weight: 700;
}

.flash-success {
  color: #064e3b;
  background: #dff8ea;
}

.flash-error {
  color: #8a1c12;
  background: #ffe7df;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-lines p {
  margin-bottom: 0;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metrics-row > div {
  min-height: 144px;
  padding: 24px;
}

.metrics-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.empty-state {
  max-width: 720px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(31, 45, 43, 0.05);
}

.empty-state p,
.appointments-toolbar p,
.appointment-body p {
  color: var(--muted);
}

.appointments-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.appointments-toolbar h2,
.appointments-toolbar p {
  margin-bottom: 0;
}

.appointment-list {
  display: grid;
  gap: 14px;
}

.appointment-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(31, 45, 43, 0.05);
}

.appointment-date {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  border-radius: 8px;
  background: var(--mint-solid);
}

.appointment-date strong {
  font-size: 1.14rem;
}

.appointment-date span {
  color: var(--teal);
  font-weight: 800;
}

.appointment-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.appointment-title-row h3,
.appointment-body p {
  margin-bottom: 0;
}

.appointment-body p span {
  display: inline-block;
  margin-left: 8px;
}

.appointment-note {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pending {
  color: #8a5a07;
  background: #fff4ce;
}

.status-approved {
  color: #075e45;
  background: #dff8ea;
}

.status-cancelled {
  color: #8a1c12;
  background: #ffe7df;
}

.site-footer {
  padding: 56px 0 24px;
  color: #d8eee9;
  background: #1f2d2b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
}

.footer-logo {
  width: 188px;
  margin-bottom: 16px;
}

.site-footer h2 {
  font-size: 1rem;
}

.site-footer a {
  display: block;
  color: #eafbf6;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(234, 251, 246, 0.18);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero::after {
    background: rgba(247, 253, 251, 0.86);
  }

  .trust-grid,
  .service-grid,
  .doctor-grid,
  .large-grid,
  .full-grid,
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .brand img {
    width: 160px;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 54px 0;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 58px 0;
  }

  .trust-grid,
  .service-grid,
  .doctor-grid,
  .large-grid,
  .full-grid,
  .metrics-row,
  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-grid div {
    border-right: 1px solid var(--line);
  }

  .cta-inner,
  .footer-bottom,
  .appointments-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .appointment-item {
    grid-template-columns: 1fr;
  }

  .appointment-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
