@import url('/fonts/inter.css');

/* ============================================================================
   Stomatologie Jandl — design system
   Brand palette kept from the original identity (cyan #00b4cc, deep blue #004365)
   ========================================================================== */

:root {
  /* Brand */
  --brand-50: #e6f8fb;
  --brand-100: #c2eef5;
  --brand-200: #8fe0ee;
  --brand-300: #4ecde3;
  --brand-400: #1cbdd7;
  --brand-500: #00b4cc;
  --brand-600: #0096ae;
  --brand-700: #00768a;
  --brand-800: #005b6c;
  --brand-900: #004365;

  /* Neutrals, subtly cooled to sit with the brand */
  --ink-950: #0a1a22;
  --ink-900: #10262f;
  --ink-800: #1c3742;
  --ink-700: #33525f;
  --ink-600: #4d6b78;
  --ink-500: #6b8794;
  --ink-400: #93a9b3;
  --ink-300: #c0cfd6;
  --ink-200: #dde7eb;
  --ink-100: #eef4f6;
  --ink-50: #f6fafb;
  --white: #ffffff;

  --danger-600: #b4342a;
  --danger-100: #fdecea;
  --warn-700: #8a5a00;
  --warn-100: #fff5e0;
  --success-700: #17694f;
  --success-100: #e4f6ef;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.11rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.58vw, 1.8rem);
  --step-3: clamp(1.73rem, 1.53rem + 0.94vw, 2.3rem);
  --step-4: clamp(2.07rem, 1.76rem + 1.5vw, 2.94rem);
  --step-5: clamp(2.49rem, 2.01rem + 2.35vw, 3.75rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(16 38 47 / 6%), 0 2px 6px rgb(16 38 47 / 5%);
  --shadow: 0 2px 6px rgb(16 38 47 / 6%), 0 12px 28px -12px rgb(16 38 47 / 18%);
  --shadow-lg: 0 4px 12px rgb(16 38 47 / 8%), 0 28px 60px -24px rgb(16 38 47 / 30%);

  --container: 1180px;
  --header-h: 84px;
  --announcement-h: 0px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  /* The off-canvas nav is fixed-positioned, so it escapes clipping on <body>.
     Clipping here (rather than overflow:hidden) keeps the sticky header working. */
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) so the sticky header keeps working */
  overflow-x: clip;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--ink-900);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--brand-700);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brand-600);
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}

.section--muted {
  background: var(--ink-50);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand-900);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-500);
}

.section-head .eyebrow::after {
  content: '';
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-500);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

/* Inline sprite icons have no intrinsic size, so constrain them to the label. */
.btn svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--brand-500);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgb(0 180 204 / 70%);
}

.btn--primary:hover {
  background: var(--brand-600);
  color: var(--white);
  box-shadow: 0 12px 26px -8px rgb(0 180 204 / 75%);
}

.btn--light {
  background: var(--white);
  color: var(--brand-900);
}

.btn--light:hover {
  background: var(--brand-50);
  color: var(--brand-900);
}

.btn--ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 45%);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 12%);
  border-color: var(--white);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--ink-300);
  color: var(--ink-800);
}

.btn--outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  background: var(--brand-900);
  color: rgb(255 255 255 / 82%);
  font-size: var(--step--1);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  min-height: 46px;
  padding-block: 0.4rem;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  padding-block: 0.15rem;
}

.topbar__item:hover {
  color: var(--white);
}

.topbar__item svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--brand-300);
}

.topbar__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-200);
  line-height: 1.3;
}

.topbar__value {
  display: block;
  line-height: 1.35;
}

.topbar__item--wide .topbar__label {
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--step--1);
  font-weight: 500;
  color: rgb(255 255 255 / 88%);
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  /* Stacks directly beneath the sticky announcement banner (if any); site.js
     measures the banner's rendered height into this custom property so the
     header never gains a gap above it or overlaps it. */
  top: var(--announcement-h, 0px);
  z-index: 100;
  border-bottom: 1px solid var(--ink-200);
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would make it a containing block for the fixed-position mobile drawer. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(180%) blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: clamp(160px, 14vw, 210px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.2rem + 1.2vw, 1.75rem);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.1rem + 1vw, 1.5rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__link {
  display: inline-block;
  padding: 0.55rem 0.35rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-800);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current='page'] {
  color: var(--brand-700);
  border-bottom-color: var(--brand-500);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-800);
}

.nav-toggle:hover {
  border-color: var(--brand-400);
  color: var(--brand-700);
}

.nav-close {
  display: none;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    color: var(--ink-800);
    cursor: pointer;
  }

  .nav-close:hover {
    border-color: var(--brand-400);
    color: var(--brand-700);
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-2);
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    /* Keeps the closed drawer out of the tab order. */
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0.28s var(--ease);
    overflow-y: auto;
  }

  .site-nav[data-open='true'] {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    padding: 0.9rem 0;
    font-size: var(--step-0);
    border-bottom: 1px solid var(--ink-200);
  }

  .site-nav__link:hover,
  .site-nav__link[aria-current='page'] {
    border-bottom-color: var(--ink-200);
  }

  .site-nav .btn {
    margin-top: var(--space-4);
  }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgb(10 26 34 / 45%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.nav-scrim[data-open='true'] {
  opacity: 1;
  visibility: visible;
}

/* ---------------------------------------------------------------- announcement */

.announcement {
  --bar: var(--brand-500);
  --bg: var(--brand-50);
  --fg: var(--brand-900);
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid rgb(0 0 0 / 6%);
}

.announcement--openinghours {
  --bar: #d99a00;
  --bg: var(--warn-100);
  --fg: #5c3d00;
}

.announcement--closed {
  --bar: var(--danger-600);
  --bg: var(--danger-100);
  --fg: #6d211a;
}

.announcement__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: 0.9rem;
  padding-left: var(--space-4);
  border-left: 4px solid var(--bar);
}

.announcement__icon {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  color: var(--bar);
}

.announcement__title {
  font-size: var(--step-0);
  font-weight: 700;
  color: inherit;
  margin-bottom: 0.1rem;
}

.announcement__text {
  font-size: var(--step--1);
  line-height: 1.6;
  white-space: pre-line;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 58vh, 620px);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgb(0 47 69 / 82%) 0%,
      rgb(0 67 101 / 62%) 48%,
      rgb(0 118 138 / 34%) 100%
    );
}

.hero__inner {
  padding-block: clamp(4rem, 2rem + 8vw, 7rem);
  max-width: 44rem;
  color: var(--white);
}

/* The wide gradient runs left-to-right; on narrow screens the text spans the
   full width, so switch to a vertical scrim to keep contrast. */
@media (max-width: 800px) {
  .hero::after {
    background: linear-gradient(180deg, rgb(0 47 69 / 86%) 0%, rgb(0 67 101 / 76%) 100%);
  }
}

.hero__eyebrow {
  color: var(--brand-200);
}

.hero__eyebrow::before {
  background: var(--brand-300);
}

.hero h1 {
  font-size: var(--step-5);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.hero h1 em {
  display: block;
  font-style: normal;
  font-weight: 300;
  color: var(--brand-200);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ---------------------------------------------------------------- pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgb(255 255 255 / 18%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: calc(var(--section-y) * -0.5);
  position: relative;
  z-index: 2;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  background: var(--brand-600);
  color: var(--white);
  transition: background-color 0.22s var(--ease);
}

.pillar:nth-child(1) {
  background: var(--brand-500);
}

.pillar:nth-child(2) {
  background: var(--brand-600);
}

.pillar:nth-child(3) {
  background: var(--brand-700);
}

.pillar:nth-child(4) {
  background: var(--brand-800);
}

.pillar:hover {
  background: var(--brand-900);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 16%);
}

.pillar__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.pillar h2,
.pillar h3 {
  font-size: var(--step-1);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--white);
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
    margin-top: calc(var(--section-y) * -0.35);
  }
}

@media (max-width: 520px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- intro */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

.intro h1 {
  font-size: var(--step-4);
  font-weight: 800;
}

.intro__supertitle {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--brand-700);
  margin-bottom: var(--space-3);
}

.intro__rule {
  width: 3.5rem;
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: var(--brand-500);
  margin-bottom: var(--space-5);
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
  }
}

.people-bar {
  background: var(--brand-900);
  color: var(--white);
}

.people-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
}

.people-bar h2 {
  font-size: var(--step-2);
  font-weight: 650;
  color: var(--white);
  letter-spacing: -0.015em;
}

.people-bar a {
  color: var(--brand-200);
  text-decoration: none;
  white-space: nowrap;
}

.people-bar a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- services */

.services {
  position: relative;
  isolation: isolate;
  background: var(--ink-50);
}

.services__bg {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(280px, 34vw, 420px);
  z-index: -2;
}

.services__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 67 101 / 86%) 0%, rgb(0 67 101 / 78%) 55%, var(--ink-50) 100%);
}

.services .section-head {
  color: var(--white);
}

.services .section-head h2 {
  font-size: var(--step-4);
  font-weight: 800;
  color: var(--white);
}

.services .section-head h2 em {
  font-style: normal;
  font-weight: 300;
  color: var(--brand-200);
}

.services .section-head .eyebrow {
  color: var(--brand-200);
}

.services .section-head .eyebrow::before,
.services .section-head .eyebrow::after {
  background: var(--brand-300);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 0.75rem + 1.6vw, 2rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--ink-100);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  background: var(--brand-500);
  color: var(--white);
  box-shadow: 0 8px 18px -6px rgb(0 47 69 / 55%);
}

.card__badge svg {
  width: 1.6rem;
  height: 1.6rem;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.35rem, 1rem + 1vw, 1.85rem);
}

.card__body h3 {
  font-size: var(--step-2);
  font-weight: 650;
}

.card__body p {
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--ink-700);
}

/* ---------------------------------------------------------------- pricing */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: start;
}

.price-panel {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.price-panel__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--brand-900);
  color: var(--white);
}

.price-panel__head svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-300);
}

.price-panel__head h2 {
  font-size: var(--step-1);
  font-weight: 650;
  color: var(--white);
  letter-spacing: -0.01em;
}

.price-panel--covered .price-panel__head {
  background: var(--brand-600);
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.95rem clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-top: 1px solid var(--ink-100);
}

.price-list li:first-child {
  border-top: 0;
}

.price-list__label {
  color: var(--ink-800);
}

.price-list__value {
  flex: none;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--brand-800);
  white-space: nowrap;
}

.price-list--plain li {
  gap: var(--space-3);
}

.price-list--plain li::before {
  content: '';
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--brand-400);
}

.price-list--plain li {
  align-items: flex-start;
  justify-content: flex-start;
}

/* ---------------------------------------------------------------- contact */

.contact {
  position: relative;
  isolation: isolate;
  background: linear-gradient(120deg, var(--brand-900) 0%, var(--brand-800) 100%);
  color: rgb(255 255 255 / 88%);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.contact h2 {
  color: var(--white);
  font-size: var(--step-3);
}

.contact .eyebrow {
  color: var(--brand-200);
}

.contact .eyebrow::before {
  background: var(--brand-300);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: var(--space-4);
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.info-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 12%);
  color: var(--brand-200);
}

.info-list__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.info-list__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-200);
}

.info-list__value {
  display: block;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.info-list a.info-list__value {
  text-decoration: none;
  word-break: break-word;
}

.info-list a.info-list__value:hover {
  color: var(--brand-200);
  text-decoration: underline;
}

/* Contact info repeated on a light background (e.g. the contact form page) needs its own
   palette: the default info-list colours above are tuned for the dark `.contact` section. */
.contact-info {
  /* Overrides `.contact__grid`'s vertical centering: on this page the form panel is much
     taller than the contact info, so it should stay pinned to the top instead. */
  align-self: start;
}

.contact-info .info-list__icon {
  background: var(--brand-50);
  color: var(--brand-600);
}

.contact-info .info-list__label {
  color: var(--brand-700);
}

.contact-info .info-list__value {
  color: var(--ink-900);
}

.contact-info .info-list a.info-list__value:hover {
  color: var(--brand-600);
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-100);
}

.map-card__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
}

.map-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: center;
  color: var(--brand-900);
}

.map-card__fallback svg {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--brand-700);
}

.map-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  color: var(--ink-800);
  font-size: var(--step--1);
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- forms */

.form-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
}

.form-note {
  margin: 0 0 var(--space-4);
  font-size: var(--step--1);
  color: var(--ink-600);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-800);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--ink-400);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgb(0 180 204 / 22%);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--danger-600);
}

.field__error {
  font-size: var(--step--1);
  color: var(--danger-600);
}

.field__error:empty {
  display: none;
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field--consent {
  gap: 0.6rem;
}

.field__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--ink-700);
  cursor: pointer;
}

.field__checkbox input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--brand-500);
}

.field__checkbox input[aria-invalid='true'] {
  outline: 2px solid var(--danger-600);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--step--1);
  margin-bottom: var(--space-5);
}

.alert svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}

.alert--success {
  background: var(--success-100);
  border-color: rgb(23 105 79 / 25%);
  color: var(--success-700);
}

.alert--error {
  background: var(--danger-100);
  border-color: rgb(180 52 42 / 25%);
  color: var(--danger-600);
}

.alert--info {
  background: var(--brand-50);
  border-color: rgb(0 150 174 / 25%);
  color: var(--brand-900);
}

.alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink-950);
  color: rgb(255 255 255 / 62%);
  font-size: var(--step--1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
}

.site-footer a {
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

/* ---------------------------------------------------------------- page header */

.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--brand-900);
  color: var(--white);
  padding-block: clamp(3rem, 2rem + 5vw, 5rem);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 140% at 12% 0%, rgb(0 180 204 / 32%) 0%, transparent 62%);
}

.page-hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  color: var(--white);
}

.page-hero .eyebrow {
  color: var(--brand-200);
}

.page-hero .eyebrow::before {
  background: var(--brand-300);
}

.page-hero p {
  max-width: 46rem;
  margin-top: var(--space-4);
  color: rgb(255 255 255 / 82%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  font-size: var(--step--1);
  color: rgb(255 255 255 / 62%);
}

.breadcrumb a {
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgb(255 255 255 / 40%);
}

/* ---------------------------------------------------------------- utilities */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.stack > * + * {
  margin-top: var(--space-4);
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--ink-600);
}

/* ---------------------------------------------------------------- admin */

.admin {
  min-height: 100vh;
  background: var(--ink-100);
}

.admin__bar {
  background: var(--ink-950);
  color: var(--white);
}

.admin__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.admin__bar a {
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
}

.admin__bar a:hover {
  color: var(--white);
}

.admin__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 650;
  color: var(--white);
}

.admin__brand img {
  width: 32px;
  height: 32px;
}

.admin__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--step--1);
}

.panel {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.panel + .panel {
  margin-top: var(--space-5);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.panel__head h2 {
  font-size: var(--step-2);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--space-5);
  background: linear-gradient(140deg, var(--brand-900) 0%, var(--ink-950) 100%);
}

.login-card {
  width: min(430px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
}

.login-card__logo {
  width: 190px;
  margin: 0 auto var(--space-6);
}

.login-card h2 {
  font-size: var(--step-2);
  margin-bottom: var(--space-5);
}

.login-card .field + .field {
  margin-top: var(--space-4);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--ink-200);
  vertical-align: top;
}

.data-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-600);
  background: var(--ink-50);
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: var(--brand-50);
}

.data-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  white-space: nowrap;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--on {
  background: var(--success-100);
  color: var(--success-700);
}

.tag--off {
  background: var(--ink-100);
  color: var(--ink-600);
}

.tag--info {
  background: var(--brand-50);
  color: var(--brand-800);
}

.tag--openinghours {
  background: var(--warn-100);
  color: var(--warn-700);
}

.tag--closed {
  background: var(--danger-100);
  color: var(--danger-600);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--brand-500);
}

.empty-state {
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: var(--ink-600);
}

.empty-state svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto var(--space-4);
  color: var(--ink-300);
}
