/* Café Havgus - demo site styles
   Layout paradigm: soft, centred single column "menu board". */

/* Self-hosted fonts (SIL Open Font License 1.1, see CREDITS.md) */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fraunces-italic-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --teal: #0F3D3E;
  --teal-deep: #0A2B2C;
  --coral: #E0765A;
  --sand: #F4EDE4;
  --text: #2A2623;
  --muted: #6B5F55;
  --focus: #0A2B2C;
  --shadow: 0 18px 40px rgba(15, 61, 62, .16);
  --container: 1080px;
  --section-padding: clamp(56px, 8vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Work Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
  text-align: center;
}
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  margin: 0;
  color: var(--teal);
}
p { margin: 0; }
img, svg { max-width: 100%; display: block; margin-inline: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; text-align: left; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.demo-banner, .hero, .site-footer { --focus: #F4EDE4; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-deep);
  color: var(--sand);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--teal-deep);
  color: var(--sand);
  padding: 10px 16px;
  font-size: .9rem;
}
.demo-banner a { color: var(--coral); font-weight: 700; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--sand);
  padding-block: 16px;
  overflow: hidden;
}
.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.logo__wave { width: 34px; height: 20px; }
.logo__word {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--teal);
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
}
.site-nav__link {
  font-weight: 600;
  color: var(--teal);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav__link:hover { border-bottom-color: var(--coral); }
.site-nav__link--pill {
  background: var(--coral);
  color: #2A2623;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  border-bottom: none;
}
.site-nav__link--pill:hover { transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--coral); color: #2A2623; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--sand); border: 2px solid rgba(244, 237, 228, .6); }
.btn--ghost:hover { border-color: var(--sand); }

/* ---------- Hero ---------- */
.hero { padding: 16px; }
.hero__card {
  position: relative;
  background: var(--teal);
  color: var(--sand);
  border-radius: 32px;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 6vw, 56px);
  max-width: 720px;
  margin-inline: auto;
}
.hero__cup { width: 220px; margin-bottom: 20px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--coral);
  margin-bottom: 14px;
  font-family: 'Work Sans', sans-serif;
}
.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.6vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 18px;
  font-style: italic;
}
.hero__text {
  color: rgba(244, 237, 228, .88);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Sections ---------- */
.section-title {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  margin-bottom: clamp(24px, 4vw, 40px);
}
.menu, .visit, .about, .book { padding-block: var(--section-padding); }

/* ---------- Menu ---------- */
.menu__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.menu__tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-weight: 700;
}
.menu__tab[aria-selected="true"] { background: var(--teal); color: var(--sand); }
.menu__panel { max-width: 760px; margin-inline: auto; margin-bottom: 40px; text-align: left; }
.menu__panel h3 { text-align: center; margin-bottom: 18px; }
.menu__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 32px;
}
@media (min-width: 860px) {
  .menu__list { grid-template-columns: repeat(2, 1fr); }
}
.menu__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.menu__name { font-weight: 600; color: var(--teal); }
.menu__leader { flex: 1 1 20px; border-bottom: 2px dotted rgba(15, 61, 62, .3); margin-bottom: 4px; }
.menu__price { margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--teal); }
.menu__desc { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Besøg os ---------- */
.visit__card {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 860px;
  margin-inline: auto;
  text-align: left;
}
@media (min-width: 860px) {
  .visit__card { grid-template-columns: 1fr 1fr; align-items: center; }
}
.visit__info p { margin-bottom: 10px; }
.visit__info a { font-weight: 700; color: var(--teal); }
.visit__hours { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.visit__hours div { display: flex; justify-content: space-between; max-width: 220px; gap: 12px; }
.visit__hours dt { font-weight: 700; }
.visit__hours dd { color: var(--muted); }
.visit__map { border-radius: 20px; overflow: hidden; }

/* ---------- Om ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .about__inner { grid-template-columns: 1fr 1fr; text-align: left; }
}
.about__text p { color: var(--muted); margin-top: 14px; max-width: 52ch; margin-inline: auto; }
@media (min-width: 860px) { .about__text p { margin-inline: 0; } }
.about__text p:first-of-type { margin-top: 0; }

/* ---------- Book ---------- */
.book__card {
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  max-width: 960px;
  margin-inline: auto;
}
@media (min-width: 860px) {
  .book__card { grid-template-columns: 1fr 1fr; }
}
.book__visual { background: #E9F1EF; display: flex; align-items: center; justify-content: center; padding: 32px; }
.book__visual svg { width: 100%; max-width: 260px; }
.book__form-wrap { padding: clamp(28px, 4vw, 44px); text-align: left; }
.form-note { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.req { color: var(--coral); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--teal); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(15, 61, 62, .25);
  border-radius: 12px;
  background: var(--sand);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 100px; }
.field__help { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.demo-form__status { margin-top: 14px; font-weight: 700; color: var(--teal); min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: rgba(244, 237, 228, .85);
  padding-block: 8px 32px;
  text-align: center;
}
.site-footer__wave { width: 100%; height: 40px; margin-bottom: 14px; }
.site-footer a { color: var(--coral); font-weight: 700; }

/* ======================================================================
   Multi-page additions
   ====================================================================== */
[hidden] { display: none !important; }
img { height: auto; }

/* Phase A fix: headings on the teal hero card */
.hero__card h1, .hero__card h2, .hero__card h3 { color: var(--sand); }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--coral); }
.site-nav__link--pill[aria-current="page"] { box-shadow: 0 0 0 3px var(--teal) inset; }

/* Photo treatment: 24px radius, soft shadow */
.hero__photo, .dish-card__photo img, .about__visual img, .menu__photo img, .book__photo {
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 61, 62, .22);
}
.hero__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 28px; }
.hero__card { padding-top: clamp(20px, 4vw, 32px); }

/* Fra køkkenet */
.kitchen { padding-block: var(--section-padding); }
.kitchen__grid { display: grid; grid-template-columns: 1fr; gap: 40px 28px; }
@media (min-width: 720px) { .kitchen__grid { grid-template-columns: repeat(3, 1fr); } }
.dish-card__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 18px; }
.dish-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.dish-card p { color: var(--muted); max-width: 30ch; margin-inline: auto; margin-bottom: 10px; }
.dish-card__link { font-weight: 700; color: var(--teal); border-bottom: 2px solid var(--coral); padding-bottom: 1px; }
.dish-card__link:hover { color: #A8452C; }

.about__visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Book-band */
.band { background: var(--coral); color: #2A2623; padding-block: clamp(44px, 7vw, 72px); }
.band h2 { color: #2A2623; font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); margin-bottom: 8px; }
.band p { font-weight: 600; margin-bottom: 22px; }
.btn--dark { background: var(--teal); color: var(--sand); }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Menu */
.menu__note { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.menu__photo { margin-bottom: 22px; }
.menu__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.menu__panel h3 { margin-bottom: 18px; }

/* Book */
.book__visual { display: none; }
@media (min-width: 860px) {
  .book__visual { display: block; padding: 0; background: #E9F1EF; }
  .book__visual img.book__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
}
.book__form-wrap h1 { margin-bottom: 14px; }
.field__help--info { color: var(--teal); font-weight: 600; min-height: 1.4em; }
.form-hint { background: #FCE9E3; color: #2A2623; border-radius: 12px; padding: 10px 14px; font-size: .9rem; margin-top: 8px; }
.field select:disabled { opacity: .7; }
.site-footer__hours { margin-top: 8px; font-size: .92rem; }
