/* Augnlæknastofan í Mjódd — site styles
   Tokens follow the design system (Direction B · Warm Welcome). */

:root {
  /* Brand teals */
  --teal-deep: #0B5560;
  --teal-iris: #009FB0;
  --teal-light: #5FCAD6;

  /* Warm neutrals */
  --cream: #F6F3EF;
  --white: #ffffff;
  --ink: #231F20;
  --muted: #5a534e;
  --muted-warm: #6e6256;
  --muted-faint: #9a8d84;
  --nav-text: #3f4a4c;
  --body-warm: #4a4540;

  /* Borders */
  --border: #E7E0D9;
  --hairline: #EDE7E1;
  --border-outline: #cdbfb2;
  --border-tinted: #D6E2E5;

  /* Section tints */
  --tint-teal: #E6EEF0;
  --tint-sand: #F1ECE3;
  --tint-aqua: #eef7f8;
  --tint-aqua-border: #bfe2e6;

  /* On dark */
  --on-dark-text: rgba(246,243,239,.78);
  --on-dark-faint: rgba(246,243,239,.45);
  --on-dark-card: rgba(255,255,255,.07);
  --on-dark-card-border: rgba(95,202,214,.35);
  --on-dark-rule: rgba(255,255,255,.12);
  --ring-faint: rgba(0,159,176,.30);
  --ring-photo: rgba(0,159,176,.40);

  /* Type */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, monospace;

  /* Layout */
  --page-max: 1180px;
  --page-pad-x: 40px;
  --section-pad-y: 84px;
  --header-h: 74px;

  /* Shadows */
  --shadow-header: 0 4px 20px rgba(35,31,32,.07);
  --shadow-featured: 0 10px 36px rgba(0,159,176,.12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal-iris); color: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}
.section { scroll-margin-top: 90px; }
.section > .container { padding-block: var(--section-pad-y); }
.section--white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--teal { background: var(--tint-teal); border-top: 1px solid var(--border); }
.section--sand { background: var(--tint-sand); border-top: 1px solid var(--border); }
.section--dark { background: var(--teal-deep); color: var(--cream); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-iris);
  margin-bottom: 14px;
}
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-warm);
  margin-bottom: 6px;
}
.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--teal-deep);
  margin: 0;
  text-wrap: pretty;
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--teal-deep);
  margin: 0;
  max-width: 640px;
}
.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 8px;
}
.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--body-warm);
  max-width: 480px;
  margin: 26px 0 0;
  text-wrap: pretty;
}
.lede + .lede { margin-top: 16px; }
.body { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.small { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.link { color: var(--teal-deep); font-weight: 600; transition: color .15s; }
.link:hover { color: var(--teal-iris); }
.link--underlined { border-bottom: 1.5px solid var(--tint-aqua-border); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons (always pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 30px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn--primary { background: var(--teal-deep); color: #fff; border: 0; }
.btn--primary:hover { background: var(--teal-iris); }
.btn--secondary {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--border-outline);
  padding: 14px 22px;
}
.btn--secondary:hover { border-color: var(--teal-deep); }
.btn--sm { font-size: 14px; padding: 9px 20px; border-radius: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,243,239,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark__iris { position: relative; }
.wordmark__iris::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.8px solid var(--teal-iris);
  border-left-color: transparent;
  border-right-color: transparent;
  pointer-events: none;
}
.wordmark__place { color: var(--teal-iris); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav__link { font-size: 15px; color: var(--nav-text); padding: 6px 0; transition: color .15s; }
.site-nav__link:hover { color: var(--teal-iris); }
.site-nav .btn { font-size: 15px; padding: 10px 20px; border-radius: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .container {
  padding-block: 84px 72px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__ring {
  position: absolute;
  width: 118%;
  aspect-ratio: 1;
  border: 1.5px solid var(--ring-faint);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hero__photo { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Wait times ---------- */
.wait .container { padding-block: 40px; }
.wait__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.wait__intro { min-width: 200px; }
.wait__eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 8px; }
.wait__note { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.35; color: rgba(246,243,239,.82); }
.wait__groups { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; align-items: stretch; }
.wait__group { border: 1px solid var(--on-dark-card-border); border-radius: 12px; padding: 14px 16px 16px; }
.wait__group-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 10px; }
.wait__cards { display: flex; gap: 12px; flex-wrap: wrap; }
.wait__card { background: var(--on-dark-card); border-radius: 10px; padding: 16px 22px; min-width: 150px; }
.wait__who { font-size: 14px; color: rgba(246,243,239,.7); margin-bottom: 6px; }
.wait__value { display: flex; align-items: baseline; gap: 8px; }
.wait__num { font-family: var(--font-serif); font-size: 42px; line-height: 1; color: #fff; }
.wait__unit { font-size: 15px; color: var(--on-dark-text); }

/* ---------- Section heading block ---------- */
.section-head { margin-bottom: 48px; }
.section-head .h2 + p { margin-top: 12px; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Staff cards ---------- */
.staff-grid { gap: 28px; align-items: start; }
.staff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.staff-photo { position: relative; width: 150px; height: 150px; margin: 0 auto 24px; }
.staff-photo::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1.5px solid var(--ring-photo);
  border-radius: 50%;
}
.staff-photo__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #e7ded5;
  background-image: repeating-linear-gradient(45deg, #e7ded5 0 10px, #efe8e0 10px 20px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.staff-name { font-family: var(--font-serif); font-weight: 400; font-size: 24px; color: var(--ink); margin: 0; }
.staff-role { font-family: var(--font-mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-iris); margin-top: 8px; }
.staff-card .btn { margin-top: 18px; }
.staff-more { align-self: stretch; text-align: center; }
.staff-more summary { list-style: none; }
.staff-more summary::-webkit-details-marker { display: none; }
.staff-more__close, .staff-more[open] .staff-more__open { display: none; }
.staff-more[open] .staff-more__close { display: inline; }
.staff-bio { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); text-align: left; align-self: stretch; }
.staff-bio__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-iris); margin-bottom: 6px; }
.staff-bio p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.staff-bio p:last-child { margin-bottom: 0; }

/* Horizontal variant (children's page) */
.staff-card--row {
  background: var(--cream);
  text-align: left;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.staff-card--row .staff-photo { width: 110px; height: 110px; margin: 0; }
.staff-card--row .staff-photo::before { inset: -7px; }
.staff-card--row .staff-role { font-size: 13px; margin-top: 6px; }
.staff-card--row p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }

/* ---------- Service items ---------- */
.services { gap: 36px 44px; }
.service { border-top: 1.5px solid var(--teal-iris); padding-top: 16px; }

/* ---------- Price cards ---------- */
.price-card {
  background: var(--white);
  border: 1px solid var(--border-tinted);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 720px;
}
.price-card + .price-card { margin-top: 40px; }
.price-card__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-iris); margin-bottom: 14px; }
.price-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  max-width: 480px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.price-list dt, .price-list dd { margin: 0; }
.price-list dd { text-align: right; white-space: nowrap; }
.price-list:last-child { margin-bottom: 0; }

/* ---------- Booking ---------- */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 900px;
}
.booking-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}
.booking-card--featured { border: 2px solid var(--teal-iris); box-shadow: var(--shadow-featured); }
.booking-card__badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--teal-iris);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}
.booking-card__num { font-family: var(--font-mono); font-size: 13px; color: var(--teal-iris); margin-bottom: 14px; }
.booking-card__title { font-family: var(--font-serif); font-size: 27px; color: var(--ink); margin: 0 0 10px; font-weight: 400; }
.booking-card p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; flex: 1; }
.booking-card .btn { padding: 14px 22px; border-radius: 28px; }

/* ---------- Location ---------- */
.location .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.location .h2 { margin-bottom: 28px; max-width: 520px; }
.location__facts { display: flex; flex-direction: column; gap: 22px; }
.location__row { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.location__contacts { display: flex; gap: 40px; flex-wrap: wrap; }
.location__value { font-size: 18px; line-height: 1.5; color: var(--ink); }
.location__value small { display: block; color: var(--muted-warm); font-size: 15px; }
.location__contact { font-size: 18px; color: var(--teal-deep); font-weight: 600; }
.tip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--tint-aqua);
  border: 1.5px solid var(--tint-aqua-border);
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 14.5px;
  line-height: 1.4;
  color: #33474a;
}
.tip__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-iris);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hours { max-width: 320px; margin: 0; }
.hours .label { margin-bottom: 10px; }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
  line-height: 1.3;
}
.hours__row:last-child { border-bottom: 0; }
.hours__row dt, .hours__row dd { margin: 0; }
.hours__row dd { text-align: right; }
.map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 380px;
  position: relative;
  background: var(--tint-sand);
}
.map iframe {
  border: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(.25) contrast(1.02);
}

/* ---------- Children's page ---------- */
.subhero .container { padding-block: 72px 64px; }
.subhero .h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; max-width: 820px; }
.subhero .lede { max-width: 640px; }
.subhero .btn-row { margin-top: 34px; }
.breadcrumbs {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-warm);
  margin-bottom: 22px;
}
.breadcrumbs a { transition: color .15s; }
.breadcrumbs a:hover { color: var(--teal-iris); }
.breadcrumbs [aria-current] { color: var(--teal-iris); }
.facts { gap: 16px; margin-top: 52px; max-width: 900px; }
.facts .service { padding-top: 14px; }
.facts .h3 { margin: 0; }
.facts .small { line-height: 1.5; margin-top: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split--faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.h2--sub { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.prose { font-size: 18px; line-height: 1.65; color: var(--body-warm); margin: 0 0 16px; text-wrap: pretty; }
.prose:last-child { margin-bottom: 0; }
.reasons { list-style: none; margin: 0; padding: 0; }
.reasons li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 17px; line-height: 1.5; }
.reasons li:last-child { border-bottom: 0; }
.faq { display: flex; flex-direction: column; gap: 16px; }
.faq__item { background: var(--white); border: 1px solid var(--border-tinted); border-radius: 14px; padding: 24px 28px; }
.faq__item p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); }
.site-footer__main {
  padding-block: 64px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.5fr;
  gap: 40px;
}
.site-footer__logo { width: 240px; height: auto; display: block; margin-bottom: 20px; opacity: .95; }
.site-footer__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 16px; }
.site-footer__text { font-size: 15px; line-height: 2; color: var(--on-dark-text); }
.site-footer__text a { transition: color .15s; }
.site-footer__text a:hover { color: var(--teal-light); }
.site-footer__times { display: flex; gap: 40px; flex-wrap: wrap; }
.site-footer__legal { padding-bottom: 36px; }
.site-footer__legal div {
  border-top: 1px solid var(--on-dark-rule);
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--on-dark-faint);
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-iris);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { border-radius: 30px; }

/* ---------- Mobile / tablet ---------- */
@media (max-width: 820px) {
  :root { --page-pad-x: 22px; --section-pad-y: 52px; }
  .grid-3, .grid-2, .booking-grid, .location .container, .split, .split--faq, .site-footer__main { grid-template-columns: 1fr; }
  .site-nav__link { display: none; }
  .site-nav .btn { font-size: 14px; padding: 9px 16px; }
  .wordmark { font-size: 16px; }
  .hero .container { grid-template-columns: 1fr; gap: 30px; padding-block: 40px 52px; }
  .hero__art { display: none; }
  .subhero .container { padding-block: 40px 52px; }
  .wait .container { padding-block: 30px; }
  .wait__groups { margin-left: 0; width: 100%; gap: 14px; }
  .wait__group { flex: 1 1 130px; min-width: 0; padding: 18px 20px; }
  .wait__card { min-width: 0; flex: 1 1 120px; }
  .price-card { padding: 30px 22px; }
  .map { min-height: 300px; }
  .site-footer__main { padding-block: 52px 40px; }
  .site-footer__times { gap: 30px 40px; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 14px; }
  .wait__group { flex: 1 1 100%; }
  .staff-card--row { grid-template-columns: 1fr; }
}
