/* ===========================================================
   MAKULA HEALTH CARE — shared styles
   Palette pulled straight from the shop's own neon sign:
   deep night-navy field, MHC badge green, alert red for
   OPEN 24/7. Type: Space Grotesk (display, the "sign" voice)
   + Inter (body) + IBM Plex Mono (numbers — phone/hours, like
   a digital readout).
   =========================================================== */

:root {
  --navy: #0a1330;
  --navy-2: #0f1c42;
  --navy-3: #16265a;
  --green: #35d15c;
  --green-2: #1fae46;
  --red: #e8394a;
  --cream: #f5f3ec;
  --ink: #0c0f16;
  --paper: #fffdf8;
  --line: rgba(255,255,255,0.14);

  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Badge / signature element ----------
   A recurring emblem echoing the shop's own oval "MHC" sign,
   rendered as a glowing pill. Used sparingly as the page's
   one signature motif. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(53,209,92,0.15), 0 0 24px rgba(53,209,92,0.18);
}
.badge__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #dfeee2 55%, #b9d6bf 100%);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.badge__text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6vw;
  background: rgba(10,19,48,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.nav__brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--green-2);
  font-size: 14px;
}
.nav__brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
}
.nav__brand-name small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-top: 3px;
}
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  color: #cdd4e6;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--green); }
.nav__cta {
  background: var(--green);
  color: var(--navy) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  width: 40px;
  height: 40px;
  font-size: 18px;
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 66px 0 auto 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 6vw 24px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 16px;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
}

/* ---------- Hero (shared frame, background differs per page) ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,11,26,0.55) 0%, rgba(6,11,26,0.5) 40%, rgba(6,11,26,0.92) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 6vw 64px;
  max-width: 900px;
  color: #fff;
}
.hero__eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.04;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #dbe1f0;
  max-width: 54ch;
  margin: 0 0 28px;
  line-height: 1.55;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  font-family: var(--body);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--green); color: var(--navy); }
.btn--primary:hover { background: var(--green-2); }
.btn--ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); }
.btn--red { background: var(--red); color: #fff; }

/* ---------- Hero video background ---------- */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ---------- Ken Burns crossfade (fallback / other pages) ---------- */
.kenburns {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.kenburns img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: kb-fade 20s infinite;
  filter: saturate(1.05) contrast(1.03);
}
.kenburns img:nth-child(1) { animation-delay: 0s; }
.kenburns img:nth-child(2) { animation-delay: 5s; }
.kenburns img:nth-child(3) { animation-delay: 10s; }
.kenburns img:nth-child(4) { animation-delay: 15s; }

@keyframes kb-fade {
  0%   { opacity: 0; transform: scale(1.0); }
  4%   { opacity: 1; }
  22%  { opacity: 1; transform: scale(1.08); }
  27%  { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; }
}

/* ---------- Fixed background section (other pages) ---------- */
.bg-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
@media (max-width: 860px) {
  .bg-section { background-attachment: scroll; }
}
.bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,34,0.82), rgba(8,14,34,0.9));
  z-index: 0;
}
.bg-section > * { position: relative; z-index: 1; }

/* ---------- Sections on cream ---------- */
.section {
  padding: 84px 6vw;
  max-width: 1180px;
  margin: 0 auto;
}
.section--tight { padding-top: 56px; padding-bottom: 56px; }

.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head .badge { margin-bottom: 18px; }
.section__head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section__head p {
  color: #4b5266;
  line-height: 1.6;
  margin: 0;
}
.section--dark .section__head p { color: #b9c2d8; }
.section--dark .section__head h2 { color: #fff; }

/* ---------- Service cards ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid #e7e2d3;
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,19,48,0.08); }
.card__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green-2);
  letter-spacing: 0.1em;
}
.card h3 {
  font-family: var(--display);
  font-size: 1.18rem;
  margin: 10px 0 8px;
  font-weight: 600;
}
.card p { margin: 0; color: #565d70; font-size: 14.5px; line-height: 1.55; }

.card--dark {
  background: var(--navy-2);
  border-color: var(--line);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: #b9c2d8; }
.card--dark .card__num { color: var(--green); }

/* ---------- Strip / hours bar ---------- */
.strip {
  background: var(--navy);
  color: #fff;
  padding: 22px 6vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 40px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
}
.strip strong { color: var(--green); }
.strip .sep { color: var(--line); }

/* ---------- Contact readout ---------- */
.readout {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--green);
  letter-spacing: 0.02em;
  word-break: break-word;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.info-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-row .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  min-width: 110px;
  padding-top: 3px;
}
.info-row .v { color: #e7ebf5; line-height: 1.55; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #b9c2d8;
  padding: 48px 6vw 28px;
  font-size: 13.5px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 12px;
}
.footer__col a, .footer__col p { display: block; margin: 0 0 8px; color: #b9c2d8; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7d87a3; }

/* ---------- Icon strip (replaces photo strip) ---------- */
.iconstrip {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 780px) { .iconstrip { grid-template-columns: repeat(2, 1fr); } }
.icontile {
  text-align: center;
  padding: 30px 14px;
  background: var(--paper);
  border: 1px solid #e7e2d3;
  border-radius: var(--radius);
}
.icontile__mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy-2);
  display: grid;
  place-items: center;
}
.icontile__mark svg { width: 28px; height: 28px; }
.icontile h4 {
  font-family: var(--display);
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
