/* ANCIMED — design tokens */
:root {
  --blue: #0b6efd;
  --blue-deep: #0056b3;
  --blue-bright: #1a7fe0;
  --teal: #26a69a;
  --navy: #002349;
  --logo-mark: #063b71;
  --text: #1a1a2e;
  --muted: #5c6470;
  --line: #e2e8f0;
  --bg-soft: #f4f7fb;
  --white: #ffffff;
  --red-youtube: #d32f2f;
  --shadow: 0 18px 50px rgba(10, 37, 64, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  font-size: 1rem;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

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

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  flex-shrink: 0;
  line-height: 1.2;
  border: 0;
  box-shadow: none;
}

.brand-tagline {
  display: block;
  margin: 0;
  max-width: 18rem;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
}

.brand-logo-img {
  display: block;
  width: min(280px, calc(100vw - 9.5rem));
  height: auto;
  border: 0;
  outline: none;
  vertical-align: middle;
}

.brand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-main {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 0.35rem 0;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

a.nav-link:hover,
button.nav-link:hover {
  color: var(--blue);
}

.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 11rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}

.dropdown--right {
  left: auto;
  right: 0;
}

.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
}

.dropdown a:hover {
  background: var(--bg-soft);
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-wrap {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
}


.globe {
  font-size: 1rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: none;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: #0858d4;
  border-color: #0858d4;
}

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: rgba(0, 86, 179, 0.06);
}

.btn-outline--on-white {
  background: var(--white);
}

.btn-outline--on-red {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline--on-red:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline--on-gradient {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-outline--on-gradient:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-icon {
  font-size: 1rem;
  opacity: 0.95;
}

.btn-icon-svg {
  flex-shrink: 0;
  display: block;
}

.inline-icon {
  font-size: 1.1rem;
}

/* Hero */
.hero-band {
  position: relative;
  padding: 3rem 0 5.5rem;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-color: #fafcfe;
  background-image:
    linear-gradient(rgba(0, 161, 154, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 161, 154, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(0, 161, 154, 0.16) 1.5px, transparent 0);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, -1px -1px;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, black 65%, transparent);
}

.hero-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 78% 42%,
    rgba(0, 161, 154, 0.09) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, min(100%, 26rem)) minmax(0, 1fr);
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.hero-copy {
  max-width: 26rem;
  padding-top: 0.25rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  justify-self: stretch;
}

.phone-glow {
  position: absolute;
  width: min(91%, 574px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 161, 154, 0.24) 0%,
    rgba(0, 161, 154, 0.1) 38%,
    rgba(11, 110, 253, 0.07) 55%,
    transparent 72%
  );
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone {
  position: relative;
  margin: 0;
  width: min(100%, clamp(280px, 35vw, 476px));
  max-width: 476px;
}

.phone--photo {
  border-radius: clamp(16px, 2.5vw, 27px);
  overflow: hidden;
  box-shadow:
    0 32px 70px rgba(10, 37, 64, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.triage-note {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.trust-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(0, 161, 154, 0.15);
  color: var(--teal);
}

.trust-shield svg {
  flex-shrink: 0;
}

.phone--photo img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* Feature row */
.features {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 0.5rem;
}

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(0, 161, 154, 0.12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.feature-icon svg {
  flex-shrink: 0;
}

.feature-icon--shield svg {
  margin-top: 2px;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Mission band — centered headline (logo & language live in site header only) */
.mission-band {
  position: relative;
  padding: 3rem 0 3.5rem;
  background: var(--white);
  color: var(--text);
}

.mission-copy {
  position: relative;
  text-align: center;
  padding-top: 0;
  max-width: 48rem;
  margin-inline: auto;
}

.mission-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.mission-sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.mission-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Core services */
.core-services {
  padding: 4rem 0 4.5rem;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 2.5rem;
}

.services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  max-width: 900px;
  margin-inline: auto;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-list li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-list strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.service-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Referrals */
.referrals {
  padding: 3rem 0 4rem;
  background: var(--bg-soft);
}

.referrals-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.referral-card {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.referral-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.referral-icon--food {
  background: linear-gradient(180deg, #fef3c7 0%, #fff 40%, #22c55e 40%, #16a34a 100%);
  position: relative;
}

.referral-icon--food::after {
  content: "";
  position: absolute;
  inset: 22% 28% auto;
  height: 28%;
  background: #facc15;
  border-radius: 2px;
}

.referral-icon--house {
  background: linear-gradient(180deg, #bbf7d0 35%, #22c55e 35%, #15803d 100%);
  clip-path: polygon(50% 12%, 88% 42%, 75% 88%, 25% 88%, 12% 42%);
}

.referral-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--text);
}

.referral-card > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.food-provider {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-style: normal;
  color: var(--text);
  line-height: 1.45;
}

.food-provider strong {
  font-size: 1.15rem;
}

.food-provider a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.food-provider a:hover {
  text-decoration: underline;
}

.referral-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* YouTube CTA */
.youtube-cta {
  background: var(--red-youtube);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.youtube-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.youtube-inner p {
  margin: 0 auto 1.75rem;
  max-width: 42rem;
  opacity: 0.95;
  font-size: 1.05rem;
}

/* Future band */
.future-band {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 55%, #1e3a8a 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.future-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.future-inner p {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  opacity: 0.95;
}

.future-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand .brand-logo-img--footer {
  width: min(320px, 88vw);
  height: auto;
  max-width: none;
  background: #ffffff;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
}

.footer-tag {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

/* Mobile nav */
@media (max-width: 1024px) {
  .nav-main {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    bottom: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }

  body.nav-open .nav-main {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li {
    border-bottom: 1px solid var(--line);
  }

  .nav-link,
  .nav-trigger {
    width: 100%;
    padding: 0.85rem 0;
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0.75rem 0.5rem;
    display: none;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

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

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .trust-line {
    justify-content: center;
  }

  .triage-note {
    margin-inline: auto;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 0.75rem;
  }

  .phone {
    width: min(100%, min(294px, 92vw));
    max-width: 308px;
  }

  .services-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.move-notice {
  background: var(--navy);
  color: var(--white);
}

html.move-notice-dismissed .move-notice {
  display: none;
}

.move-notice-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.move-notice p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.move-notice a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.move-notice-dismiss {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  line-height: 1.2;
}

.move-notice-dismiss:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.35rem;
  }

  .brand {
    flex: 1 1 100%;
    align-items: center;
  }

  .brand-tagline {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .brand-logo-img {
    width: min(420px, 92vw);
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .header-actions .btn-sm {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .mission-ctas .btn {
    width: 100%;
  }

  .referral-actions .btn {
    width: 100%;
  }
}

/* General inquiries contact form; preserves Ancimed's current blue/teal design. */
.contact-section { scroll-margin-top: 5rem; background: var(--bg-soft); padding: 4.25rem 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.contact-copy { padding-top: 0.75rem; }
.contact-eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; font-weight: 800; color: var(--teal); }
.contact-copy h2 { margin: 0.6rem 0 1.25rem; color: var(--navy); font-size: clamp(1.8rem, 3.6vw, 2.65rem); line-height: 1.14; }
.contact-copy h2 span { color: var(--teal); }
.contact-copy > p:not(.contact-eyebrow) { color: var(--muted); max-width: 31rem; }
.contact-email { display: inline-block; color: var(--blue-deep); font-weight: 700; margin-top: 0.4rem; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-privacy { color: var(--muted); font-size: 0.78rem; line-height: 1.5; margin: 1.15rem 0 0.9rem; }
.contact-panel { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.contact-panel h3 { margin: 0 0 0.4rem; color: var(--navy); font-size: 1.35rem; }
.contact-panel > p, #contactUnavailable p { color: var(--muted); }
#contactForm { display: grid; gap: 0.9rem; margin-top: 1.1rem; }
#contactForm[hidden] { display: none; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
#contactForm label { display: grid; gap: 0.35rem; color: var(--navy); font-size: 0.85rem; font-weight: 650; }
#contactForm input, #contactForm textarea { width: 100%; min-width: 0; padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 8px; background: var(--white); color: var(--text); font: inherit; resize: vertical; }
#contactForm input:focus-visible, #contactForm textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
#contactForm button:disabled { opacity: 0.65; cursor: wait; }
.contact-website { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#contactStatus { color: #166534; font-weight: 600; font-size: 0.9rem; }
#contactStatus:empty { display: none; }
#contactStatus.error { color: #b91c1c; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-fields { grid-template-columns: 1fr; } }
