/*
Theme Name: No Limit Cycle
Theme URI: https://nolimitcycle.com
Author: No Limit Cycle
Description: Custom theme for No Limit Cycle, built from the project's static mockup.
Version: 1.0
*/

/* No Limit Cycle — V1 design system
   Shape language borrowed from roulezjeunesse.com (pill buttons, 20-24px
   rounded cards, soft ambient shadows, pastel section tints) applied to the
   brand's own palette. Plain CSS, no build step. */

/* Static weight files, not the variable font — the AronVFVF variable instance
   has a mark-positioning bug that detaches the cedilla on "Ç" when it starts
   a soft-wrapped line. The static Bold/ExtraBold faces don't have this issue. */
@font-face {
  font-family: "AronVF";
  src: url("fonts/Aron-Bold-BF6556dd3e559a6.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AronVF";
  src: url("fonts/Aron-ExtraBold-BF6556dd3e2d89f.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #FD512F;      /* orange-red — main CTA / brand accent */
  --primary-dark: #E1401F;
  --yellow: #FDD924;       /* highlight / badges */
  --yellow-tint: #FFF6D6;  /* pale wash of --yellow — header + hero field */
  --black: #000000;
  --text: #212121;
  --text-muted: #5B5B5B;
  --white: #FFFFFF;
  --border: #E7E5DE;
  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(33,33,33,0.06);
  --shadow-lift: 0 10px 30px rgba(33,33,33,0.12), 0 2px 8px rgba(33,33,33,0.06);
  --display: "AronVF", sans-serif;
  --body: "Poppins", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 16px; color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  color: var(--primary);
  margin: 0 0 10px;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ---------- Buttons (pill shape, per reference site) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-lift); }
.btn-secondary { background: var(--text); color: var(--white); }
.btn-secondary:hover { background: #000; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow-tint);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo-img { height: 100px; width: auto; display: block; transition: height 0.25s ease; }

@media (min-width: 1025px) {
  .site-header.is-scrolled .brand-logo-img { height: 50px; }
}

nav.main-nav { display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: flex-end; }
nav.main-nav a {
  padding: 10px 8px; border-radius: var(--radius-pill);
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { background: var(--white); color: var(--primary); }

/* ---------- Nav dropdowns (Services / Infos et +) ---------- */
/* The label link and the expand button are separate elements/targets on
   purpose: clicking the text goes to the parent category page, clicking
   the circled arrow (visually distinct, own hit target) toggles the
   sub-list. They used to be a single link with the arrow just inline text
   next to it, which made the arrow look like part of the label rather
   than its own button. */
.nav-item-dropdown { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav-parent { display: inline-flex !important; align-items: center; }
.nav-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; flex-shrink: 0;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text);
  cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.nav-caret .material-symbols-outlined { font-size: 20px; }
/* Yellow hover fill is scoped to real hover-capable pointers (mouse) only.
   Touch devices trigger :hover on tap with no "leave" event to clear it,
   which left the caret stuck yellow after the sub-menu was closed. */
@media (hover: hover) and (pointer: fine) {
  /* Hovering anywhere in the group (text OR caret) lights up both together,
     instead of each reacting only to its own direct hover. */
  .nav-item-dropdown:hover .nav-parent { background: var(--white); color: var(--primary); }
  .nav-item-dropdown:hover .nav-caret { background: var(--yellow); border-color: var(--yellow); }
}
/* Same stuck-hover issue as the yellow fill above: on touch, tapping the
   caret leaves .nav-item-dropdown:hover "on" with no way to clear it, so
   without this scoping the arrow would stay rotated open after closing.
   On mobile, rotation is driven purely by the JS-toggled .dropdown-open
   class below; hover-driven rotation is desktop-only. */
.nav-item-dropdown.dropdown-open .nav-caret { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav-item-dropdown:hover .nav-caret { transform: rotate(180deg); }
}
.nav-dropdown {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: 100%; left: 0; margin-top: 6px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift); padding: 8px; min-width: 240px; z-index: 60;
}
.nav-dropdown a {
  padding: 10px 14px; border-radius: var(--radius-sm);
  white-space: nowrap; font-weight: 600; font-size: 0.9rem;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.dropdown-open .nav-dropdown { display: flex; }

/* Desktop: keep the panel open for 0.3s after the pointer leaves, so there's
   time to cross the gap between the label and the panel. Hidden state uses
   visibility/opacity (not display) because display can't be delayed. */
@media (min-width: 1025px) {
  .nav-dropdown {
    display: flex;
    visibility: hidden; opacity: 0;
    transition: opacity 0.15s ease 0.3s, visibility 0s linear 0.3s;
  }
  .nav-item-dropdown:hover .nav-dropdown,
  .nav-item-dropdown.dropdown-open .nav-dropdown {
    visibility: visible; opacity: 1;
    transition-delay: 0s;
  }
}

/* ---------- Breadcrumb (slim bar, always visible in the sticky header) ---------- */
.breadcrumb-bar { background: var(--yellow-tint); }
.site-header .wrap.breadcrumb-row {
  display: flex; justify-content: flex-start;
  padding-top: 8px; padding-bottom: 8px;
}
.breadcrumb {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 6px; padding: 6px 18px;
  border: 0.75px dotted var(--text-muted); border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .crumb-sep { opacity: 0.5; }
.breadcrumb .crumb-current { color: var(--text); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--white); border: none; color: var(--text);
  cursor: pointer; font-size: 1.4rem; flex-shrink: 0;
}
.nav-toggle:hover { background: var(--yellow); }

/* ---------- Social icons (shared: header, footer, follow cards) ---------- */
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--white); color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.social-icon:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* ---------- Nav social icons (inline, right after Contact) ---------- */
.nav-socials { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.nav-socials .social-icon { width: 38px; height: 38px; background: var(--yellow-tint); color: var(--primary); }
.nav-socials .social-icon:hover { background: var(--primary); color: var(--white); }

@media (max-width: 1024px) {
  .nav-socials {
    justify-content: center; gap: 12px; margin: 8px 0 0;
    padding-top: 12px; border-top: 1px solid var(--border);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
  background: var(--yellow-tint);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lift);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 18px; left: 18px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 14px 20px;
  box-shadow: var(--shadow-lift);
  display: flex; align-items: center; gap: 12px;
}
.hero-badge strong { font-family: var(--display); font-size: 1.6rem; color: var(--primary); display: block; line-height: 1; }
.hero-badge span { font-size: 0.85rem; color: var(--text-muted); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 16px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.trust-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--black); flex-shrink: 0; }

/* ---------- Reassurance numbers (hero) ---------- */
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.reassurance-item {
  min-width: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: reassurance-in 1.6s ease forwards;
}
.reassurance-item:nth-child(1) { animation-delay: 0.3s; }
.reassurance-item:nth-child(2) { animation-delay: 0.7s; }
.reassurance-item:nth-child(3) { animation-delay: 1.1s; }
@keyframes reassurance-in {
  to { opacity: 1; transform: translateY(0); }
}
.reassurance-figure {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -1px;
  line-height: 1.3em;
  color: var(--primary);
  margin-bottom: 6px;
  white-space: nowrap;
}
.reassurance-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}
.reassurance-cycle { height: 1.3em; overflow: hidden; }
.cycle-list {
  list-style: none;
  margin: 0; padding: 0;
  animation: cycle-up 12s linear infinite;
}
.cycle-list li { height: 1.3em; line-height: 1.3em; }
@keyframes cycle-up {
  0%, 14%    { transform: translateY(0); }
  16.67%, 30.67% { transform: translateY(-1.3em); }
  33.33%, 47.33% { transform: translateY(-2.6em); }
  50%, 64%   { transform: translateY(-3.9em); }
  66.67%, 80.67% { transform: translateY(-5.2em); }
  83.33%, 97.33% { transform: translateY(-6.5em); }
  100%       { transform: translateY(-7.8em); }
}
@media (max-width: 640px) {
  .reassurance-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

/* ---------- Scroll-reveal (js/site.js) — same pattern as vcm91-refonte:
   .reveal is added to every card/block by JS before it's observed; the
   element sits slightly lower and transparent until it scrolls into view,
   then eases up into place. .reveal-visible triggers the motion. ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.reveal-visible,
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; overflow-wrap: anywhere; }
/* Grid items may shrink below their content width (long emails, wide images) instead of forcing sideways scroll */
.grid > *, .hero .wrap > * { min-width: 0; }
section[id] { scroll-margin-top: 140px; }
section.alt { background: var(--yellow-tint); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-photo { aspect-ratio: 4/3; overflow: hidden; }
.zoom-frame { overflow: hidden; display: block; }
.zoom-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-body .btn { margin-top: 12px; align-self: flex-start; }

.icon-card { text-align: center; padding: 32px 24px; }
.icon-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--text);
}
.icon-circle .material-symbols-outlined { font-size: 30px; }

/* Pill tag / badge (Recobike-style category chip) */
.pill-tag {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px;
  background: var(--yellow); color: var(--text);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Step list (how it works) */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-num::before { content: counter(step); }

/* ---------- Inner-page hero (no photo split) ---------- */
.page-hero { padding: 48px 0 56px; background: var(--yellow-tint); text-align: center; }
.page-hero .wrap { max-width: 760px; }
.page-hero .kicker { justify-content: center; }
.page-hero .lead { margin: 0 auto; }

/* ---------- Price list (tarifs) ---------- */
.price-group-title { margin: 0 0 12px; }
.price-group + .price-group { margin-top: 40px; }
.price-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.price-group-head .price-group-title { margin: 0; }
.price-group-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
}
.price-list { display: flex; flex-direction: column; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-row .label { font-weight: 600; }
.price-row .amount {
  font-family: var(--display); font-weight: 800; color: var(--primary);
  white-space: nowrap; font-size: 1.1rem;
}
/* Price line at the bottom of a Formules card: same look as the price lists, pinned to the card's foot */
.card-body .card-price { margin-top: auto; border-top: 1px solid var(--border); border-bottom: none; padding-top: 14px; padding-bottom: 0; }
.price-group.no-match { display: none; }
.price-row.no-match { display: none; }

/* A price row that also carries an accordion (detail list) — the row
   itself drops its own divider so the border sits under the accordion. */
.price-row-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.price-row-item:last-child { border-bottom: none; }
.price-row-item .price-row { border-bottom: none; }
.price-row-item .accordion { margin: 0 0 8px; }
.price-row-item.no-match { display: none; }

/* ---------- Accordion (boxed detail list) ---------- */
.accordion {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin: 12px 0; overflow: hidden; background: var(--yellow-tint);
}
.accordion-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: none; border: none; padding: 10px 14px;
  font-family: var(--body); font-weight: 600; font-size: 0.85rem;
  color: var(--text); text-align: left; cursor: pointer;
}
.accordion-icon { font-size: 20px; transition: transform 0.25s ease; flex-shrink: 0; }
.accordion.is-open .accordion-icon { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion.is-open .accordion-panel { max-height: 320px; }
.accordion-panel ul {
  margin: 0; padding: 0 14px 12px 30px;
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.5;
}
.accordion-panel li { margin-bottom: 4px; }

/* ---------- Tarifs search ---------- */
.tarif-search-wrap {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 20px 24px; box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}
.tarif-search-wrap.is-active {
  position: sticky; top: 80px; z-index: 40;
  box-shadow: var(--shadow-lift);
}
.tarif-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--yellow-tint); border-radius: var(--radius-pill);
  padding: 10px 18px;
}
.tarif-search .material-symbols-outlined { color: var(--text-muted); }
.tarif-search input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-family: var(--body); font-size: 0.95rem; color: var(--text);
}
.tarif-search-clear {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: none; background: rgba(33,33,33,0.08); color: var(--text-muted);
  cursor: pointer; padding: 0;
}
.tarif-search-clear[hidden] { display: none; }
.tarif-search-clear .material-symbols-outlined { font-size: 18px; color: inherit; }
.tarif-search-clear:hover { background: rgba(33,33,33,0.16); color: var(--text); }
.tarif-search-hint { margin: 12px 0 0; font-size: 0.82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.search-example {
  border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-pill);
  padding: 4px 12px; font-size: 0.78rem; font-weight: 600; color: var(--primary);
  cursor: pointer; font-family: var(--body);
}
.search-example:hover { background: var(--yellow-tint); }
.tarif-search-empty { margin: 12px 0 0; font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .tarif-search-wrap.is-active { top: 68px; }
}

/* ---------- Photo gallery (carousel) ---------- */
.photo-gallery {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card); box-shadow: var(--shadow-lift);
  background: var(--yellow-tint);
}
.photo-gallery-track { display: flex; transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
.photo-gallery-slide { flex: 0 0 100%; aspect-ratio: 4/3; min-width: 0; }
.photo-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-card);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5; padding: 0;
}
.gallery-arrow:hover { background: var(--text); }
.gallery-arrow .material-symbols-outlined { font-size: 22px; }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }
.photo-gallery-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.photo-gallery-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,0.6); cursor: pointer; transition: width 0.2s ease, background 0.2s ease;
}
.photo-gallery-dot.is-active { background: var(--white); width: 20px; border-radius: 4px; }

@media (max-width: 640px) {
  .gallery-arrow { width: 36px; height: 36px; }
  .gallery-arrow .material-symbols-outlined { font-size: 18px; }
  .gallery-arrow-prev { left: 8px; }
  .gallery-arrow-next { right: 8px; }
}

/* ---------- News filters ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-bottom: 32px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted);
}
.filter-select {
  font-family: var(--body); font-size: 0.95rem; font-weight: 600; color: var(--text);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 10px 18px;
  cursor: pointer;
}

/* ---------- News list (horizontal rows) ---------- */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-row {
  display: flex; gap: 24px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.news-row-photo { flex: 0 0 240px; aspect-ratio: 4/3; min-width: 0; }
.news-row-body {
  flex: 1; min-width: 0;
  padding: 20px 24px 20px 0;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.news-row-body p { margin: 0; }
.news-empty { text-align: center; color: var(--text-muted); }

@media (max-width: 720px) {
  .news-row { flex-direction: column; }
  .news-row-photo { flex-basis: auto; width: 100%; aspect-ratio: 16/9; }
  .news-row-body { padding: 16px 20px 20px; }
}

/* ---------- News scroll (homepage horizontal article strip, latest first) ---------- */
.news-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
}
.news-scroll::-webkit-scrollbar { height: 8px; }
.news-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }

.news-poster-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-poster-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.news-poster-photo { aspect-ratio: 3/4; overflow: hidden; background: var(--yellow-tint); }
.news-poster-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-poster-body { padding: 16px; }
.news-poster-date {
  display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--primary); margin-bottom: 6px;
}
.news-poster-body h3 { font-size: 1.05rem; margin: 0 0 4px; }
.news-poster-body p { font-size: 0.85rem; margin: 0; color: var(--text-muted); }

.news-scroll-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.news-arrows { display: flex; gap: 10px; margin-left: auto; }
.news-poster-photo.is-fallback img { object-fit: contain; padding: 18px; }
.news-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: none; padding: 0;
  background: var(--primary); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-card);
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.news-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.news-arrow:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-2px); }
.news-arrow:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 640px) {
  .news-poster-card { flex-basis: 180px; }
}

/* ---------- News listing (WordPress): whole row clickable, fallback image, pagination ---------- */
.news-row { position: relative; }
.news-row-body h3 a { color: inherit; text-decoration: none; }
.news-row-body h3 a::after { content: ""; position: absolute; inset: 0; }
.news-row-body .pill-tag { margin-bottom: 4px; }
.news-row-photo { background: var(--yellow-tint); }
.news-row-photo.is-fallback img { object-fit: contain; padding: 18px; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--white); color: var(--text); font-weight: 600; text-decoration: none;
  transition: background-color 0.2s ease;
}
.pagination a.page-numbers:hover { background: var(--yellow-tint); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pagination .page-numbers.dots { border: none; background: none; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* ---------- Single article ---------- */
.article { max-width: 760px; }
.article-cover { border-radius: var(--radius-card); box-shadow: var(--shadow-card); margin-bottom: 32px; }
.article-cover img { width: 100%; height: auto; display: block; }
.article-content { font-size: 1.05rem; }
.article-content h2 { font-size: 1.5rem; letter-spacing: 0; margin-top: 36px; }
.article-content h3 { margin-top: 28px; }
.article-content a { color: var(--primary); font-weight: 600; }
.article-content img, .article-content video, .article-content iframe { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-content figure { margin: 24px 0; }
.article-content figcaption, .article-content .wp-caption-text { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.article-content ul, .article-content ol { color: var(--text-muted); padding-left: 22px; }
.article-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.article-content .alignleft { float: left; margin: 4px 24px 12px 0; max-width: 50%; }
.article-content .alignright { float: right; margin: 4px 0 12px 24px; max-width: 50%; }
.article-content::after { content: ""; display: table; clear: both; }
.article-content .wp-caption { max-width: 100%; }
.article-content table { width: 100%; border-collapse: collapse; overflow-x: auto; display: block; }
.article-content td, .article-content th { border: 1px solid var(--border); padding: 8px 10px; }
@media (max-width: 640px) { .article-content .alignleft, .article-content .alignright { float: none; max-width: 100%; margin: 12px 0; } }
.article-content pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: inherit; margin: 0 0 16px; color: var(--text-muted); }
.article-content { overflow-wrap: anywhere; }
.article-content iframe { width: 100%; }
.article-actions { margin-top: 40px; }

/* ---------- Click-to-load map (nothing is requested from Google until the visitor asks) ---------- */
.map-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; background: var(--yellow-tint);
}
.map-consent p { margin: 0; max-width: 420px; color: var(--text); font-weight: 500; }

/* ---------- Cookie consent banner (only rendered when a GA4 ID is configured) ---------- */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 920px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
}
.cookie-banner strong { font-family: var(--display); font-size: 1.05rem; }
.cookie-banner p { margin: 4px 0 0; font-size: 0.88rem; color: var(--text-muted); }
.cookie-banner a { color: var(--primary); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 12px 0; flex: 0 0 140px; width: 140px; }   /* identical size: refusing is as easy as accepting */
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn { flex: 1 1 0; width: auto; }
}
.foot-bottom button { background: none; border: none; padding: 0; font: inherit; color: rgba(255,255,255,0.55); text-decoration: underline; cursor: pointer; }
.foot-bottom button:hover { color: var(--yellow); }
.foot-bottom .foot-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Legal / long-form text pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; letter-spacing: 0; margin-top: 36px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { color: var(--text-muted); padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #fff; padding: 56px 0 28px; }
.site-footer .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--yellow); }
.site-footer .foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-socials { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.footer-socials .social-icon { background: rgba(255,255,255,0.1); color: var(--white); }
.footer-socials .social-icon:hover { background: var(--primary); color: var(--white); }

/* ---------- Follow us (thumbnail cards, above footer) ---------- */
.social-follow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.social-follow-card {
  display: block; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); text-decoration: none; color: inherit; background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-follow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.social-follow-thumb { aspect-ratio: 16/9; overflow: hidden; }
.social-follow-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.social-follow-card:hover .social-follow-thumb img { transform: scale(1.05); }
.social-follow-body { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.social-follow-body .social-icon { background: var(--yellow-tint); color: var(--primary); }
.social-follow-body h3 { margin: 0 0 2px; font-size: 1.05rem; }
.social-follow-body p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .social-follow-grid { grid-template-columns: 1fr; }
}
.foot-bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 20px 24px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-header .wrap { position: relative; }
  .nav-toggle { display: inline-flex; }
  .brand-logo-img { height: 40px; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 24px; right: 24px; z-index: 65;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
    background: var(--white);
    padding: 12px; border-radius: var(--radius-card);
    box-shadow: var(--shadow-lift); border: 1px solid var(--border);
  }
  nav.main-nav.nav-open { display: flex; }
  nav.main-nav a { padding: 14px 16px; border-radius: var(--radius-sm); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Nav dropdowns become click-to-expand stacked panels, not hover flyouts.
     The row stays split: label pill on the left (flex:1, still a normal
     link to the category page), circled arrow button pinned to the right
     edge (taps to expand/collapse). The sub-list is forced onto its own
     line below via flex-basis:100%. */
  .nav-item-dropdown:hover .nav-dropdown { display: none; }
  .nav-item-dropdown.dropdown-open .nav-dropdown { display: flex; }
  .nav-item-dropdown {
    display: flex; flex-wrap: wrap; align-items: center; width: 100%; gap: 8px;
    padding-right: 16px;
  }
  .nav-parent { flex: 1 1 auto; }
  .nav-dropdown {
    flex-basis: 100%;
    position: static; margin-top: 4px; box-shadow: none; border: none;
    background: transparent; border-radius: 0;
    padding: 0 0 0 14px; min-width: 0; gap: 6px;
  }
  .nav-dropdown a {
    background: var(--yellow-tint); border-radius: var(--radius-pill);
    padding: 10px 16px;
  }
  nav.main-nav .nav-dropdown a:hover,
  nav.main-nav .nav-dropdown a.active {
    background: var(--yellow-tint); color: var(--primary); font-weight: 700;
  }
}

@media (max-width: 880px) {
  .hero { padding: 32px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 16/10; }
  section { padding: 48px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  /* Force any inline two-column .grid layouts to stack — inline styles
     can't be reached by a plain override at any specificity below !important. */
  .grid { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 520px) {
  .hero-badge { position: static; margin-top: 12px; }
  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .price-row { flex-direction: column; gap: 2px; }
}
