/* =========================================================
   INT Care — Design System
   International Cultural & Ayush Research and Excellence
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --forest-950: #071811;
  --forest-900: #0b2118;
  --forest-800: #102c20;
  --forest-700: #163b2a;
  --forest-600: #205039;
  --green: #3d6f52;
  --green-soft: #7fa48c;
  --leaf: #96b01a;
  --leaf-deep: #5f770c;
  --leaf-soft: #dce7b0;
  --gold: #c49a4a;
  --gold-soft: #eadcbd;
  --cream: #f7f3e9;
  --cream-2: #f1ebdd;
  --paper: #fffdf8;
  --sand: #e9e1cf;
  --ink: #14231c;
  --muted: #5e6e65;
  --muted-light: #a8bbb0;
  --line: rgba(20, 35, 28, 0.12);
  --line-soft: rgba(20, 35, 28, 0.07);
  --line-light: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --shadow-xs: 0 2px 10px rgba(11, 33, 24, 0.05);
  --shadow-sm: 0 12px 40px -12px rgba(11, 33, 24, 0.16);
  --shadow: 0 30px 80px -28px rgba(11, 33, 24, 0.32);
  --shadow-lg: 0 50px 120px -40px rgba(7, 24, 17, 0.55);
  --r-xs: 10px;
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 32px;
  --r-pill: 999px;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(0.22, 0.68, 0.2, 1);
  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--forest-900);
  text-wrap: balance;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--leaf);
  color: var(--forest-950);
}

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.section--paper {
  background: var(--paper);
}

.section--cream {
  background: var(--cream);
}

.section--dark {
  background: var(--forest-900);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--paper);
}

.section--dark p {
  color: rgba(247, 243, 233, 0.76);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h1, .h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
}

h2, .h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
}

h3, .h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.2;
}

h4, .h4 {
  font-size: 1.15rem;
  line-height: 1.3;
}

h1 em,
h2 em,
h3 em,
.display em {
  font-style: italic;
  color: var(--leaf-deep);
}

.section--dark h1 em,
.section--dark h2 em,
.section--dark h3 em {
  color: var(--leaf-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--light {
  color: var(--leaf-soft);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--muted);
}

.section--dark .lead {
  color: rgba(247, 243, 233, 0.78);
}

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

.small {
  font-size: 0.875rem;
}

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

.mx-auto {
  margin-inline: auto;
}

.measure {
  max-width: 62ch;
}

.measure-sm {
  max-width: 48ch;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--forest-800);
  --btn-color: var(--paper);
  --btn-border: var(--forest-800);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.65rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(11, 33, 24, 0.45);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn--primary {
  --btn-bg: var(--leaf);
  --btn-color: var(--forest-950);
  --btn-border: var(--leaf);
}

.btn--primary:hover {
  --btn-bg: var(--leaf-soft);
  --btn-border: var(--leaf-soft);
}

.btn--dark {
  --btn-bg: var(--forest-800);
  --btn-color: var(--paper);
  --btn-border: var(--forest-800);
}

.btn--dark:hover {
  --btn-bg: var(--forest-950);
  --btn-border: var(--forest-950);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--forest-900);
  --btn-border: rgba(20, 35, 28, 0.28);
}

.btn--ghost:hover {
  --btn-bg: var(--forest-900);
  --btn-color: var(--paper);
  --btn-border: var(--forest-900);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-color: var(--paper);
  --btn-border: rgba(255, 255, 255, 0.38);
}

.btn--ghost-light:hover {
  --btn-bg: var(--paper);
  --btn-color: var(--forest-900);
  --btn-border: var(--paper);
}

.btn--sm {
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  font-size: 0.78rem;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0 0.35rem;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(20, 35, 28, 0.25);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-900);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-arrow .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--leaf-deep);
  border-color: var(--leaf);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

.section--dark .link-arrow {
  color: var(--leaf-soft);
  border-color: rgba(220, 231, 176, 0.35);
}

/* ---------- Utilities & icons ---------- */
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.8rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--leaf);
  color: var(--forest-950);
  font-weight: 800;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
}

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--forest-950);
  color: rgba(247, 243, 233, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
}

.topbar__tag {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: rgba(247, 243, 233, 0.62);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.topbar__actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.25s ease;
}

.topbar__actions a:hover {
  color: var(--leaf-soft);
}

.topbar__actions .icon {
  width: 13px;
  height: 13px;
}

.topbar__sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 40px -28px rgba(11, 33, 24, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height 0.35s var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  min-height: 72px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 6px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-4deg) scale(1.03);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--forest-900);
}

.brand__name span {
  color: var(--leaf-deep);
  font-style: italic;
  font-weight: 500;
}

.brand__tag {
  margin-top: 0.35rem;
  max-width: 250px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.7rem);
}

.nav__link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest-800);
  transition: color 0.25s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 100%;
  height: 1.5px;
  background: var(--leaf-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--leaf-deep);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  flex: none;
}

.nav__mobile-meta {
  display: none;
}

.nav-backdrop {
  display: none;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  z-index: 110;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--forest-900);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--forest-950);
  color: rgba(247, 243, 233, 0.7);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(150, 176, 26, 0.1), transparent 65%),
    radial-gradient(700px 500px at 95% 20%, rgba(196, 154, 74, 0.08), transparent 70%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
}

.footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  align-items: end;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__cta h2 {
  margin: 0;
  max-width: 18ch;
  color: var(--paper);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.footer__cta h2 em {
  color: var(--leaf-soft);
}

.footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.9fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.footer__brand .brand {
  margin-bottom: 1.2rem;
}

.footer__brand .brand__name {
  color: var(--paper);
}

.footer__brand .brand__tag {
  color: rgba(247, 243, 233, 0.5);
}

.footer__brand .brand__mark {
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
}

.footer__about {
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(247, 243, 233, 0.62);
}

.footer__title {
  margin: 0 0 1.2rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf-soft);
}

.footer__links {
  display: grid;
  gap: 0.7rem;
}

.footer__links a,
.footer__contact a {
  font-size: 0.9rem;
  color: rgba(247, 243, 233, 0.68);
  transition: color 0.25s ease;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--leaf-soft);
}

.footer__contact {
  display: grid;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer__contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer__contact-item .icon {
  width: 17px;
  height: 17px;
  margin-top: 0.25rem;
  color: var(--leaf-soft);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(247, 243, 233, 0.58);
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom a {
  color: rgba(247, 243, 233, 0.68);
}

.footer__bottom a:hover {
  color: var(--leaf-soft);
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-reveal="left"] {
  transform: translateX(-34px);
}

[data-reveal="right"] {
  transform: translateX(34px);
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
