:root {
  /* Logo wordmark + palette */
  --brand-logo: #57bad2;
  --brand-logo-dark: #479eb8;
  --brand-teal: #70c5ce;
  --primary: #70c5ce;
  --primary-rgb: 112, 197, 206;
  --primary-dark: #4a9ea8;
  --secondary: #5abfb5;
  --secondary-rgb: 90, 191, 181;
  --accent: #f4a261;
  --dark: #1a1a2e;
  --light: #f5fbfc;
  --white: #ffffff;
  --gradient-brand: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--secondary) 55%,
    var(--accent) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    #57bad2 0%,
    #5abfb5 45%,
    #479eb8 100%
  );
  --shadow-soft: 0 12px 32px rgba(26, 26, 46, 0.08);
  --shadow-card: 0 18px 40px rgba(26, 26, 46, 0.1);
  --shadow-lift: 0 22px 48px rgba(26, 26, 46, 0.14);

  --font-heading: "Playfair Display", serif;
  --font-body: "DM Sans", sans-serif;

  /* Theme-aware surfaces — light values here, redefined under
     [data-theme="dark"] below. Existing brand tokens (--dark, --white,
     --light) stay fixed constants since they're also used as literal
     colors (e.g. dark accent cards); these new tokens are what actually
     switch with the theme toggle. */
  --page-bg: var(--light);
  --surface: var(--white);
  --surface-alt: #f6f9fb;
  --text-primary: var(--dark);
  --text-secondary: #4a5068;
  --text-muted: #7a8296;
  --border-soft: rgba(var(--primary-rgb), 0.14);
  --input-bg: rgba(var(--primary-rgb), 0.07);
}

:root[data-theme="dark"] {
  --page-bg: #14141f;
  --surface: #1c1c2c;
  --surface-alt: #20202f;
  --text-primary: #f1f2f6;
  --text-secondary: #b7bacb;
  --text-muted: #9295a8;
  --border-soft: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.32);
  --shadow-lift: 0 22px 48px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg: #14141f;
    --surface: #1c1c2c;
    --surface-alt: #20202f;
    --text-primary: #f1f2f6;
    --text-secondary: #b7bacb;
    --text-muted: #9295a8;
    --border-soft: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.06);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.28);
    --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.32);
    --shadow-lift: 0 22px 48px rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb), 0.07), transparent 42%),
    radial-gradient(circle at 100% 8%, rgba(249, 115, 22, 0.05), transparent 38%),
    var(--page-bg);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.45s ease, background-color 0.2s ease, color 0.2s ease;
}

body.page-ready {
  opacity: 1;
}

.img-fade-ready img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.img-fade-ready img[loading="lazy"].is-loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .img-fade-ready img[loading="lazy"] {
    opacity: 1;
    transition: none;
  }
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.9);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

/* Shared layout */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

main {
  min-height: 55vh;
}

.home-page {
  overflow: hidden;
  overflow-x: clip;
}

/* Header + navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: transparent;
}

/* No blur once scrolled, so page content shows sharp behind the header —
   give the nav text/logo their own contrast (a soft white halo) instead,
   since they can no longer rely on a frosted backdrop for legibility. */
.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .nav-link {
  text-shadow: 0 1px 3px var(--surface), 0 1px 14px var(--surface);
}

.site-header.is-scrolled .brand-logo-img {
  filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.85));
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  max-width: min(100%, 320px);
}

.brand-name {
  font-size: clamp(0.95rem, 0.85rem + 0.45vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--brand-logo);
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  color: var(--brand-logo-dark);
}

.brand-logo-img {
  display: block;
  flex-shrink: 0;
  height: clamp(2.9rem, 2.5rem + 1.5vw, 3.9rem);
  width: auto;
  max-width: clamp(3.1rem, 2.5rem + 2.5vw, 4.1rem);
  object-fit: contain;
}

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

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

.nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface-alt);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(var(--primary-rgb), 0.14);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle-icon--moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-icon--sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-icon--moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-icon--sun {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle-icon--moon {
    display: block;
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--gradient-hero);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.38);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 2.3rem;
  height: 2.3rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle-bar,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  width: 1.35rem;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle-bar {
  position: relative;
}

.menu-toggle::before {
  transform: translateY(-6px);
}

.menu-toggle::after {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--primary-rgb), 0.14), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.1), transparent 40%),
    var(--dark);
  color: rgba(248, 249, 255, 0.9);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.75rem 0 2rem;
}

.footer-title {
  margin-bottom: 0.85rem;
  font-family: var(--font-heading);
  color: var(--white);
}

.footer-text,
.footer-link,
.footer-contact-item {
  color: rgba(248, 249, 255, 0.88);
}

.footer-links,
.footer-contact-list {
  display: grid;
  gap: 0.55rem;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--secondary);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  background-color: var(--secondary);
  transform: translateY(-1px);
}

.social-icon {
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.95rem;
}

/* Home page */
.home-section {
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem);
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 4px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: var(--gradient-brand);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
}

.hero-eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

.section-lede {
  margin-top: -0.35rem;
  margin-bottom: 1.5rem;
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  line-height: 1.55;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 7rem 0 5rem;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 10% 20%, rgba(244, 162, 97, 0.12) 0%, transparent 46%),
    radial-gradient(circle at 88% 16%, rgba(var(--primary-rgb), 0.18) 0%, transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #f0fafb 55%, #f5fbfc 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(245, 251, 252, 0.95));
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%231a1a2e' fill-opacity='0.12'%3E%3Ccircle cx='8' cy='8' r='1'/%3E%3Ccircle cx='24' cy='36' r='1'/%3E%3Ccircle cx='44' cy='12' r='1'/%3E%3Ccircle cx='68' cy='54' r='1'/%3E%3Ccircle cx='92' cy='18' r='1'/%3E%3Ccircle cx='112' cy='64' r='1'/%3E%3Ccircle cx='16' cy='88' r='1'/%3E%3Ccircle cx='56' cy='94' r='1'/%3E%3Ccircle cx='88' cy='102' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem);
  font-weight: 700;
  line-height: 1.06;
  max-width: 14ch;
}

.hero-copy h1 .text-gradient {
  display: block;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--accent);
}

.btn-primary--accent {
  background-color: var(--accent);
  box-shadow: 0 10px 22px rgba(244, 162, 97, 0.34);
}

.btn-primary--accent:hover,
.btn-primary--accent:focus-visible {
  box-shadow: 0 12px 26px rgba(244, 162, 97, 0.4);
}

.hero-subtext {
  margin-top: 1.2rem;
  max-width: 48ch;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--text-secondary);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-outline,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline {
  border: 1.4px solid var(--primary);
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.06);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.1);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-2px);
  background-color: rgba(var(--primary-rgb), 0.14);
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.18);
}

.hero .btn-outline:focus-visible {
  outline-color: rgba(var(--primary-rgb), 0.95);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.36);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.42), 0 0 0 3px rgba(255, 255, 255, 0.95);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.34);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary-large,
.btn-whatsapp-large {
  padding: 0.95rem 1.5rem;
  font-size: 1.02rem;
}

.form-actions-dual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-success {
  color: #0d7a4f;
  font-weight: 600;
  margin: 0;
}

.form-success[hidden] {
  display: none;
}

.form-success.is-shown,
.form-error.is-shown {
  animation: formFeedbackIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes formFeedbackIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  min-height: min(68vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-backdrop {
  position: absolute;
  z-index: 1;
  width: min(400px, 82vw);
  aspect-ratio: 9 / 11;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.28), rgba(var(--primary-rgb), 0.3));
  transform: translate(1.5rem, 1.5rem);
}

.hero-photo-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(420px, 88vw);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 3px solid rgba(255, 255, 255, 0.85);
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  display: block;
}

.hero-photo-frame-glow {
  position: absolute;
  inset: -4px;
  border-radius: 32px;
  z-index: -1;
  background: linear-gradient(
    125deg,
    rgba(var(--primary-rgb), 0.45),
    rgba(249, 115, 22, 0.2),
    rgba(192, 132, 252, 0.35)
  );
  filter: blur(22px);
  opacity: 0.75;
}

.hero-visual .floating-orb {
  z-index: 1;
}

.hero-visual .orb-one {
  right: 2%;
  top: 2%;
}

.hero-visual .orb-two {
  left: 0;
  bottom: 8%;
}

.hero-visual .orb-three {
  right: 8%;
  bottom: 2%;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.orb-one {
  width: 280px;
  height: 280px;
  right: 12%;
  top: 8%;
  background: rgba(var(--primary-rgb), 0.28);
}

.orb-two {
  width: 220px;
  height: 220px;
  left: 8%;
  bottom: 5%;
  background: rgba(249, 115, 22, 0.22);
}

.orb-three {
  width: 140px;
  height: 140px;
  right: 2%;
  bottom: 8%;
  background: rgba(192, 132, 252, 0.22);
}

.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  padding-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  box-shadow: var(--shadow-card);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 0;
  width: 1px;
  height: 76%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--primary-rgb), 0.28),
    transparent
  );
}

.stat-item h3 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item p {
  margin-top: 0.3rem;
  color: var(--text-secondary);
}

.services-preview {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), 0.08), transparent 40%),
    linear-gradient(180deg, #fafcfd 0%, #eef8fa 100%);
}

.services-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 18px;
  background-color: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-media {
  aspect-ratio: 12 / 7;
  overflow: hidden;
  background: #eef6f8;
}

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

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 1.15rem 1.3rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--secondary-rgb), 0.55);
  box-shadow: var(--shadow-lift);
}

.service-icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--primary);
  padding: 0.45rem;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.1);
  box-sizing: content-box;
}

.service-card h3 {
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-secondary);
}

/* Homepage services bento grid */
.bento-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.bento-card {
  border-radius: 22px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-6px);
}

.bento-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.1rem;
}

.bento-card-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.bento-card p {
  color: var(--text-secondary);
  max-width: 34ch;
}

.bento-card--feature {
  grid-column: span 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: var(--shadow-soft);
}

.bento-card--feature .bento-card-icon {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-dark);
}

.bento-card--feature-media {
  flex-shrink: 0;
  width: 30%;
  max-width: 130px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
}

.bento-card--feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card--accent {
  grid-column: span 5;
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.bento-card--accent .bento-card-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent);
}

.bento-card--accent p {
  color: rgba(255, 255, 255, 0.72);
}

.bento-card--light {
  grid-column: span 5;
  background: rgba(244, 162, 97, 0.14);
  border: 1px solid rgba(244, 162, 97, 0.25);
}

.bento-card--light .bento-card-icon {
  background: rgba(244, 162, 97, 0.22);
  color: #c9691f;
}

.bento-card--image {
  grid-column: span 7;
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.bento-card--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.05) 0%, rgba(26, 26, 46, 0.78) 100%);
}

.bento-card--image .bento-card-inner {
  position: relative;
  z-index: 1;
}

.bento-card--image h3 {
  margin-bottom: 0.25rem;
}

.bento-card--image p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 40ch;
}

.bento-card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.bento-card--accent .bento-card-link {
  color: var(--accent);
}

@media (max-width: 860px) {
  .bento-card--feature,
  .bento-card--accent,
  .bento-card--light,
  .bento-card--image {
    grid-column: span 12;
  }

  .bento-card--feature {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-card--feature-media {
    width: 45%;
    max-width: 160px;
    aspect-ratio: 4 / 5;
  }
}

.home-gallery-preview {
  background-color: var(--surface);
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.gallery-preview-tile {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 10px 26px rgba(26, 26, 46, 0.08);
}

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

.gallery-preview-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 46, 0.62) 100%);
  pointer-events: none;
}

.gallery-preview-label {
  position: absolute;
  left: 0.85rem;
  bottom: 0.7rem;
  z-index: 1;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-preview-tile:hover img,
.gallery-preview-tile:focus-visible img {
  transform: scale(1.05);
}

.gallery-preview-tile:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.9);
  outline-offset: 3px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  transition: color 0.2s ease, gap 0.2s ease;
}

.section-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--secondary);
  gap: 0.55rem;
}

.section-link:hover::after,
.section-link:focus-visible::after {
  transform: translateX(3px);
}

.home-team {
  background:
    radial-gradient(circle at 0% 100%, rgba(var(--secondary-rgb), 0.1), transparent 45%),
    var(--light);
}

.home-team-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.home-team-header {
  max-width: 52ch;
  margin-bottom: 2rem;
}

.home-team-header .section-title {
  margin-bottom: 0.65rem;
}

.home-team-header .section-lede {
  margin-bottom: 0;
}

.home-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), 0.28);
  box-shadow: var(--shadow-card);
}

.home-team-photo {
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef6f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-team-photo img {
  width: 100%;
  height: 100%;
  /* contain (not cover) so the whole portrait — face included — is always
     visible, regardless of each source photo's own aspect ratio, instead
     of being cropped to fill a fixed frame. */
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s ease;
}

.home-team-card:hover .home-team-photo img {
  transform: scale(1.04);
}

.home-team-card--no-photo {
  background: linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
}

.home-team-card--no-photo .home-team-text {
  justify-content: center;
  padding: 1.75rem 1.15rem 1.5rem;
  text-align: center;
}

.home-team-card--no-photo .home-team-bio {
  flex-grow: 0;
}

.home-team-card--no-photo .home-team-name {
  font-size: 1.15rem;
}

.home-team-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1.15rem 1.2rem;
  text-align: left;
}

.home-team-name {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--text-primary);
  font-weight: 700;
}

.home-team-role {
  margin: 0;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.home-team-bio {
  margin: 0.25rem 0 0;
  flex-grow: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.home-team-footer {
  margin-top: 1.75rem;
}

.section-link--centered {
  display: inline-block;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.why-copy p {
  color: var(--text-secondary);
  max-width: 52ch;
}

.feature-list {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 6px 16px rgba(26, 26, 46, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 26, 46, 0.08);
}

.why-choose-us {
  background:
    radial-gradient(circle at 100% 50%, rgba(var(--primary-rgb), 0.08), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
}

.feature-icon-chip {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--secondary-rgb), 0.16);
}

.check-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--primary-dark);
}

.why-visual {
  min-height: 380px;
  position: relative;
}

.why-collage {
  position: relative;
  min-height: 400px;
  max-width: 540px;
  margin-inline: auto;
}

.why-img {
  position: absolute;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(26, 26, 46, 0.14);
  border: 3px solid var(--white);
}

.why-img-1 {
  width: 56%;
  left: 0;
  top: 4%;
  z-index: 3;
  aspect-ratio: 4 / 5;
}

.why-img-2 {
  width: 50%;
  right: 0;
  top: 12%;
  z-index: 2;
  aspect-ratio: 4 / 5;
}

.why-img-3 {
  width: 44%;
  left: 22%;
  bottom: 0;
  z-index: 4;
  aspect-ratio: 3 / 4;
}

.shape {
  position: absolute;
  border-radius: 28px;
}

.shape-a {
  width: 70%;
  height: 62%;
  top: 4%;
  left: 7%;
  background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.2), rgba(var(--secondary-rgb), 0.25));
}

.shape-b {
  width: 45%;
  height: 45%;
  bottom: 12%;
  right: 8%;
  background: linear-gradient(145deg, rgba(244, 162, 97, 0.3), rgba(var(--secondary-rgb), 0.2));
}

.shape-c {
  width: 28%;
  height: 28%;
  top: 14%;
  right: 10%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.testimonials {
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.1), transparent 50%),
    #f0fafb;
}

.testimonial-track-wrapper {
  position: relative;
  margin-top: 1.5rem;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.testimonial-arrow-prev {
  left: -0.5rem;
}

.testimonial-arrow-next {
  right: -0.5rem;
}

.testimonial-track-wrapper.is-single .testimonial-arrow {
  display: none;
}

.testimonial-dots {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(var(--primary-rgb), 0.25);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.testimonial-dot:hover {
  background: rgba(var(--primary-rgb), 0.5);
}

.testimonial-dot.is-active {
  background: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .testimonial-arrow {
    display: none;
  }
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 2rem 2rem 2rem 2.35rem;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  position: relative;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--gradient-brand);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.65rem;
  border: 2px solid rgba(var(--primary-rgb), 0.22);
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 0.85;
  margin-bottom: 0.35rem;
  color: var(--secondary);
}

.testimonial-card p {
  color: #3f455c;
  max-width: 64ch;
}

.stars {
  margin-top: 1rem;
  color: #f6b200;
  letter-spacing: 0.12em;
}

.testimonial-card h3 {
  margin-top: 0.45rem;
  font-size: 1rem;
  color: #28324b;
}

/* Homepage testimonials — static 3-up grid */
.testimonial-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial-grid .testimonial-card {
  flex: initial;
  padding: 1.75rem;
}

.testimonial-grid .testimonial-avatar-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.testimonial-grid .testimonial-avatar-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

@media (max-width: 860px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.whatsapp-banner {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.whatsapp-banner-content {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 3rem 3.25rem;
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(130deg, #f4a261 0%, #f38967 48%, #e76f51 100%);
}

.whatsapp-banner-content::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='40' cy='30' r='2'/%3E%3Ccircle cx='70' cy='12' r='2'/%3E%3Ccircle cx='24' cy='58' r='2'/%3E%3Ccircle cx='58' cy='62' r='2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.whatsapp-banner-text {
  position: relative;
  z-index: 1;
  max-width: 34ch;
}

.whatsapp-banner-content h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
}

.whatsapp-banner-text p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
}

.whatsapp-banner-content .btn-whatsapp-large {
  position: relative;
  z-index: 1;
  margin-top: 0;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .whatsapp-banner-content {
    padding: 2.25rem 1.75rem;
    text-align: center;
    justify-content: center;
  }
}

.btn-whatsapp-large {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  padding: 0.9rem 1.8rem;
}

/* Services page */
.services-page {
  padding-bottom: 2rem;
}

.page-hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(var(--secondary-rgb), 0.22), transparent 48%),
    radial-gradient(circle at 85% 25%, rgba(var(--primary-rgb), 0.18), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f0fafb 100%);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.45;
}

.page-hero-content h1 {
  font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.5rem);
  color: var(--text-primary);
}

.page-hero-content p {
  margin-top: 0.75rem;
  max-width: 64ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.page-hero.page-hero--banner {
  position: relative;
  padding: 5.5rem 0 4.25rem;
  min-height: 42vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
  background: #f0fafb;
  background-size: cover;
  background-position: center;
}

.page-hero.page-hero--banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.85) 45%,
    rgba(240, 250, 251, 0.35) 100%
  );
}

.page-hero.page-hero--banner .container {
  position: relative;
  z-index: 1;
}

.page-hero.page-hero--banner.page-hero--services {
  background-image: url("../assets/images/ai/banner-services.e53b2bbc2691.png");
}

.page-hero.page-hero--banner.page-hero--gallery {
  background-image: url("../assets/images/ai/banner-gallery.fa85fd2b2914.png");
}

.page-hero.page-hero--banner.page-hero--about {
  background-image: url("../assets/images/ai/banner-about.807d623d15b2.png");
}

.page-hero.page-hero--banner.page-hero--contact {
  background-image: url("../assets/images/ai/reception.b183d9472048.png");
}

.page-hero.page-hero--banner.page-hero--blog {
  background-image: url("../assets/images/ai/therapy-speech-flashcards.7c2bef86041c.png");
}

/* Login/signup: a much shorter banner so the auth card sits above the
   fold instead of the tall marketing-page hero pushing it down. */
.page-hero.page-hero--banner.page-hero--compact {
  min-height: 0;
  padding: 1.25rem 0 1rem;
}

.page-hero--compact .page-hero-content h1 {
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
}

.page-hero--compact .page-hero-content p {
  margin-top: 0.3rem;
  font-size: 0.88rem;
}

/* Blog */
.blog-page {
  padding-bottom: 4rem;
}

.blog-section {
  padding: 3.5rem 0;
}

.blog-section.alt {
  background: rgba(var(--primary-rgb), 0.06);
}

.blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 14px 32px rgba(26, 26, 46, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-featured:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-rgb), 0.28);
  box-shadow: 0 18px 40px rgba(26, 26, 46, 0.1);
}

.blog-featured-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef6f8;
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-featured-copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin: 0.65rem 0 0.75rem;
}

.blog-featured-copy p {
  color: var(--text-secondary);
  max-width: 55ch;
}

.blog-featured-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), 0.28);
  box-shadow: var(--shadow-card);
}

.blog-card.is-hidden {
  display: none;
}

.blog-card-media {
  aspect-ratio: 16 / 10;
  background: #eef6f8;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin: 0.55rem 0 0.5rem;
  line-height: 1.35;
}

.blog-card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.blog-card-meta {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #6b7289;
}

.blog-tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary-dark);
}

.blog-tag--behaviour {
  background: rgba(139, 92, 246, 0.14);
  color: #6d28d9;
}

.blog-tag--ot {
  background: rgba(var(--secondary-rgb), 0.16);
  color: #0f766e;
}

.blog-tag--wellbeing {
  background: rgba(244, 162, 97, 0.18);
  color: #c2410c;
}

.blog-tag--parent {
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
}

.home-blog-preview {
  background:
    radial-gradient(circle at 0% 100%, rgba(var(--primary-rgb), 0.06), transparent 42%),
    var(--white);
}

.seo-intro {
  background: var(--surface);
}

.seo-intro-inner {
  max-width: 820px;
}

.seo-intro-inner .section-lede {
  margin-bottom: 1.25rem;
}

.seo-intro-grid {
  display: grid;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
  padding: 1.75rem 2rem;
  border-radius: 22px;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.seo-intro-grid a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-intro-grid strong {
  color: var(--text-primary);
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-post-page {
  padding: 2.5rem 0 4.5rem;
}

.blog-article-inner {
  max-width: 760px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
}

.blog-back-link:hover {
  color: var(--brand-logo-dark);
}

.blog-article-header {
  margin-bottom: 1.75rem;
}

.blog-article-header h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin: 0.75rem 0 0.65rem;
}

.blog-article-meta {
  color: #6b7289;
  font-size: 0.92rem;
}

.blog-article-hero {
  margin-bottom: 2rem;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef6f8;
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.08);
}

.blog-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article-content {
  color: #3f455c;
  font-size: 1.05rem;
  line-height: 1.75;
}

.blog-article-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.blog-article-content p {
  margin-bottom: 1.1rem;
}

.blog-article-content ul,
.blog-article-content ol {
  margin: 0 0 1.25rem 1.25rem;
}

.blog-article-content li {
  margin-bottom: 0.45rem;
}

.blog-article-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--primary-rgb), 0.14);
}

.blog-related {
  margin-top: 2rem;
}

.blog-related h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.blog-related-link {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.blog-related-link:hover {
  background: rgba(var(--primary-rgb), 0.14);
  border-color: rgba(var(--primary-rgb), 0.24);
}

.blog-cta-inline {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.14));
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.blog-cta-inline h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.blog-cta-inline p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.services-detail {
  padding: 4rem 0;
}

.service-zigzag {
  display: grid;
  gap: 1.35rem;
}

.service-detail-card {
  --accent-color: var(--secondary);
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 12px 26px rgba(26, 26, 46, 0.06);
}

.service-detail-photo-wrap {
  position: relative;
  aspect-ratio: 21 / 9;
  max-height: 280px;
  background: #eef6f8;
}

.service-detail-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.7rem;
}

.service-detail-card:nth-child(even) {
  margin-left: auto;
}

.service-detail-card:nth-child(odd) {
  margin-right: auto;
}

.service-detail-card:nth-child(even),
.service-detail-card:nth-child(odd) {
  width: min(980px, 100%);
}

.service-detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-color) 14%, white);
  color: var(--accent-color);
  border: 1px solid color-mix(in srgb, var(--accent-color) 26%, white);
}

.service-detail-icon svg {
  width: 34px;
  height: 34px;
}

.service-detail-body h2 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.service-detail-body p {
  color: var(--text-secondary);
  max-width: 75ch;
}

.service-detail-body h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #28324b;
}

.treat-list {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.35rem;
  color: #3f455c;
}

.treat-list li {
  position: relative;
  padding-left: 1.05rem;
}

.treat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-color);
}

.service-book-btn {
  margin-top: 0;
}

.service-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.service-book-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border: none;
}

.service-book-actions .btn-primary:hover {
  filter: brightness(1.05);
}

.service-detail-card:hover {
  border-color: color-mix(in srgb, var(--accent-color) 55%, white);
  box-shadow: 0 16px 34px rgba(26, 26, 46, 0.09);
}

.accent-speech { --accent-color: var(--primary); }
.accent-ot { --accent-color: var(--secondary); }
.accent-behaviour { --accent-color: #8b5cf6; }
.accent-counselling { --accent-color: var(--accent); }
.accent-voice { --accent-color: #ef4444; }
.accent-special-ed { --accent-color: #14b8a6; }

.services-help {
  padding: 0 0 4.5rem;
}

.services-help-card {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.14));
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.services-help-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.08);
}

.services-help-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-help-copy p {
  margin-top: 0.4rem;
  color: var(--text-secondary);
}

.services-help-card > .services-help-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
}

/* Products page */
.products-section {
  padding: 3rem 0 4.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.product-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.product-card-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.product-card-desc {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-grow: 1;
}

.product-card-price {
  margin: 1rem 0 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-card-cta {
  align-self: stretch;
  justify-content: center;
}

.products-note {
  margin: 2.75rem auto 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 58ch;
}

/* Booking review & confirmation */
.order-summary-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .order-summary-grid {
    grid-template-columns: 1fr;
  }
}

.order-summary-card {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 14px 30px rgba(26, 26, 46, 0.06);
  padding: 1.75rem;
}

.order-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.25rem 0 1.5rem;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.order-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-summary-label {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.order-summary-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.order-summary-message {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(var(--primary-rgb), 0.06);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.order-summary-service {
  border-radius: 16px;
  background: rgba(var(--accent-rgb, 244, 162, 97), 0.1);
  border: 1px solid rgba(var(--accent-rgb, 244, 162, 97), 0.25);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.order-summary-service-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.order-summary-service-price {
  margin-top: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.order-summary-service-amount {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.order-summary-service-unit {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.order-summary-note-card {
  border-radius: 18px;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  padding: 1.5rem;
}

.order-summary-note-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.order-summary-note-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.order-summary-note-card p:last-child {
  margin-bottom: 0;
}

.order-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.order-summary-edit-link {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.92rem;
  align-self: center;
}

/* Booking thank-you page */
.thanks-card {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 14px 30px rgba(26, 26, 46, 0.06);
  padding: 2.5rem 2rem;
}

.thanks-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.thanks-icon svg {
  width: 1.9rem;
  height: 1.9rem;
}

.thanks-card h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
}

.thanks-card p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
}

.thanks-summary {
  margin-top: 1.5rem;
  text-align: left;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.06);
  padding: 1.25rem 1.5rem;
}

.thanks-summary .order-summary-row:last-child {
  border-bottom: none;
}

.thanks-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Gallery page */
.gallery-page {
  padding-bottom: 2rem;
}

.gallery-controls {
  padding: 1.5rem 0 0.5rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  background: var(--surface);
  color: #2b3550;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--secondary-rgb), 0.6);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(var(--secondary-rgb), 0.95));
  color: var(--white);
  border-color: transparent;
}

.gallery-grid-section {
  padding: 2rem 0 3.5rem;
}

.masonry {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  position: relative;
  margin: 0 0 1rem;
  border-radius: 18px;
  overflow: hidden;
  background: #eef6f8;
  break-inside: avoid;
  cursor: pointer;
  transform: translateZ(0);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.9rem;
  color: var(--white);
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.65) 100%);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.22);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.is-hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.lightbox.is-open {
  display: grid;
  place-items: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.78);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  max-height: 86vh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.7rem;
}

.lightbox-media {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-media img {
  width: 100%;
  height: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  color: rgba(248, 249, 255, 0.95);
  font-weight: 600;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  top: 0.9rem;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  right: 0.9rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: -0.2rem;
}

.lightbox-next {
  right: -0.2rem;
}

.lightbox-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.no-scroll {
  overflow: hidden;
}

/* About page */
.about-page {
  padding-bottom: 2rem;
}

.about-section {
  padding: 4.25rem 0;
  background: var(--surface);
}

.about-section.alt {
  background: var(--light);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.story-copy p {
  margin-top: 0.85rem;
  color: var(--text-secondary);
  max-width: 58ch;
}

.story-image {
  position: relative;
}

.story-image::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.24), rgba(var(--primary-rgb), 0.26));
  transform: translate(-1rem, 1rem);
}

.story-image img {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 18px 36px rgba(26, 26, 46, 0.08);
}

.meet-director {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), 0.1), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(var(--secondary-rgb), 0.1), transparent 50%),
    var(--white);
}

.meet-director .badge-row {
  justify-content: flex-start;
  margin: 1.1rem 0 1.5rem;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.mv-card {
  padding: 1.6rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 14px 28px rgba(26, 26, 46, 0.06);
}

.mv-card h3 {
  margin: 0.6rem 0 0.45rem;
}

.mv-card p {
  color: var(--text-secondary);
}

.mv-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--secondary) 16%, white);
  color: var(--secondary);
}

.mv-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.team-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.team-card {
  perspective: 1200px;
  border-radius: 18px;
}

.team-card:focus-visible {
  outline: 3px solid rgba(var(--secondary-rgb), 0.9);
  outline-offset: 4px;
}

.team-inner {
  position: relative;
  min-height: 420px;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 0.65s ease;
}

.team-card:hover .team-inner,
.team-card:focus-within .team-inner {
  transform: rotateY(180deg);
}

.team-front,
.team-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  background: var(--surface);
  box-shadow: 0 14px 28px rgba(26, 26, 46, 0.07);
}

.team-front img {
  width: 100%;
  height: 220px;
  background: #eef6f8;
  /* contain (not cover) so the whole portrait — face included — is always
     visible, regardless of each source photo's own aspect ratio, instead
     of being cropped to fill a fixed frame. */
  object-fit: contain;
  object-position: center;
}

.team-card--no-photo .team-inner {
  min-height: 280px;
}

.team-card--no-photo .team-front {
  display: flex;
  align-items: center;
}

.team-meta--solo {
  width: 100%;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  text-align: center;
}

.team-meta {
  padding: 1rem 1.1rem 1.2rem;
}

.team-title {
  font-weight: 700;
  color: var(--primary);
  margin: 0.2rem 0 0.45rem;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.team-back {
  transform: rotateY(180deg);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(160deg, #fafcfd, #eef6f8);
}

.team-links {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.team-link {
  font-weight: 800;
  color: var(--primary);
}

.team-link:hover,
.team-link:focus-visible {
  color: var(--secondary);
}

@media (hover: none) {
  .team-inner {
    transition: transform 0.45s ease, box-shadow 0.25s ease;
  }

  .team-card:active .team-inner {
    transform: rotateY(180deg);
    box-shadow: 0 18px 34px rgba(26, 26, 46, 0.12);
  }
}

.badge-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.badge {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #2b3550;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
}

.about-cta {
  padding-bottom: 4rem;
}

.about-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.14));
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.about-cta-card p {
  margin-top: 0.35rem;
  color: var(--text-secondary);
}

/* Booking page */
.booking-page {
  padding-bottom: 2rem;
}

.booking-hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  min-height: 38vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
  background: #f0fafb url("../assets/images/ai/banner-booking.169da9973842.png") center / cover no-repeat;
}

.booking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.84) 48%,
    rgba(240, 250, 251, 0.45) 100%
  );
}

.booking-hero .container {
  position: relative;
  z-index: 1;
}

.booking-hero-content h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem);
}

.booking-hero-content p {
  margin-top: 0.75rem;
  max-width: 70ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.booking-steps {
  padding: 1.5rem 0 0.75rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.step {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.step-dot {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  color: var(--primary);
  background: color-mix(in srgb, var(--secondary) 14%, white);
  border: 1px solid color-mix(in srgb, var(--secondary) 26%, white);
}

.step-label {
  font-weight: 700;
  color: #2b3550;
  font-size: 0.95rem;
}

.step-line {
  height: 2px;
  width: min(120px, 12vw);
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.25), rgba(var(--secondary-rgb), 0.45));
  border-radius: 999px;
}

.quick-slots {
  padding: 1.5rem 0 0;
}

.quick-slots-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.quick-slots-loading,
.quick-slots-empty {
  margin: 0;
}

.quick-slots-group {
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 24px rgba(26, 26, 46, 0.05);
}

.quick-slots-service {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quick-slots-service .muted {
  font-weight: 500;
  font-size: 0.88rem;
}

.quick-slots-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.quick-slot-chip {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--secondary) 10%, white);
  border: 1px solid color-mix(in srgb, var(--secondary) 24%, white);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.quick-slot-chip:hover,
.quick-slot-chip:focus-visible {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.22);
}

.booking-content {
  padding: 2.25rem 0 4.25rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.25rem;
  align-items: start;
}

.booking-card {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 30px rgba(26, 26, 46, 0.06);
  padding: 1.75rem;
}

/* Screening tool */
.screening-tool {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), 0.08), transparent 40%),
    linear-gradient(180deg, #fafcfd 0%, #eef8fa 100%);
}

.screening-widget {
  margin-top: 1.75rem;
  padding: 2rem;
  overflow: hidden;
}

.screening-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.screening-stepper-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.screening-stepper-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-dark);
  border: 1.4px solid rgba(var(--primary-rgb), 0.25);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.screening-stepper-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8891a8;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.screening-stepper-line {
  flex: 1;
  height: 2px;
  margin: 0 0.6rem;
  background: rgba(var(--primary-rgb), 0.16);
  min-width: 0.75rem;
  transition: background-color 0.4s ease;
}

.screening-stepper-line.is-done {
  background: var(--primary);
}

.screening-stepper-item.is-done .screening-stepper-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.screening-stepper-item.is-done .screening-stepper-label,
.screening-stepper-item.is-active .screening-stepper-label {
  color: var(--text-primary);
}

.screening-stepper-item.is-active .screening-stepper-dot {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14);
}

.screening-step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.screening-step.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .screening-stepper-label {
    display: none;
  }
}

.screening-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 0;
}

.screening-back:hover {
  text-decoration: underline;
}

.screening-step-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.screening-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.screening-category-card {
  text-align: left;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.screening-category-card:hover,
.screening-category-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-soft);
}

.screening-category-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.screening-category-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.screening-audience {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.screening-ageband-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.screening-ageband-card {
  border: 1.4px solid var(--primary);
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.screening-ageband-card:hover,
.screening-ageband-card:focus-visible {
  background-color: rgba(var(--primary-rgb), 0.14);
  transform: translateY(-2px);
}

.screening-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.screening-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.12);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.screening-progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.screening-progress-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.screening-single-question {
  border: none;
  padding: 0;
  margin: 0;
}

.screening-question-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.32;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 36ch;
  padding: 0;
}

.screening-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.screening-options-large {
  gap: 0.75rem;
}

.screening-options-large .screening-option-btn {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.screening-option-btn {
  border: 1.4px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-primary);
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.screening-option-btn:hover {
  border-color: rgba(var(--primary-rgb), 0.6);
}

.screening-option-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.screening-notes-field textarea {
  resize: vertical;
}

.screening-form-actions {
  display: flex;
  justify-content: flex-start;
}

.screening-multiselect-hint {
  margin-top: -1rem;
  margin-bottom: 1rem;
}

.screening-single-question .screening-form-actions {
  margin-top: 1.5rem;
}

.screening-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
}

.screening-result-emoji {
  font-size: 1.2rem;
}

.tier-ontrack {
  background: rgba(34, 197, 94, 0.12);
  color: #158a4a;
}

.tier-monitor {
  background: rgba(245, 158, 11, 0.14);
  color: #a05a03;
}

.tier-consult {
  background: rgba(249, 115, 22, 0.14);
  color: #b1490c;
}

.tier-refer {
  background: rgba(239, 68, 68, 0.14);
  color: #c0392b;
}

.screening-result-explain {
  margin-top: 1rem;
  max-width: 60ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #2b3550;
}

.screening-result-ctas {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.screening-callback {
  margin-top: 1.75rem;
  max-width: 32rem;
}

.screening-callback h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.screening-callback-form {
  margin-top: 1rem;
}

.screening-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  max-width: 60ch;
}

.screening-restart {
  display: inline-block;
  margin-top: 1rem;
  border: none;
  background: none;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.screening-restart:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .screening-widget {
    padding: 1.25rem;
  }
}

.hidden {
  display: none !important;
}

/* Account page + generic panel/table/badge components (also used on /admin) */
.nav-account-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 0.2rem;
  position: relative;
}

.nav-account-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-account-link:hover::after,
.nav-account-link:focus-visible::after {
  transform: scaleX(1);
}

.account-auth-wrap {
  display: flex;
  justify-content: center;
}

.account-auth-card {
  position: relative;
  width: min(23rem, 100%);
  padding: 1.85rem 1.65rem 1.65rem;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(26, 26, 46, 0.1), 0 2px 8px rgba(26, 26, 46, 0.05);
}

.account-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.account-auth-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  margin-bottom: 1.1rem;
}

.account-auth-mark img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.account-auth-mark span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.account-forgot-link {
  display: inline-block;
  margin: -0.5rem 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.account-tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: 999px;
}

.account-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.account-tab:hover,
.account-tab:focus-visible {
  color: var(--primary-dark);
}

.account-tab.is-active {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.1);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-google:hover,
.btn-google:focus-visible {
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--text-primary);
  box-shadow: 0 6px 16px rgba(26, 26, 46, 0.08);
  transform: translateY(-1px);
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.account-divider::before,
.account-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.account-form {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.account-form .field span {
  margin-bottom: 0.22rem;
  font-size: 0.82rem;
}

.account-form .field input {
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  border-radius: 12px;
}

.account-submit {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  background: var(--gradient-brand);
  background-color: transparent;
}

.account-submit:hover,
.account-submit:focus-visible {
  filter: brightness(1.04);
}

.account-signup-note {
  margin-top: -0.2rem;
  text-align: center;
  font-size: 0.78rem;
}

.account-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.admin-panel {
  margin-bottom: 1.25rem;
}

.admin-panel.booking-card {
  padding: 1.5rem;
}

.admin-section-title {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.panel-head .admin-section-title {
  margin-bottom: 0;
}

.panel-head--sub {
  margin-top: 1.25rem;
}

.panel-intro {
  margin: 0 0 1rem;
}

.ai-disclosure {
  margin: -0.6rem 0 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: rgba(var(--primary-rgb), 0.05);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.empty {
  text-align: center;
  color: var(--text-secondary);
}

.status-badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pending {
  background: rgba(244, 162, 97, 0.18);
  color: #b45309;
}

.status-confirmed {
  background: rgba(var(--primary-rgb), 0.16);
  color: var(--primary-dark);
}

.status-completed {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.status-no_show {
  background: rgba(107, 114, 128, 0.16);
  color: #4b5563;
}

.status-present,
.status-low {
  background: rgba(var(--primary-rgb), 0.16);
  color: var(--primary-dark);
}

.status-absent,
.status-high {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.status-leave,
.status-moderate {
  background: rgba(244, 162, 97, 0.18);
  color: #b45309;
}

@media (max-width: 640px) {
  .account-auth-card {
    padding: 1.5rem;
  }
}

.muted {
  margin-top: 0.35rem;
  color: var(--text-secondary);
}

/* Dashboard flash messages */
.dashboard-messages {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.alert {
  margin: 0;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-dark);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.22);
}

.alert-warning {
  background: rgba(244, 162, 97, 0.16);
  color: #b45309;
  border-color: rgba(244, 162, 97, 0.3);
}

.alert-info,
.alert-debug {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.22);
}

/* Dashboard KPI stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-top: 3px solid var(--primary);
  box-shadow: 0 14px 30px rgba(26, 26, 46, 0.05);
  padding: 1.1rem 1.3rem;
}

.stat-card--pending {
  border-top-color: #f4a261;
}

.stat-card--upcoming {
  border-top-color: var(--secondary);
}

.stat-card--completed {
  border-top-color: #3b82f6;
}

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.stat-card-value {
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: clamp(1.65rem, 1.4rem + 1vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: proportional-nums;
}

/* Row-level action buttons inside dashboard tables */
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-row {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.4px solid transparent;
  cursor: pointer;
  background: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-row:hover,
.btn-row:focus-visible {
  transform: translateY(-1px);
}

.btn-row-confirm {
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary-dark);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.therapist-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.therapist-checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1.4px solid var(--border-soft);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.therapist-checkbox-chip input {
  accent-color: var(--primary);
}

.btn-row-complete {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
}

.btn-row-cancel {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.2);
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.table-wrap--top-gap {
  margin-top: 1.25rem;
}

.table-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.table-link:hover,
.table-link:focus-visible {
  color: var(--secondary);
}

@media (max-width: 800px) {
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

/* Read-only assessment detail view */
.assessment-detail-list {
  margin: 0;
}

.assessment-detail-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}

.assessment-detail-row:last-child {
  border-bottom: none;
}

.assessment-detail-row dt {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.assessment-detail-row dd {
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .assessment-detail-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Notifications */
.notification-compose {
  margin-bottom: 1.25rem;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-item {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  background: var(--surface);
}

.notification-item--unread {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}

.notification-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.notification-item-title {
  font-weight: 700;
  color: var(--text-primary);
}

.notification-item-body {
  margin-top: 0.35rem;
  color: #2b3550;
  white-space: pre-wrap;
}

.notification-item-meta {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.notification-item-actions {
  margin-top: 0.6rem;
}

/* Messaging */
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chatbox {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 26rem;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.chatbox-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  max-height: 34rem;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border-soft);
}

.chatbox-main {
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(var(--primary-rgb), 0.1), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(244, 162, 97, 0.08), transparent 40%),
    var(--surface-alt);
}

.chatbox-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}

.chatbox-header-name {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
}

.chatbox-header-role {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.chatbox-empty {
  margin: auto;
  padding: 1.5rem;
  color: var(--text-secondary);
  text-align: center;
}

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

  .chatbox-sidebar {
    max-height: 14rem;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
}

.conversation-avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.conversation-avatar--lg {
  width: 2.9rem;
  height: 2.9rem;
  font-size: 1.05rem;
}

.conversation-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  transition: background-color 0.15s ease;
}

.conversation-row:hover,
.conversation-row:focus-visible {
  background-color: rgba(var(--primary-rgb), 0.08);
}

.conversation-row--active {
  background-color: rgba(var(--primary-rgb), 0.16);
}

.conversation-body {
  flex: 1;
  min-width: 0;
}

.conversation-name {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
}

.conversation-role {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.conversation-preview {
  display: block;
  margin-top: 0.1rem;
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.conversation-meta {
  flex-shrink: 0;
  text-align: right;
}

.conversation-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.unread-badge {
  display: inline-block;
  min-width: 1.4rem;
  margin-top: 0.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.chat-contact-grid {
  display: grid;
  gap: 0.4rem;
}

.chat-contact-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background-color 0.15s ease;
}

.chat-contact-card .conversation-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.78rem;
}

.chat-contact-card:hover,
.chat-contact-card:focus-visible {
  background-color: rgba(var(--primary-rgb), 0.08);
}

.contact-group-title {
  margin: 1rem 0 0.4rem;
  padding: 0 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-group-title:first-child {
  margin-top: 0;
}

.message-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 60vh;
  overflow-y: auto;
  padding: 1.25rem;
}

.message-bubble {
  max-width: 70%;
  padding: 0.65rem 0.95rem;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
}

.message-bubble--mine {
  align-self: flex-end;
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}

.message-bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.message-bubble-time {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  opacity: 0.6;
}

.message-reply-form {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  padding: 0.85rem 1.25rem 1.1rem;
}

.message-reply-form textarea {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.7rem 1.1rem;
  background: var(--input-bg);
  color: var(--text-primary);
  resize: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.message-reply-form textarea::placeholder {
  color: var(--text-muted);
}

.message-send-btn {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.message-send-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.message-send-btn:hover,
.message-send-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.4);
}

.message-reply-form textarea:focus {
  outline: none;
  border-color: rgba(var(--secondary-rgb), 0.9);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.18);
}

.nav-message-badge {
  display: inline-block;
  min-width: 1.2rem;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .message-bubble {
    max-width: 88%;
  }

  .message-reply-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.field-help {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.field-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.login-gate {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--secondary) 8%, var(--surface));
  border: 1px solid rgba(var(--primary-rgb), 0.14);
}

.login-gate p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.login-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.req {
  color: #ef4444;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 0.85rem 1rem;
  background-color: var(--input-bg);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(var(--secondary-rgb), 0.9);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.18);
}

.field {
  position: relative;
}

/* Icon-prefixed fields — username/email/password/phone on the login,
   signup, and booking forms. The icon is a background-image so it works
   with Django's auto-rendered <input> without extra wrapper markup. */
.field-icon input {
  padding-left: 2.85rem;
  background-repeat: no-repeat;
  background-position: 1rem center;
  background-size: 1.15rem;
}

.field-icon--user input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a9ea8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a8 8 0 0 1 16 0v1'/%3E%3C/svg%3E");
}

.field-icon--email input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a9ea8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E");
}

.field-icon--password input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a9ea8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.field-icon--phone input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a9ea8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
}

.field.is-valid input,
.field.is-valid textarea {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.04);
  padding-right: 2.3rem;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.04);
  padding-right: 2.3rem;
}

.field.is-valid::after,
.field.is-invalid::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: 0.95rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-size: 0.6rem;
  background-repeat: no-repeat;
  background-position: center;
  animation: fieldStatusPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.field.is-valid::after {
  background-color: #22c55e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.4 11.2 3.2 8l1.13-1.13L6.4 8.93l5.27-5.27L12.8 4.8 6.4 11.2Z'/%3E%3C/svg%3E");
}

.field.is-invalid::after {
  background-color: #ef4444;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M8 6.6 5.4 4 4 5.4 6.6 8 4 10.6 5.4 12 8 9.4 10.6 12 12 10.6 9.4 8 12 5.4 10.6 4 8 6.6Z'/%3E%3C/svg%3E");
}

@keyframes fieldStatusPop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.booking-actions {
  margin-top: 1.2rem;
}

.form-error {
  margin-top: 0.6rem;
  color: #b91c1c;
  font-weight: 600;
  min-height: 1.2rem;
}

.booking-side {
  display: grid;
  gap: 1rem;
}

.hours-card,
.trust-card {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 14px 30px rgba(26, 26, 46, 0.05);
  padding: 1.4rem;
}

.hours-card h3,
.trust-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.7rem;
}

.hours-card p {
  color: #3f455c;
  margin-top: 0.35rem;
}

.trust-badges {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: #2b3550;
}

.trust-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--secondary);
}

/* Floating WhatsApp button */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 2400;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease, color 0.2s ease;
}

.back-to-top svg {
  width: 1.15rem;
  height: 1.15rem;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 80px;
    width: 2.4rem;
    height: 2.4rem;
  }
}

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2500;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, width 0.25s ease;
  overflow: hidden;
  padding-inline: 0.95rem;
  isolation: isolate;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 1.6s ease-out infinite;
  pointer-events: none;
}

.wa-float-tooltip {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-weight: 800;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-2px);
  width: auto;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.42);
}

.wa-float:hover .wa-float-tooltip,
.wa-float:focus-visible .wa-float-tooltip {
  max-width: 180px;
  opacity: 1;
}

.wa-float-icon {
  width: 1.6rem;
  height: 1.6rem;
}

@keyframes waPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.85;
  }
  80% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Chatbot widget — bottom-left, so it never collides with the WhatsApp
   float / back-to-top buttons already anchored bottom-right. */
.chatbot-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2500;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 16px 34px rgba(var(--primary-rgb), 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-float:hover,
.chatbot-float:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(var(--primary-rgb), 0.45);
}

.chatbot-float-dragging {
  cursor: grabbing;
  transition: none;
  box-shadow: 0 20px 44px rgba(var(--primary-rgb), 0.5);
}

.chatbot-float svg {
  width: 1.5rem;
  height: 1.5rem;
}

.chatbot-panel {
  position: fixed;
  left: 24px;
  bottom: 92px;
  z-index: 2500;
  width: min(360px, calc(100vw - 48px));
  height: min(480px, calc(100vh - 140px));
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  box-shadow: 0 24px 48px rgba(26, 26, 46, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chatbot-bubble {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.chatbot-bubble-assistant {
  align-self: flex-start;
  background: color-mix(in srgb, var(--secondary) 12%, white);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chatbot-bubble-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-bubble-typing {
  opacity: 0.6;
}

.chatbot-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(var(--primary-rgb), 0.12);
}

.chatbot-input-row input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  font-family: inherit;
  font-size: 0.9rem;
}

.chatbot-input-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.chatbot-send {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chatbot-send svg {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 640px) {
  .chatbot-float {
    left: 16px;
    bottom: 16px;
    width: 2.9rem;
    height: 2.9rem;
  }

  .chatbot-panel {
    left: 16px;
    bottom: 78px;
  }
}

/* Nepali calendar widget — dashboards only (admin/therapist/account),
   fixed top-right so it never collides with the bottom-anchored
   WhatsApp/back-to-top/chatbot floats. */
.nepali-calendar-widget {
  position: fixed;
  top: 94px;
  right: 20px;
  z-index: 1200;
  font-family: inherit;
}

.npc-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.npc-toggle:hover,
.npc-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(var(--primary-rgb), 0.4);
}

.npc-day {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
}

.npc-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.npc-month-year {
  font-size: 0.82rem;
  font-weight: 700;
}

.npc-weekday {
  font-size: 0.72rem;
  opacity: 0.9;
}

.npc-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 2rem);
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  box-shadow: 0 24px 48px rgba(26, 26, 46, 0.18);
  padding: 1rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.npc-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.npc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.npc-panel-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.npc-nav {
  border: none;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-dark);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.npc-nav:hover {
  background: rgba(var(--primary-rgb), 0.18);
}

.npc-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.35rem;
}

.npc-weekday-row span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
  opacity: 0.75;
}

.npc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.npc-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.npc-cell.is-today {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.npc-ad-date {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-primary);
  opacity: 0.6;
}

@media (max-width: 640px) {
  .nepali-calendar-widget {
    top: 78px;
    right: 12px;
  }

  .npc-toggle {
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    gap: 0.5rem;
  }

  .npc-meta {
    display: none;
  }

  .npc-panel {
    width: calc(100vw - 24px);
    right: -8px;
  }
}

/* Contact page */
.contact-page {
  padding-bottom: 2rem;
}

.contact-section {
  padding: 2.25rem 0 4.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.contact-card {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 14px 30px rgba(26, 26, 46, 0.06);
  padding: 1.75rem;
}

.contact-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.5rem;
  color: #3f455c;
}

.map-embed {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  background: #eef6f8;
  min-height: 240px;
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.map-open-link {
  margin-top: 0.65rem;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.subheading {
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

.hours-table {
  margin-top: 0.6rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hours-row + .hours-row {
  border-top: 1px solid rgba(var(--primary-rgb), 0.12);
}

.hours-cell {
  padding: 0.75rem 0.85rem;
  color: #3f455c;
  background: #fafdfd;
}

.contact-actions {
  margin-top: 1.1rem;
}

.instant-chat {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--primary);
}

.instant-chat:hover,
.instant-chat:focus-visible {
  color: var(--secondary);
}

.instant-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #25d366;
  flex-shrink: 0;
}

.contact-photo-strip {
  padding: 1.25rem 0 1.75rem;
  background: linear-gradient(180deg, #fafcfd 0%, var(--white) 100%);
}

.contact-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.contact-strip-inner img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(26, 26, 46, 0.08);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-menu {
    gap: 1rem;
  }

  .nav-links {
    gap: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 260px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.2rem;
  }

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

  .home-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-help-card {
    grid-template-columns: 1fr;
  }

  .service-detail-inner {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .service-detail-photo-wrap {
    max-height: 220px;
  }

  .masonry {
    columns: 2;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .story-grid,
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1010;
    min-height: 48px;
    min-width: 48px;
  }

  .nav-cta,
  .filter-btn {
    min-height: 48px;
    padding-inline: 1rem;
  }

  .btn-whatsapp,
  .btn-whatsapp-large {
    min-height: 48px;
    padding-block: 0.85rem;
  }

  .service-book-btn {
    min-height: 48px;
  }

  .wa-float {
    width: 3.5rem;
    height: 3.5rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--mobile-header-height, 4.75rem);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 6% 2rem;
    background-color: var(--surface);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 8px 18px rgba(26, 26, 46, 0.08);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  /* Keeps the header row itself solid while the full-height menu is open —
     otherwise the scrolled state's transparent/blurred background would let
     page content show through around the logo and toggle button. */
  .site-header.nav-open {
    background-color: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header.nav-open .nav-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-scroll-lock {
    overflow: hidden;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .nav-cta {
    margin-top: 0.3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 2rem 0 1.5rem;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-section {
    padding: 3.8rem 0;
  }

  .gallery-preview-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip-inner {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .home-team-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stats-bar {
    margin-top: -1.5rem;
  }

  .service-detail-inner {
    grid-template-columns: 1fr;
  }

  .service-detail-icon {
    width: 64px;
    height: 64px;
  }

  .services-help-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .services-help-cta {
    justify-self: flex-start;
  }

  .masonry {
    columns: 1;
  }

  .lightbox-prev {
    left: 0.4rem;
  }

  .lightbox-next {
    right: 0.4rem;
  }

  .step-indicator {
    justify-content: flex-start;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .home-blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Phone-specific compacting ----------
   Headings and card padding across the public site were sized for tablet
   and up (clamp() minimums still fairly large) — this tightens text and
   containers further for actual phone widths. */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .page-hero-content h1 {
    font-size: 1.8rem;
  }

  .page-hero-content p {
    font-size: 0.92rem;
  }

  .page-hero {
    padding: 3rem 0 2.25rem;
  }

  .page-hero.page-hero--banner {
    padding: 3.5rem 0 2.5rem;
  }

  .booking-card,
  .order-summary-card,
  .order-summary-note-card {
    padding: 1.1rem;
  }

  .thanks-card {
    padding: 1.75rem 1.25rem;
  }

  .order-summary-service {
    padding: 0.9rem;
  }
}

