/* =========================================================
   ATHLETE MIND — shared stylesheet
   Colors measured from LOGO.png:
   gold #FBC51B · cream #F9F2E9 · black #000000
   ========================================================= */

:root {
  /* Brand (from logo) */
  --primary: #FBC51B;        /* logo gold — buttons, badges, highlights */
  --primary-hover: #FFD447;  /* lighter gold for hover */
  --primary-dark: #8A6A00;   /* deep gold — readable text accents on white */
  --secondary: #0B0B0B;      /* near-black — header, footer, dark sections, headings */
  --accent: #F9F2E9;         /* logo cream — text on dark, soft panels */

  /* Neutrals */
  --bg-light: #FFFDF8;       /* warm off-white page background */
  --bg-cream: #FBF6EE;       /* alternate section background */
  --white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-muted: #5C5A55;
  --text-on-dark: #E9E4DA;
  --text-on-dark-muted: #B9B3A8;

  /* Lines & shadows tinted with the brand gold */
  --border: rgba(251, 197, 27, 0.28);
  --border-soft: rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 2px 8px rgba(138, 106, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(138, 106, 0, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.25);

  /* Type */
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--secondary); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--secondary);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary); color: var(--secondary); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .narrow, .narrow.center { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--primary); color: var(--secondary); font-weight: 700;
  padding: .6rem 1rem; border-radius: var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--secondary); box-shadow: 0 6px 18px rgba(251, 197, 27, .35); }
.btn-primary:hover { background: var(--primary-hover); color: var(--secondary); box-shadow: 0 10px 24px rgba(251, 197, 27, .45); }
.btn-dark { background: var(--secondary); color: var(--accent); }
.btn-dark:hover { background: #222; color: var(--primary); }
.btn-outline { border-color: var(--secondary); color: var(--secondary); background: transparent; }
.btn-outline:hover { background: var(--secondary); color: var(--primary); }
.btn-outline-light { border-color: rgba(249, 242, 233, .55); color: var(--accent); background: transparent; }
.btn-outline-light:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp { background: #25D366; color: #06290F; }
.btn-whatsapp:hover { background: #3BE07A; color: #06290F; }
.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.link-arrow {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--primary-dark); text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--secondary); }
.link-arrow:hover::after { transform: translateX(4px); }
.section-dark .link-arrow { color: var(--primary); }

.back-link {
  display: inline-block; margin-bottom: 1.25rem; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--primary);
}
.back-link:hover { color: var(--accent); }

/* lists used as layout */
.trust-bar, .stat-list, .badges { list-style: none; padding-left: 0; }
figure.qr-card { margin: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(251, 197, 27, .14);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-menu ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu ul a {
  color: var(--text-on-dark); text-decoration: none; font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; position: relative; padding: .4rem 0;
}
.nav-menu ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-menu ul a:hover, .nav-menu ul a[aria-current="page"] { color: var(--primary); }
.nav-menu ul a:hover::after, .nav-menu ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  display: inline-flex; align-items: center; gap: .15rem;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  border: 1px solid rgba(249, 242, 233, .25); border-radius: 999px; padding: .2rem;
}
.lang-switch a, .lang-switch span[aria-current] {
  color: var(--text-on-dark-muted); text-decoration: none;
  padding: .3rem .65rem; border-radius: 999px; line-height: 1; transition: color .2s, background .2s;
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch span[aria-current="true"] { background: var(--primary); color: var(--secondary); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: var(--radius-sm);
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--accent);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  /* backdrop-filter would trap the fixed menu inside the header, so use a solid bar on mobile */
  .site-header { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    background: #050505; padding: 2rem 1.5rem 3rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: none; visibility: visible; }
  .nav-menu ul { flex-direction: column; gap: 0; }
  .nav-menu ul a { display: block; font-size: 1.3rem; padding: 1rem 0; border-bottom: 1px solid rgba(249, 242, 233, .08); }
  .nav-menu ul a::after { display: none; }
  .nav-cta { align-self: flex-start; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-cream { background: var(--bg-cream); }
.section-white { background: var(--white); }
.section-dark { background: var(--secondary); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--primary-dark);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--primary); border-radius: 2px; }
.section-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--primary); }

.section-head { margin-bottom: 3rem; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; max-width: 680px; }
.section-head.center p { margin-inline: auto; }
.section-dark .section-head p { color: var(--text-on-dark-muted); }
.lead { font-size: 1.2rem; color: var(--text-muted); }
.hl { color: var(--primary); }
.section-actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.center .section-actions, .section-actions.center { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--text-on-dark);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(251, 197, 27, .16), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(251, 197, 27, .08), transparent 60%),
    var(--secondary);
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 7vw, 5rem);
}
.hero::after { /* echo of the logo's orbit arc */
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -160px;
  border: 3px solid rgba(251, 197, 27, .22); border-radius: 50%;
  border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-20deg);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { color: var(--accent); margin-bottom: 1.25rem; }
.hero h1 .hl { display: block; }
.hero .lead { color: var(--text-on-dark-muted); font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 680px; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.trust-bar {
  position: relative; z-index: 1; margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex; flex-wrap: wrap; gap: .75rem 1rem;
  padding-top: 2rem; border-top: 1px solid rgba(249, 242, 233, .12);
}
.trust-item {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--accent);
  padding: .55rem 1rem; border: 1px solid rgba(251, 197, 27, .3); border-radius: 999px;
  background: rgba(251, 197, 27, .06);
}
.trust-item svg { width: 18px; height: 18px; color: var(--primary); flex: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(251, 197, 27, .15), transparent 60%),
    var(--secondary);
  color: var(--text-on-dark); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 { color: var(--accent); font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero .lead { color: var(--text-on-dark-muted); max-width: 680px; margin: 0; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.photo-frame { position: relative; border-radius: var(--radius); overflow: visible; }
.photo-frame img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.photo-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--primary); border-radius: var(--radius); z-index: 0;
}
.photo-frame .photo-tag {
  position: absolute; z-index: 2; left: -14px; bottom: 28px;
  background: var(--secondary); color: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  padding: .7rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
}
.ratio-portrait img { aspect-ratio: 4 / 5; }
.ratio-square img { aspect-ratio: 1 / 1; }
.ratio-wide img { aspect-ratio: 4 / 3; }
@media (max-width: 720px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media { max-width: 480px; margin-inline: auto; width: calc(100% - 18px); }
}

/* ---------- Badges / chips ---------- */
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; line-height: 1.3;
  padding: .45rem .85rem; border-radius: 999px;
  background: rgba(251, 197, 27, .14); color: #5A4500; border: 1px solid var(--border);
}
.badge-dark { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }
.section-dark .badge { background: rgba(251, 197, 27, .1); color: var(--primary); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(251, 197, 27, .6); }
.card p { color: var(--text-muted); }
.card .link-arrow, .card .btn { margin-top: auto; align-self: flex-start; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--secondary); color: var(--primary); margin-bottom: 1.4rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card-num {
  font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--primary-dark);
  letter-spacing: .12em; margin-bottom: .5rem;
}

/* ---------- Approach / study panel ---------- */
.approach {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.stat-list { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.stat-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm);
}
.stat-list strong { display: block; font-family: var(--font-head); color: var(--secondary); font-size: 1rem; line-height: 1.35; }
.stat-list span { color: var(--text-muted); font-size: .95rem; line-height: 1.5; }
.stat-big {
  flex: none; min-width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  background: var(--primary); color: var(--secondary); padding: 0 .4rem;
}
@media (max-width: 720px) { .approach { grid-template-columns: 1fr; } }

/* ---------- WhatsApp community banner ---------- */
.wa-banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background:
    radial-gradient(600px 360px at 100% 0%, rgba(251, 197, 27, .2), transparent 60%),
    var(--secondary);
  color: var(--text-on-dark); border-radius: calc(var(--radius) * 1.6);
  padding: clamp(2.25rem, 5vw, 4rem); box-shadow: var(--shadow-lg);
}
.wa-banner h2 { color: var(--accent); }
.wa-banner p { color: var(--text-on-dark-muted); }
.wa-highlight {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(251, 197, 27, .1); border: 1px solid rgba(251, 197, 27, .35);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0 2rem;
}
.wa-highlight .pill {
  flex: none; background: var(--primary); color: var(--secondary);
  font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .65rem; border-radius: 999px; margin-top: .15rem;
}
.wa-highlight p { margin: 0; color: var(--accent); }
.wa-points { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .55rem; }
.wa-points li { display: flex; gap: .7rem; align-items: baseline; color: var(--text-on-dark); }
.wa-points li::before { content: "✓"; color: var(--primary); font-weight: 800; }
.qr-card {
  justify-self: center; text-align: center;
  background: var(--white); color: var(--text-dark); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 0 0 6px rgba(251, 197, 27, .35), var(--shadow-lg);
  max-width: 320px; width: 100%;
}
.qr-card img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; border-radius: 6px; }
.qr-card p { margin: .9rem 0 0; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--secondary); }
.qr-card small { display: block; color: var(--text-muted); font-size: .8rem; margin-top: .2rem; }
@media (max-width: 720px) {
  .wa-banner { grid-template-columns: 1fr; }
  .qr-card { max-width: 240px; }
}

/* ---------- Blog cards ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-card-top {
  height: 8px; background: linear-gradient(90deg, var(--primary), #F5A300);
}
.post-card-body { padding: 1.75rem 1.9rem 2rem; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem;
}
.post-cat {
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--secondary); color: var(--primary); padding: .3rem .65rem; border-radius: 999px;
}
.post-card h3 { font-size: 1.22rem; }
.post-card h3 a { color: var(--secondary); text-decoration: none; }
.post-card h3 a:hover { color: var(--primary-dark); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: .6rem 1.15rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-soft); background: var(--white); color: var(--text-dark);
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--primary); }
.filter-btn[aria-pressed="true"] { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }
.post-card[hidden] { display: none; }

/* ---------- Article (post.html) ---------- */
.article-hero .post-meta { color: var(--text-on-dark-muted); margin-top: 1.5rem; }
.article-hero .post-meta .post-cat { background: var(--primary); color: var(--secondary); }
.article-body { font-size: 1.12rem; line-height: 1.8; }
.article-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 2.4em; }
.article-body h3 { margin-top: 1.8em; }
.article-body p, .article-body li { color: #2B2A27; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  margin: 2em 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--primary);
  background: var(--bg-cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--secondary);
}
.article-body blockquote p { margin: 0; color: inherit; }
.callout {
  margin: 2em 0; padding: 1.5rem 1.6rem; border-radius: var(--radius);
  background: var(--secondary); color: var(--text-on-dark);
}
.callout h3 { color: var(--primary); margin-top: 0; }
.callout p, .callout li { color: var(--text-on-dark); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.abc-table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 1rem; }
.abc-table th, .abc-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.abc-table th { font-family: var(--font-head); background: var(--bg-cream); color: var(--secondary); }
.abc-table td:first-child { font-family: var(--font-head); font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.article-end {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.author-box { display: flex; align-items: center; gap: 1rem; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--primary); }
.author-box strong { display: block; font-family: var(--font-head); }
.author-box span { color: var(--text-muted); font-size: .92rem; }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-bottom: 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-2rem + 1px); top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(251, 197, 27, .25);
}
.timeline .year { font-family: var(--font-head); font-weight: 800; color: var(--primary-dark); font-size: .95rem; letter-spacing: .05em; }
.timeline h3 { margin: .2rem 0 .35rem; }
.timeline p { color: var(--text-muted); margin: 0; }

.honors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem; }
.honor {
  background: var(--secondary); color: var(--text-on-dark); border-radius: var(--radius);
  padding: 1.75rem; border-top: 4px solid var(--primary);
}
.honor .year { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--primary); line-height: 1; }
.honor h3 { color: var(--accent); margin: .75rem 0 .5rem; font-size: 1.1rem; }
.honor p { color: var(--text-on-dark-muted); margin: 0; font-size: .95rem; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.photo-pair figure { margin: 0; }
.photo-pair img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-md); }
.photo-pair figcaption { font-size: .85rem; color: var(--text-muted); margin-top: .6rem; }
@media (max-width: 560px) { .photo-pair { grid-template-columns: 1fr; } }

/* ---------- Services detail ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.service-block + .service-block { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--border); }
.service-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.service-aside .card-icon { width: 64px; height: 64px; }
.service-aside p { color: var(--text-muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.detail {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
}
.detail h3 { font-size: 1.02rem; display: flex; align-items: center; gap: .55rem; }
.detail h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); flex: none; }
.detail ul { margin: 0; padding-left: 1.1em; color: var(--text-muted); font-size: .97rem; }
.detail li { margin-bottom: .35rem; }
.detail p { color: var(--text-muted); font-size: .97rem; margin: 0; }
.detail-wide { grid-column: 1 / -1; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.steps li { counter-increment: step; display: flex; gap: .85rem; align-items: baseline; color: var(--text-muted); font-size: .97rem; }
.steps li::before {
  content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--secondary); color: var(--primary);
  font-family: var(--font-head); font-weight: 800; font-size: .8rem; transform: translateY(-1px);
}
.steps strong { color: var(--secondary); }
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .85rem; }
.faq details {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 1.5rem; transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2rem 1.25rem 0; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--secondary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(251, 197, 27, .18); color: var(--secondary); font-size: 1.2rem; transition: transform .25s;
}
.faq details[open] summary::after { content: "–"; background: var(--primary); }
.faq details p { color: var(--text-muted); margin: 0 0 1.25rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--primary); color: var(--secondary); border-radius: calc(var(--radius) * 1.6);
  padding: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.6fr auto; gap: 2rem; align-items: center;
}
.cta-banner::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px;
  border: 3px solid rgba(0, 0, 0, .12); border-radius: 50%;
}
.cta-banner h2 { margin-bottom: .5rem; }
.cta-banner p { margin: 0; font-size: 1.12rem; color: #2E2400; max-width: 620px; }
.cta-banner .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--secondary); }
.field .opt { color: var(--text-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text-dark);
  padding: .85rem 1rem; border: 1.5px solid #DDD7CC; border-radius: var(--radius-sm); background: var(--bg-light);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(251, 197, 27, .22); background: var(--white);
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B0B0B' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--secondary); flex: none; }
.send-label { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--secondary); margin: 0 0 .6rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-actions .btn { flex: 1 1 200px; }
.form-hint { font-size: .85rem; color: var(--text-muted); margin: .75rem 0 0; }
.form-status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(37, 211, 102, .12); color: #0E5A2A; border: 1px solid rgba(37, 211, 102, .4); }
.form-status.err { background: #FFF1F0; color: #8A1C12; border: 1px solid #F3B5AE; }
.contact-side { display: grid; gap: 1.25rem; }
.contact-side .card:hover { transform: none; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8rem; align-items: center; }
.contact-list svg { width: 20px; height: 20px; color: var(--primary-dark); flex: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Social icons ---------- */
.socials { display: flex; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(249, 242, 233, .2); color: var(--accent); transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
.socials svg { width: 18px; height: 18px; }
.socials-light a { border-color: var(--border); color: var(--secondary); }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: var(--text-on-dark-muted); padding: 4.5rem 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-brand img { height: 74px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 300px; }
.site-footer h3 { color: var(--accent); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul.links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer .btn-whatsapp { color: #06290F; margin-top: .4rem; }
.site-footer .btn-whatsapp:hover { color: #06290F; }
.footer-legal {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1.5rem 2.5rem; align-items: start;
  padding: 2rem 0; border-top: 1px solid rgba(249, 242, 233, .1); font-size: .88rem;
}
.footer-id p { margin: 0 0 .3rem; }
.footer-id strong { color: var(--accent); font-family: var(--font-head); }
.footer-id a { color: var(--primary); }
.footer-reg { font-size: .78rem; letter-spacing: .02em; opacity: .85; }
.legal-links { display: grid; gap: .45rem; }
.legal-links a { text-decoration: underline; text-decoration-color: rgba(251, 197, 27, .4); }
.anpc-badges { display: flex; gap: .75rem; flex-wrap: wrap; }
.anpc-badge {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem;
  align-items: center; width: 190px; padding: .55rem .8rem; border-radius: var(--radius-sm);
  background: #fff; color: #10306B !important; text-decoration: none; line-height: 1.15;
  border: 1px solid #fff; transition: transform .2s var(--ease), box-shadow .2s;
}
.anpc-badge:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(251, 197, 27, .5); }
.anpc-badge small { grid-row: 1 / 3; align-self: center; font-family: var(--font-head); font-weight: 800; font-size: .7rem; background: #10306B; color: #fff; padding: .35rem .4rem; border-radius: 4px; }
.anpc-badge strong { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .06em; }
.anpc-badge span { font-size: .68rem; color: #33415C; }
@media (max-width: 900px) { .footer-legal { grid-template-columns: 1fr 1fr; } .anpc-badges { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-legal { grid-template-columns: 1fr; } }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid rgba(249, 242, 233, .1); font-size: .85rem;
}

.footer-bottom .credit { color: var(--primary); margin-left: .35rem; }

/* ---------- Legal pages ---------- */
.legal-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2.4em; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal-body p, .legal-body li { color: #2B2A27; }
.legal-body li { margin-bottom: .4em; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.legal-body th, .legal-body td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-body th { font-family: var(--font-head); background: var(--bg-cream); }
.legal-meta { color: var(--text-on-dark-muted); font-size: .92rem; margin-top: 1rem; }
.legal-toc { background: var(--bg-cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.legal-toc strong { font-family: var(--font-head); display: block; margin-bottom: .5rem; }
.legal-toc ol { margin: 0; columns: 2; column-gap: 2rem; font-size: .95rem; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.notice-box { border-left: 4px solid var(--primary); background: var(--bg-cream); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5em 0; }
.notice-box p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Private 1-on-1 WhatsApp chat ----------
   Deliberately different from the green "community" buttons:
   black + gold brand styling, with only the icon in WhatsApp green. */
.wa-chat-fab {
  position: fixed; z-index: 90;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .5rem 1.1rem .5rem .5rem; border-radius: 999px;
  background: var(--secondary); color: var(--accent); text-decoration: none;
  border: 2px solid var(--primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 4px rgba(251, 197, 27, .15);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-chat-fab:hover { color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 0 6px rgba(251, 197, 27, .22); }
.wa-chat-icon {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: #25D366; color: #fff;
}
.wa-chat-icon svg { width: 24px; height: 24px; }
.wa-chat-text { display: flex; flex-direction: column; line-height: 1.2; }
.wa-chat-text strong { font-family: var(--font-head); font-size: .92rem; font-weight: 700; color: var(--accent); }
.wa-chat-text small { font-size: .75rem; color: var(--primary); font-weight: 500; }
@media (max-width: 640px) {
  .wa-chat-fab { padding: .35rem; }
  .wa-chat-text { display: none; }
  .wa-chat-icon { width: 52px; height: 52px; }
  .wa-chat-icon svg { width: 28px; height: 28px; }
}
body.menu-open .wa-chat-fab { display: none; }
@media print { .wa-chat-fab { display: none; } }
/* keep the footer's last line clear of the floating button */
.footer-bottom { padding-bottom: 5.5rem; }

/* Card + button on contact.html */
.chat-card { background: var(--secondary); color: var(--text-on-dark); border: 2px solid var(--primary); }
.chat-card:hover { border-color: var(--primary); }
.chat-card h3 { color: var(--accent); }
.chat-card p { color: var(--text-on-dark-muted); }
.btn-chat { background: var(--primary); color: var(--secondary); align-self: flex-start; }
.btn-chat:hover { background: var(--primary-hover); color: var(--secondary); }
.btn-chat .wa-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; margin-left: -.5rem;
}
.btn-chat .wa-dot svg { width: 16px; height: 16px; }
.chat-note { font-size: .82rem; margin: 1rem 0 0; }
.chat-note a { color: var(--primary); }

/* ---------- Reveal on scroll ---------- */
/* Only hidden when JS is running (main.js adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE REFINEMENTS (mobile-first audit)
   Phones 360–480px · Tablets 768–1024px · Desktop
   ========================================================= */

/* ---- No horizontal scrolling, ever ---- */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } } /* clip keeps the sticky header working */

/* Grid/flex children may shrink below their content width (prevents long words,
   selects and tables from stretching a column past the screen) */
.split > *, .approach > *, .contact-grid > *, .grid > *, .footer-grid > *, .footer-legal > *,
.wa-banner > *, .service-block > *, .detail-grid > *, .cta-banner > *, .form-row > * { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-height: 48px; }
.field select { text-overflow: ellipsis; }

/* ---- Fluid, readable typography ---- */
body { font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); }
h1 { font-size: clamp(2rem, 1.25rem + 3.9vw, 4rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 2.1vw, 2.6rem); }
h3 { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); }
.page-hero h1 { font-size: clamp(1.85rem, 1.2rem + 3.3vw, 3.4rem); }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); }
/* long Romanian words (Confidențialitate, Cetățean de Onoare…) wrap instead of overflowing */
h1, h2, h3, h4, .post-card h3, .honor h3, .trust-item, .badge, .btn, .legal-links a, .footer-reg {
  overflow-wrap: break-word; word-break: normal; hyphens: auto;
}
h1, h2, h3 { text-wrap: balance; }
p, li, td, th, label, summary { overflow-wrap: break-word; }

/* ---- Thumb-friendly tap targets (min 44px) ---- */
.btn, .btn-sm { min-height: 44px; }
.link-arrow { min-height: 44px; }
.filter-btn { min-height: 44px; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; }
.faq summary { min-height: 44px; }
.check input { width: 22px; height: 22px; margin-top: .15rem; }
.check { align-items: flex-start; }

/* ---- Tables: fit the phone, scroll only as a last resort ---- */
@media (max-width: 640px) {
  .abc-table, .legal-body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .9rem; }
  .abc-table th, .abc-table td, .legal-body th, .legal-body td { padding: .6rem .55rem; }
  .abc-table td:first-child { white-space: normal; }
  .legal-toc ol { padding-left: 1.1rem; }
}

/* ---- Tablet (721–1024px): comfortable 2-column layouts ---- */
@media (min-width: 721px) and (max-width: 1024px) {
  .container { width: min(100% - 3rem, var(--container)); }
  .split, .approach { gap: 2.5rem; }
  .wa-banner { grid-template-columns: 1.2fr 1fr; padding: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

/* ---- Mobile header & drawer (≤960px) ---- */
@media (max-width: 960px) {
  .nav { gap: .75rem; }
  .brand img { height: 46px; }
  .nav-tools { gap: .5rem; }
  .lang-switch { padding: 2px; }
  .lang-switch a, .lang-switch span[aria-current] {
    min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem; padding: 0 .7rem;
  }
  .nav-toggle { width: 48px; height: 48px; }
  .nav-toggle span { left: 13px; right: 13px; }
  .nav-toggle span:nth-child(1) { top: 17px; }
  .nav-toggle span:nth-child(2) { top: 23px; }
  .nav-toggle span:nth-child(3) { top: 29px; }
  .nav-menu { height: calc(100dvh - var(--header-h)); bottom: auto; overscroll-behavior: contain; padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
  .nav-menu ul a { min-height: 56px; display: flex; align-items: center; }
  .nav-menu .nav-cta { align-self: stretch; width: 100%; min-height: 52px; font-size: 1rem; }
}
/* touch screens of any size (e.g. landscape tablets with the desktop menu) */
.lang-switch a, .lang-switch span[aria-current] { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 40px; }
@media (pointer: coarse) {
  .lang-switch a, .lang-switch span[aria-current] { min-height: 44px; min-width: 44px; }
  .nav-menu ul a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (pointer: coarse) and (max-width: 960px) { .nav-menu ul a { display: flex; min-height: 56px; } }

/* very narrow phones: keep logo + RO|EN + menu on one line */
@media (max-width: 380px) {
  .brand img { height: 40px; }
  .lang-switch a, .lang-switch span[aria-current] { min-width: 40px; padding: 0 .55rem; }
}

/* ---- Phones (≤560px): stack and go full-width ---- */
@media (max-width: 560px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 2rem; }

  /* full-width, stacked buttons */
  main .btn, .form-card .btn, .site-footer .btn { width: 100%; }
  .hero-actions, .section-actions { flex-direction: column; align-items: stretch; gap: .75rem; }
  .card .btn, .service-aside .btn, .btn-chat, .cta-banner .btn { align-self: stretch; }
  .btn { padding: .95rem 1.25rem; font-size: 1rem; }

  /* "Learn more / Read more" become full-width tap rows at the bottom of cards */
  .card .link-arrow {
    align-self: stretch; justify-content: space-between;
    margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--border);
  }
  .card { padding: 1.5rem; }
  .post-card { padding: 0; }
  .post-card-body { padding: 1.4rem 1.4rem 1.1rem; }

  /* hero */
  .hero { padding: 3.25rem 0 2.75rem; }
  .hero .lead { margin-bottom: 1.75rem; }
  .trust-bar { margin-top: 2.25rem; padding-top: 1.5rem; gap: .5rem; }
  .trust-item { width: 100%; justify-content: flex-start; }

  /* photos */
  .photo-frame::before { inset: 12px -12px -12px 12px; }
  .photo-frame .photo-tag { left: -6px; bottom: 16px; font-size: .78rem; }
  .split-media { width: calc(100% - 12px); }

  /* banners */
  .wa-banner, .cta-banner { padding: 1.75rem 1.25rem; border-radius: var(--radius); }
  .wa-highlight { flex-direction: column; gap: .6rem; }

  /* filters wrap into tidy rows (no sideways scrolling) */
  .filters { gap: .5rem; margin-bottom: 2rem; }
  .filter-btn { flex: 1 1 auto; padding: .6rem .9rem; font-size: .88rem; }

  /* footer */
  .site-footer { padding-top: 3rem; }
  .footer-grid { gap: 2rem; padding-bottom: 2.5rem; }
  .site-footer ul.links { gap: 0; }
  .site-footer ul.links a, .legal-links a { display: inline-flex; align-items: center; min-height: 40px; }
  .legal-links { gap: 0; }
  .anpc-badge { width: 100%; }
  .anpc-badges { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: .5rem; }

  /* contact */
  .form-card { padding: 1.25rem; }
  .contact-side .card { padding: 1.4rem; }

  /* article */
  .article-body { font-size: 1.05rem; }
  .article-end { flex-direction: column; align-items: stretch; }
}

/* ---- WhatsApp community: tap button first on phones/tablets ---- */
.qr-card .qr-hint-mobile { display: none; }
@media (max-width: 720px) {
  .wa-banner .btn-whatsapp { width: 100%; min-height: 54px; font-size: 1.05rem; }
  .qr-card { justify-self: center; padding: 1rem 1rem .9rem; }
  .qr-card .qr-hint-desktop { display: none; }
  .qr-card .qr-hint-mobile { display: block; }
}
@media (hover: none) and (pointer: coarse) {
  /* touch devices can't scan their own screen: keep the QR compact */
  .wa-banner .qr-card { max-width: 200px; }
}

/* ---- Floating private-chat button: never covers content ---- */
.wa-chat-fab {
  right: max(16px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
}
@media (max-width: 640px) {
  /* leave room under the last line of every page for the floating button */
  .footer-bottom { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .form-status { margin-bottom: 4rem; }
}
/* tuck the button away on phones while the footer / form submit area is visible,
   or while a form field is focused (keyboard open) */
.wa-chat-fab { transition: transform .25s var(--ease), opacity .25s, box-shadow .2s; }
@media (max-width: 640px) {
  .wa-chat-fab.is-tucked,
  body:has(input:focus, textarea:focus, select:focus) .wa-chat-fab {
    opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none;
  }
}
