/* ==========================================================================
   Disciplined Child School — shared stylesheet
   Palette: wine, white, black
   ========================================================================== */

:root {
  --wine: #6b1f2a;
  --wine-dark: #4a141c;
  --wine-light: #8e2b3a;
  --wine-tint: #f6eef0;
  --black: #121212;
  --ink: #1d1d1f;
  --muted: #5f5f66;
  --line: #e4e0e1;
  --white: #ffffff;
  --paper: #faf8f8;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(18, 18, 18, .06), 0 2px 8px rgba(18, 18, 18, .05);
  --shadow-md: 0 10px 30px rgba(74, 20, 28, .12);
  --wrap: 1140px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  /* mobile overflow guard */
  overflow-x: hidden;
}

/* Nothing may push the page sideways. */
img,
svg,
video,
iframe,
canvas,
table { max-width: 100%; }

img,
svg,
video { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 750;
  color: var(--black);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

p { margin: 0 0 1rem; overflow-wrap: break-word; }

a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--wine-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tint { background: var(--wine-tint); }
.section--paper { background: var(--paper); }

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--wine);
  margin-bottom: .6rem;
}

.lede { font-size: 1.06rem; color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--wine);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--wine);
  --btn-fg: var(--white);
  --btn-bd: var(--wine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 13px 24px;
  min-height: 46px;
  border: 2px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--wine-light); border-color: var(--wine-light); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn[disabled],
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.75); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--wine); --btn-bd: var(--wine); }
.btn--outline:hover { background: var(--wine); --btn-fg: var(--white); }

/* solid white button, for use on the wine hero and CTA bands */
.btn--light { --btn-bg: var(--white); --btn-fg: var(--wine); --btn-bd: var(--white); }
.btn--light:hover { background: #ffe9ec; border-color: #ffe9ec; color: var(--wine-dark); }

.btn--dark { --btn-bg: var(--black); --btn-bd: var(--black); }
.btn--dark:hover { background: #2c2c2c; border-color: #2c2c2c; }

.btn--block { width: 100%; }

/* icon-only button (always paired with a tooltip) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--wine);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--wine); color: var(--white); border-color: var(--wine); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; pointer-events: none; }
.icon-btn--onwine { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.icon-btn--onwine:hover { background: #fff; color: var(--wine); border-color: #fff; }

/* ---------- tooltips (data-tip) ---------- */
[data-tip] { position: relative; }
/* Hidden bubbles use display:none so an off-screen tooltip can never add to
   the document's scroll width on narrow screens. */
[data-tip]::after {
  content: attr(data-tip);
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 0);
  background: var(--black);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 90;
}
[data-tip]::before {
  content: "";
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translate(-50%, 0);
  border: 6px solid transparent;
  border-top-color: var(--black);
  pointer-events: none;
  z-index: 90;
}
[data-tip]:hover::after,
[data-tip]:hover::before,
[data-tip]:focus-visible::after,
[data-tip]:focus-visible::before {
  display: block;
  animation: tipIn .16s var(--ease) both;
}
@keyframes tipIn {
  from { opacity: 0; transform: translate(-50%, 4px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
[data-tip-pos="bottom"]::after { bottom: auto; top: calc(100% + 10px); }
[data-tip-pos="bottom"]::before { bottom: auto; top: calc(100% + 4px); border-top-color: transparent; border-bottom-color: var(--black); }
/* keep tooltips inside the viewport on small screens */
@media (max-width: 560px) {
  [data-tip]::after { white-space: normal; width: max-content; max-width: 46vw; text-align: center; }
}
@media (hover: none) {
  /* touch devices get the accessible name instead of a hover bubble */
  [data-tip]:hover::after,
  [data-tip]:hover::before { display: none; }
}

/* ---------- header ---------- */
/* reserve the header's height before app.js fills it, so nothing shifts */
#siteHeader { min-height: calc(var(--header-h) + 1px); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--black);
  font-weight: 800;
}
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.brand-text { min-width: 0; line-height: 1.15; }
.brand-name {
  display: block;
  font-size: 1rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-motto {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wine);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
/* :not(.nav-cta) so these never override the button's own styling */
.nav-links a:not(.nav-cta):hover { background: var(--wine-tint); color: var(--wine); text-decoration: none; }
.nav-links a:not(.nav-cta)[aria-current="page"] { color: var(--wine); background: var(--wine-tint); }

.nav-cta { margin-left: 6px; padding: 10px 20px; min-height: 42px; }

.nav-toggle { display: none; margin-left: auto; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; width: 100%; }
}

@media (max-width: 420px) {
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: .88rem; }
  .brand-motto { font-size: .6rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(78vh, 620px);
  padding: clamp(56px, 10vw, 110px) 0;
  background:
    linear-gradient(115deg, rgba(74, 20, 28, .93) 0%, rgba(107, 31, 42, .84) 48%, rgba(18, 18, 18, .88) 100%),
    radial-gradient(circle at 78% 18%, #8e2b3a 0%, transparent 55%),
    var(--wine-dark);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
/* wine overlay above the photos keeps the text readable */
.hero:has(.hero-slides)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(74,20,28,.78) 0%, rgba(107,31,42,.5) 50%, rgba(18,18,18,.4) 100%);
}
.hero:has(.hero-slides) h1,
.hero:has(.hero-slides) p { text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.hero-arrow:hover { background: rgba(0,0,0,.5); }
.hero-arrow--prev { left: 14px; }
.hero-arrow--next { right: 14px; }
/* keep the text clear of the arrows wherever the arrows are shown */
@media (min-width: 601px) and (max-width: 1300px) { .hero .wrap { padding-inline: 72px; } }
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }
@media (max-width: 600px) { .hero-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero-inner { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .accent { color: #ffd9de; }
.hero-kicker {
  display: block;
  margin-bottom: .7em;
  font-size: clamp(.8rem, 1.6vw, .95rem);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffd9de;
}
.hero p { font-size: clamp(1rem, 2.1vw, 1.18rem); color: rgba(255,255,255,.9); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 auto; min-width: 190px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.hero-badge img { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; background: #fff; padding: 2px; }

@media (max-width: 480px) {
  .hero-actions .btn { min-width: 0; width: 100%; }
}

/* page banner (inner pages) */
.page-banner {
  padding: clamp(44px, 7vw, 76px) 0 clamp(36px, 6vw, 58px);
  background: linear-gradient(120deg, var(--wine-dark), var(--wine) 60%, var(--black));
  color: #fff;
}
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: rgba(255,255,255,.88); max-width: 62ch; margin: 0; }

.crumbs { font-size: .83rem; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.92); }
.crumbs span { margin: 0 6px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--wine-tint);
  color: var(--wine);
}
.card-icon svg { width: 24px; height: 24px; fill: currentColor; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--white);
  padding: 26px 18px;
  text-align: center;
}
.stat b { display: block; font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--wine); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* split (image + text) */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(24px, 4vw, 52px); align-items: center; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--wine-tint);
}
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.local-copy a { color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.chip {
  padding: 9px 18px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 16px; }

.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wine-tint);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  font: inherit;
  text-align: left;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption,
.tile .tile-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(18,18,18,.86));
  color: #fff;
  font-size: .88rem;
  font-weight: 650;
}
.tile .tile-cap small { display: block; font-weight: 500; opacity: .8; font-size: .75rem; }

/* placeholder art for photos that are not supplied yet */
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 55%, var(--black) 100%);
  color: rgba(255,255,255,.9);
}
.ph svg { width: 44px; height: 44px; fill: currentColor; opacity: .8; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(10, 6, 7, .9);
}
.lightbox.open { display: grid; }
.lightbox-inner { position: relative; width: min(960px, 100%); max-height: 86dvh; display: flex; flex-direction: column; gap: 12px; }
.lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.lightbox-stage img { max-width: 100%; max-height: 72dvh; width: auto; object-fit: contain; }
.lightbox-stage .ph { min-height: 50dvh; }
.lightbox-bar { display: flex; align-items: center; gap: 10px; color: #fff; }
.lightbox-bar p { margin: 0; font-size: .9rem; flex: 1 1 auto; min-width: 0; }
.lightbox-bar .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.lightbox-bar .icon-btn:hover { background: #fff; color: var(--wine); }

/* ---------- staff ---------- */
.staff-card { text-align: center; padding: 26px 18px; }
.staff-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--wine), var(--black));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .02em;
  overflow: hidden;
}
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-card h4 { font-size: 1.05rem; margin-bottom: .2em; }
.staff-role { color: var(--wine); font-weight: 650; font-size: .88rem; margin: 0; }
.staff-note { color: var(--muted); font-size: .84rem; margin: .5rem 0 0; }

/* ---------- forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 650; color: var(--ink); }
.field .req { color: var(--wine); }
.field .hint { font-size: .78rem; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(107, 31, 42, .15);
}
.field .error-text { font-size: .78rem; color: #b3261e; min-height: 0; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #b3261e; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.form-foot .btn { min-width: 200px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; min-height: 0; flex: 0 0 auto; margin-top: 2px; accent-color: var(--wine); }

.alert {
  display: none;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: .92rem;
}
.alert.show { display: flex; }
.alert p { margin: 0; }
.alert--ok { background: #eef7f0; border-color: #bfe0c8; color: #1d5b2e; }
.alert--warn { background: #fff7e8; border-color: #f0d9a8; color: #7a5410; }
.alert--err { background: #fdeceb; border-color: #f3c3c0; color: #8c1d18; }

.spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- skeleton loader ---------- */
.skeleton {
  position: relative;
  background: #ece8e9;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.sk-line { height: 13px; margin-bottom: 10px; }
.sk-line.w90 { width: 90%; }
.sk-line.w70 { width: 70%; }
.sk-line.w50 { width: 50%; }
.sk-title { height: 24px; width: 55%; margin-bottom: 16px; }
.sk-tile { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.sk-card { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); background: var(--white); }
.sk-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; }
.sk-chip { height: 42px; width: 108px; border-radius: 999px; }

/* full-page route loader */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: opacity .35s var(--ease), visibility .35s;
}
#page-loader.hide { opacity: 0; visibility: hidden; }
#page-loader .pl-bar { height: 3px; background: var(--wine-tint); overflow: hidden; }
#page-loader .pl-bar i { display: block; height: 100%; width: 40%; background: var(--wine); animation: slide 1.1s infinite var(--ease); }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
#page-loader .pl-body { flex: 1 1 auto; overflow: hidden; padding: 24px 20px; max-width: var(--wrap); width: 100%; margin-inline: auto; }

/* ---------- contact ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.info-row .ic {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--wine-tint);
  color: var(--wine);
}
.info-row .ic svg { width: 20px; height: 20px; fill: currentColor; }
.info-row .tx { min-width: 0; }
.info-row .tx b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-row .tx a,
.info-row .tx span { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.info-row .tx a:hover { color: var(--wine); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--wine-tint);
  min-height: 320px;
}
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--wine-dark), var(--wine) 55%, var(--black));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 50px);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
.cta-band > div { min-width: 0; flex: 1 1 320px; }
.cta-band .btn { flex: 0 0 auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.76); padding: clamp(42px, 6vw, 64px) 0 26px; }
.site-footer h2 { color: #fff; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 32px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; flex: 0 0 auto; }
.footer-brand b { color: #fff; display: block; font-size: 1rem; }
.footer-brand small { color: var(--wine-light); letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: rgba(255,255,255,.76); font-size: .92rem; overflow-wrap: anywhere; }
.footer-grid a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
/* social icons show their brand colour at all times, not only on hover */
.social .icon-btn { color: #fff; border-color: transparent; transition: transform .18s var(--ease), filter .18s var(--ease); }
.social .icon-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.12); }
.social .social-facebook { background: #1877f2; }
.social .social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social .social-tiktok { background: #000; border-color: rgba(255,255,255,.4); }
.social .social-whatsapp { background: #25d366; }
.social .social-phone,
.social .social-mail { background: var(--wine-light); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: .84rem;
}
.footer-bottom .credit { color: #fff; font-weight: 650; }
.footer-bottom .credit:hover { color: var(--wine-light); text-decoration: underline; }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.accordion + .accordion { margin-top: 12px; }
.accordion summary {
  padding: 18px 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--wine); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.accordion[open] summary::after { content: "\2013"; }
.accordion .acc-body { padding: 0 20px 18px; color: var(--muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, #page-loader, .lightbox { display: none !important; }
}
