/* ==========================================================================
   Active Mind Health — site stylesheet
   Palette, typography, layout components and motion.
   Bootstrap 5 is used for the grid + components; this file carries the brand.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand: #0b5f57;
  --brand-2: #0f7a6d;
  --brand-deep: #06302d;
  --mint: #d8f1e7;
  --mint-2: #a8ded2;
  --coral: #ff7a59;
  --coral-deep: #e8552f;
  --gold: #f0b429;
  --ink: #0b2430;
  --muted: #52707c;
  --line: #e2ece8;
  --bg: #fbf6ee;
  --surface: #ffffff;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(11, 36, 48, .06);
  --shadow: 0 18px 40px -22px rgba(6, 48, 45, .35);
  --shadow-lg: 0 34px 70px -30px rgba(6, 48, 45, .45);
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Plus Jakarta Sans", "Manrope", system-ui, sans-serif;
  --nav-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
* { scrollbar-color: var(--mint-2) transparent; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 22px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  font-size: 1.02rem;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Every inline icon in this site carries .ic. Sized here once so an icon dropped
   into prose can never fall back to the SVG default box of 300x150. Component rules
   further down (buttons, chips, tiles) still win at equal specificity by source order. */
svg.ic { width: 1.05em; height: 1.05em; flex: 0 0 auto; vertical-align: -.18em; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.14;
  color: var(--ink);
}

h1 { font-size: clamp(2.35rem, 1.4rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 1.25rem + 2.4vw, 2.85rem); }
h3 { font-size: clamp(1.28rem, 1.05rem + .8vw, 1.6rem); }

p { margin-bottom: 1rem; }
a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--coral-deep); }
img { max-width: 100%; }
::selection { background: var(--coral); color: #fff; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(64px, 5vw + 40px, 118px) 0; position: relative; }
.section--tight { padding-block: clamp(46px, 3vw + 30px, 76px); }
.section--surface { background: var(--surface); }
.section--mint { background: linear-gradient(180deg, #f2fbf7 0%, var(--mint) 100%); }
.section--dark { background: radial-gradient(120% 150% at 15% 0%, #0d6b60 0%, var(--brand-deep) 70%); color: #eafaf5; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead, .section--dark p { color: rgba(234, 250, 245, .82); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-size: .74rem; font-weight: 800;
  letter-spacing: .19em; text-transform: uppercase; color: var(--brand);
  background: rgba(168, 222, 210, .38); border: 1px solid rgba(11, 95, 87, .14);
  padding: .42rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 122, 89, .22);
}
.section--dark .eyebrow { color: var(--mint-2); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { margin-inline: auto; }
.section-lead { color: var(--muted); font-size: 1.09rem; max-width: 62ch; }
.section-head.center .section-lead { margin-inline: auto; }
.section--dark .section-lead { color: rgba(234, 250, 245, .85); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head); font-weight: 700; letter-spacing: .01em;
  border-radius: 999px; padding: .78rem 1.55rem; font-size: .97rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn-lg { padding: .95rem 1.9rem; font-size: 1.03rem; }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 14px 26px -16px rgba(11, 95, 87, .9); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; transform: translateY(-3px); box-shadow: 0 20px 34px -18px rgba(11, 95, 87, .95); }

.btn-coral { background: var(--coral); border-color: var(--coral); color: #351205; box-shadow: 0 14px 26px -16px rgba(232, 85, 47, .85); }
.btn-coral:hover, .btn-coral:focus { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; transform: translateY(-3px); }

.btn-ghost { background: transparent; border-color: rgba(11, 95, 87, .3); color: var(--brand); }
.btn-ghost:hover { background: rgba(11, 95, 87, .07); border-color: var(--brand); color: var(--brand-deep); transform: translateY(-2px); }

.btn-light-brand { background: #fff; border-color: #fff; color: var(--brand-deep); }
.btn-light-brand:hover { background: var(--mint); border-color: var(--mint); color: var(--brand-deep); transform: translateY(-3px); }

.btn-outline-light2 { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-outline-light2:hover { background: #fff; color: var(--brand-deep); border-color: #fff; transform: translateY(-3px); }

.btn svg { width: 1.05em; height: 1.05em; vertical-align: -.15em; margin-inline-start: .35rem; }
.btn-arrow svg { transition: transform .3s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

.link-arrow {
  font-family: var(--font-head); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem;
  color: var(--brand); border-bottom: 2px solid rgba(11, 95, 87, .2); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--coral-deep); border-color: var(--coral); gap: .7rem; }

/* ---------- Pills, chips, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; color: var(--muted);
}
.chip svg { width: 15px; height: 15px; color: var(--brand); }

/* ==========================================================================
   Topbar + Navigation
   ========================================================================== */
.amh-topbar {
  background: var(--brand-deep); color: rgba(234, 250, 245, .88);
  font-size: .84rem; padding-block: .5rem; position: relative; z-index: 1031;
}
.amh-topbar a { color: #fff; font-weight: 600; }
.amh-topbar a:hover { color: var(--mint-2); }
.amh-topbar .social-link {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background .25s, transform .25s;
}
.amh-topbar .social-link:hover { background: var(--coral); transform: translateY(-2px); color: #fff; }
.amh-topbar svg { width: 15px; height: 15px; }
.amh-topbar__note { display: inline-flex; align-items: center; gap: .45rem; }
.amh-topbar__note span.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint-2);
  box-shadow: 0 0 0 0 rgba(168, 222, 210, .8); animation: pulseDot 2.6s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(168, 222, 210, .7); }
  70% { box-shadow: 0 0 0 9px rgba(168, 222, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 222, 210, 0); }
}

.amh-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(251, 246, 238, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s, background-color .3s;
}
.amh-nav.is-stuck { box-shadow: 0 10px 30px -22px rgba(6, 48, 45, .55); border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); }
.amh-nav__inner { min-height: var(--nav-h); display: flex; align-items: center; }

/* Logo — single line, one shared style everywhere */
.amh-logo {
  display: inline-flex; align-items: center; gap: .62rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.29rem;
  letter-spacing: -.028em; color: var(--ink); white-space: nowrap; line-height: 1;
}
.amh-logo:hover { color: var(--ink); }
.amh-logo .amh-logo__mark {
  width: 41px; height: 41px; flex: 0 0 41px; border-radius: 13px;
  background: linear-gradient(140deg, var(--brand-2), var(--brand-deep));
  display: grid; place-items: center; box-shadow: 0 10px 20px -12px rgba(11, 95, 87, .95);
  transition: transform .4s var(--ease);
}
.amh-logo:hover .amh-logo__mark { transform: rotate(-8deg) scale(1.05); }
.amh-logo .amh-logo__mark svg { width: 24px; height: 24px; color: #fff; }
.amh-logo__word { display: inline; }
.amh-logo__word em { font-style: normal; color: var(--brand); }
.amh-logo--light { color: #fff; }
.amh-logo--light .amh-logo__word em { color: var(--mint-2); }
.amh-logo--light .amh-logo__mark { background: rgba(255, 255, 255, .14); box-shadow: none; border: 1px solid rgba(255, 255, 255, .2); }

.navbar-nav .nav-link {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: #2c4b57;
  padding: .5rem .92rem !important; border-radius: 999px; position: relative;
}
.navbar-nav .nav-link:hover { color: var(--brand); background: rgba(168, 222, 210, .32); }
.navbar-nav .nav-link.active { color: var(--brand-deep); background: rgba(168, 222, 210, .5); }
.navbar-nav .nav-link.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 3px;
  width: 16px; height: 3px; border-radius: 3px; background: var(--coral);
}

.amh-nav .navbar-toggler { border: 1px solid var(--line); border-radius: 12px; padding: .45rem .55rem; background: #fff; }
.amh-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 122, 89, .35); }
.amh-nav .navbar-toggler-icon {
  background-image: none; width: 22px; height: 16px; position: relative; display: block;
}
.amh-nav .navbar-toggler-icon span {
  position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.amh-nav .navbar-toggler-icon span:nth-child(1) { top: 0; }
.amh-nav .navbar-toggler-icon span:nth-child(2) { top: 7px; }
.amh-nav .navbar-toggler-icon span:nth-child(3) { top: 14px; }
.amh-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.amh-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(2) { opacity: 0; }
.amh-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .amh-nav .navbar-collapse {
    margin-top: .7rem; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: .85rem; box-shadow: var(--shadow);
  }
  .amh-nav .navbar-nav .nav-link { padding: .62rem .8rem !important; }
  .amh-nav .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 5vw, 92px) clamp(58px, 6vw, 108px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; background: rgba(168, 222, 210, .55); top: -160px; right: -110px; }
.hero::after { width: 360px; height: 360px; background: rgba(255, 122, 89, .22); bottom: -170px; left: -120px; }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1.15rem; }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .38em; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 122, 89, .5), rgba(240, 180, 41, .45)); border-radius: 6px;
}
.hero__sub { font-size: 1.13rem; color: var(--muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero__assure { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px dashed rgba(11, 95, 87, .22); }
.hero__assure div { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--muted); max-width: 21ch; line-height: 1.45; }
.hero__assure svg { width: 19px; height: 19px; color: var(--brand); flex: 0 0 19px; margin-top: .18rem; }

.hero__media { position: relative; }
.hero__media .hero__img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; width: 100%;
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--mint);
}
.hero__blob {
  position: absolute; inset: auto -22px -28px auto; width: 62%; height: 62%; z-index: -1;
  background: radial-gradient(circle at 30% 30%, var(--mint-2), rgba(168, 222, 210, .35));
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
}
.hero__float {
  position: absolute; left: -26px; bottom: 34px; background: #fff; border-radius: 18px;
  padding: .85rem 1.05rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem;
  border: 1px solid var(--line); max-width: 260px;
}
.hero__float .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; color: var(--brand); flex: 0 0 40px; }
.hero__float .ico svg { width: 21px; height: 21px; }
.hero__float strong { font-family: var(--font-head); font-size: .92rem; display: block; line-height: 1.25; }
.hero__float small { color: var(--muted); font-size: .78rem; line-height: 1.3; display: block; }
.hero__media:hover .hero__float { animation: floatY 4.5s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 767.98px) { .hero__float { left: 8px; bottom: -18px; } }

/* ---------- Inner (sub-page) hero ---------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(120% 160% at 12% -20%, #12776a 0%, var(--brand-deep) 62%); color: #fff; padding-block: clamp(52px, 5vw, 84px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); }
.page-hero p { color: rgba(234, 250, 245, .84); max-width: 68ch; font-size: 1.06rem; }
.page-hero .eyebrow { background: rgba(255, 255, 255, .12); color: var(--mint-2); border-color: rgba(255, 255, 255, .2); }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); margin: 0 0 1rem; }
.breadcrumb-item a { color: rgba(255, 255, 255, .78); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: var(--mint-2); }

/* ---------- Gutters ---------- */
/* Bootstrap's g-4/g-5 rows set a 2.5-3rem horizontal gutter whose negative margins
   are wider than the .container inset, which pushes 12px of sideways scroll on small
   screens. Horizontal gutters are capped here; the vertical breathing room stays. */
.row.g-4, .row.g-5 { --bs-gutter-x: 1.5rem; }
@media (min-width: 1200px) { .row.g-4, .row.g-5 { --bs-gutter-x: 2rem; } }

/* ==========================================================================
   Cards — services
   ========================================================================== */
.svc-card {
  height: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.svc-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-lg); border-color: rgba(11, 95, 87, .28); }
.svc-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mint); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.07); }
.svc-card__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 48, 45, 0) 45%, rgba(6, 48, 45, .34));
  opacity: 0; transition: opacity .4s var(--ease);
}
.svc-card:hover .svc-card__media::after { opacity: 1; }
.svc-card__body { padding: 1.25rem 1.3rem 1.35rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.svc-card__title { display: flex; align-items: center; gap: .55rem; font-size: 1.14rem; margin-bottom: .5rem; }
.svc-card__title svg { width: 19px; height: 19px; color: var(--brand); flex: 0 0 19px; }
.svc-card__text { color: var(--muted); font-size: .955rem; flex: 1 1 auto; margin-bottom: 1.15rem; }
.svc-card .btn { align-self: flex-start; padding: .6rem 1.15rem; font-size: .9rem; }
.svc-card__foot { margin-top: .8rem; }

.svc-strip { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
/* The same strip sits on the dark page hero on service pages, where the items are plain text, not links. */
.svc-strip--plain li {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600;
  color: #eef7f3; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; padding: .42rem .9rem;
}
.svc-strip--plain li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 122, 89, .22);
}
.svc-strip a {
  font-size: .84rem; font-weight: 600; color: var(--brand-deep); background: rgba(168, 222, 210, .34);
  border: 1px solid rgba(11, 95, 87, .12); border-radius: 999px; padding: .3rem .8rem;
  transition: background .25s, color .25s, transform .25s;
}
.svc-strip a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ---------- Why choose us ---------- */
.feature-card {
  height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.45rem; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--mint-2) 60%, var(--coral));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.feature-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon {
  width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(145deg, rgba(168, 222, 210, .55), rgba(216, 241, 231, .9));
  color: var(--brand); border: 1px solid rgba(11, 95, 87, .1);
  transition: transform .45s var(--ease), background .45s, color .45s;
}
.feature-card:hover .feature-card__icon { transform: rotate(-6deg) scale(1.06); background: var(--brand); color: #fff; }
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .945rem; margin: 0; }

/* ---------- Process / timeline ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative; padding: 0 0 1.6rem 3.6rem;
}
.steps > li::before {
  content: ""; position: absolute; left: 0; top: .12rem;
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #fff radial-gradient(circle at 50% 50%, var(--coral) 0 6px, rgba(11,95,87,.22) 6px 100%) no-repeat center / 22px 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease);
}
.steps > li::marker { content: none; }
.steps > li:hover::before { transform: scale(1.12) rotate(8deg); }
.steps > li::after {
  content: ""; position: absolute; left: 22px; top: 46px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--mint-2), rgba(168, 222, 210, .1));
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- About split / media ---------- */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: auto; display: block; object-fit: cover; background: var(--mint); }
.media-frame--tall img { height: auto; }
.media-accent {
  position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--mint), rgba(255, 122, 89, .28));
}
/* Below the desktop grid the accent peeks out downward only, so it can never widen the page. */
@media (max-width: 991.98px) { .media-accent { inset: 14px 14px -14px 14px; } }

/* ---------- Lists with checks ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .62rem; }
.check-list li { position: relative; padding-left: 2.1rem; color: #2d4956; font-size: .985rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .34rem; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(168, 222, 210, .55);
  -webkit-mask: none;
  box-shadow: inset 0 0 0 1px rgba(11, 95, 87, .12);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: .58rem; width: 8px; height: 5px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}

.cross-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.cross-list li { position: relative; padding-left: 1.7rem; color: var(--muted); font-size: .95rem; }
.cross-list li::before {
  content: ""; position: absolute; left: 2px; top: .55rem; width: 9px; height: 9px;
  border-top: 2px solid var(--coral-deep); border-right: 2px solid var(--coral-deep); transform: rotate(45deg);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.t-card {
  height: 100%; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 1.7rem 1.5rem 1.5rem; position: relative; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.t-card__quote-mark {
  position: absolute; top: -14px; left: 22px; width: 40px; height: 40px; border-radius: 12px;
  background: var(--coral); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -12px rgba(232, 85, 47, .8);
}
.t-card__quote-mark svg { width: 19px; height: 19px; }
.t-card blockquote { margin: .9rem 0 1.2rem; font-size: 1.005rem; color: #22414e; line-height: 1.7; font-weight: 500; }
.t-card__meta { display: flex; align-items: center; gap: .8rem; border-top: 1px dashed rgba(11, 95, 87, .16); padding-top: 1rem; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(145deg, var(--brand-2), var(--brand-deep));
}
.avatar--coral { background: linear-gradient(145deg, var(--coral), var(--coral-deep)); color: #3a1508; }
.avatar--gold { background: linear-gradient(145deg, var(--gold), #d99a11); color: #3c2a02; }
.avatar--navy { background: linear-gradient(145deg, #2a6f8e, #14415a); }
.t-card__meta strong { font-family: var(--font-head); font-size: .98rem; display: block; line-height: 1.3; }
.t-card__meta span { font-size: .83rem; color: var(--muted); }
.rating { display: inline-flex; gap: 2px; color: var(--gold); }
.rating svg { width: 15px; height: 15px; }

.t-slider { padding-top: 18px; }
.t-slider .carousel-inner { padding: 6px 4px 4px; }
.t-slider [data-bs-slide] {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: var(--brand); transition: all .3s var(--ease); padding: 0;
}
.t-slider [data-bs-slide]:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.t-slider [data-bs-slide] svg { width: 18px; height: 18px; }
.carousel-indicators [data-bs-target] { background-color: var(--brand); width: 8px; height: 8px; border-radius: 50%; border: 0; opacity: .3; }
.carousel-indicators .active { opacity: 1; background-color: var(--coral); width: 22px; border-radius: 6px; }

/* ==========================================================================
   Blog
   ========================================================================== */
.post-card {
  height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mint); display: block; }
.post-card__media { position: relative; display: block; overflow: hidden; }
.post-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .7s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__cat {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .94); color: var(--brand-deep);
  font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 8px;
}
.post-card__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.post-card h3 { font-size: 1.16rem; margin-bottom: .55rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: .945rem; flex: 1 1 auto; }
.post-meta { display: flex; align-items: center; gap: .75rem; font-size: .82rem; color: var(--muted); margin-bottom: .7rem; }
.post-meta svg { width: 15px; height: 15px; color: var(--brand); }

/* Featured post (home) */
.post-feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%;
}
.post-feature .post-card__media { aspect-ratio: 16 / 11; }
.post-feature .post-card__body { padding: clamp(1.3rem, 2.2vw, 2.1rem); }
.post-feature h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); }

/* Article */
.article { max-width: 74ch; }
.article > p:first-of-type { font-size: 1.16rem; color: #2b4a57; }
.article h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem); margin: 2.4rem 0 .9rem; }
.article h3 { margin: 1.8rem 0 .6rem; font-size: 1.2rem; }
.article p, .article li { color: #33505c; }
.article a { border-bottom: 1px solid rgba(11, 95, 87, .3); }
.article ul, .article ol { padding-left: 1.15rem; }
.article li { margin-bottom: .5rem; }
.article blockquote {
  margin: 2rem 0; padding: 1.15rem 1.35rem; border-left: 4px solid var(--coral);
  background: rgba(168, 222, 210, .26); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head); font-weight: 600; color: var(--brand-deep); font-size: 1.06rem; line-height: 1.6;
}
.article__figure { border-radius: var(--radius); overflow: hidden; margin: 1.9rem 0; border: 1px solid var(--line); }
.article__figure img { width: 100%; display: block; }
.article__figure figcaption { font-size: .82rem; color: var(--muted); padding: .6rem .9rem; background: #fff; }
.callout {
  background: linear-gradient(150deg, rgba(11, 95, 87, .07), rgba(255, 122, 89, .08));
  border: 1px solid rgba(11, 95, 87, .14); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 2rem 0;
}
.callout h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.callout p { margin: 0; font-size: .96rem; color: var(--muted); }
.article-meta-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; color: var(--muted); font-size: .88rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.author-chip { display: inline-flex; align-items: center; gap: .6rem; }
.author-chip .avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: .78rem; }

.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1080; background: transparent; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--coral)); transition: width .1s linear; }

.toc { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem; box-shadow: var(--shadow-sm); }
.toc h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc ol li { counter-increment: toc; margin-bottom: .1rem; }
.toc ol li a {
  display: block; font-size: .92rem; font-weight: 600; color: #35525e; padding: .4rem .55rem; border-radius: 10px;
  position: relative; padding-left: 2rem;
}
.toc ol li a::before {
  content: ""; position: absolute; left: .55rem; top: .82rem; width: 14px; height: 3px; border-radius: 3px;
  background: var(--mint-2); transition: background .25s, width .25s;
}
.toc ol li a:hover::before, .toc ol li a.active::before { background: var(--coral); width: 20px; }
.toc ol li a:hover, .toc ol li a.active { background: rgba(168, 222, 210, .34); color: var(--brand-deep); }

.sidebar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-sm); }
.sidebar-card--dark { background: radial-gradient(120% 150% at 0% 0%, #12776a, var(--brand-deep)); color: #eafaf5; border-color: transparent; }
.sidebar-card--dark h3 { color: #fff; }
.sidebar-card--dark p { color: rgba(234, 250, 245, .82); font-size: .93rem; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.accordion { --bs-accordion-border-width: 1px; --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: none; }
.faq .accordion-item { border-radius: var(--radius) !important; overflow: hidden; margin-bottom: .8rem; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.faq .accordion-button {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink);
  background: var(--surface); padding: 1.15rem 1.3rem; border-radius: var(--radius) !important;
}
.faq .accordion-button:not(.collapsed) { background: linear-gradient(180deg, rgba(168, 222, 210, .32), rgba(168, 222, 210, .12)); color: var(--brand-deep); box-shadow: none; }
.faq .accordion-button::after { filter: none; background-image: none; content: ""; width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; }
.faq .accordion-button::after {
  background-color: rgba(11, 95, 87, .08);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 2a1 1 0 0 1 1 1v4h4a1 1 0 1 1 0 2H9v4a1 1 0 1 1-2 0V9H3a1 1 0 1 1 0-2h4V3a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center/16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 2a1 1 0 0 1 1 1v4h4a1 1 0 1 1 0 2H9v4a1 1 0 1 1-2 0V9H3a1 1 0 1 1 0-2h4V3a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center/16px 16px no-repeat;
  transition: background-color .3s, transform .35s var(--ease);
}
.faq .accordion-button:not(.collapsed)::after { background-color: var(--brand); transform: rotate(45deg); -webkit-mask-color: #fff; mask-color: #fff; }
.faq .accordion-body { padding: .2rem 1.3rem 1.25rem; color: var(--muted); font-size: .97rem; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff; isolation: isolate;
  background: radial-gradient(130% 190% at 0% 0%, #14826f 0%, var(--brand-deep) 68%);
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(80% 70% at 90% 10%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 70% at 90% 10%, #000 20%, transparent 70%);
}
.cta::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -90px; bottom: -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 89, .55), transparent 62%); z-index: -1; filter: blur(12px);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(234, 250, 245, .85); max-width: 52ch; }
.cta__inner { padding: clamp(2rem, 3.4vw, 3.4rem) clamp(1.4rem, 3vw, 3.2rem); }
.cta__list { list-style: none; margin: 1.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .7rem; }
.cta__list li { font-size: .84rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .3rem .8rem; display: inline-flex; align-items: center; gap: .4rem; }
.cta__list svg { width: 14px; height: 14px; color: var(--mint-2); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-label { font-family: var(--font-head); font-weight: 700; font-size: .84rem; letter-spacing: .02em; color: #35525e; margin-bottom: .38rem; }
.form-control, .form-select {
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: .78rem .95rem;
  font-size: .97rem; color: var(--ink); transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.form-control:hover, .form-select:hover { border-color: rgba(11, 95, 87, .3); }
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 95, 87, .12); background: #fff;
}
.form-control::placeholder { color: #9db0b8; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-check-input { border-color: rgba(11, 95, 87, .35); width: 1.15em; height: 1.15em; margin-top: .2em; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(11, 95, 87, .16); border-color: var(--mint-2); }
.form-select.is-prefilled { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 95, 87, .12); }
.prefill-note {
  margin: .5rem 0 0; font-size: .86rem; color: var(--brand); background: var(--mint);
  border: 1px dashed rgba(11, 95, 87, .3); border-radius: 12px; padding: .5rem .7rem;
}
.form-text { font-size: .82rem; color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.4vw, 2.4rem); box-shadow: var(--shadow); }
.invalid-note { display: none; font-size: .82rem; color: var(--coral-deep); font-weight: 600; margin-top: .35rem; }
.is-flagged .invalid-note { display: block; }
.is-flagged .form-control, .is-flagged .form-select { border-color: var(--coral-deep); background: rgba(255, 122, 89, .05); }

.form-status { display: none; border-radius: var(--radius); padding: 1.05rem 1.2rem; font-size: .95rem; font-weight: 600; align-items: flex-start; gap: .7rem; }
.form-status.show { display: flex; animation: popIn .45s var(--ease); }
.form-status--ok { background: rgba(168, 222, 210, .5); color: var(--brand-deep); border: 1px solid rgba(11, 95, 87, .22); }
.form-status--err { background: rgba(255, 122, 89, .16); color: #8c2f14; border: 1px solid rgba(232, 85, 47, .3); }
.form-status svg { width: 21px; height: 21px; flex: 0 0 21px; margin-top: .1rem; }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* Contact info blocks */
.info-tile { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; height: 100%; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.info-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(11, 95, 87, .25); }
.info-tile__icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(168, 222, 210, .6), rgba(216, 241, 231, .95)); color: var(--brand); border: 1px solid rgba(11, 95, 87, .1); }
.info-tile__icon svg { width: 22px; height: 22px; }
.info-tile h3 { font-size: 1rem; margin-bottom: .28rem; }
.info-tile p { margin: 0; font-size: .94rem; color: var(--muted); }
.info-tile a { font-weight: 700; }
.info-tile__foot {
  margin: 0; padding-top: .6rem; border-top: 1px dashed rgba(11, 95, 87, .16);
  font-size: .84rem; color: var(--muted);
}

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.map-frame .map-card { padding: 1.3rem 1.35rem; }
.map-frame svg.map-art { width: 100%; height: auto; display: block; }

/* Newsletter pages */
.news-shell { position: relative; }
.news-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.8rem); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.news-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--brand), var(--mint-2), var(--coral)); }
.news-benefits { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.news-benefits li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; color: #33505c; }
.news-benefits .ico { width: 34px; height: 34px; border-radius: 11px; background: rgba(168, 222, 210, .5); color: var(--brand); display: grid; place-items: center; flex: 0 0 34px; }
.news-benefits .ico svg { width: 17px; height: 17px; }
.news-benefits strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .97rem; }
.interest-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.interest-grid .form-check { flex: 1 1 auto; margin: 0; }
.interest-grid .form-check-input { display: none; }
.interest-grid .form-check-label {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-size: .88rem; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .95rem; color: var(--muted); transition: all .25s var(--ease); background: #fff;
}
.interest-grid .form-check-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(11, 95, 87, .22); transition: background .25s; }
.interest-grid .form-check-input:checked + .form-check-label { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 20px -14px rgba(11, 95, 87, .9); }
.interest-grid .form-check-input:checked + .form-check-label::before { background: var(--mint-2); }
.interest-grid .form-check-input:focus-visible + .form-check-label { outline: 3px solid var(--coral); outline-offset: 2px; }

.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .82rem; margin: 1.4rem 0; text-transform: uppercase; letter-spacing: .18em; font-family: var(--font-head); font-weight: 700; }
.divider-text::before, .divider-text::after { content: ""; height: 1px; background: var(--line); flex: 1 1 auto; }

/* ==========================================================================
   Legal documents
   ========================================================================== */
.legal { counter-reset: legalsec; }
.legal > section { padding: 1.6rem 0; border-bottom: 1px dashed rgba(11, 95, 87, .16); }
.legal > section:last-of-type { border-bottom: 0; }
.legal h2 { font-size: 1.22rem; display: flex; gap: .8rem; align-items: baseline; margin-bottom: .8rem; counter-increment: legalsec; }
.legal h2::before {
  width: 14px; height: 26px; border-radius: 6px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--coral), var(--gold));
  align-self: center;
}
.legal p, .legal li { color: #3a5560; font-size: .965rem; }
.legal ul { padding-left: 1.15rem; }
.legal li { margin-bottom: .42rem; }
.legal strong { color: var(--ink); }
.legal-note { background: rgba(168, 222, 210, .3); border-left: 4px solid var(--brand); padding: 1rem 1.2rem; border-radius: 0 14px 14px 0; font-size: .95rem; color: var(--brand-deep); }
.doc-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.doc-meta .chip { background: rgba(255, 255, 255, .7); }

/* ==========================================================================
   Footer
   ========================================================================== */
.amh-footer { background: var(--brand-deep); color: rgba(234, 250, 245, .78); padding-top: clamp(52px, 4vw, 78px); position: relative; overflow: hidden; }
.amh-footer::before {
  content: ""; position: absolute; top: -180px; right: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 89, .22), transparent 65%);
}
.amh-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 1.15rem; }
.amh-footer a { color: rgba(234, 250, 245, .78); font-size: .94rem; }
.amh-footer a:hover { color: #fff; }
.amh-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.amh-footer ul li a { display: inline-flex; align-items: center; gap: .45rem; }
.amh-footer ul li a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(168, 222, 210, .6); transition: transform .3s, background .3s; }
.amh-footer ul li a:hover::before { background: var(--coral); transform: scale(1.6); }
.amh-footer__brandcol p { font-size: .94rem; max-width: 34ch; }
.amh-footer .newsletter-inline { display: flex; gap: .5rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: .3rem .3rem .3rem 1rem; }
.amh-footer .newsletter-inline input { background: transparent; border: 0; color: #fff; font-size: .9rem; flex: 1 1 auto; min-width: 0; }
.amh-footer .newsletter-inline input::placeholder { color: rgba(234, 250, 245, .55); }
.amh-footer .newsletter-inline input:focus { outline: none; }
.amh-footer .newsletter-inline button { border: 0; border-radius: 999px; background: var(--coral); color: #2b0f05; width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; transition: transform .3s var(--ease), background .3s; }
.amh-footer .newsletter-inline button:hover { transform: translateX(3px); background: #fff; color: var(--brand-deep); }
.amh-footer .newsletter-inline button svg { width: 18px; height: 18px; }
.amh-footer__social { display: flex; gap: .55rem; margin-top: 1.2rem; }
.amh-footer__social a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: all .3s var(--ease); }
.amh-footer__social a:hover { background: var(--coral); border-color: var(--coral); color: #fff; transform: translateY(-4px); }
.amh-footer__social svg { width: 17px; height: 17px; }
.amh-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: clamp(34px, 3vw, 52px); padding-block: 1.2rem 1.6rem; font-size: .86rem; position: relative; }
.amh-footer__bar .legal-links { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.amh-disclaimer { font-size: .8rem; color: rgba(234, 250, 245, .55); line-height: 1.6; margin-top: 1rem; max-width: 110ch; }

/* ==========================================================================
   Utilities & motion
   ========================================================================== */
.to-top {
  position: fixed; right: 20px; bottom: 22px; z-index: 1040; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--brand); display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* Reveal only engages once JS has booted (html.js), so content is never hidden if scripting fails. */
.reveal { transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

.marquee { overflow: hidden; border-block: 1px solid rgba(11, 95, 87, .12); background: rgba(168, 222, 210, .22); padding-block: .8rem; }
.marquee__track { display: flex; gap: 2.6rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 700; color: var(--brand-deep); font-size: .95rem; letter-spacing: .01em; white-space: nowrap; }
.marquee__track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

.shadow-text { text-shadow: 0 12px 30px rgba(6, 48, 45, .35); }
.bg-grid {
  background-image: linear-gradient(rgba(11, 95, 87, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 95, 87, .045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.rounded-img { border-radius: var(--radius); }
.hr-fade { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(11, 95, 87, .2), transparent); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 575.98px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .amh-topbar .d-lg-none-none { display: none !important; }
  .section { padding-block: 58px; }
}

/* Print — legal documents & articles */
@media print {
  .amh-topbar, .amh-nav, .to-top, .cta, .amh-footer, .hero__actions, .read-progress, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { background: #fff !important; color: #000; }
  .page-hero h1, .page-hero p { color: #000 !important; }
  .article, .legal { max-width: none; }
  a::after { content: ""; }
}

/* The not-found page carries no image, so the hero closes up a little tighter. */
.page-hero--short { padding-block: clamp(2.75rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem); }

/* The media column is a stretched flex item, so h-100 resolves against the card's
   real height; the absolutely placed photo then fills that box from edge to edge. */
.post-feature .post-card__media { min-height: 100%; }

/* Photography sizing, declared last so it beats the frame rules above: the crop a
   page asks the CDN for defines the box. Without this the width/height attributes pin
   a shape that then cover-zooms into a torso (or fills, which stretches). Card media
   boxes keep their own absolute-fill rules, which is what they are designed for. */
.hero__media .hero__img,
.media-frame img,
.media-frame--tall img,
.article__figure img {
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
}
