/*
Theme Name: ACISN — Montra Digital
Theme URI: https://acisn.day7.pt
Author: ACISN
Description: A montra digital dos negócios da Nazaré. Tema leve, mobile-first e acessível para a plataforma de descoberta local da ACISN.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: acisn
*/

/* ==========================================================================
   1. TOKENS
   Palette derives from the ACISN brand (teal #5BBCC9 / #24656E, coral #EC5840),
   darkened where it needs to carry text. Contrast ratios against white are
   noted so future edits do not silently break accessibility.
   ========================================================================== */

:root {
  /* Brand */
  --c-teal-900: #0a343c;
  --c-teal-800: #0e4a54;
  --c-teal-700: #12626f; /* 5.9:1 on white — safe for body text and links */
  --c-teal-600: #17798a;
  --c-teal-500: #1f8c9c;
  --c-teal-300: #5bbcc9; /* brand accent — decorative, never text on white */
  --c-teal-100: #d4edf1;
  --c-teal-050: #eef8fa;

  --c-coral-700: #a83617;
  --c-coral-600: #c6431f; /* 5.2:1 on white */
  --c-coral-500: #e4572e; /* decorative / dark-bg use */
  --c-coral-100: #fbe6df;

  /* Neutrals — warm, to echo sand and daylight */
  --c-ink: #12211f; /* 15.8:1 on white */
  --c-body: #2c3a39; /* 10.4:1 */
  --c-muted: #566765; /* 5.5:1 — smallest text still passes AA */
  --c-line: #e3e2dc;
  --c-line-soft: #eeede8;
  --c-sand-50: #fbf8f3;
  --c-sand-100: #f5f0e7;
  --c-white: #fff;

  /* Semantic */
  --c-bg: var(--c-white);
  --c-bg-alt: var(--c-sand-50);
  --c-primary: var(--c-teal-700);
  --c-primary-hover: var(--c-teal-800);
  --c-focus: #0b6b7a;

  /* Type — fluid, mobile-first, no webfont payload */
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --f-display: var(--f-sans);

  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: clamp(1.05rem, 0.99rem + 0.3vw, 1.19rem);
  --t-lg: clamp(1.25rem, 1.14rem + 0.5vw, 1.5rem);
  --t-xl: clamp(1.5rem, 1.31rem + 0.9vw, 2rem);
  --t-2xl: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem);
  --t-3xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);

  --lh-tight: 1.12;
  --lh-snug: 1.28;
  --lh-body: 1.65;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(2.75rem, 2rem + 4vw, 5.5rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18, 33, 31, 0.06), 0 1px 3px rgba(18, 33, 31, 0.04);
  --shadow-md: 0 4px 12px rgba(18, 33, 31, 0.07), 0 2px 4px rgba(18, 33, 31, 0.04);
  --shadow-lg: 0 16px 40px rgba(10, 52, 60, 0.13), 0 4px 12px rgba(10, 52, 60, 0.06);

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --header-h: 68px;

  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-body);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-3);
  color: var(--c-ink);
  font-family: var(--f-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Optical refinements: tighter tracking as type gets larger, and lining
   figures so numbers in prices, dates and stats align. */
h1 { letter-spacing: -0.032em; }
h2 { letter-spacing: -0.026em; }

.hero__stat strong,
.date-block strong,
.tile__price,
.card__discount,
.hours__row dd,
.results-count {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Paragraphs should not end on an orphan word. */
p { text-wrap: pretty; }

h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.16s var(--ease);
}
a:hover { color: var(--c-primary-hover); }

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }

button { font: inherit; }

hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: var(--s-6) 0;
}

blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 3px solid var(--c-teal-300);
  color: var(--c-ink);
  font-size: var(--t-md);
}

/* ==========================================================================
   3. ACCESSIBILITY
   ========================================================================== */

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-2);
  z-index: 999;
  transform: translateY(-200%);
  padding: var(--s-3) var(--s-4);
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* One visible focus treatment everywhere, never removed. */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: #9adfe9;
}

@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;
  }
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-4);
}
@media (min-width: 40em) {
  .wrap { padding-inline: var(--s-5); }
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.section-head__text { max-width: 60ch; }
.section-head h2 { margin-bottom: var(--s-2); }
.section-head p {
  margin: 0;
  color: var(--c-muted);
  font-size: var(--t-md);
}

.eyebrow {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--c-teal-700);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 34em) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60em) {
  .grid--3, .grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 76em) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Horizontal scroll rail — how card rows behave on small screens. */
.rail {
  display: grid;
  grid-auto-flow: column;
  /* 78% leaves a sliver of the next card visible — the cue that the row
     scrolls. A wider card hides it and the row reads as a dead end. */
  grid-auto-columns: minmax(258px, 78%);
  gap: var(--s-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--s-4);
  padding-bottom: var(--s-3);
  margin-inline: calc(var(--s-4) * -1);
  padding-inline: var(--s-4);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 60em) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* ==========================================================================
   5. BUTTONS & BADGES
   ========================================================================== */

.btn {
  --btn-bg: var(--c-primary);
  --btn-fg: #fff;
  --btn-bd: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px; /* comfortable touch target */
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-sm);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:hover {
  --btn-bg: var(--c-primary-hover);
  --btn-bd: var(--c-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: none; box-shadow: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-teal-800);
  --btn-bd: var(--c-line);
}
.btn--ghost:hover {
  --btn-bg: var(--c-teal-050);
  --btn-bd: var(--c-teal-300);
  color: var(--c-teal-800);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--c-teal-800);
  --btn-bd: #fff;
}
.btn--light:hover {
  --btn-bg: var(--c-teal-050);
  --btn-bd: var(--c-teal-050);
  color: var(--c-teal-900);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.5);
}
.btn--outline-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.14);
  --btn-bd: #fff;
  color: #fff;
}

.btn--coral {
  --btn-bg: var(--c-coral-600);
  --btn-fg: #fff;
  --btn-bd: var(--c-coral-600);
}
.btn--coral:hover {
  --btn-bg: var(--c-coral-700);
  --btn-bd: var(--c-coral-700);
}

.btn--sm { min-height: 38px; padding: var(--s-2) var(--s-4); font-size: var(--t-xs); }
.btn--block { width: 100%; }
.btn .icon { width: 17px; height: 17px; flex: none; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 650;
  font-size: var(--t-sm);
  text-decoration: none;
}
.link-more::after {
  content: "→";
  transition: transform 0.16s var(--ease);
}
.link-more:hover::after { transform: translateX(3px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.7em;
  border-radius: var(--r-pill);
  background: var(--c-teal-050);
  color: var(--c-teal-800);
  font-size: var(--t-xs);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge--coral { background: var(--c-coral-100); color: var(--c-coral-700); }
.badge--sand { background: var(--c-sand-100); color: #5c4f3a; }
.badge--solid { background: var(--c-teal-700); color: #fff; }
.badge--featured { background: #fdf1d8; color: #7a5410; }

/* ==========================================================================
   6. HEADER / NAV
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--c-line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-right: auto;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--c-teal-500), var(--c-teal-800));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.03rem; }
.brand__tag {
  color: var(--c-muted);
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.02em;
}
@media (max-width: 22em) {
  .brand__tag { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 42px;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-ink);
  font-size: var(--t-sm);
  font-weight: 650;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
  flex: none;
}
.nav-toggle__bars span,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 4px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  color: var(--c-body);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--c-teal-050); color: var(--c-teal-800); }
.site-nav .current-menu-item > a,
.site-nav .is-current > a {
  background: var(--c-teal-050);
  color: var(--c-teal-800);
}

.header-actions { display: none; }
@media (min-width: 62em) {
  .header-actions { display: flex; align-items: center; gap: var(--s-3); }
  .nav-toggle { display: none; }
  /* The in-panel CTA is the mobile counterpart of .header-actions — hiding it
     here prevents a duplicate "É associado?" button on desktop. */
  .site-nav__cta { display: none; }
}
@media (max-width: 61.99em) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--s-4) var(--s-4) var(--s-6);
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a {
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-md);
    font-size: var(--t-md);
  }
  .site-nav__cta { margin-top: var(--s-4); }
  .site-nav__cta .btn { width: 100%; }
}

/* ==========================================================================
   7. HERO + SEARCH
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(168deg, var(--c-teal-900) 0%, var(--c-teal-700) 52%, var(--c-teal-500) 100%);
  color: #fff;
}
.hero::before {
  /* Light off the Atlantic — a soft glow, not a texture file. */
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 90%;
  background: radial-gradient(60% 60% at 72% 18%, rgba(155, 226, 236, 0.42), transparent 70%);
  z-index: -1;
}
.hero__inner {
  position: relative;
  padding-block: clamp(3rem, 2rem + 7vw, 6.5rem) clamp(4.5rem, 3rem + 9vw, 8rem);
}
/* Constrain the hero text column without centring it — .wrap already centres
   the container, so a max-width alone would pull the copy to the middle. */
.hero__inner > * {
  max-width: 46rem;
}
.hero__inner > .hero__wave {
  max-width: none;
}
.hero h1 {
  color: #fff;
  margin-bottom: var(--s-4);
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: #a8e6ef;
}
.hero__lead {
  max-width: 44ch;
  margin-bottom: var(--s-6);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--t-md);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  padding: 0.4em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Wave: the one decorative flourish, drawn in CSS-referenced SVG. */
.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: clamp(38px, 6vw, 76px);
  fill: var(--c-bg);
}

.search-hero {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-lg);
}
.search-hero__field {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-4);
  background: #fff;
  border-radius: var(--r-pill);
}
.search-hero__field .icon { width: 20px; height: 20px; color: var(--c-teal-600); flex: none; }
.search-hero input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  font-family: inherit;
  font-size: var(--t-md);
}
.search-hero input[type="search"]:focus { outline: none; }
.search-hero__field:focus-within {
  outline: 3px solid #9adfe9;
  outline-offset: 2px;
}
.search-hero input::placeholder { color: #7c8b8a; }
@media (min-width: 44em) {
  .search-hero { flex-direction: row; align-items: center; }
  .search-hero__field { flex: 1; }
  .search-hero .btn { flex: none; min-height: 52px; }
}

.hero__hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--t-sm);
}
.hero__hints a {
  padding: 0.25em 0.75em;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.hero__hints a:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-7);
}
.hero__stat strong {
  display: block;
  font-size: var(--t-xl);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero__stat span {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--t-sm);
}

/* ==========================================================================
   8. CATEGORIES
   ========================================================================== */

.cats {
  display: grid;
  /* Wider minimum so two-word names ("Beleza & Bem-estar") do not wrap and
     leave the row with uneven card heights. */
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.cats > li { display: flex; }
.cat {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-ink);
  font-size: var(--t-sm);
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease),
    transform 0.16s var(--ease);
}
.cat:hover {
  border-color: var(--c-teal-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--c-teal-800);
}
.cat__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--c-teal-050);
  color: var(--c-teal-700);
}
.cat__icon .icon { width: 20px; height: 20px; }
.cat__count {
  display: block;
  color: var(--c-muted);
  font-size: var(--t-xs);
  font-weight: 550;
}

/* Chip row — filters and taxonomy shortcuts. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Scroll the chip row on small screens; wrap it once there is room, so the last
   categories are not stranded off-screen on desktop. */
.chips--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: var(--s-2);
  margin-inline: calc(var(--s-4) * -1);
  padding-inline: var(--s-4);
  scrollbar-width: thin;
}
@media (min-width: 62em) {
  .chips--scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 40px;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-body);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { border-color: var(--c-teal-300); background: var(--c-teal-050); color: var(--c-teal-800); }
.chip[aria-current="true"],
.chip.is-active {
  border-color: var(--c-teal-700);
  background: var(--c-teal-700);
  color: #fff;
}

/* ==========================================================================
   9. CARDS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}
/* Restrained lift: the previous -3px with a large shadow read as a floating
   tile rather than a card responding to the pointer. */
.card:hover {
  border-color: var(--c-teal-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card:focus-within {
  border-color: var(--c-teal-700);
  box-shadow: var(--shadow-md);
}

/* The photo is clipped by .card__frame, not by .card__media — so the logo badge
   that deliberately overhangs the bottom edge is not cut off. */
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
}
.card__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c-teal-100), var(--c-sand-100));
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.card:hover .card__media img { transform: scale(1.035); }

.card__flags {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  right: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  z-index: 2;
}
.card__flags .badge { box-shadow: var(--shadow-sm); }

.card__logo {
  position: absolute;
  bottom: calc(var(--s-4) * -1);
  left: var(--s-4);
  z-index: 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.card__logo img { width: 100%; height: 100%; object-fit: cover; }

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-4) var(--s-4);
}
.card__body--offset { padding-top: var(--s-6); }

.card__cat {
  color: var(--c-teal-700);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card__title {
  margin: 0;
  font-size: var(--t-lg);
  letter-spacing: -0.02em;
  /* Long words in a narrow card should hyphenate, never split mid-word. */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.card__title a {
  color: inherit;
  text-decoration: none;
}
/* Whole card clickable, while keeping one real focusable link. */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card__excerpt {
  margin: 0;
  color: var(--c-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin-top: auto;
  padding-top: var(--s-3);
  color: var(--c-muted);
  font-size: var(--t-xs);
  font-weight: 550;
}
.card__meta .icon { width: 14px; height: 14px; }
.card__meta-item { display: inline-flex; align-items: center; gap: 0.4em; }

.card__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: 0 var(--s-4) var(--s-4);
}

/* Offer card — coral accent, discount emphasised */
.card--offer .card__media { background: linear-gradient(150deg, var(--c-coral-100), var(--c-sand-100)); }
.card__discount {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 62px;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: var(--c-coral-600);
  color: #fff;
  font-size: var(--t-md);
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-md);
}

/* Event card — date block */
.card--event .card__media { aspect-ratio: 16 / 9; }
.date-block {
  display: grid;
  place-items: center;
  width: 58px;
  padding: var(--s-2) 0;
  border-radius: var(--r-md);
  background: var(--c-teal-050);
  color: var(--c-teal-800);
  line-height: 1.05;
  text-align: center;
  flex: none;
}
.date-block strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.date-block span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
/* Stack the date above the title by default: side by side, the date block eats
   the narrow column of a 3-up grid and forces mid-word title breaks. */
.card--event .card__body { gap: var(--s-3); }
.card--event .card__body > div { min-width: 0; }
.card--event .date-block {
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.4em;
  width: auto;
  padding: var(--s-1) var(--s-3);
  align-self: flex-start;
}
.card--event .date-block strong { font-size: 1.05rem; }
/* Only go side by side once a 3-up column is genuinely wide enough; below this
   the date block still squeezes the title. */
@media (min-width: 100em) {
  .card--event .card__body { flex-direction: row; align-items: flex-start; gap: var(--s-4); }
  .card--event .card__body > div { flex: 1; }
  .card--event .date-block {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 58px;
    padding: var(--s-2) 0;
  }
  .card--event .date-block strong { font-size: 1.35rem; }
}

/* Story / editorial card */
.card--story .card__media { aspect-ratio: 3 / 2; }
.card--story .card__title { font-size: var(--t-xl); }
.card--feature {
  grid-column: 1 / -1;
}
@media (min-width: 60em) {
  .card--feature { flex-direction: row; }
  .card--feature .card__media { flex: 1 1 56%; aspect-ratio: auto; min-height: 340px; }
  .card--feature .card__body { flex: 1 1 44%; justify-content: center; padding: var(--s-7) var(--s-6); }
  .card--feature .card__title { font-size: var(--t-2xl); }
  .card--feature .card__excerpt { -webkit-line-clamp: 4; line-clamp: 4; font-size: var(--t-md); }
}

/* Publication / feed item */
.feed { display: grid; gap: var(--s-4); }
.feed-item {
  position: relative;
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.feed-item:hover { border-color: var(--c-teal-300); box-shadow: var(--shadow-md); }
.feed-item__media {
  flex: none;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-teal-100);
}
.feed-item__media img { width: 100%; height: 100%; object-fit: cover; }
.feed-item__body { min-width: 0; }
.feed-item__source {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-bottom: 0.2em;
  color: var(--c-teal-700);
  font-size: var(--t-xs);
  font-weight: 700;
}
.feed-item h3 {
  margin: 0 0 0.25em;
  font-size: var(--t-md);
}
.feed-item h3 a { color: inherit; text-decoration: none; }
.feed-item h3 a::after { content: ""; position: absolute; inset: 0; }
.feed-item p {
  margin: 0;
  color: var(--c-muted);
  font-size: var(--t-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-item time { display: block; margin-top: 0.35em; color: var(--c-muted); font-size: var(--t-xs); }
@media (min-width: 48em) {
  .feed-item { padding: var(--s-5); }
  .feed-item__media { width: 116px; height: 116px; }
}

/* ==========================================================================
   10. BUSINESS SINGLE — "A MONTRA"
   ========================================================================== */

.montra-cover {
  position: relative;
  width: 100%;
  /* A 21:9 ratio plus min-height forces the box wider than a phone viewport
     (220px tall ⇒ 513px wide), so it overflowed. Use a taller ratio on small
     screens and let the ratio alone drive height. */
  aspect-ratio: 3 / 2;
  max-height: 460px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c-teal-700), var(--c-teal-300));
}
@media (min-width: 40em) {
  .montra-cover { aspect-ratio: 16 / 7; }
}
@media (min-width: 64em) {
  .montra-cover { aspect-ratio: 21 / 9; }
}
.montra-cover img { width: 100%; height: 100%; object-fit: cover; }
.montra-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 52, 60, 0.55), rgba(10, 52, 60, 0.05) 55%);
}

.montra-head {
  position: relative;
  /* Overlap the cover by less on phones: a deep pull leaves the logo crowding
     the card's top edge and eats most of the cover image. */
  margin-top: -44px;
  z-index: 2;
}
@media (min-width: 40em) {
  .montra-head { margin-top: -68px; }
}
.montra-head__card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.montra-head__logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--c-line-soft);
  border-radius: 18px;
  background: #fff;
  flex: none;
}
.montra-head__logo img { width: 100%; height: 100%; object-fit: cover; }
.montra-head h1 {
  margin: 0 0 var(--s-2);
  font-size: var(--t-2xl);
}
.montra-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  color: var(--c-muted);
  font-size: var(--t-sm);
}
.montra-head__meta .icon { width: 15px; height: 15px; }
.montra-head__meta-item { display: inline-flex; align-items: center; gap: 0.4em; }
.montra-head__tagline {
  margin: var(--s-3) 0 0;
  color: var(--c-body);
  font-size: var(--t-md);
  max-width: 56ch;
}
.montra-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
@media (min-width: 52em) {
  .montra-head { margin-top: -92px; }
  .montra-head__card { flex-direction: row; align-items: flex-start; gap: var(--s-5); padding: var(--s-6); }
  .montra-head__text { flex: 1; min-width: 0; }
  .montra-head__actions { flex-direction: column; align-items: stretch; min-width: 220px; }
}

.montra-body {
  display: grid;
  gap: var(--s-7);
  padding-block: var(--section-y);
}
@media (min-width: 62em) {
  .montra-body {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--s-8);
    align-items: start;
  }
}

.montra-section + .montra-section { margin-top: var(--s-7); }
.montra-section > h2 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-size: var(--t-xl);
}
.montra-section > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}

.prose { max-width: 68ch; font-size: var(--t-md); }
.prose > :last-child { margin-bottom: 0; }

/* Sidebar panels */
.panel {
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
}
.panel + .panel { margin-top: var(--s-4); }
.panel--sand { background: var(--c-sand-50); }
.panel h2,
.panel h3 {
  margin: 0 0 var(--s-4);
  font-size: var(--t-md);
  letter-spacing: -0.01em;
}
@media (min-width: 62em) {
  .montra-aside { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}

.info-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.info-list li { display: flex; gap: var(--s-3); font-size: var(--t-sm); }
.info-list .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--c-teal-600); }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-list__label {
  display: block;
  color: var(--c-muted);
  font-size: var(--t-xs);
  font-weight: 600;
}

.hours { margin: 0; display: grid; gap: 2px; font-size: var(--t-sm); }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.45em 0;
  border-bottom: 1px dashed var(--c-line-soft);
}
.hours__row:last-child { border-bottom: 0; }
.hours__row dt { color: var(--c-muted); }
.hours__row dd { margin: 0; font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.hours__row.is-today dt { color: var(--c-teal-800); font-weight: 700; }
.hours__row.is-today dd { color: var(--c-teal-800); }
.hours__row.is-closed dd { color: var(--c-muted); font-weight: 550; }

.socials { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.social-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-teal-800);
}
.social-btn:hover { border-color: var(--c-teal-300); background: var(--c-teal-050); }
.social-btn .icon { width: 19px; height: 19px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 44em) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery a,
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 1;
  background: var(--c-teal-100);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

/* Products / services list */
.tiles { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 40em) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.tile {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
}
.tile__media {
  flex: none;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--c-teal-050);
}
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile h3 { margin: 0 0 0.2em; font-size: var(--t-base); }
.tile p { margin: 0; color: var(--c-muted); font-size: var(--t-sm); }
.tile__price {
  margin-top: 0.35em;
  color: var(--c-teal-800);
  font-size: var(--t-sm);
  font-weight: 700;
}

/* Sticky mobile action bar on a business page */
.montra-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4) max(var(--s-3), env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-line);
}
.montra-bar .btn { flex: 1; }
@media (min-width: 52em) { .montra-bar { display: none; } }
body.has-montra-bar { padding-bottom: 76px; }
@media (min-width: 52em) { body.has-montra-bar { padding-bottom: 0; } }

/* ==========================================================================
   11. MAP / EXPLORE
   ========================================================================== */

.explore {
  display: grid;
  gap: var(--s-5);
  align-items: stretch;
}
@media (min-width: 62em) {
  .explore { grid-template-columns: 1fr 1.15fr; }
}
.map-frame {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--c-teal-050), var(--c-sand-100));
}
.map-frame iframe,
.map-frame img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  object-fit: cover;
  display: block;
}
.map-legend { display: grid; gap: var(--s-3); align-content: center; }
.map-legend__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-sm);
}
.map-legend__item:hover { border-color: var(--c-teal-300); background: var(--c-teal-050); }
.map-legend__pin {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--c-teal-700);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 800;
}
.map-legend__item span.muted { color: var(--c-muted); font-weight: 500; }

/* ==========================================================================
   12. ARCHIVE TOOLBAR / FILTERS
   ========================================================================== */

.page-head {
  padding-block: var(--s-7) var(--s-6);
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-sand-50);
}
.page-head h1 { margin-bottom: var(--s-3); }
.page-head p { max-width: 62ch; margin: 0; color: var(--c-muted); font-size: var(--t-md); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-bottom: var(--s-4);
  color: var(--c-muted);
  font-size: var(--t-xs);
}
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-teal-700); text-decoration: underline; }

.toolbar {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.toolbar__row {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 46em) {
  .toolbar__row { grid-template-columns: 1fr auto auto; align-items: center; }
}
.field {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: #fff;
}
.field:focus-within { outline: 3px solid var(--c-focus); outline-offset: 1px; }
.field .icon { width: 18px; height: 18px; color: var(--c-teal-600); flex: none; }
.field input,
.field select {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: var(--t-sm);
}
.field input:focus,
.field select:focus { outline: none; }
.field--select { padding-right: var(--s-3); }
.field--select select { cursor: pointer; }

.results-count {
  color: var(--c-muted);
  font-size: var(--t-sm);
  font-weight: 550;
}
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-5);
}

.empty {
  padding: var(--s-8) var(--s-5);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-sand-50);
  text-align: center;
}
.empty h2 { font-size: var(--t-lg); }
.empty p { max-width: 46ch; margin-inline: auto; color: var(--c-muted); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-7);
}
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-body);
  font-weight: 650;
  font-size: var(--t-sm);
  text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--c-teal-300); background: var(--c-teal-050); }
.pagination .page-numbers.current {
  border-color: var(--c-teal-700);
  background: var(--c-teal-700);
  color: #fff;
}

/* ==========================================================================
   13. CTA BANDS
   ========================================================================== */

.band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  background: linear-gradient(140deg, var(--c-teal-800), var(--c-teal-600) 70%, var(--c-teal-500));
  color: #fff;
}
.band::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 226, 236, 0.34), transparent 68%);
}
.band__inner { position: relative; z-index: 1; max-width: 40rem; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.88); font-size: var(--t-md); }
.band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.band--sand {
  background: var(--c-sand-100);
  color: var(--c-body);
}
.band--sand h2 { color: var(--c-ink); }
.band--sand p { color: var(--c-body); }
.band--sand::after { background: radial-gradient(circle, rgba(91, 188, 201, 0.28), transparent 68%); }

.value-grid { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 48em) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.value h3 { color: #fff; font-size: var(--t-md); margin-bottom: var(--s-2); }
.value p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: var(--t-sm); }
.value__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: var(--s-3);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  font-size: var(--t-sm);
}

/* Two-column institutional split */
.split { display: grid; gap: var(--s-6); }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
}
.stack { display: grid; gap: var(--s-4); }
.list-check { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.list-check li { display: flex; gap: var(--s-3); font-size: var(--t-md); }
.list-check .icon { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--c-teal-600); }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.site-footer {
  margin-top: var(--s-8);
  padding-block: var(--s-8) var(--s-5);
  background: var(--c-teal-900);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--t-sm);
}
.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 44em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); } }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
/* Contact rows only: keep the icon on the same line as its label. Scoped to
   .footer-contacts so the plain nav lists above are untouched. */
.footer-contacts li { display: flex; align-items: center; gap: 0.55em; }
.footer-contacts li > a { display: inline-flex; align-items: center; gap: 0.55em; }
.footer-contacts .icon { width: 15px; height: 15px; flex: none; opacity: 0.75; }
.site-footer .brand { color: #fff; margin-right: 0; }
.site-footer .brand__tag { color: rgba(255, 255, 255, 0.66); }
.footer-about p { margin-top: var(--s-4); max-width: 34ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--t-xs);
}
.site-footer .socials .social-btn {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.site-footer .socials .social-btn:hover { background: rgba(255, 255, 255, 0.18); }

/* ==========================================================================
   15. EDITORIAL SINGLES
   ========================================================================== */

.article-head { padding-block: var(--s-7) var(--s-5); }
.article-head h1 { max-width: 30ch; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
  color: var(--c-muted);
  font-size: var(--t-sm);
}
.article-hero {
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 9;
  background: var(--c-teal-100);
  margin-bottom: var(--s-6);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: var(--t-md); }
.article-body h2 { margin-top: var(--s-6); font-size: var(--t-xl); }
.article-body h3 { margin-top: var(--s-5); }
.article-body img { border-radius: var(--r-md); margin-block: var(--s-5); }

.author-biz {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-sand-50);
}
.author-biz__logo {
  width: 60px;
  height: 60px;
  flex: none;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--c-line-soft);
}
.author-biz__logo img { width: 100%; height: 100%; object-fit: cover; }
.author-biz h2 { margin: 0 0 0.15em; font-size: var(--t-md); }
.author-biz p { margin: 0; color: var(--c-muted); font-size: var(--t-sm); }

.offer-terms {
  margin-top: var(--s-5);
  padding: var(--s-4);
  border-left: 3px solid var(--c-coral-500);
  background: var(--c-coral-100);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-sm);
}
.offer-terms strong { color: var(--c-coral-700); }

/* Notice used where the demo intentionally stops short of real functionality. */
.demo-note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px dashed var(--c-teal-300);
  border-radius: var(--r-md);
  background: var(--c-teal-050);
  color: var(--c-teal-900);
  font-size: var(--t-sm);
}
.demo-note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ==========================================================================
   16. UTILITIES
   ========================================================================== */

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--fill { fill: currentColor; stroke: none; }
.muted { color: var(--c-muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.flex-end { margin-left: auto; }
.text-lg { font-size: var(--t-md); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text,
figcaption { color: var(--c-muted); font-size: var(--t-sm); margin-top: var(--s-2); }

@media print {
  .site-header, .site-footer, .montra-bar, .hero__wave { display: none; }
  body { color: #000; }
  a { text-decoration: underline; }
}
