/* ==========================================================================
   Helping Hands Nursing Home — shared design system
   Brand CI: heritage navy, royal blue, medical white, warm ivory, soft gold.
   Used by both the English (index.html) and Thai (home-thai.html) pages.
   ========================================================================== */

:root {
  /* Brand CI palette */
  --navy: #0b2e63;
  --blue-dark: #123f78;
  --blue: #1e5aa8;
  --blue-bright: #4d89c9;
  --blue-soft: #e8f1fb;
  --blue-softer: #f6f9fc;
  --ivory: #f8f4ea;
  --gold: #c8a45d;
  --gold-dark: #a87f2d;
  --white: #ffffff;
  --gray-50: #f6f9fc;
  --gray-100: #e8eef7;
  --gray-200: #d8e3f1;
  --gray-400: #8fa1b9;
  --gray-600: #4d6078;
  --ink: #102b55;
  --ink-soft: #465a74;
  --page-bg-image: image-set(
    url("../img/helpinghand-building-bg.webp") type("image/webp"),
    url("../img/helpinghand-building-bg.jpg") type("image/jpeg")
  );

  /* Type */
  --font-en: "Inter", "Sarabun", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-th: "Sarabun", "Noto Sans Thai", "Inter", sans-serif;
  --font-display: "Libre Baskerville", "Noto Serif Thai", serif;

  /* Shape & depth */
  --radius: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 20px rgba(11, 46, 99, 0.08);
  --shadow: 0 18px 46px rgba(11, 46, 99, 0.13);
  --shadow-lg: 0 26px 70px rgba(11, 46, 99, 0.18);
  --ring: 0 0 0 4px rgba(200, 164, 93, 0.36);

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --header-offset: 96px;
}

/* ----- Reset / base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  background: var(--blue-softer);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--blue-softer);
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../img/11111.webp") center / cover no-repeat;
  opacity: 0.18;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(246, 249, 252, 0.34);
}

/* Thai pages opt into a Thai-friendly typeface */
html[lang="th"] body {
  font-family: var(--font-th);
  line-height: 1.85;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1,
h2 {
  font-family: var(--font-display);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
}

.section--tint {
  background: rgba(241, 246, 252, 0.84);
}

.section--blue {
  background: rgba(232, 241, 251, 0.84);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--gold);
  padding: 0 0 0.35rem;
  border-radius: 0;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(11, 46, 99, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--blue-dark), var(--navy));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(29, 111, 214, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.92rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.service-nav {
  position: relative;
  z-index: 51;
  background: #183c70;
  color: #fff;
}

.service-nav__inner {
  min-height: 116px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.25rem);
  padding-top: 16px;
}

.service-nav a {
  color: #fff;
  font-size: clamp(1.04rem, 1.55vw, 1.28rem);
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.service-nav a:hover {
  color: #f1d99f;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 0;
  border-bottom: 1px solid var(--gray-100);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.brand img {
  height: 52px;
  width: auto;
  filter: none;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.15;
}

.brand__name span {
  font-family: var(--font-th);
  display: block;
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--gray-600);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--gold-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-dark);
  border: 1.5px solid var(--gray-200);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
}

.lang-switch:hover {
  border-color: var(--gold);
  background: var(--ivory);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 57, 59, 0.96) 0%, rgba(25, 78, 71, 0.78) 49%, rgba(25, 78, 71, 0.16) 100%),
    var(--hero-img, none) center / cover no-repeat;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
  max-width: 790px;
  padding-block: clamp(4rem, 11vw, 8rem);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 6vw, 4.35rem);
  letter-spacing: 0;
  margin: 0;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  background: var(--ivory);
  border: 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.6rem;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(200, 164, 93, 0.35);
}

.hero__links a {
  color: #fff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Trust strip — strength highlight cards
   ========================================================================== */
.trust {
  margin-top: clamp(-3rem, -6vw, -4rem);
  position: relative;
  z-index: 5;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  border-top: 0;
}

.trust__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.trust__item:not(:last-child) {
  border-right: 1px solid var(--gray-100);
  padding-right: 1rem;
}

.trust__item .ic {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
}

.trust__item .ic svg {
  width: 24px;
  height: 24px;
}

.trust__item strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
}

.trust__item span {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ==========================================================================
   About
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 460px;
  object-fit: cover;
  border-radius: 52% 52% 24px 24px;
  box-shadow: var(--shadow);
}

.about__badge {
  position: absolute;
  left: -18px;
  bottom: -18px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.about__badge b {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

.about__badge span {
  font-size: 0.82rem;
  opacity: 0.9;
}

.about__text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.checklist {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--blue-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6fd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 0.85rem no-repeat;
}

/* ==========================================================================
   Services — cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg) var(--radius-lg) 10px 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(200, 164, 93, 0.58);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 0.3rem;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin: 0;
  font-size: 1.22rem;
}

.card p {
  margin: 0;
  font-size: 0.97rem;
}

/* Card without image (icon-led) */
.card--plain .card__body {
  padding: 1.8rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery a {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 46, 99, 0.38));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery a:hover img {
  transform: scale(1.08);
}

.gallery a:hover::after {
  opacity: 1;
}

.gallery a.wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

/* ==========================================================================
   Videos
   ========================================================================== */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.videos video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.contact__card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.contact__list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.contact__list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact__list .ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}

.contact__list .ic svg {
  width: 22px;
  height: 22px;
}

.contact__list strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.contact__list span,
.contact__list a {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
  height: 100%;
  border: 1px solid var(--gray-100);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(2.6rem, 6vw, 4rem) 1.8rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-brand img {
  height: 54px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--gold-dark);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.site-footer__bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.mobile-call {
  display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .nav,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
  }

  .nav.open a {
    padding: 0.9rem var(--gutter);
    border-top: 1px solid var(--gray-100);
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    order: -1;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .trust__item:not(:last-child) {
    border-right: 0;
  }

}

@media (max-width: 520px) {
  .service-nav__inner {
    min-height: 72px;
    padding-top: 15px;
    gap: 1.7rem;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .service-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .service-nav a {
    font-size: 0.95rem;
  }

  body {
    padding-bottom: 72px;
  }

  .mobile-call {
    position: fixed;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    left: 12px;
    right: 12px;
    bottom: 10px;
    min-height: 58px;
    padding: 0.65rem 1rem;
    border-radius: 16px;
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 12px 34px rgba(11, 46, 99, 0.3);
  }

  .mobile-call:hover {
    color: var(--navy);
  }

  .mobile-call span {
    font-size: 0.83rem;
  }

  .mobile-call strong {
    font-size: 1.05rem;
  }

  .site-header__inner {
    gap: 0.55rem;
    min-height: 72px;
  }

  .brand {
    gap: 0.45rem;
    min-width: 0;
  }

  .brand img {
    height: 46px;
  }

  .brand__name {
    display: none;
  }

  .lang-switch {
    padding: 0.58rem 0.72rem;
  }

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

  .gallery a.wide {
    grid-column: span 2;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero {
    background-position: 62% center;
  }

  .hero h1 br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  body::before {
    transform: scale(1.08);
  }
}

/* ==========================================================================
   Thai nursing-home landing page
   Editorial, conversion-focused layout inspired by hospitality-led senior care.
   ========================================================================== */
.home-page .hero {
  min-height: min(780px, calc(100svh - 76px));
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 35, 78, 0.96) 0%, rgba(11, 46, 99, 0.86) 45%, rgba(30, 90, 168, 0.18) 100%),
    var(--hero-img, none) center 46% / cover no-repeat;
}

.home-page .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 68%, rgba(5, 27, 63, 0.44));
}

.home-page .hero__inner {
  z-index: 1;
  max-width: var(--container);
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  column-gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.hero__story {
  display: grid;
  gap: 1.45rem;
}

.home-page .hero h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 5.8vw, 5.25rem);
  line-height: 1.08;
  text-wrap: balance;
}

.home-page .hero__sub {
  max-width: 650px;
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
}

.home-page .hero__cta {
  align-items: center;
}

.home-page .hero__cta .btn-primary,
.hero__consult .btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(5, 27, 63, 0.32);
}

.home-page .hero__cta .btn-primary:hover,
.hero__consult .btn-primary:hover {
  background: #d9b96f;
  color: var(--navy);
}

.hero__phone {
  display: grid;
  color: #fff;
  line-height: 1.25;
  padding: 0.3rem 0.4rem;
}

.hero__phone:hover {
  color: var(--ivory);
}

.hero__phone span {
  font-size: 0.78rem;
  opacity: 0.82;
}

.hero__phone strong {
  font-family: var(--font-en);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.hero__consult {
  position: relative;
  padding: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  border-radius: 130px 130px 24px 24px;
  box-shadow: 0 30px 70px rgba(5, 27, 63, 0.32);
  text-align: center;
}

.hero__consult::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 1.4rem auto 1.1rem;
  background: var(--gold);
}

.hero__consult-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero__consult h2 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.hero__consult p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero__consult .btn {
  width: 100%;
  margin-top: 0.4rem;
}

.hero__consult-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--navy);
  font-weight: 600;
}

.hero__consult small {
  display: block;
  margin-top: 1.1rem;
  color: var(--gray-600);
  font-size: 0.74rem;
}

.home-page .hero__links {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.home-page .hero__links a {
  font-size: 0.9rem;
}

.home-page .trust {
  margin-top: -2.2rem;
}

.home-page .trust__grid {
  border-radius: 18px;
}

.home-page .section-head h2,
.home-page .about__text h2 {
  text-wrap: balance;
}

.home-page #about .about__grid {
  align-items: start;
}

.home-page #about .about__media {
  width: calc(100% + clamp(3rem, 7vw, 7rem));
  margin-top: clamp(2.2rem, 5vw, 4rem);
  margin-left: calc(clamp(3rem, 7vw, 7rem) * -1);
}

.home-page #about .about__media img {
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: clamp(24px, 3vw, 42px);
  box-shadow:
    0 30px 70px rgba(11, 46, 99, 0.18),
    0 8px 24px rgba(11, 46, 99, 0.1);
}

.home-page #about .about__badge {
  left: clamp(-12px, -1vw, -4px);
  bottom: clamp(18px, 3vw, 34px);
  padding: 1.15rem 1.45rem;
  border-radius: 18px;
}

.about__media .about__building-photo {
  object-position: center;
}

.home-page #activities .about__media img {
  aspect-ratio: 4 / 3;
}

@media (max-width: 860px) {
  .home-page #about .about__grid {
    grid-template-columns: 1fr;
  }

  .home-page #about .about__media {
    width: min(100%, 720px);
    margin: 0 auto 1.5rem;
  }

  .home-page #about .about__media img {
    aspect-ratio: 3 / 2;
  }

  .home-page .hero {
    min-height: auto;
  }

  .home-page .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 4rem 6rem;
  }

  .hero__consult {
    width: min(100%, 520px);
    border-radius: 90px 90px 22px 22px;
    margin-top: 1rem;
  }

  .home-page .hero__links {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --header-offset: 84px;
  }

  .home-page .hero {
    background:
      linear-gradient(180deg, rgba(8, 37, 81, 0.82), rgba(7, 35, 78, 0.97)),
      var(--hero-img, none) 62% center / cover no-repeat;
  }

  .home-page #about .about__media img {
    border-radius: 22px;
  }

  .home-page #about .about__badge {
    left: 12px;
    bottom: -20px;
    padding: 0.85rem 1.1rem;
  }

  .home-page .hero__inner {
    padding-block: 3.2rem 5rem;
  }

  .home-page .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

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

  .hero__consult {
    border-radius: 72px 72px 18px 18px;
    padding: 1.5rem 1.2rem;
  }

  .home-page .hero__links {
    display: grid;
    gap: 0.55rem;
  }
}

/* ==========================================================================
   Sub-page helpers (Nursing School & Home Care)
   ========================================================================== */

/* Accreditation band — license logos + statement */
.accredit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.8rem;
  justify-content: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.4rem, 4vw, 2.4rem);
}

.accredit img {
  height: 64px;
  width: auto;
}

.accredit p {
  margin: 0;
  max-width: 520px;
  font-weight: 500;
  color: var(--ink);
}

/* Pricing card */
.price-card .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin: 0.2rem 0 0.6rem;
}

.price-card ul {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.price-card li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
}

.price-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Numbered step cards (how to apply) */
.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

/* Pill list (intake rounds) */
.pills {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pills li {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}
