/* =========================================================
   Hilib & Bariis — styles (sample design by Rumays)
   Every colour, font, size, space and radius lives in :root.
   Mobile first: base styles are for phones, @media adds columns.
   ========================================================= */
:root {
  /* Colour */
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --text: #171717;
  --muted: #666666;
  --line: #E4E2DC;
  --control: #8A877F;
  --accent: #9A3A12;          /* terracotta: buttons, prices, headings accents */
  --accent-hover: #7E2F0E;
  --accent-soft: #F4E4D8;
  --on-accent: #FFFFFF;
  --whatsapp: #1FAF54;
  --whatsapp-hover: #1B9C4B;
  --on-whatsapp: #08210F;
  --banner-bg: #171717;
  --banner-text: #FFFFFF;
  --focus: #9A3A12;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fw-regular: 400;
  --fw-semi: 600;
  --fw-bold: 700;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-pay: 1.875rem;
  --fs-h2: clamp(2.25rem, 1.7rem + 2.2vw, 3rem);
  --fs-h1: clamp(2.75rem, 1.7rem + 4vw, 4.25rem);
  --lh-tight: 1.06;
  --lh-snug: 1.3;
  --lh-body: 1.6;
  --track-tight: -0.03em;
  --track-wide: 0.08em;
  --measure: 60ch;

  /* Space: 8px grid */
  --sp-half: 0.25rem;
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 2.5rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-10: 5rem;
  --gutter: 1rem;
  --maxw: 1080px;
  --header-h: 3.5rem;
  --tap: 2.75rem;
  --bar-h: 4.5rem;
  --icon: 1.25rem;
  --mark: 2.25rem;

  /* Shape */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --ring: 3px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.7s;
  --dur-fast: 0.15s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--sp-2)); }
body {
  margin: 0;
  padding-bottom: var(--bar-h);
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh-body);
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: var(--ring) solid var(--focus); outline-offset: var(--ring); }
.icon { width: var(--icon); height: var(--icon); flex: none; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--sp-2); top: calc(-1 * var(--sp-10)); z-index: 100; padding: var(--sp-1) var(--sp-2); background: var(--surface); border-radius: var(--radius-sm); }
.skip:focus { top: var(--sp-1); }

/* ---------- Demo banner ---------- */
.demo-bar { background: var(--banner-bg); color: var(--banner-text); font-size: var(--fs-xs); }
.demo-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--sp-2); min-height: var(--tap); padding-block: var(--sp-half); text-align: center; }
.demo-bar a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--fw-semi); text-underline-offset: 3px; }
.demo-bar :focus-visible { outline-color: var(--banner-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  min-height: var(--sp-6); padding: var(--sp-1) var(--sp-3);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: var(--fs-base); font-weight: var(--fw-semi); line-height: var(--lh-snug);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: var(--tap); padding-inline: var(--sp-2); font-size: var(--fs-sm); }
.btn-wa { background: var(--whatsapp); color: var(--on-whatsapp); }
.btn-wa:hover { background: var(--whatsapp-hover); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--control); color: var(--text); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: var(--tap); font-size: var(--fs-base); font-weight: var(--fw-bold); line-height: 1.15; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { flex: none; }
.brand-mark { display: grid; place-items: center; width: var(--mark); height: var(--mark); border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: var(--fs-base); }
.header-end { display: flex; align-items: center; gap: var(--sp-1); }
.lang { display: flex; align-items: center; font-size: var(--fs-sm); }
.lang a, .lang span { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--sp-1); }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang [aria-current] { font-weight: var(--fw-semi); text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
.lang i { width: 1px; height: var(--sp-2); background: var(--line); }
.header-call { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--sp-5) var(--sp-6); }
.hero-in { display: grid; gap: var(--sp-4); align-items: center; }
.hero-copy { display: grid; gap: var(--sp-3); justify-items: start; }
.eyebrow { font-size: var(--fs-xs); font-weight: var(--fw-semi); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--accent); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); text-wrap: balance; }
.lead { font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--muted); max-width: 34rem; }
.hero-ctas { display: grid; gap: var(--sp-1); width: 100%; }
.hero-art { margin: 0; padding: var(--sp-3); background: var(--accent-soft); border-radius: var(--radius); }
.hero-art img { width: 100%; height: auto; }

/* ---------- Info strip ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts-in { display: grid; }
.fact { display: flex; align-items: center; gap: var(--sp-2); padding-block: var(--sp-2); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.fact + .fact { border-top: 1px solid var(--line); }
.fact svg { color: var(--accent); }
.fact strong { display: block; font-weight: var(--fw-semi); }
.fact span { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-8); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: var(--sp-1); margin-bottom: var(--sp-4); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); }
.note { color: var(--muted); font-size: var(--fs-sm); max-width: var(--measure); }

/* ---------- Menu / price list ---------- */
.menu { display: grid; gap: var(--sp-3); }
.menu-group { padding: var(--sp-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.menu-group h3 { margin-bottom: var(--sp-1); font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--sp-2); padding-block: var(--sp-2); border-bottom: 1px solid var(--line); line-height: var(--lh-snug); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item-name { font-weight: var(--fw-semi); }
.item-price { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.item-desc { grid-column: 1 / -1; margin-top: var(--sp-half); color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Payment ---------- */
.pay { display: grid; gap: var(--sp-2); }
.pay-card { display: grid; gap: var(--sp-half); padding: var(--sp-3); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); }
.pay-card span { color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.pay-card strong { font-size: var(--fs-pay); font-weight: var(--fw-bold); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* ---------- Visit ---------- */
.visit { display: grid; gap: var(--sp-4); }
.visit-info { display: grid; gap: var(--sp-3); align-content: start; }
.address { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.address strong { display: block; color: var(--accent); font-size: var(--fs-base); }
.hours { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hours dt { color: var(--muted); }
.hours dd { font-weight: var(--fw-semi); font-variant-numeric: tabular-nums; text-align: right; }
.visit-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--sp-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-1) var(--sp-3); }
.site-footer a { color: var(--text); }

/* ---------- Sticky bottom bar (phones) ---------- */
.bottom-bar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-1);
  padding: var(--sp-1) var(--gutter) calc(var(--sp-1) + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
}
.bottom-bar .btn { min-height: var(--sp-6); }

/* ---------- One page-load reveal ---------- */
@keyframes rise { from { opacity: 0; translate: 0 var(--sp-2); } to { opacity: 1; translate: 0 0; } }
.hero-copy, .hero-art { animation: rise var(--dur) var(--ease) both; }
.hero-art { animation-delay: 0.1s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Wider screens
   ========================================================= */
@media (min-width: 720px) {
  :root { --gutter: 1.5rem; --header-h: 4rem; }
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }
  .header-call { display: inline-flex; }
  .brand { font-size: var(--fs-lg); }
  .hero { padding-block: var(--sp-8) var(--sp-8); }
  .hero-ctas { display: flex; flex-wrap: wrap; width: auto; }
  .facts-in { grid-template-columns: repeat(3, 1fr); }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--line); padding-left: var(--sp-3); }
  .menu { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .pay { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--sp-10); }
}

@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); }
  .menu.menu-3 { grid-template-columns: repeat(3, 1fr); }
  .visit { grid-template-columns: 1fr 1.2fr; gap: var(--sp-8); }
}
