/* =========================================================
 NDS Elders Care - Main Stylesheet
 Premium · Calm · Trustworthy · Elder Care
 ========================================================= */

/* ---------------------------------------------------------
 1. Design Tokens (edit brand colors here)
 --------------------------------------------------------- */
:root {
 --color-primary: #1a6aa3;
 --color-primary-dark: #145482;
 --color-primary-soft: #e7f2f9;
 --color-navy: #0d2a45;
 --color-navy-soft: #1a3d5c;
 --color-accent: #3d8b7a;
 --color-white: #ffffff;
 --color-bg: #f5f8fb;
 --color-bg-soft: #eef3f7;
 --color-border: #d5e0ea;
 --color-text: #1c2d3a;
 --color-text-muted: #5a6d7c;
 --color-text-light: #7a8c9a;
 --color-success: #2f7d5b;
 --color-warning: #b54708;

 --font-body: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
 --font-heading: "Manrope", "Source Sans 3", "Segoe UI", sans-serif;

 --fs-xs: 0.8125rem;
 --fs-sm: 0.9375rem;
 --fs-base: 1.0625rem;
 --fs-md: 1.125rem;
 --fs-lg: 1.25rem;
 --fs-xl: 1.5rem;
 --fs-2xl: clamp(1.75rem, 2.5vw, 2.25rem);
 --fs-3xl: clamp(2rem, 4vw, 2.85rem);
 --fs-hero: clamp(2.15rem, 5vw, 3.4rem);

 --lh-tight: 1.25;
 --lh-snug: 1.4;
 --lh-body: 1.7;

 --space-1: 0.25rem;
 --space-2: 0.5rem;
 --space-3: 0.75rem;
 --space-4: 1rem;
 --space-5: 1.5rem;
 --space-6: 2rem;
 --space-7: 3rem;
 --space-8: 4rem;
 --space-9: 5.5rem;
 --space-10: 7rem;

 --radius-sm: 6px;
 --radius-md: 10px;
 --radius-lg: 16px;
 --shadow-sm: 0 1px 3px rgba(13, 42, 69, 0.06);
 --shadow-md: 0 8px 24px rgba(13, 42, 69, 0.08);
 --container: 1120px;
 --header-h: 76px;
 --transition: 0.25s ease;
}

/* ---------------------------------------------------------
 2. Reset & Base
 --------------------------------------------------------- */
*,
*::before,
*::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
 -webkit-text-size-adjust: 100%;
 overflow-x: hidden;
 max-width: 100%;
 overscroll-behavior-x: none;
}

@media (prefers-reduced-motion: reduce) {
 html {
 scroll-behavior: auto;
 }

 *,
 *::before,
 *::after {
 animation-duration: 0.01ms !important;
 animation-iteration-count: 1 !important;
 transition-duration: 0.01ms !important;
 }
}

body {
 font-family: var(--font-body);
 font-size: var(--fs-base);
 line-height: var(--lh-body);
 color: var(--color-text);
 background: var(--color-white);
 min-height: 100vh;
 width: 100%;
 max-width: 100%;
 overflow-x: hidden;
 overscroll-behavior-x: none;
}

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

a {
 color: var(--color-primary);
 text-decoration: none;
 transition: color var(--transition);
}

a:hover {
 color: var(--color-primary-dark);
}

ul,
ol {
 list-style: none;
}

button,
input,
select,
textarea {
 font: inherit;
 color: inherit;
}

:focus-visible {
 outline: 3px solid var(--color-primary);
 outline-offset: 3px;
}

.skip-link {
 position: absolute;
 left: -9999px;
 top: 0;
 background: var(--color-navy);
 color: var(--color-white);
 padding: var(--space-3) var(--space-4);
 z-index: 10000;
}

.skip-link:focus {
 left: var(--space-4);
 top: var(--space-4);
}

/* ---------------------------------------------------------
 3. Layout Helpers
 --------------------------------------------------------- */
.container {
 width: min(100% - 2rem, var(--container));
 margin-inline: auto;
}

.section {
 padding: var(--space-9) 0;
}

.section--soft {
 background: var(--color-bg);
}

.section--navy {
 background: var(--color-navy);
 color: var(--color-white);
}

.section--primary {
 background: var(--color-primary);
 color: var(--color-white);
}

.section-header {
 max-width: 40rem;
 margin-bottom: var(--space-7);
}

.section-header--center {
 margin-inline: auto;
 text-align: center;
}

.eyebrow {
 display: inline-block;
 font-family: var(--font-heading);
 font-size: var(--fs-xs);
 font-weight: 700;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: var(--color-primary);
 margin-bottom: var(--space-3);
}

.section--navy .eyebrow,
.section--primary .eyebrow,
.cta-band .eyebrow {
 color: rgba(255, 255, 255, 0.75);
}

h1,
h2,
h3,
h4 {
 font-family: var(--font-heading);
 font-weight: 700;
 line-height: var(--lh-tight);
 color: var(--color-navy);
 letter-spacing: -0.02em;
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--primary h1,
.section--primary h2,
.section--primary h3,
.cta-band h2 {
 color: var(--color-white);
}

h1 {
 font-size: var(--fs-3xl);
 margin-bottom: var(--space-4);
}

h2 {
 font-size: var(--fs-2xl);
 margin-bottom: var(--space-4);
}

h3 {
 font-size: var(--fs-xl);
 margin-bottom: var(--space-3);
}

h4 {
 font-size: var(--fs-lg);
 margin-bottom: var(--space-2);
}

.lead {
 font-size: var(--fs-md);
 color: var(--color-text-muted);
 max-width: 38rem;
}

.section--navy .lead,
.section--primary .lead,
.cta-band .lead {
 color: rgba(255, 255, 255, 0.85);
}

.muted {
 color: var(--color-text-muted);
}

.text-center {
 text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

/* ---------------------------------------------------------
 4. Buttons (advanced)
 --------------------------------------------------------- */
.btn {
  --btn-shadow: 0 8px 22px rgba(13, 42, 69, 0.12);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.55rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease,
    transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 42%,
    transparent 72%
  );
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow);
}

.btn:hover::before {
  transform: translateX(130%);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn > * {
  position: relative;
  z-index: 2;
}

.btn__icon,
.btn svg.btn__icon,
.btn--whatsapp svg,
.btn[data-whatsapp] svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(135deg, #1f7ab8 0%, var(--color-primary) 48%, #145482 100%);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(26, 106, 163, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #2486c8 0%, #1a6aa3 50%, #11486f 100%);
  color: var(--color-white);
  box-shadow: 0 14px 30px rgba(26, 106, 163, 0.34);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  border-color: rgba(213, 224, 234, 0.95);
  box-shadow: 0 6px 18px rgba(13, 42, 69, 0.06);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: #fff;
}

.btn--whatsapp,
a.btn[data-whatsapp] {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 55%, #0b6b5f 100%);
  color: var(--color-white) !important;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.32);
}

.btn--whatsapp:hover,
a.btn[data-whatsapp]:hover {
  background: linear-gradient(135deg, #2fe074 0%, #14a090 55%, #0d7a6c 100%);
  color: var(--color-white) !important;
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.4);
}

.btn--whatsapp:focus-visible {
  outline-color: #128c7e;
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-navy);
  border-color: transparent;
}

.btn--light {
  background: #fff;
  color: var(--color-navy);
  box-shadow: 0 10px 24px rgba(13, 42, 69, 0.14);
}

.btn--light:hover {
  background: #f3f8fc;
  color: var(--color-navy);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(26, 106, 163, 0.45);
  box-shadow: inset 0 0 0 0 rgba(26, 106, 163, 0.08);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(26, 106, 163, 0.22);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cta-band .btn--primary,
.cta-band .btn--light {
  background: #fff;
  color: var(--color-navy);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.cta-band .btn--primary:hover,
.cta-band .btn--light:hover {
  background: #f2f7fb;
  color: var(--color-navy);
}

.btn--whatsapp .wa-icon,
.btn[data-whatsapp] .wa-icon,
.btn--whatsapp svg.btn__icon,
.btn[data-whatsapp] svg.btn__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
 5. Header / Navigation
 --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border-bottom: 1px solid rgba(213, 224, 234, 0.55);
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 28px rgba(13, 42, 69, 0.08);
  border-bottom-color: rgba(213, 224, 234, 0.85);
}

@media (min-width: 1025px) {
  .site-header {
    background: rgba(255, 255, 255, 0.48);
  }

  .site-header .nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }

  .site-header .nav__link {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: var(--color-navy);
  }

  .site-header .nav__link:hover,
  .site-header .nav__link.is-active {
    background: rgba(26, 106, 163, 0.12);
    color: var(--color-primary-dark);
  }

  .site-header .nav__cta {
    margin-left: 0.35rem;
  }

  .site-header .nav__cta.btn,
  .site-header .nav__cta .btn {
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(26, 106, 163, 0.2);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-4);
  overflow: visible;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo__tag {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.logo--footer .logo__name {
  color: var(--color-white);
  font-size: 1.15rem;
}

.nav {
 display: flex;
 align-items: center;
 gap: var(--space-1);
}

.nav__link {
 padding: 0.55rem 0.7rem;
 font-family: var(--font-heading);
 font-size: 0.875rem;
 font-weight: 600;
 color: var(--color-text);
 border-radius: var(--radius-sm);
 white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
 color: var(--color-primary);
 background: var(--color-primary-soft);
}

.nav__cta {
 margin-left: var(--space-2);
}

.nav-toggle {
 display: none;
 width: 48px;
 height: 48px;
 border: 1px solid var(--color-border);
 border-radius: var(--radius-sm);
 background: var(--color-white);
 cursor: pointer;
 align-items: center;
 justify-content: center;
 flex-direction: column;
 gap: 5px;
}

.nav-toggle span {
 display: block;
 width: 20px;
 height: 2px;
 background: var(--color-navy);
 transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
 transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
 opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
 transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------
 6. Hero
 --------------------------------------------------------- */
.hero {
 position: relative;
 min-height: calc(100vh - var(--header-h));
 min-height: calc(100svh - var(--header-h));
 display: flex;
 align-items: center;
 color: var(--color-white);
 overflow: hidden;
}

.hero__media {
 position: absolute;
 inset: 0;
 z-index: 0;
}

.hero__media img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.hero__overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(
 105deg,
 rgba(13, 42, 69, 0.88) 0%,
 rgba(26, 106, 163, 0.72) 55%,
 rgba(13, 42, 69, 0.65) 100%
 );
}

.hero__content {
 position: relative;
 z-index: 1;
 padding: var(--space-8) 0;
 max-width: 40rem;
}

.hero .eyebrow {
 color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
 color: var(--color-white);
 font-size: var(--fs-hero);
 margin-bottom: var(--space-5);
}

.hero__text {
 font-size: var(--fs-md);
 color: rgba(255, 255, 255, 0.9);
 margin-bottom: var(--space-6);
 max-width: 34rem;
}

.hero__trust {
 margin-top: var(--space-5);
 font-size: var(--fs-sm);
 color: rgba(255, 255, 255, 0.78);
}

/* Page hero (inner pages) */
.page-hero {
 background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary-dark) 100%);
 color: var(--color-white);
 padding: var(--space-8) 0 var(--space-7);
}

.page-hero h1 {
 color: var(--color-white);
}

.page-hero .lead {
 color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs {
 display: flex;
 flex-wrap: wrap;
 gap: 0.35rem;
 align-items: center;
 font-size: var(--fs-xs);
 margin-bottom: var(--space-4);
 color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
 color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs a:hover {
 color: var(--color-white);
}

.breadcrumbs span[aria-hidden="true"] {
 opacity: 0.5;
}

/* Soft page hero for content pages without dark band */
.page-hero--soft {
 background: var(--color-bg);
 color: var(--color-text);
 border-bottom: 1px solid var(--color-border);
}

.page-hero--soft h1 {
 color: var(--color-navy);
}

.page-hero--soft .lead {
 color: var(--color-text-muted);
}

.page-hero--soft .breadcrumbs {
 color: var(--color-text-muted);
}

.page-hero--soft .breadcrumbs a {
 color: var(--color-primary);
}

/* ---------------------------------------------------------
 7. Grids & Feature Blocks
 --------------------------------------------------------- */
.grid-2 {
 display: grid;
 gap: var(--space-7);
 align-items: center;
}

.grid-3 {
 display: grid;
 gap: var(--space-5);
}

.grid-4 {
 display: grid;
 gap: var(--space-5);
}

@media (min-width: 700px) {
 .grid-2 {
 grid-template-columns: 1fr 1fr;
 }

 .grid-3 {
 grid-template-columns: repeat(3, 1fr);
 }

 .grid-4 {
 grid-template-columns: repeat(2, 1fr);
 }
}

@media (min-width: 960px) {
 .grid-4 {
 grid-template-columns: repeat(4, 1fr);
 }
}

.feature-list {
 display: grid;
 gap: var(--space-4);
}

.feature-item {
 display: grid;
 grid-template-columns: 48px 1fr;
 gap: var(--space-4);
 align-items: start;
}

.feature-icon {
 width: 48px;
 height: 48px;
 border-radius: var(--radius-md);
 background: var(--color-primary-soft);
 color: var(--color-primary);
 display: grid;
 place-items: center;
 flex-shrink: 0;
}

.feature-icon svg {
 width: 24px;
 height: 24px;
}

.feature-item h3 {
 font-size: var(--fs-lg);
 margin-bottom: var(--space-1);
}

.feature-item p {
 color: var(--color-text-muted);
 font-size: var(--fs-sm);
}

/* Service / content blocks - interaction-oriented, not card clutter */
.service-block {
 padding: var(--space-5) 0;
 border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
 border-bottom: none;
}

.service-grid {
 display: grid;
 gap: var(--space-6);
}

@media (min-width: 800px) {
 .service-grid {
 grid-template-columns: 1fr 1fr;
 }
}

.service-item {
 padding: var(--space-5);
 background: var(--color-white);
 border: 1px solid var(--color-border);
 border-radius: var(--radius-md);
}

.service-item__icon {
 width: 44px;
 height: 44px;
 margin-bottom: var(--space-4);
 color: var(--color-primary);
}

.service-item h3 {
 font-size: 1.2rem;
}

.service-item p {
 color: var(--color-text-muted);
 font-size: var(--fs-sm);
 margin-bottom: var(--space-3);
}

.service-item ul {
 margin-bottom: var(--space-4);
}

.service-item li {
 position: relative;
 padding-left: 1.15rem;
 font-size: var(--fs-sm);
 color: var(--color-text);
 margin-bottom: 0.35rem;
}

.service-item li::before {
 content: "";
 position: absolute;
 left: 0;
 top: 0.55em;
 width: 6px;
 height: 6px;
 border-radius: 50%;
 background: var(--color-primary);
}

.trust-strip {
 display: grid;
 gap: var(--space-5);
 padding: var(--space-6);
 background: var(--color-primary-soft);
 border-radius: var(--radius-lg);
}

@media (min-width: 700px) {
 .trust-strip {
 grid-template-columns: repeat(3, 1fr);
 }
}

.trust-strip__item h3 {
 font-size: var(--fs-lg);
 margin-bottom: var(--space-2);
}

.trust-strip__item p {
 font-size: var(--fs-sm);
 color: var(--color-text-muted);
 margin: 0;
}

/* ---------------------------------------------------------
   Text marquees
 --------------------------------------------------------- */
.text-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-block: 1px solid transparent;
  user-select: none;
  touch-action: pan-y;
}

.text-marquee--soft {
  background: var(--color-bg);
  border-block-color: var(--color-border);
  padding: 0.95rem 0;
}

.text-marquee--navy {
  background: linear-gradient(90deg, #0a2136 0%, #0d2a45 50%, #123954 100%);
  padding: 1.05rem 0;
}

.text-marquee--line {
  background: var(--color-white);
  border-block-color: var(--color-border);
  padding: 0.9rem 0;
}

.text-marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}

.text-marquee__track--slow {
  animation-duration: 52s;
}

.text-marquee__track--reverse {
  animation-name: marqueeScrollReverse;
  animation-duration: 42s;
}

.text-marquee:hover .text-marquee__track {
  animation-play-state: paused;
}

.text-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.text-marquee__group span {
  display: inline-block;
  padding: 0 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.text-marquee--soft .text-marquee__group span,
.text-marquee--line .text-marquee__group span {
  color: var(--color-navy);
}

.text-marquee--navy .text-marquee__group span {
  color: rgba(255, 255, 255, 0.92);
}

.text-marquee__sep {
  opacity: 0.4;
  padding: 0 1.15rem !important;
  font-weight: 500 !important;
}

.text-marquee--navy .text-marquee__sep {
  color: rgba(255, 255, 255, 0.45);
}

@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeScrollReverse {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .text-marquee__track,
  .text-marquee__track--slow,
  .text-marquee__track--reverse {
    animation: none !important;
    transform: none !important;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .text-marquee__group:last-child {
    display: none;
  }

  .text-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.35rem;
    padding-inline: 1rem;
  }
}

/* Image placeholder for facility photos */
.img-placeholder {
 aspect-ratio: 4 / 3;
 background: linear-gradient(145deg, var(--color-bg-soft), var(--color-primary-soft));
 border: 1px dashed var(--color-border);
 border-radius: var(--radius-md);
 display: grid;
 place-items: center;
 text-align: center;
 padding: var(--space-5);
 color: var(--color-text-muted);
 font-size: var(--fs-sm);
}

.img-placeholder strong {
 display: block;
 color: var(--color-navy);
 margin-bottom: var(--space-2);
 font-family: var(--font-heading);
}

.media-frame {
 border-radius: var(--radius-lg);
 overflow: hidden;
 aspect-ratio: 4 / 3;
 background: var(--color-bg-soft);
}

.media-frame img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.media-frame--wide {
 aspect-ratio: 16 / 9;
}

/* ---------------------------------------------------------
 8. Testimonials
 --------------------------------------------------------- */
.testimonial {
 padding: var(--space-5);
 background: var(--color-white);
 border-left: 3px solid var(--color-primary);
}

.testimonial__quote {
 font-size: var(--fs-md);
 color: var(--color-text);
 margin-bottom: var(--space-4);
 font-style: italic;
}

.testimonial__meta {
 font-size: var(--fs-sm);
 color: var(--color-text-muted);
}

.testimonial__meta strong {
 display: block;
 color: var(--color-navy);
 font-style: normal;
 font-family: var(--font-heading);
}

.testimonial__stars {
  color: #d4a017;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Auto-moving review carousel */
.review-carousel {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
}

.review-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  width: 100%;
}

.review-carousel__track {
  display: flex;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.review-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  padding: 1.75rem 1.5rem;
  box-sizing: border-box;
}

.review-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.review-carousel__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.review-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.review-carousel__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.25);
}

.review-carousel__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(26, 106, 163, 0.12);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  pointer-events: none;
}

.review-carousel__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #4aa0d5);
  transform-origin: left center;
}

.review-carousel.is-paused .review-carousel__progress-bar {
  animation-play-state: paused;
}

@keyframes reviewProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .review-carousel__track {
    transition: none;
  }

  .review-carousel__progress {
    display: none;
  }
}

.placeholder-note {
 display: inline-block;
 font-size: 0.7rem;
 font-weight: 700;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 color: var(--color-primary);
 background: var(--color-primary-soft);
 padding: 0.2rem 0.5rem;
 border-radius: 4px;
 margin-bottom: var(--space-3);
}

/* ---------------------------------------------------------
 9. FAQ Accordion
 --------------------------------------------------------- */
.faq-list {
 max-width: 48rem;
 margin-inline: auto;
}

.faq-item {
 border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
 width: 100%;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: var(--space-4);
 padding: var(--space-5) 0;
 background: none;
 border: none;
 text-align: left;
 cursor: pointer;
 font-family: var(--font-heading);
 font-size: var(--fs-md);
 font-weight: 650;
 color: var(--color-navy);
}

.faq-item__icon {
 flex-shrink: 0;
 width: 28px;
 height: 28px;
 border-radius: 50%;
 background: var(--color-primary-soft);
 color: var(--color-primary);
 display: grid;
 place-items: center;
 font-size: 1.1rem;
 line-height: 1;
 transition: transform var(--transition);
}

.faq-item.is-open .faq-item__icon {
 transform: rotate(45deg);
 background: var(--color-primary);
 color: var(--color-white);
}

.faq-item__answer {
 display: none;
 padding: 0 0 var(--space-5);
 color: var(--color-text-muted);
 font-size: var(--fs-sm);
}

.faq-item.is-open .faq-item__answer {
 display: block;
}

/* ---------------------------------------------------------
 10. Blog
 --------------------------------------------------------- */
.blog-grid {
 display: grid;
 gap: var(--space-6);
}

@media (min-width: 700px) {
 .blog-grid {
 grid-template-columns: repeat(2, 1fr);
 }
}

@media (min-width: 1000px) {
 .blog-grid {
 grid-template-columns: repeat(3, 1fr);
 }
}

.blog-card {
 display: flex;
 flex-direction: column;
 height: 100%;
}

.blog-card__image {
 aspect-ratio: 16 / 10;
 border-radius: var(--radius-md);
 overflow: hidden;
 background: var(--color-bg-soft);
 margin-bottom: var(--space-4);
}

.blog-card__image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
 transform: scale(1.03);
}

.blog-card__meta {
 font-size: var(--fs-xs);
 color: var(--color-text-light);
 margin-bottom: var(--space-2);
 display: flex;
 flex-wrap: wrap;
 gap: var(--space-2);
}

.blog-card__category {
 color: var(--color-primary);
 font-weight: 700;
}

.blog-card h3 {
 font-size: 1.15rem;
 margin-bottom: var(--space-2);
}

.blog-card h3 a {
 color: var(--color-navy);
}

.blog-card h3 a:hover {
 color: var(--color-primary);
}

.blog-card p {
 font-size: var(--fs-sm);
 color: var(--color-text-muted);
 flex-grow: 1;
 margin-bottom: var(--space-3);
}

.blog-card__link {
 font-family: var(--font-heading);
 font-weight: 650;
 font-size: var(--fs-sm);
}

/* Article layout */
.article {
 padding: var(--space-8) 0 var(--space-9);
}

.article__layout {
 display: grid;
 gap: var(--space-7);
}

@media (min-width: 960px) {
 .article__layout {
 grid-template-columns: minmax(0, 1fr) 280px;
 align-items: start;
 }
}

.article__content {
 max-width: 42rem;
}

.article__content h2 {
 margin-top: var(--space-7);
 font-size: 1.55rem;
}

.article__content h3 {
 margin-top: var(--space-5);
 font-size: 1.2rem;
}

.article__content p,
.article__content ul,
.article__content ol {
 margin-bottom: var(--space-4);
 color: var(--color-text);
}

.article__content ul,
.article__content ol {
 padding-left: 1.25rem;
}

.article__content ul {
 list-style: disc;
}

.article__content ol {
 list-style: decimal;
}

.article__content li {
 margin-bottom: 0.4rem;
}

.article__content a {
 text-decoration: underline;
 text-underline-offset: 2px;
}

.article__featured {
 margin-bottom: var(--space-6);
 border-radius: var(--radius-lg);
 overflow: hidden;
 aspect-ratio: 16 / 9;
 background: var(--color-bg-soft);
}

.article__featured img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.article-sidebar {
 position: sticky;
 top: calc(var(--header-h) + 1rem);
}

.sidebar-box {
 padding: var(--space-5);
 background: var(--color-bg);
 border-radius: var(--radius-md);
 margin-bottom: var(--space-5);
}

.sidebar-box h3 {
 font-size: 1rem;
 margin-bottom: var(--space-3);
}

.related-list a {
 display: block;
 padding: 0.55rem 0;
 border-bottom: 1px solid var(--color-border);
 font-size: var(--fs-sm);
 color: var(--color-navy);
 font-weight: 600;
}

.related-list a:last-child {
 border-bottom: none;
}

.tag-list {
 display: flex;
 flex-wrap: wrap;
 gap: 0.4rem;
}

.tag {
 font-size: 0.75rem;
 padding: 0.25rem 0.55rem;
 background: var(--color-primary-soft);
 color: var(--color-primary-dark);
 border-radius: 4px;
 font-weight: 600;
}

/* ---------------------------------------------------------
 11. Gallery
 --------------------------------------------------------- */
.gallery-filters {
 display: flex;
 flex-wrap: wrap;
 gap: var(--space-2);
 margin-bottom: var(--space-6);
}

.gallery-filter {
 min-height: 40px;
 padding: 0.45rem 0.9rem;
 border: 1px solid var(--color-border);
 background: var(--color-white);
 border-radius: var(--radius-sm);
 cursor: pointer;
 font-family: var(--font-heading);
 font-size: var(--fs-sm);
 font-weight: 600;
 color: var(--color-text);
}

.gallery-filter.is-active,
.gallery-filter:hover {
 background: var(--color-primary);
 border-color: var(--color-primary);
 color: var(--color-white);
}

.gallery-grid {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: var(--space-3);
}

@media (min-width: 800px) {
 .gallery-grid {
 grid-template-columns: repeat(3, 1fr);
 gap: var(--space-4);
 }
}

.gallery-item {
 position: relative;
 aspect-ratio: 1;
 border-radius: var(--radius-md);
 overflow: hidden;
 cursor: pointer;
 border: none;
 padding: 0;
 background: var(--color-bg-soft);
}

.gallery-item img,
.gallery-item .img-placeholder {
 width: 100%;
 height: 100%;
 object-fit: cover;
 aspect-ratio: 1;
 border-radius: 0;
 border: none;
}

.gallery-item__label {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 padding: var(--space-3);
 background: linear-gradient(transparent, rgba(13, 42, 69, 0.75));
 color: var(--color-white);
 font-size: var(--fs-xs);
 font-weight: 600;
 text-align: left;
}

.lightbox {
 position: fixed;
 inset: 0;
 z-index: 2000;
 background: rgba(13, 42, 69, 0.92);
 display: none;
 align-items: center;
 justify-content: center;
 padding: var(--space-5);
}

.lightbox.is-open {
 display: flex;
}

.lightbox__inner {
 max-width: 900px;
 width: 100%;
 text-align: center;
}

.lightbox__inner img,
.lightbox__inner .img-placeholder {
 max-height: 75vh;
 margin-inline: auto;
 border-radius: var(--radius-md);
}

.lightbox__caption {
 color: rgba(255, 255, 255, 0.85);
 margin-top: var(--space-4);
 font-size: var(--fs-sm);
}

.lightbox__close {
 position: absolute;
 top: 1rem;
 right: 1rem;
 width: 48px;
 height: 48px;
 border: none;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.15);
 color: var(--color-white);
 font-size: 1.5rem;
 cursor: pointer;
}

/* ---------------------------------------------------------
 12. Contact Form
 --------------------------------------------------------- */
.contact-layout {
 display: grid;
 gap: var(--space-7);
}

@media (min-width: 860px) {
 .contact-layout {
 grid-template-columns: 1.2fr 0.8fr;
 align-items: start;
 }
}

.form-card {
 background: var(--color-white);
 border: 1px solid var(--color-border);
 border-radius: var(--radius-lg);
 padding: var(--space-6);
}

.form-group {
 margin-bottom: var(--space-4);
}

.form-group label {
 display: block;
 font-family: var(--font-heading);
 font-weight: 650;
 font-size: var(--fs-sm);
 margin-bottom: var(--space-2);
 color: var(--color-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
 width: 100%;
 min-height: 48px;
 padding: 0.7rem 0.9rem;
 border: 1px solid var(--color-border);
 border-radius: var(--radius-sm);
 background: var(--color-white);
 transition: border-color var(--transition);
}

.form-group textarea {
 min-height: 140px;
 resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
 border-color: var(--color-primary);
 outline: none;
 box-shadow: 0 0 0 3px rgba(26, 106, 163, 0.15);
}

.form-group .error {
 color: #b42318;
 font-size: var(--fs-xs);
 margin-top: var(--space-1);
}

.form-privacy {
 font-size: var(--fs-xs);
 color: var(--color-text-muted);
 margin-bottom: var(--space-4);
}

.contact-details {
 display: grid;
 gap: var(--space-5);
}

.contact-detail h3 {
 font-size: 1rem;
 margin-bottom: var(--space-2);
}

.contact-detail p,
.contact-detail a {
 font-size: var(--fs-sm);
 color: var(--color-text-muted);
}

.contact-detail a:hover {
 color: var(--color-primary);
}

.honeypot {
 position: absolute;
 left: -9999px;
 opacity: 0;
 height: 0;
 width: 0;
 overflow: hidden;
}

/* ---------------------------------------------------------
 13. CTA Band
 --------------------------------------------------------- */
.cta-band {
 position: relative;
 padding: var(--space-9) 0;
 color: var(--color-white);
 overflow: hidden;
}

.cta-band__bg {
 position: absolute;
 inset: 0;
  background: linear-gradient(120deg, rgba(13, 42, 69, 0.88), rgba(26, 106, 163, 0.78)),
    url("../images/hero/cta-atmosphere.webp") center / cover no-repeat;
}

.cta-band__content {
 position: relative;
 z-index: 1;
 max-width: 36rem;
}

.cta-band h2 {
 color: var(--color-white);
 margin-bottom: var(--space-4);
}

.cta-band p {
 color: rgba(255, 255, 255, 0.88);
 margin-bottom: var(--space-6);
}

/* ---------------------------------------------------------
 14. Footer
 --------------------------------------------------------- */
.site-footer {
 background: var(--color-navy);
 color: rgba(255, 255, 255, 0.8);
 padding-top: var(--space-8);
}

.footer-grid {
 display: grid;
 gap: var(--space-7);
 padding-bottom: var(--space-7);
}

@media (min-width: 700px) {
 .footer-grid {
 grid-template-columns: 1.4fr 1fr 1fr;
 }
}

@media (min-width: 1000px) {
 .footer-grid {
 grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
 }
}

.footer-brand .logo__name {
 color: var(--color-white);
 font-size: 1.25rem;
}

.footer-brand p {
 margin-top: var(--space-4);
 font-size: var(--fs-sm);
 max-width: 18rem;
}

.footer-col h3 {
 color: var(--color-white);
 font-size: 0.95rem;
 margin-bottom: var(--space-4);
}

.footer-col a {
 display: block;
 color: rgba(255, 255, 255, 0.75);
 font-size: var(--fs-sm);
 padding: 0.3rem 0;
}

.footer-col a:hover {
 color: var(--color-white);
}

/* Footer WhatsApp CTA - do not inherit footer link styles */
.footer-col .btn,
.footer-col a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  box-sizing: border-box;
}

.footer-col .btn--whatsapp,
.footer-col a.btn--whatsapp,
.footer-col a.btn[data-whatsapp] {
  background: #25d366;
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.footer-col .btn--whatsapp:hover,
.footer-col a.btn--whatsapp:hover,
.footer-col a.btn[data-whatsapp]:hover {
  background: #1ebe57;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.36);
}

.footer-col .btn--whatsapp .wa-icon,
.footer-col .btn--whatsapp svg,
.footer-col a.btn[data-whatsapp] svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: inherit;
  fill: currentColor;
}

.footer-col a:hover {
 color: var(--color-white);
}

.social-links {
 display: flex;
 flex-wrap: wrap;
 gap: var(--space-3);
 margin-top: var(--space-4);
}

.social-links a {
 width: 42px;
 height: 42px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 255, 255, 0.25);
 border-radius: 50%;
 color: var(--color-white);
 padding: 0;
}

.social-links a:hover {
 background: var(--color-primary);
 border-color: var(--color-primary);
}

.social-links svg {
 width: 18px;
 height: 18px;
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.12);
 padding: var(--space-5) 0;
 display: flex;
 flex-wrap: wrap;
 gap: var(--space-3);
 justify-content: space-between;
 align-items: center;
 font-size: var(--fs-xs);
}

.footer-bottom a {
 color: rgba(255, 255, 255, 0.75);
 display: inline;
 padding: 0;
}

.footer-bottom a:hover {
 color: var(--color-white);
}

.footer-credit a {
 color: rgba(255, 255, 255, 0.85);
 font-weight: 650;
 text-decoration: underline;
 text-underline-offset: 0.15em;
}

.footer-credit a:hover {
 color: var(--color-white);
}

.footer-legal {
 display: flex;
 flex-wrap: wrap;
 gap: var(--space-4);
}

/* ---------------------------------------------------------
 15. Floating WhatsApp
 --------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1500;
  min-height: 56px;
  padding: 0.65rem 1rem 0.65rem 0.7rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #1ebe57;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg,
.whatsapp-float .wa-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.whatsapp-float__label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.whatsapp-float.is-hidden {
  display: none;
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.7rem;
    width: 56px;
    height: 56px;
    justify-content: center;
  }

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

/* Service area chips */
.service-areas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.service-areas__item {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 650;
  border: 1px solid rgba(26, 106, 163, 0.12);
}

.btn--whatsapp .wa-icon,
.btn[data-whatsapp] .wa-icon,
.btn--whatsapp svg.btn__icon,
.btn[data-whatsapp] svg.btn__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
 16. Animations (legacy reveal kept once below in motion system)
 --------------------------------------------------------- */

/* ---------------------------------------------------------
 17. Utility Pages
 --------------------------------------------------------- */
.utility-page {
 min-height: 60vh;
 display: grid;
 place-items: center;
 text-align: center;
 padding: var(--space-9) var(--space-4);
}

.utility-page h1 {
 margin-bottom: var(--space-4);
}

.prose {
 max-width: 44rem;
 margin-inline: auto;
}

.prose h2 {
 margin-top: var(--space-7);
 font-size: 1.4rem;
}

.prose p,
.prose ul {
 margin-bottom: var(--space-4);
 color: var(--color-text-muted);
}

.prose ul {
 list-style: disc;
 padding-left: 1.25rem;
}

/* Loader — curtain rises after load */
body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: auto;
}

.page-loader__curtain {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(26, 106, 163, 0.28), transparent 70%),
    linear-gradient(180deg, #071824 0%, #0d2a45 48%, #0a1f33 100%);
  transform: translateY(0);
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.page-loader.is-done {
  pointer-events: none;
}

.page-loader.is-done .page-loader__curtain {
  transform: translateY(-105%);
}

.page-loader.is-done .loader-mark {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.loader-mark {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.loader-mark__logo {
  width: clamp(88px, 18vw, 128px);
  height: auto;
  margin: 0 auto 1.15rem;
  display: block;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.22));
  animation: loaderLogoIn 0.7s ease both;
}

.loader-mark__name {
  font-family: var(--font-heading);
  font-weight: 750;
  color: #fff;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  animation: loaderFadeUp 0.65s ease 0.15s both;
}

.loader-mark__tag {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: loaderFadeUp 0.65s ease 0.25s both;
}

.loader-progress {
  width: min(180px, 55vw);
  height: 3px;
  margin-inline: auto;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  animation: loaderFadeUp 0.65s ease 0.35s both;
}

.loader-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7eb8de, #ffffff 55%, #7eb8de);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  transition: width 0.35s ease;
}

@keyframes loaderLogoIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes loaderFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__curtain {
    transition-duration: 0.01ms;
  }

  .loader-mark__logo,
  .loader-mark__name,
  .loader-mark__tag,
  .loader-progress {
    animation: none;
  }

  .page-loader.is-done .page-loader__curtain {
    transform: none;
    opacity: 0;
  }
}

/* ---------------------------------------------------------
 18. Mobile Navigation
 --------------------------------------------------------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(7, 24, 36, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nav__panel-head {
  display: none;
}

.nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav__close:hover {
  background: var(--color-primary-soft);
  border-color: rgba(26, 106, 163, 0.35);
}

.nav__panel-title {
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
    z-index: 1300;
    position: relative;
  }

  .nav,
  .nav.nav--ported,
  .nav.nav--hero.nav--ported {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(92vw, 340px);
    max-width: 340px;
    height: 100dvh;
    height: 100vh;
    z-index: 1501;
    background: #fff !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.85rem 1rem 1.5rem;
    gap: 0.15rem;
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
    overflow-y: auto;
    box-shadow: -16px 0 48px rgba(13, 42, 69, 0.18);
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav.is-open,
  .nav.nav--ported.is-open,
  .nav.nav--hero.is-open,
  .nav.nav--hero.nav--ported.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0.25rem 0.85rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
  }

  .nav__link {
    padding: 0.9rem 0.85rem;
    font-size: 1.02rem;
    border-radius: 12px;
    color: var(--color-navy) !important;
  }

  .nav__link:hover,
  .nav__link.is-active {
    color: var(--color-primary) !important;
    background: var(--color-primary-soft) !important;
  }

  .nav__cta {
    margin: 0.85rem 0 0;
    padding: 0.35rem 0 0;
  }

  .nav__cta.btn,
  .nav__cta .btn,
  a.nav__cta.btn {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    border-radius: 999px !important;
    clip-path: none !important;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 1025px) {
  .nav-backdrop {
    display: none !important;
  }

  .nav__panel-head {
    display: none !important;
  }

  body:not(.page-home) .nav-toggle {
    display: none !important;
  }

  body:not(.page-home) .site-header .nav,
  body:not(.page-home) .header-inner > .nav {
    display: flex !important;
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    flex-direction: row !important;
    align-items: center;
    overflow: visible !important;
    box-shadow: none;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: var(--space-1);
  }
}

@media (max-width: 1099px) {
  .page-home .nav-toggle--hero {
    display: flex !important;
    z-index: 1300;
  }

  .page-home .nav--hero.nav--ported,
  .page-home .nav--hero.is-open {
    display: flex !important;
  }

  .page-home .nav__panel-head {
    display: flex;
  }

  .page-home .nav--hero .nav__link {
    color: var(--color-navy) !important;
    font-size: 1.02rem;
    padding: 0.9rem 0.85rem;
    border-radius: 12px;
  }

  .page-home .nav--hero .nav__link:hover,
  .page-home .nav--hero .nav__link.is-active {
    color: var(--color-primary) !important;
    background: var(--color-primary-soft) !important;
  }

  .page-home .nav--hero .nav__cta {
    background: linear-gradient(135deg, #1f7ab8 0%, var(--color-primary) 48%, #145482 100%);
    color: #fff !important;
    border: none;
  }
}

@media (max-width: 1099px) and (min-width: 1025px) {
  .page-home .nav--hero:not(.is-open) {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 340px);
    height: 100dvh;
    height: 100vh;
    z-index: 1501;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem 1.5rem;
    border-radius: 0;
    background: #fff !important;
    border: none !important;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: none;
  }

  .page-home .nav--hero.is-open,
  .page-home .nav--hero.nav--ported.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 767px) {
  /* Prevent side-shift animations from creating horizontal page drag */
  .reveal--left,
  .reveal--right {
    transform: translate3d(0, 28px, 0);
  }

  .reveal--left.is-visible,
  .reveal--right.is-visible {
    transform: translate3d(0, 0, 0);
  }

  .whatsapp-float {
    right: 0.75rem;
    left: auto;
    max-width: calc(100vw - 1.5rem);
  }

  .site-footer,
  .section,
  .cta-band,
  .page-hero,
  main {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Full-bleed immersive hero on phones */
  .hero-immersive {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-immersive__frame {
    border-radius: 0;
    min-height: 100svh;
    min-height: 100dvh;
    min-height: 100vh;
  }
}

@media (max-width: 600px) {
  .section {
    padding: var(--space-8) 0;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: var(--space-7) 0;
  }

  .btn-group {
    flex-direction: column;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }
}

/* Config-driven visibility helpers */
[data-requires-config]:not(.is-ready) {
  display: none !important;
}

/* ---------------------------------------------------------
 19. Motion system (modern minimal)
 --------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes softZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.anim-stagger {
  opacity: 0;
  animation: fadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade {
  opacity: 0;
  animation: fadeIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.reveal--left {
  transform: translate3d(-40px, 0, 0);
}

.reveal--right {
  transform: translate3d(40px, 0, 0);
}

.reveal--left.is-visible,
.reveal--right.is-visible {
  transform: translate3d(0, 0, 0);
}

.reveal--soft {
  transform: translate3d(0, 22px, 0) scale(0.985);
}

.reveal--soft.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Parent stagger: children fade up in sequence when parent is visible */
.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
.reveal-stagger.is-visible > *:nth-child(n + 7) { transition-delay: 520ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }
}

/* Soft cut buttons (adapted from octagon cut, calmer for elder care) */
.btn-cut {
  clip-path: polygon(
    10px 0%,
    calc(100% - 10px) 0%,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0% calc(100% - 10px),
    0% 10px
  );
}

.btn-cut-border {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  clip-path: polygon(
    10px 0%,
    calc(100% - 10px) 0%,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0% calc(100% - 10px),
    0% 10px
  );
}

.btn-cut-border::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: rgba(13, 42, 69, 0.55);
  clip-path: polygon(
    9px 0%,
    calc(100% - 9px) 0%,
    100% 9px,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    9px 100%,
    0% calc(100% - 9px),
    0% 9px
  );
  z-index: 0;
}

.btn-cut-border > * {
  position: relative;
  z-index: 1;
}

.btn-cut-sm {
  clip-path: polygon(
    7px 0%,
    calc(100% - 7px) 0%,
    100% 7px,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    7px 100%,
    0% calc(100% - 7px),
    0% 7px
  );
}

/* ---------------------------------------------------------
 20. Immersive hero (NDS adaptation of full-screen landing)
 --------------------------------------------------------- */
/* Home: no sticky header — nav lives in hero */
.page-home .site-header {
  display: none !important;
}

.hero-immersive {
  background: #000;
  padding: 0;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-immersive__frame {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  background-color: #000;
  background-image: url("../images/hero/hero-elder-care.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

.hero-immersive__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-immersive__media img,
.hero-immersive__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: softZoom 18s ease-out forwards;
}

.hero-immersive__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.62) 45%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.hero-immersive__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.35rem 0;
  gap: 1rem;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.hero-brand:hover {
  color: inherit;
}

.hero-brand__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.hero-brand__name {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 7.5rem;
  line-height: 1.25;
}

/* Full glass nav inside hero (replaces Services / Contact buttons) */
.nav--hero {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem;
  max-width: min(100%, 820px);
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-width: 1099px) {
  .nav--hero.nav--ported,
  .nav--hero.is-open {
    display: flex !important;
  }
}

.nav--hero .nav__link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav--hero .nav__link:hover,
.nav--hero .nav__link.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.nav--hero .nav__cta {
  margin-left: 0.25rem;
  background: #fff;
  color: var(--color-navy);
  border: none;
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.nav--hero .nav__cta:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-navy);
}

.nav-toggle--hero {
  display: flex;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
}

.nav-toggle--hero span {
  background: #fff;
}

.hero-immersive__nav {
  display: none;
}

.hero-immersive__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.35rem 1.5rem;
}

.hero-immersive__mid {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 220px;
}

.hero-side {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  position: absolute;
  left: 0;
  top: 16%;
  max-width: 210px;
}

.hero-side p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-side__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.hero-dots {
  display: flex;
  gap: 0.35rem;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-side__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.hero-center {
  width: 100%;
  text-align: center;
}

.hero-center h1 {
  color: #fff;
  font-size: clamp(1.85rem, 5.2vw, 3.65rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  margin: 0;
}

.hero-center h1 span {
  display: block;
}

.hero-immersive__bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.hero-bottom-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
}

.hero-bottom-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-bottom-cta .label {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 650;
}

.hero-cta-btn {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 300px;
  min-height: 56px;
  padding: 0.9rem 1.15rem 0.9rem 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(165deg, #ffffff 0%, #f4f9fd 48%, #e8f2f9 100%);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(26, 106, 163, 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.hero-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.7) 48%,
    transparent 72%
  );
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.hero-cta-btn::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #3d9ad4, var(--color-primary) 50%, #145482);
  z-index: 1;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus-visible {
  color: var(--color-navy);
  border-color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(165deg, #ffffff 0%, #eef6fb 50%, #dcecf6 100%);
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(26, 106, 163, 0.16);
}

.hero-cta-btn:hover::before,
.hero-cta-btn:focus-visible::before {
  transform: translateX(130%);
}

.hero-cta-btn:active {
  transform: translateY(-1px);
}

.hero-cta-btn__text,
.hero-cta-btn__icon {
  position: relative;
  z-index: 2;
}

.hero-cta-btn__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--color-primary) 0%, #145482 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(20, 84, 130, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.hero-cta-btn__icon svg {
  width: 16px;
  height: 16px;
}

.hero-cta-btn:hover .hero-cta-btn__icon,
.hero-cta-btn:focus-visible .hero-cta-btn__icon {
  transform: translateX(3px);
  background: linear-gradient(145deg, #2a86c0 0%, var(--color-primary) 100%);
}

.hero-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.hero-social__btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    filter 0.28s ease;
  clip-path: none;
}

.hero-social__btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.hero-social__btn:hover,
.hero-social__btn:focus-visible {
  transform: translateY(-4px) scale(1.06);
  border-color: rgba(255, 255, 255, 0.7);
  filter: brightness(1.06);
}

.hero-social__btn:hover::before,
.hero-social__btn:focus-visible::before {
  opacity: 1;
}

.hero-social__btn:active {
  transform: translateY(-1px) scale(1.02);
}

.hero-social__btn svg,
.hero-social__btn .wa-icon {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}

/* Facebook brand circle */
.hero-social__btn--facebook {
  background: linear-gradient(145deg, #3b92f0 0%, #1877f2 55%, #0d65d9 100%);
  box-shadow:
    0 8px 20px rgba(24, 119, 242, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.hero-social__btn--facebook:hover,
.hero-social__btn--facebook:focus-visible {
  box-shadow:
    0 14px 28px rgba(24, 119, 242, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.hero-social__btn--facebook::before {
  border-color: rgba(59, 146, 240, 0.55);
}

/* Instagram brand circle */
.hero-social__btn--instagram {
  background:
    radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow:
    0 8px 20px rgba(214, 36, 159, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.hero-social__btn--instagram:hover,
.hero-social__btn--instagram:focus-visible {
  box-shadow:
    0 14px 28px rgba(214, 36, 159, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.hero-social__btn--instagram::before {
  border-color: rgba(214, 36, 159, 0.5);
}

/* WhatsApp brand circle */
.hero-social__btn--whatsapp,
.hero-social a[data-whatsapp].hero-social__btn {
  background: linear-gradient(145deg, #2fe074 0%, #25d366 48%, #128c7e 100%);
  color: #fff;
  box-shadow:
    0 8px 20px rgba(37, 211, 102, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.hero-social__btn--whatsapp:hover,
.hero-social__btn--whatsapp:focus-visible,
.hero-social a[data-whatsapp].hero-social__btn:hover,
.hero-social a[data-whatsapp].hero-social__btn:focus-visible {
  background: linear-gradient(145deg, #3aeb82 0%, #25d366 48%, #14a090 100%);
  color: #fff;
  box-shadow:
    0 14px 28px rgba(37, 211, 102, 0.52),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.hero-social__btn--whatsapp::before {
  border-color: rgba(37, 211, 102, 0.55);
}

.hero-scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-immersive {
    padding: 1rem;
  }

  .hero-immersive__frame {
    min-height: calc(100svh - 2rem);
    min-height: calc(100dvh - 2rem);
    min-height: calc(100vh - 2rem);
    border-radius: 1.15rem;
  }

  .hero-immersive__top {
    padding: 1.75rem 2rem 0;
  }

  .hero-immersive__body {
    padding: 1.5rem 2rem 2rem;
  }

  .hero-immersive__bottom {
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 1.25rem;
  }

  .hero-bottom-copy {
    margin: 0 0 0 auto;
    text-align: left;
  }

  .hero-bottom-cta {
    gap: 2.5rem;
  }

  .hero-social {
    justify-content: flex-end;
  }
}

@media (min-width: 1100px) {
  .nav-toggle--hero {
    display: none !important;
  }

  .nav--hero {
    display: flex !important;
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: auto !important;
    height: auto !important;
    flex-direction: row !important;
    overflow: visible !important;
  }
}

@media (min-width: 1024px) {
  .hero-side {
    display: flex;
  }

  .hero-immersive__mid {
    min-height: 280px;
  }
}

/* ---------------------------------------------------------
 21. Horizontal scroll rails
 --------------------------------------------------------- */
.scroll-rail {
  position: relative;
}

.scroll-rail__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.scroll-rail__controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.scroll-rail__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.scroll-rail__btn:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}

.scroll-rail__btn svg {
  width: 18px;
  height: 18px;
}

.scroll-rail__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  max-width: 100%;
}

.scroll-rail__track::-webkit-scrollbar {
  display: none;
}

.scroll-rail__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.scroll-rail__card {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-rail__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.scroll-rail__card--media {
  padding: 0;
  overflow: hidden;
}

.scroll-rail__card--media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scroll-rail__card--media .scroll-rail__caption {
  padding: 0.9rem 1rem 1.1rem;
}

.scroll-rail__card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.scroll-rail__card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .scroll-rail__card {
    flex-basis: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anim-stagger,
  .anim-fade,
  .hero-immersive__media img,
  .hero-immersive__media video {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
