/* ============================================================
   Technothera — Design System
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Brand colours — Technothera palette */
  --color-navy:        #0B1320;   /* primary dark bg — deep space navy */
  --color-navy-soft:   #131B2E;   /* secondary dark surface */
  --color-indigo:      #6366F1;   /* "Techno" accent — electric indigo */
  --color-indigo-dim:  #4F46E5;   /* indigo hover/darker variant */
  --color-teal:        #4FB8A8;   /* "Thera" accent — clinical teal */
  --color-teal-soft:   #5EEAD4;   /* brighter teal for highlights */
  --color-light:       #EEF1F6;   /* light surface backgrounds */
  --color-white:       #FFFFFF;

  /* Semantic aliases */
  --color-bg:          var(--color-light);
  --color-surface:     #ffffff;
  --color-text:        var(--color-navy);
  --color-text-dark:   #0B1320;
  --color-text-muted:  #6B7585;
  --color-border:      #DDE2EA;
  --color-border-dark: rgba(255,255,255,0.08);

  /* Legacy tints/shades — updated to new palette */
  --color-navy-90:    #192538;
  --color-navy-10:    #eaedf3;
  --color-teal-90:    #3da090;
  --color-teal-10:    #e6f5f3;
  --color-slate:      #6366F1;    /* remapped → indigo */
  --color-slate-10:   #ededfd;

  /* Typography */
  --font-display:     'Plus Jakarta Sans', sans-serif;
  --font-body:        'DM Sans', sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(11,19,32,.08), 0 1px 2px rgba(11,19,32,.05);
  --shadow-md:  0 4px 12px rgba(11,19,32,.10), 0 2px 6px rgba(11,19,32,.06);
  --shadow-lg:  0 10px 28px rgba(11,19,32,.12), 0 4px 10px rgba(11,19,32,.07);
  --shadow-xl:  0 20px 50px rgba(11,19,32,.15), 0 8px 20px rgba(11,19,32,.08);
  --shadow-teal:   0 4px 20px rgba(79,184,168,.30);
  --shadow-indigo: 0 4px 20px rgba(99,102,241,.35);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;

  /* Layout */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-2xl: 1440px;
  --nav-height:    72px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

table {
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background-color: var(--color-teal-10);
  color: var(--color-navy);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-navy);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.03em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-3xl); letter-spacing: -0.015em; }
h4 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.04em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
}

p {
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--color-text-muted);
}

.text-xs     { font-size: var(--text-xs); }
.text-sm     { font-size: var(--text-sm); }
.text-base   { font-size: var(--text-base); }
.text-lg     { font-size: var(--text-lg); }
.text-xl     { font-size: var(--text-xl); }
.text-2xl    { font-size: var(--text-2xl); }
.text-3xl    { font-size: var(--text-3xl); }

.font-light    { font-weight: 300; }
.font-regular  { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }

.text-navy   { color: var(--color-navy); }
.text-teal   { color: var(--color-teal); }
.text-slate  { color: var(--color-slate); }
.text-muted  { color: var(--color-text-muted); }
.text-light  { color: var(--color-light); }
.text-white  { color: #ffffff; }

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

.label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--color-teal);
  border-radius: var(--radius-full);
}

blockquote {
  border-left: 3px solid var(--color-teal);
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-teal-10);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-navy);
}

code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background-color: var(--color-navy-10);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-slate);
}

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

.container--sm  { max-width: var(--container-sm); }
.container--md  { max-width: var(--container-md); }
.container--lg  { max-width: var(--container-lg); }
.container--2xl { max-width: var(--container-2xl); }

.section {
  padding-block: var(--space-20);
}

.section--sm { padding-block: var(--space-12); }
.section--lg { padding-block: var(--space-24); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition:
    background-color var(--duration-base) var(--ease-out),
    color           var(--duration-base) var(--ease-out),
    border-color    var(--duration-base) var(--ease-out),
    box-shadow      var(--duration-base) var(--ease-out),
    transform       var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary — indigo */
.btn--primary {
  background-color: var(--color-indigo);
  color: #ffffff;
  border-color: var(--color-indigo);
  box-shadow: var(--shadow-indigo);
}
.btn--primary:hover {
  background-color: var(--color-indigo-dim);
  border-color: var(--color-indigo-dim);
  box-shadow: 0 6px 24px rgba(99,102,241,.45);
}

/* Indigo (alias for primary) */
.btn--indigo {
  background-color: var(--color-indigo);
  color: #ffffff;
  border-color: var(--color-indigo);
  box-shadow: var(--shadow-indigo);
}
.btn--indigo:hover {
  background-color: var(--color-indigo-dim);
  border-color: var(--color-indigo-dim);
  box-shadow: 0 6px 24px rgba(99,102,241,.45);
}

/* Secondary */
.btn--secondary {
  background-color: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}
.btn--secondary:hover {
  background-color: var(--color-navy-90);
  border-color: var(--color-navy-90);
  box-shadow: var(--shadow-md);
}

/* Outline */
.btn--outline {
  background-color: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}
.btn--outline:hover {
  background-color: var(--color-teal-10);
  box-shadow: var(--shadow-sm);
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background-color: var(--color-navy-10);
  border-color: var(--color-navy-10);
}

/* Light */
.btn--light {
  background-color: var(--color-light);
  color: var(--color-navy);
  border-color: var(--color-light);
}
.btn--light:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Sizes */
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--xl { padding: var(--space-5) var(--space-10); font-size: var(--text-lg); }

/* Icon-only */
.btn--icon {
  padding: var(--space-3);
  border-radius: var(--radius-full);
}

/* Disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow  var(--duration-base) var(--ease-out),
    transform   var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.card--hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.card--teal {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-90) 100%);
  color: #ffffff;
  border-color: transparent;
}

.card--navy {
  background: linear-gradient(135deg, var(--color-navy) 0%, #152231 100%);
  color: #ffffff;
  border-color: transparent;
}

.card--slate {
  background: linear-gradient(135deg, var(--color-slate) 0%, #6565a0 100%);
  color: #ffffff;
  border-color: transparent;
}

.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,.6);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background-color: var(--color-teal-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-teal);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.card--teal .card__title,
.card--navy .card__title,
.card--slate .card__title { color: #ffffff; }

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

.card--teal .card__body,
.card--navy .card__body,
.card--slate .card__body { color: rgba(255,255,255,.80); }

.card__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card--teal .card__footer,
.card--navy .card__footer,
.card--slate .card__footer { border-color: rgba(255,255,255,.20); }

/* Stat card */
.card--stat .card__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.card--stat .card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background-color: rgba(238,241,246,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(221,226,234,.50);
  transition: background-color var(--duration-base) var(--ease-out),
              box-shadow        var(--duration-base) var(--ease-out);
}

.nav--scrolled {
  background-color: rgba(255,255,255,.95);
  box-shadow: var(--shadow-md);
}

.nav--dark {
  background-color: rgba(11,19,32,.90);
  border-bottom-color: rgba(255,255,255,.08);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-navy);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav__brand span { color: var(--color-teal); }
.nav--dark .nav__brand { color: #ffffff; }

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

.nav__link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition:
    color            var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-navy);
  background-color: var(--color-navy-10);
}

.nav--dark .nav__link { color: rgba(255,255,255,.70); }
.nav--dark .nav__link:hover,
.nav--dark .nav__link--active {
  color: #ffffff;
  background-color: rgba(255,255,255,.10);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) var(--ease-out),
              opacity   var(--duration-base) var(--ease-out);
}

.nav--dark .nav__toggle span { background-color: #ffffff; }

.nav__toggle--open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle--open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-lg);
  z-index: 99;
}

.nav__drawer--open { display: block; }

.nav__drawer .nav__links {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.nav__drawer .nav__link {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
}

.nav__drawer .nav__actions {
  margin-top: var(--space-5);
  flex-direction: column;
  align-items: stretch;
}

.nav__drawer .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .nav__links:not(.nav__drawer .nav__links),
  .nav__actions:not(.nav__drawer .nav__actions) { display: none; }
  .nav__toggle { display: flex; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background-color: var(--color-navy);
  color: rgba(255,255,255,.75);
  padding-top: var(--space-20);
}

.footer__grid {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.footer__brand-name span { color: var(--color-teal); }

.footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: rgba(255,255,255,.60);
  margin-bottom: var(--space-6);
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  background-color: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.70);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color            var(--duration-fast) var(--ease-out);
}

.footer__social-link:hover {
  background-color: var(--color-teal);
  color: #ffffff;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.60);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover { color: var(--color-teal); }

.footer__bottom {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.45);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-5);
}

.footer__bottom-links a {
  color: rgba(255,255,255,.45);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__bottom-links a:hover { color: var(--color-teal); }

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Scroll Animation Classes ─────────────────────────────── */

/* Base hidden state — applied before JS triggers visibility */
[data-animate] {
  transition-property: opacity, transform;
  transition-duration: var(--duration-slower);
  transition-timing-function: var(--ease-out);
}

/* Triggers — visible state (added by IntersectionObserver) */
[data-animate].is-visible { opacity: 1 !important; transform: none !important; }

/* Fade up */
.fade-up         { opacity: 0; transform: translateY(32px); }

/* Fade down */
.fade-down       { opacity: 0; transform: translateY(-32px); }

/* Fade left (enters from right) */
.fade-left       { opacity: 0; transform: translateX(40px); }

/* Fade right (enters from left) */
.fade-right      { opacity: 0; transform: translateX(-40px); }

/* Fade in place */
.fade-in         { opacity: 0; transform: none; }

/* Scale up */
.scale-up        { opacity: 0; transform: scale(0.88); }

/* Scale down */
.scale-down      { opacity: 0; transform: scale(1.10); }

/* Rotate in */
.rotate-in       { opacity: 0; transform: rotate(-6deg) scale(0.92); }

/* Stagger helpers — add to parent to auto-delay children */
.stagger > *     { opacity: 0; transform: translateY(24px);
                   transition: opacity var(--duration-slower) var(--ease-out),
                               transform var(--duration-slower) var(--ease-out); }

.stagger > *.is-visible { opacity: 1; transform: none; }

.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }
.stagger > *:nth-child(7) { transition-delay: 480ms; }
.stagger > *:nth-child(8) { transition-delay: 560ms; }

/* Custom delay utilities */
.delay-0   { transition-delay: 0ms !important; }
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }
.delay-600 { transition-delay: 600ms !important; }

/* Duration overrides */
.duration-fast   { transition-duration: var(--duration-fast)   !important; }
.duration-base   { transition-duration: var(--duration-base)   !important; }
.duration-slow   { transition-duration: var(--duration-slow)   !important; }
.duration-slower { transition-duration: var(--duration-slower) !important; }

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  [data-animate],
  .fade-up, .fade-down, .fade-left, .fade-right,
  .fade-in, .scale-up, .scale-down, .rotate-in,
  .stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Utility Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1.5;
}

.badge--teal  { background-color: var(--color-teal-10);  color: var(--color-teal-90); }
.badge--navy  { background-color: var(--color-navy-10);  color: var(--color-navy); }
.badge--slate { background-color: var(--color-slate-10); color: var(--color-slate); }
.badge--light { background-color: var(--color-light);    color: var(--color-text-muted); }

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  border: none;
  margin-block: var(--space-8);
}

.divider--teal { background: linear-gradient(90deg, transparent, var(--color-teal), transparent); }

.section-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--color-indigo) 0%, var(--color-teal) 100%);
  opacity: 0.6;
  border: none;
  margin: 0;
}

/* ── Dropdown nav (about / contact pages) ─────────────────── */
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
/* Technothera wordmark */
.logo-wordmark { white-space: nowrap; }
.logo-techno { color: var(--color-indigo); display: inline; margin: 0; padding: 0; }
.logo-thera  { color: var(--color-teal);   display: inline; margin: 0; padding: 0; }
/* Legacy aliases (kept for any remaining references) */
.logo-kiddy  { color: var(--color-indigo); }
.logo-tech   { color: var(--color-teal); }

/* ── Pulse Icon — animated brand mark ─────────────────────── */
.pulse-icon { flex-shrink: 0; overflow: visible; display: block; margin-right: 10px; }

/* Nav-load draw animation (plays once on page load, CSS-only) */
.pulse-techno,
.pulse-thera {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw-pulse 1.1s ease-out forwards;
}
.pulse-thera { animation-delay: 0.35s; }

.pulse-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-appear 0.4s ease-out forwards;
  animation-delay: 1.0s;
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}

@keyframes node-appear {
  0%   { opacity: 0; transform: scale(0.4); }
  60%  { opacity: 1; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-techno,
  .pulse-thera { animation: none; stroke-dashoffset: 0; }
  .pulse-node  { animation: none; opacity: 1; }
}

.nav__dropdown { position: relative; }

.nav__dropbtn {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.nav__dropbtn:hover {
  color: var(--color-navy);
  background-color: var(--color-navy-10);
}

.nav__dropmenu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 200;
}

.nav__droplink {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.nav__droplink:hover { background-color: var(--color-light); }

/* Hamburger for simple-nav pages */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
  .nav__dropmenu  { min-width: 180px; }

  /* Fix: show nav__links when hamburger toggles .open class */
  .nav__links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6) var(--space-6);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    gap: var(--space-1);
  }
  .nav__links.open .nav__link {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--color-navy);
  }
  .nav__links.open .btn,
  .nav__links.open .btn--sm {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-4);
  }
}

/* ── Teal button variant ───────────────────────────────────── */
.btn--teal {
  background-color: var(--color-teal);
  color: #ffffff;
  border-color: var(--color-teal);
  box-shadow: var(--shadow-teal);
}

.btn--teal:hover {
  background-color: var(--color-teal-90);
  border-color: var(--color-teal-90);
  box-shadow: 0 6px 24px rgba(79,184,168,.40);
}

/* ── Footer utility classes (about / contact pages) ───────── */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #ffffff;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.footer__col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.60);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__col a:hover { color: var(--color-teal); }

/* ── Hide download buttons and PDF links ─────────────────── */
.btn-download, [download], a[href*=".pdf"] { display: none !important; }
.btn-hidden { display: none !important; }
