/* ==========================================================================
   theme.css - structure and components for website-builder sites
   Load order: bootstrap.min.css → theme.css → preset.css
   All colour/type/shape decisions are tokens; preset.css redefines them.
   Defaults below = Clinical Clean, so a page still renders without a preset.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* brand */
  --primary: #0a78bd;
  --primary-rgb: 10, 120, 189;
  --on-primary: #ffffff;
  --primary-text-base: #0a78bd;       /* primary when used as text on --bg (must pass 4.5:1) */
  --primary-text: var(--primary-text-base);
  --accent: #c44d27;
  --accent-rgb: 196, 77, 39;
  --on-accent: #ffffff;
  --dark: #091e3e;
  --dark-rgb: 9, 30, 62;
  --on-dark: #ffffff;
  --tint: #eef6fc;                    /* light alternate band */

  /* surfaces & text (the *-base values never change; the working values are re-scoped by .tone-*) */
  --bg: #ffffff;
  --surface: #ffffff;
  --heading-base: #091e3e;
  --text-base: #4f5d6e;
  --muted-base: #66727f;
  --border-base: rgba(9, 30, 62, .1);
  --heading: var(--heading-base);
  --text: var(--text-base);
  --muted: var(--muted-base);
  --border: var(--border-base);

  /* type */
  --heading-font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body-font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-weight: 700;
  --heading-tracking: -0.01em;
  --heading-case: none;
  --body-size: 1rem;
  --body-line: 1.7;
  --eyebrow-font: var(--heading-font);
  --eyebrow-size: .8125rem;
  --eyebrow-weight: 600;
  --eyebrow-tracking: .14em;
  --eyebrow-case: uppercase;
  --eyebrow-color-base: var(--primary-text-base);
  --eyebrow-color: var(--eyebrow-color-base);
  --btn-font: var(--heading-font);
  --btn-weight: 600;
  --btn-case: none;
  --btn-tracking: 0;

  /* shape & depth */
  --radius: .5rem;
  --radius-lg: 1rem;
  --radius-btn: .375rem;
  --radius-input: .375rem;
  --card-border: transparent;
  --shadow: 0 0 45px rgba(0, 0, 0, .07);
  --shadow-hover: 0 18px 40px rgba(0, 0, 0, .12);

  /* layout */
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 84px;
  --header-offset: 0px;
  --overlap: 6rem;

  /* chrome */
  --topbar-bg: var(--dark);
  --header-bg: var(--surface);
  --footer-bg: var(--dark);
  --hero-overlay: linear-gradient(90deg, rgba(var(--dark-rgb), .92) 0%, rgba(var(--dark-rgb), .78) 45%, rgba(var(--dark-rgb), .35) 100%);
  --band-overlay: linear-gradient(rgba(var(--dark-rgb), .86), rgba(var(--dark-rgb), .86));
  --gradient: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Bridge the tokens into Bootstrap 5.3 */
:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text-base);
  --bs-body-font-family: var(--body-font);
  --bs-body-font-size: var(--body-size);
  --bs-body-line-height: var(--body-line);
  --bs-heading-color: var(--heading-base);
  --bs-emphasis-color: var(--heading-base);
  --bs-secondary-color: var(--muted-base);
  --bs-primary: var(--primary);
  --bs-primary-rgb: var(--primary-rgb);
  --bs-link-color: var(--primary-text);
  --bs-link-color-rgb: var(--primary-rgb);
  --bs-link-hover-color: var(--primary-text);
  --bs-link-hover-color-rgb: var(--primary-rgb);
  --bs-border-color: var(--border-base);
  --bs-border-radius: var(--radius);
  --bs-border-radius-lg: var(--radius-lg);
}

/* ---------- 2. Base ------------------------------------------------------ */
body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  text-transform: var(--heading-case);
  color: var(--heading);
  line-height: 1.2;
}
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { line-height: 1.1; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.125rem; font-weight: 400; color: var(--text); }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { transition: color .2s ease; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .55); outline-offset: 2px; }
@media (min-width: 1400px) { .container { max-width: 1240px; } }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2000; padding: .6rem 1rem; background: var(--surface); color: var(--heading-base); border-radius: var(--radius); box-shadow: var(--shadow-hover); }

/* Text helpers that respect tones (Bootstrap's .text-muted does not) */
.text-brand { color: var(--primary-text) !important; }
.text-accent { color: var(--accent) !important; }
.text-heading { color: var(--heading) !important; }
.text-soft { color: var(--muted) !important; }
.hl { color: var(--primary-text); }             /* highlighted keyword inside a heading */
.fw-heading { font-family: var(--heading-font); }

/* ---------- 3. Tones (backgrounds that re-scope text tokens) ------------- */
.tone-tint { background-color: var(--tint); }
.tone-surface { background-color: var(--surface); }
.tone-primary, .tone-accent, .tone-dark, .tone-photo, .tone-gradient { color: var(--text); }
.tone-primary {
  background-color: var(--primary);
  --heading: var(--on-primary);
  --text: color-mix(in srgb, var(--on-primary) 88%, transparent);
  --muted: color-mix(in srgb, var(--on-primary) 72%, transparent);
  --border: color-mix(in srgb, var(--on-primary) 20%, transparent);
  --eyebrow-color: var(--on-primary);
  --primary-text: var(--on-primary);
  --title-color: var(--heading);
}
.tone-accent {
  background-color: var(--accent);
  --heading: var(--on-accent);
  --text: color-mix(in srgb, var(--on-accent) 88%, transparent);
  --muted: color-mix(in srgb, var(--on-accent) 72%, transparent);
  --border: color-mix(in srgb, var(--on-accent) 20%, transparent);
  --eyebrow-color: var(--on-accent);
  --primary-text: var(--on-accent);
  --title-color: var(--heading);
}
.tone-dark, .tone-photo, .tone-gradient {
  --heading: var(--on-dark);
  --text: rgba(255, 255, 255, .82);
  --muted: rgba(255, 255, 255, .66);
  --border: rgba(255, 255, 255, .16);
  --eyebrow-color: var(--on-dark);
  --primary-text: var(--on-dark);
  --title-color: var(--heading);
}
.tone-dark { background-color: var(--dark); }
.tone-photo {
  background: var(--band-overlay), var(--tone-img, none) center / cover no-repeat, var(--dark);
}
.tone-gradient { background: var(--gradient); }
:is(.tone-primary, .tone-accent, .tone-dark, .tone-photo, .tone-gradient) a:not([class]) { color: var(--heading); }

/* Surfaces always use the base tokens, even inside a coloured band */
.surface, .card-soft, .form-panel, .team-card, .testimonial-card, .price-card, .post-card, .product-card, .listing-card, .feature-strip {
  --heading: var(--heading-base);
  --text: var(--text-base);
  --muted: var(--muted-base);
  --border: var(--border-base);
  --primary-text: var(--primary-text-base);
  --eyebrow-color: var(--eyebrow-color-base);
  --title-color: var(--heading);
  color: var(--text);
}

/* ---------- 4. Sections & section headers -------------------------------- */
.section { position: relative; padding-block: var(--section-y); }
.section-sm { padding-block: calc(var(--section-y) * .6); }
.section-flush-top { padding-top: 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.text-center { margin-inline: auto; }
.section-head.text-center .eyebrow { justify-content: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
  font-family: var(--eyebrow-font);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: var(--eyebrow-case);
  color: var(--eyebrow-color);
  line-height: 1.3;
}
.section-title { font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.6rem); margin-bottom: 1rem; color: var(--title-color, var(--heading)); }
.section-lead { font-size: 1.0625rem; color: var(--muted); margin-bottom: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: .8rem;
  --bs-btn-font-weight: var(--btn-weight);
  --bs-btn-border-radius: var(--radius-btn);
  font-family: var(--btn-font);
  text-transform: var(--btn-case);
  letter-spacing: var(--btn-tracking);
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.btn-lg { --bs-btn-padding-x: 2rem; --bs-btn-padding-y: 1rem; --bs-btn-font-size: 1.0625rem; --bs-btn-border-radius: var(--radius-btn); }
.btn-sm { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .5rem; --bs-btn-border-radius: var(--radius-btn); }
.btn-primary {
  --bs-btn-color: var(--on-primary); --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: var(--on-primary); --bs-btn-hover-bg: color-mix(in srgb, var(--primary) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--primary) 86%, #000);
  --bs-btn-active-color: var(--on-primary); --bs-btn-active-bg: color-mix(in srgb, var(--primary) 80%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--primary) 80%, #000);
  --bs-btn-focus-shadow-rgb: var(--primary-rgb);
}
.btn-accent {
  --bs-btn-color: var(--on-accent); --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--on-accent); --bs-btn-hover-bg: color-mix(in srgb, var(--accent) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--accent) 86%, #000);
  --bs-btn-active-color: var(--on-accent); --bs-btn-active-bg: color-mix(in srgb, var(--accent) 80%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--accent) 80%, #000);
  --bs-btn-focus-shadow-rgb: var(--accent-rgb);
}
.btn-dark {
  --bs-btn-color: #fff; --bs-btn-bg: var(--dark); --bs-btn-border-color: var(--dark);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: color-mix(in srgb, var(--dark) 82%, #fff); --bs-btn-hover-border-color: color-mix(in srgb, var(--dark) 82%, #fff);
  --bs-btn-active-bg: var(--dark); --bs-btn-active-border-color: var(--dark);
}
.btn-light {
  --bs-btn-color: var(--heading-base); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--heading-base); --bs-btn-hover-bg: color-mix(in srgb, #fff 88%, var(--primary)); --bs-btn-hover-border-color: color-mix(in srgb, #fff 88%, var(--primary));
}
.btn-outline-primary {
  --bs-btn-color: var(--primary-text); --bs-btn-border-color: var(--primary); --bs-btn-bg: transparent;
  --bs-btn-hover-color: var(--on-primary); --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-color: var(--on-primary); --bs-btn-active-bg: var(--primary); --bs-btn-active-border-color: var(--primary);
  border-width: 2px;
}
.btn-outline-light {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .7);
  --bs-btn-hover-color: var(--heading-base); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: var(--heading-base); --bs-btn-active-bg: #fff;
  border-width: 2px;
}
.btn-pill { --bs-btn-border-radius: 50rem; }
.btn-square, .btn-square-sm, .btn-square-lg { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; }
.btn-square-sm { width: 2rem; height: 2rem; font-size: .875rem; }
.btn-square-lg { width: 3rem; height: 3rem; font-size: 1.125rem; }
/* Pill with a circular icon inside (Patrix) */
.btn-icon { display: inline-flex; align-items: center; gap: .85rem; --bs-btn-padding-y: .45rem; padding-inline-end: .45rem; }
.btn-icon .btn-icon-dot { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: transform .25s var(--ease); }
.btn-icon.btn-light .btn-icon-dot, .btn-icon.btn-outline-primary .btn-icon-dot { background: var(--primary); color: var(--on-primary); }
.btn-icon:hover .btn-icon-dot { transform: translateX(3px); }
/* Pulsing play button (GrowMark / Restaurantly) */
.btn-play { position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 1.75rem; text-decoration: none; }
.btn-play::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: inherit; animation: pulse-ring 1.8s ease-out infinite; }
.btn-play:hover { color: var(--on-primary); }
.btn-play.is-light { background: #fff; color: var(--primary-text-base); }
.btn-play.is-light:hover { color: var(--primary-text-base); }
@keyframes pulse-ring { from { transform: scale(1); opacity: .55; } to { transform: scale(1.85); opacity: 0; } }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--btn-font); font-weight: 600; text-decoration: none; color: var(--primary-text); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- 6. Topbar & header ------------------------------------------- */
.topbar { background: var(--topbar-bg); color: rgba(255, 255, 255, .78); font-size: .875rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 44px; }
.topbar-items { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar i { margin-right: .4rem; color: color-mix(in srgb, var(--primary) 55%, #fff); }
.topbar .social-links a { width: 1.9rem; height: 1.9rem; font-size: .8rem; }
.topbar .social-links i { margin: 0; color: inherit; }
.topbar-alert { align-self: stretch; display: flex; align-items: center; padding-inline: 1.25rem; background: var(--accent); color: var(--on-accent) !important; font-weight: 600; }
.topbar-alert i { color: inherit !important; }

.site-header { position: sticky; top: 0; z-index: 1030; background: var(--header-bg); box-shadow: 0 1px 0 var(--border-base); transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.site-header .navbar {
  min-height: var(--header-h);
  --bs-navbar-padding-y: .5rem;
  --bs-navbar-nav-link-padding-x: .9rem;
  --bs-navbar-color: var(--heading-base);
  --bs-navbar-hover-color: var(--primary-text);
  --bs-navbar-active-color: var(--primary-text);
  --bs-navbar-brand-color: var(--heading-base);
  --bs-navbar-brand-hover-color: var(--heading-base);
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--heading-font); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.brand-mark { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: calc(var(--radius) + .15rem); background: var(--primary); color: var(--on-primary); font-size: 1.15rem; }
.brand-name span { color: var(--primary-text); }
.site-header .nav-link { position: relative; font-family: var(--heading-font); font-weight: 500; }
@media (min-width: 992px) {
  .site-header .nav-link::after { content: ""; position: absolute; left: var(--bs-navbar-nav-link-padding-x); right: var(--bs-navbar-nav-link-padding-x); bottom: .15rem; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
  .site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.call-block { display: flex; align-items: center; gap: .7rem; color: var(--heading-base); text-decoration: none; line-height: 1.2; }
.call-block-icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(var(--primary-rgb), .12); color: var(--primary-text); font-size: 1.1rem; }
.call-block small { display: block; font-size: .75rem; color: var(--muted-base); }
.call-block strong { font-family: var(--heading-font); font-size: 1rem; }
.call-block:hover { color: var(--primary-text); }
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: .75rem 0 1.25rem; border-top: 1px solid var(--border-base); margin-top: .5rem; }
  .header-actions { flex-direction: column; align-items: stretch; margin-top: .75rem; }
}

/* Transparent header over a dark hero; turns solid once the page scrolls */
.header-overlay { position: fixed; inset: 0 0 auto; background: transparent; box-shadow: none; }
.header-overlay .navbar {
  --bs-navbar-color: rgba(255, 255, 255, .86);
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: #fff;
  --bs-navbar-brand-color: #fff;
  --bs-navbar-brand-hover-color: #fff;
}
.header-overlay .brand-mark { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.header-overlay .brand-name span { color: inherit; font-weight: 400; opacity: .85; }
.header-overlay .call-block { color: #fff; }
.header-overlay .call-block small { color: rgba(255, 255, 255, .7); }
.header-overlay .call-block-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.header-overlay.is-scrolled, .header-overlay.is-open { background: rgba(var(--dark-rgb), .96); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 991.98px) {
  .header-overlay .navbar-collapse { border-color: rgba(255, 255, 255, .15); }
}
body.has-overlay-header { --header-offset: var(--header-h); }
@media (min-width: 992px) { body.has-floating-header { --header-offset: calc(var(--header-h) + 1rem); } }

/* Floating inset header card (Property) - add .header-floating to .site-header */
@media (min-width: 992px) {
  .header-floating { position: absolute; inset: 1rem 0 auto; background: transparent; box-shadow: none; }
  .header-floating > .navbar > .container { background: var(--header-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); padding-inline: 1.5rem; }
  .header-floating.is-scrolled { position: fixed; inset: 0 0 auto; background: var(--header-bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
  .header-floating.is-scrolled > .navbar > .container { box-shadow: none; }
}

/* ---------- 7. Heroes ---------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; --hero-pad: clamp(4.5rem, 9vw, 7.5rem); }
.hero-title { font-size: clamp(2.25rem, 1.35rem + 3.7vw, 4.25rem); line-height: 1.08; margin-bottom: 1.25rem; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 38rem; margin-bottom: 2rem; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-photo { display: flex; align-items: center; min-height: min(88vh, 820px); padding-block: calc(var(--header-offset) + var(--hero-pad)) var(--hero-pad); }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
.hero-photo.text-center .hero-lead { margin-inline: auto; }
.hero-photo.text-center .hero-actions { justify-content: center; }
.hero-photo.text-center { --hero-overlay: var(--band-overlay); }

.hero-split { padding-block: calc(var(--header-offset) + var(--hero-pad) * .8) var(--hero-pad); background: var(--tint); }
.media-stack { position: relative; padding: 0 0 2.5rem 2.5rem; }
.media-stack > img:first-child { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 6rem var(--radius-lg) var(--radius-lg) var(--radius-lg); position: relative; z-index: 1; }
.media-stack .media-inset { position: absolute; left: 0; bottom: 0; z-index: 2; width: 42%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }
.media-stack .media-chip { position: absolute; right: -.5rem; top: 2rem; z-index: 3; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-hover); color: var(--heading-base); font-weight: 600; font-size: .9375rem; }
.media-stack .media-chip i { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(var(--primary-rgb), .12); color: var(--primary-text); }

.hero-gradient { padding-block: calc(var(--header-offset) + var(--hero-pad)) calc(var(--hero-pad) + 4rem); background: var(--gradient); }
.hero-visual { position: relative; z-index: 1; }
.hero-visual > img { position: relative; z-index: 1; border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.blob { position: absolute; z-index: 0; border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; background: rgba(255, 255, 255, .14); pointer-events: none; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; pointer-events: none; }
.wave svg { display: block; width: 100%; height: clamp(40px, 7vw, 110px); }
.wave path { fill: var(--wave-fill, var(--bg)); }

.hero-search { display: flex; align-items: center; min-height: min(80vh, 760px); padding-block: calc(var(--header-offset) + var(--hero-pad)) var(--hero-pad); }
.hero-search::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--band-overlay); }
.search-pill { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 40rem; margin-inline: auto; padding: .45rem; background: var(--surface); border-radius: 2rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.search-pill .form-control, .search-pill .form-select { flex: 1 1 12rem; border: 0; background: transparent; box-shadow: none; color: var(--heading-base); }
.search-pill .btn { --bs-btn-border-radius: 2rem; }

.hero-editorial { display: flex; align-items: center; min-height: min(92vh, 860px); padding-block: calc(var(--header-offset) + var(--hero-pad)) var(--hero-pad); }
.hero-editorial::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(var(--dark-rgb), .78), rgba(var(--dark-rgb), .86)); }
.hero-editorial .hero-title { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5rem); max-width: 16ch; }
.scroll-cue { position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .8); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 2px; height: 5rem; background: var(--primary); }

/* Inner page header */
.page-hero { padding-block: calc(var(--header-offset) + clamp(3.5rem, 7vw, 6rem)) clamp(3rem, 6vw, 5rem); background: var(--band-overlay), var(--tone-img, none) center / cover no-repeat, var(--dark); }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .85); margin: 0; justify-content: inherit; }
.page-hero .breadcrumb a { color: #fff; text-decoration: none; }

/* ---------- 8. Overlap & depth devices ----------------------------------- */
.section-overlap { position: relative; z-index: 3; padding-top: calc(var(--section-y) * .5); }
@media (min-width: 992px) {
  .section-overlap { margin-top: calc(var(--overlap) * -1); padding-top: 0; }
  .hero:has(+ .section-overlap) { padding-bottom: calc(var(--hero-pad) + var(--overlap)); }
}
.info-strip { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); }
.info-panel { height: 100%; padding: clamp(1.75rem, 3vw, 2.5rem); }
.info-panel h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.info-panel .big-phone { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.hours-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--border); }
.hours-list li span:last-child { font-weight: 600; color: var(--heading); white-space: nowrap; }

.feature-strip { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-hover); border: 1px solid var(--card-border); }
.feature-strip > [class*="col"] { padding: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 992px) { .feature-strip > [class*="col"] + [class*="col"] { border-left: 1px solid var(--border-base); } }
@media (max-width: 991.98px) { .feature-strip > [class*="col"] + [class*="col"] { border-top: 1px solid var(--border-base); } }

.media-frame { position: relative; padding: 0 1.5rem 1.5rem 0; }
.media-frame::before { content: ""; position: absolute; inset: 1.5rem 0 0 1.5rem; border-radius: var(--radius-lg); background: rgba(var(--primary-rgb), .12); }
.media-frame > img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.media-badge { position: absolute; z-index: 2; left: -.75rem; bottom: 2.5rem; padding: 1.1rem 1.4rem; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-hover); line-height: 1.2; }
.media-badge strong { display: block; font-family: var(--heading-font); font-size: 2.1rem; line-height: 1; }
.corner-brackets { position: relative; }
.corner-brackets::before, .corner-brackets::after { content: ""; position: absolute; z-index: 2; width: 60px; height: 60px; border: 4px solid var(--primary); pointer-events: none; }
.corner-brackets::before { left: 1.25rem; top: 1.25rem; border-right: 0; border-bottom: 0; }
.corner-brackets::after { right: 1.25rem; bottom: 1.25rem; border-left: 0; border-top: 0; }
.decor-dots { position: absolute; z-index: 0; width: 11rem; height: 11rem; pointer-events: none; background-image: radial-gradient(rgba(var(--primary-rgb), .45) 1.6px, transparent 1.9px); background-size: 16px 16px; }

/* ---------- 9. Cards & content blocks ------------------------------------ */
.card-soft { position: relative; height: 100%; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.icon-card { padding: clamp(1.6rem, 3vw, 2.25rem); }
.icon-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.icon-card p { margin-bottom: 1rem; }
.icon-badge { display: inline-grid; place-items: center; flex-shrink: 0; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; border-radius: var(--badge-radius, 1rem); background: rgba(var(--primary-rgb), .12); color: var(--primary-text); font-size: 1.5rem; transition: background-color .35s ease, color .35s ease, transform .35s var(--ease); }
.icon-badge.is-round { border-radius: 50%; }
.icon-badge.is-solid { background: var(--primary); color: var(--on-primary); }
.icon-card:hover .icon-badge { background: var(--primary); color: var(--on-primary); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list i { flex-shrink: 0; color: var(--primary-text); font-size: 1.15rem; line-height: 1.45; }
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
@media (max-width: 575.98px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* stats */
.stat { text-align: center; }
.stat-icon { font-size: 2rem; margin-bottom: .6rem; color: var(--heading); opacity: .9; }
.stat-num { font-family: var(--heading-font); font-weight: var(--heading-weight); font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1; color: var(--heading); }
.stat-label { margin-top: .5rem; font-weight: 500; color: var(--muted); }
@media (min-width: 992px) { .stats-divided > [class*="col"] + [class*="col"] { border-left: 1px solid var(--border); } }

/* steps / numbered cards */
.step-card { padding: clamp(1.6rem, 3vw, 2.25rem); }
.step-num { display: block; margin-bottom: 1rem; font-family: var(--heading-font); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--primary-text); opacity: .35; }
.step-card h3 { font-size: 1.2rem; }

/* zig-zag rows */
.zigzag-row + .zigzag-row { margin-top: clamp(3rem, 6vw, 5rem); }
.zigzag-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* team */
.team-card { height: 100%; overflow: hidden; text-align: center; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.team-media { position: relative; overflow: hidden; }
.team-media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-media img { transform: scale(1.05); }
.team-social { position: absolute; left: 50%; bottom: 1rem; display: flex; gap: .4rem; opacity: 0; transform: translate(-50%, 1rem); transition: opacity .35s ease, transform .35s var(--ease); }
.team-card:hover .team-social, .team-card:focus-within .team-social { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .team-social { opacity: 1; transform: translate(-50%, 0); } }
.team-body { padding: 1.25rem 1rem 1.5rem; }
.team-body h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.team-role { color: var(--primary-text); font-weight: 500; font-size: .9375rem; margin-bottom: 0; }

/* testimonials */
.testimonial-card { display: flex; flex-direction: column; height: 100%; padding: clamp(1.6rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.testimonial-card .quote-mark { font-size: 2.6rem; line-height: 1; color: var(--primary-text); opacity: .3; }
.testimonial-text { flex: 1; font-size: 1.0625rem; }
.rating { color: #f5a524; letter-spacing: .12em; font-size: .95rem; margin-bottom: .75rem; }
.person { display: flex; align-items: center; gap: .9rem; margin-top: 1.25rem; }
.person img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }
.person strong { display: block; font-family: var(--heading-font); color: var(--heading); }
.person span { font-size: .875rem; color: var(--muted); }

/* horizontal scroll row (dependency-free carousel) */
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 85%); gap: 1.5rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; scrollbar-width: thin; }
.scroll-row > * { scroll-snap-align: start; }
@media (min-width: 768px) { .scroll-row { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (min-width: 992px) { .scroll-row { grid-auto-columns: calc((100% - 3rem) / 3); } }
.scroll-nav { display: flex; gap: .5rem; }
.scroll-nav button { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--heading-base); box-shadow: var(--shadow); transition: background-color .25s ease, color .25s ease; }
.scroll-nav button:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* pricing */
.price-card { position: relative; padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.price-card h3 { font-size: 1.2rem; }
.price { font-family: var(--heading-font); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--heading); margin: 1rem 0 .25rem; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; text-align: left; }
.price-card li { display: flex; gap: .6rem; }
.price-card li i { color: var(--primary-text); }
.price-card li.is-off { opacity: .5; text-decoration: line-through; }
.price-card.is-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-hover); }
@media (min-width: 992px) { .price-card.is-featured { transform: translateY(-.75rem); } }
.price-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: .35rem .95rem; border-radius: 50rem; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* FAQ - minimal accordion (Avilon) */
.faq .accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--border); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--primary-text); --bs-accordion-btn-color: var(--heading); --bs-accordion-color: var(--text); --bs-accordion-btn-padding-x: 0; --bs-accordion-body-padding-x: 0; --bs-accordion-btn-icon-transform: rotate(45deg); }
.faq .accordion-item { border-width: 0 0 1px; border-radius: 0 !important; }
.faq .accordion-button { font-family: var(--heading-font); font-weight: 600; font-size: 1.0625rem; padding-block: 1.25rem; box-shadow: none; }
.faq .accordion-button::after { width: 14px; height: 14px; background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor); background-size: 100% 2px, 2px 100%; background-position: center; }
.faq .accordion-body { padding-top: 0; }

/* posts */
.post-card { height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.post-media { position: relative; display: block; overflow: hidden; }
.post-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-chip { position: absolute; left: 1rem; top: 1rem; padding: .3rem .75rem; border-radius: 50rem; background: var(--surface); color: var(--primary-text); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.post-body { padding: 1.5rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .6rem; font-size: .8125rem; color: var(--muted); }
.post-title { font-size: 1.15rem; margin-bottom: .6rem; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--primary-text); }

/* logos */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem clamp(2rem, 5vw, 4rem); }
.logo-strip img { max-height: 2.75rem; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s ease, opacity .3s ease; }
.logo-strip img:hover { filter: none; opacity: 1; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gallery-gap, .5rem); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a { display: block; overflow: hidden; border-radius: var(--gallery-radius, 0); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease), filter .4s ease; }
.gallery-grid a:hover img { transform: scale(1.05); filter: brightness(.85); }

/* vertical tabs (Finanza / Restaurantly specials) */
.tabs-vertical .nav-link { display: flex; align-items: center; gap: .75rem; width: 100%; margin-bottom: .6rem; padding: 1rem 1.25rem; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--heading); font-family: var(--heading-font); font-weight: 600; }
.tabs-vertical .nav-link i { color: var(--primary-text); font-size: 1.2rem; }
.tabs-vertical .nav-link.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-hover); }
.tabs-vertical .nav-link.active i { color: inherit; }
.tab-pane img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* filter pills */
.filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter-pills button { padding: .45rem 1.15rem; border: 1px solid var(--border); border-radius: 50rem; background: transparent; color: var(--heading); font-family: var(--heading-font); font-weight: 600; font-size: .9rem; transition: all .25s ease; }
.filter-pills button:hover { border-color: var(--primary); color: var(--primary-text); }
.filter-pills button.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
[data-category][hidden] { display: none !important; }

/* restaurant menu */
.menu-item { display: flex; gap: 1rem; align-items: center; }
.menu-item img { width: 4.5rem; height: 4.5rem; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 3px solid rgba(var(--primary-rgb), .45); }
.menu-line { display: flex; align-items: baseline; gap: .6rem; }
.menu-line h3 { margin: 0; font-size: 1.05rem; }
.menu-line .dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--border); transform: translateY(-.3rem); }
.menu-line .price-tag { font-family: var(--heading-font); font-weight: 700; color: var(--primary-text); white-space: nowrap; }
.menu-desc { margin: .2rem 0 0; font-size: .9rem; font-style: italic; color: var(--muted); }

/* shop */
.product-card { height: 100%; }
.product-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.product-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badge { position: absolute; left: .75rem; top: .75rem; z-index: 1; padding: .25rem .6rem; border-radius: 50rem; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.product-actions { position: absolute; inset: auto 0 0; display: flex; justify-content: center; gap: .5rem; padding: 1rem; transform: translateY(110%); transition: transform .35s var(--ease); }
.product-card:hover .product-actions, .product-card:focus-within .product-actions { transform: none; }
@media (hover: none) { .product-actions { transform: none; } }
.product-body { padding-top: 1rem; }
.product-name { font-size: 1rem; margin-bottom: .25rem; }
.product-name a { color: inherit; text-decoration: none; }
.product-price { font-weight: 700; color: var(--heading); }
.product-price del { margin-left: .4rem; font-weight: 400; color: var(--muted); }

/* real estate */
.listing-card { height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.listing-card .post-media img { aspect-ratio: 4 / 3; }
.listing-price { display: inline-block; margin-bottom: .5rem; padding-bottom: .15rem; border-bottom: 2px solid currentColor; font-family: var(--heading-font); font-weight: 700; font-size: 1.35rem; color: var(--primary-text); }
.listing-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .75rem 0 1.25rem; font-size: .9rem; color: var(--muted); }
.listing-meta i { color: var(--primary-text); margin-right: .3rem; }

/* ---------- 10. Forms & contact ------------------------------------------ */
.form-panel { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }
.form-control, .form-select { padding: .8rem 1rem; border-radius: var(--radius-input); border-color: var(--border-base); background-color: var(--input-bg, var(--surface)); color: var(--heading-base); }
.form-control::placeholder { color: var(--muted-base); opacity: 1; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .22rem rgba(var(--primary-rgb), .18); }
.form-label { margin-bottom: .35rem; font-weight: 600; font-size: .875rem; color: var(--heading); }
.form-note { font-size: .8125rem; color: var(--muted); }
.form-success { display: none; margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); background: rgba(var(--primary-rgb), .1); color: var(--heading-base); }
.form-success.is-visible { display: block; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item + .contact-item { margin-top: 1.4rem; }
.contact-item .icon-badge { width: 3rem; height: 3rem; margin: 0; font-size: 1.2rem; }
.contact-item h3 { font-size: 1rem; margin-bottom: .15rem; }
.contact-item p { margin: 0; }
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--primary-text); }
.map-embed { overflow: hidden; height: clamp(260px, 38vw, 360px); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; filter: var(--map-filter, none); }
.big-phone { display: inline-block; font-family: var(--heading-font); font-weight: 800; font-size: clamp(2rem, 1.2rem + 3.8vw, 3.75rem); line-height: 1.1; letter-spacing: -.01em; color: var(--heading); text-decoration: none; }
.big-phone:hover { color: var(--heading); opacity: .9; }

.newsletter-form { display: flex; gap: .5rem; max-width: 30rem; padding: .35rem; background: var(--surface); border-radius: 50rem; }
.newsletter-form .form-control { border: 0; background: transparent; box-shadow: none; }
.newsletter-form .btn { --bs-btn-border-radius: 50rem; white-space: nowrap; }

/* ---------- 11. Footer --------------------------------------------------- */
.site-footer {
  --heading: #fff;
  --text: rgba(255, 255, 255, .72);
  --muted: rgba(255, 255, 255, .55);
  --border: rgba(255, 255, 255, .12);
  --primary-text: color-mix(in srgb, var(--primary) 45%, #fff);
  --title-color: #fff;
  background: var(--footer-bg);
  color: var(--text);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  font-size: .9375rem;
}
.site-footer .navbar-brand { color: #fff; margin-bottom: 1rem; }
.footer-title { position: relative; margin-bottom: 1.25rem; font-size: 1.1rem; color: var(--heading); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a, .footer-contact a { color: var(--text); text-decoration: none; transition: color .25s ease, transform .25s ease; }
.footer-links a { display: inline-flex; align-items: center; gap: .55rem; }
.footer-links a::before { content: ""; width: .38rem; height: .38rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-links a:hover { transform: translateX(3px); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.footer-contact li { display: flex; gap: .75rem; }
.footer-contact i { color: var(--primary-text); }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: 1.25rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted); }
.footer-bottom a { color: var(--text); }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links a { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.social-links a:hover { background: var(--primary); color: var(--on-primary); }
.site-footer.footer-light { --heading: var(--heading-base); --text: var(--text-base); --muted: var(--muted-base); --border: var(--border-base); --primary-text: var(--primary-text-base); --eyebrow-color: var(--eyebrow-color-base); background: var(--tint); }
.site-footer.footer-light .navbar-brand { color: var(--heading-base); }
.site-footer.footer-light .social-links a { background: rgba(var(--primary-rgb), .1); color: var(--primary-text); }
.site-footer.footer-light .footer-links a:hover, .site-footer.footer-light .footer-contact a:hover { color: var(--primary-text); }

/* ---------- 12. Floating actions ----------------------------------------- */
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-hover); text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .3s ease, transform .3s var(--ease), visibility .3s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--on-primary); }
.whatsapp-float { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 1040; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25d366; color: #fff; font-size: 1.75rem; box-shadow: 0 10px 25px rgba(37, 211, 102, .4); text-decoration: none; transition: transform .25s var(--ease); }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- 13. Motion --------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
