/* ============================================================
   DESIGN SETTINGS: change these to change the look of the site.
   The site guide (.htcrservers-guide.md) explains each one.
   ============================================================ */
:root {
  --brand: #0f5c4d;        /* main colour: buttons, links, headings accents */
  --brand-ink: #ffffff;    /* text on the main colour */
  --accent: #e0a526;       /* small marks and highlights */
  --surface: #ffffff;      /* page background */
  --surface-alt: #f4f1ea;  /* background of every other section */
  --ink: #1d2422;          /* body text */
  --muted: #5a6662;        /* secondary text */
  --radius: 14px;          /* corner rounding: 0 = square, 24px = very round */
  --space: 1;              /* spacing scale: 0.85 = compact, 1.2 = airy */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);
  --hero-shade: 0.45;      /* darkness over the hero photo, 0 to 0.8 */
}
/* Dark look: add class="theme-dark" to <body>. */
.theme-dark {
  --surface: #121614;
  --surface-alt: #1a201d;
  --ink: #eef2ef;
  --muted: #a8b3ae;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
.theme-dark a { color: color-mix(in oklab, var(--brand) 55%, white); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 calc(0.6rem * var(--space)); text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.3rem;
  border-radius: var(--radius); border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-ink);
  font-weight: 600; text-decoration: none; line-height: 1.2;
}
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--light { background: #fff; border-color: #fff; color: #111; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.lang-switch { font-size: 0.95rem; border: 1px solid color-mix(in oklab, var(--ink) 25%, transparent); border-radius: 999px; padding: 0.25rem 0.75rem; }
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); border-radius: var(--radius);
  }
  .nav { display: none; position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); padding: 0.5rem 1.25rem 1rem; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent); }
  .nav.is-open { display: flex; }
  .lang-switch { align-self: flex-start; margin-top: 0.75rem; border: 1px solid; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: calc(4.5rem * var(--space)); }
.section:nth-of-type(even) { background: var(--surface-alt); }
.section__head { max-width: 46rem; margin-bottom: calc(2rem * var(--space)); }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.eyebrow::before { content: ""; display: inline-block; width: 1.5rem; height: 3px; background: var(--accent); vertical-align: middle; margin-right: 0.5rem; border-radius: 2px; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Hero, three layouts: hero--full (photo behind the text), hero--split (photo beside), hero--plain (no photo) */
.hero { position: relative; color: #fff; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / calc(var(--hero-shade) * 0.6)), rgb(0 0 0 / var(--hero-shade))); }
.hero__body { position: relative; padding-block: clamp(6rem, 18vh, 10rem) clamp(4rem, 12vh, 7rem); max-width: 44rem; }
.hero__kicker { font-weight: 600; opacity: 0.95; margin-bottom: 0.75rem; }
.hero__lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); opacity: 0.95; max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero--full .hero__body { min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: flex-end; }

.hero--split {
  color: var(--ink); background: var(--surface-alt);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
}
.hero--split .hero__media { position: relative; order: 2; height: 100%; min-height: 440px; }
.hero--split .hero__media::after { display: none; }
.hero--split .wrap { width: auto; margin: 0; padding: 4rem clamp(1.25rem, 4vw, 3rem) 4rem max(1.25rem, calc((100vw - 1120px) / 2)); }
.hero--split .hero__body { padding: 0; }
.hero--split .hero__lead { color: var(--muted); }
.hero--split .btn--light { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
@media (max-width: 760px) {
  .hero--split { grid-template-columns: 1fr; }
  .hero--split .hero__media { order: 0; min-height: 0; aspect-ratio: 16 / 9; }
  .hero--split .wrap { padding: 2rem 1.25rem 3rem; }
}

.hero--plain { color: var(--ink); background: var(--surface-alt); }
.hero--plain .hero__media { display: none; }
.hero--plain .hero__lead { color: var(--muted); }
.hero--plain .btn--light { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* About, two layouts: about--text, about--split (text + photo) */
.about__body { max-width: 46rem; font-size: 1.125rem; }
.about--split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 760px) { .about--split .wrap { grid-template-columns: 1fr; } }

/* Cards (offer, menu, products, rooms), two layouts: cards--grid, cards--list */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; margin: 0; padding: 0; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}
.card h3 { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.card__price { color: var(--brand); font-weight: 700; white-space: nowrap; font-size: 1rem; }
.card p { color: var(--muted); margin: 0; }
.cards--list { grid-template-columns: 1fr; max-width: 46rem; }
.cards--list .card { border-width: 0 0 1px; border-radius: 0; padding: 1rem 0; background: transparent; }

/* Gallery */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); width: 100%; }

/* Visit: hours + location */
.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2rem; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); }
.hours__list { margin: 0; }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent); }
.hours__row dt { font-weight: 500; }
.hours__row dd { margin: 0; color: var(--muted); text-align: right; }
.open-now { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.75rem; }
.open-now::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.open-now[data-state="open"] { color: #1f8a4c; }
.open-now[data-state="closed"] { color: var(--muted); }
.address { font-style: normal; margin-bottom: 1rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.contact-list a { font-weight: 600; font-size: 1.1rem; }
.social { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social a { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent); text-decoration: none; color: var(--ink); }

/* Footer */
.site-footer { padding-block: 2.5rem 6rem; font-size: 0.95rem; color: var(--muted); border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: inherit; }
.photo-credit { font-size: 0.85rem; }
@media (min-width: 761px) { .site-footer { padding-bottom: 2.5rem; } }

/* ============================================================
   Phone action bar: call, WhatsApp, directions (phones only)
   ============================================================ */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
    padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgb(0 0 0 / 0.08);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
    min-height: 56px; border-radius: calc(var(--radius) * 0.7);
    color: var(--ink); text-decoration: none; font-size: 0.8rem; font-weight: 600;
  }
  .action-bar a svg { width: 24px; height: 24px; }
  .action-bar a.is-primary { background: var(--brand); color: var(--brand-ink); }
  body.has-action-bar { padding-bottom: 76px; }
}

.notfound main { padding-block: 6rem; text-align: center; }
