/* ============================================================
   ANUVANSH CLINIC — Base & Reset
   ============================================================ */

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

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

body {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  font-style: italic;
  background: var(--c-primary-soft);
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

a:hover {
  color: var(--c-primary-deep);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

ul[class],
ol[class] {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: var(--lh-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { text-wrap: pretty; }

::selection {
  background: var(--c-rose);
  color: var(--c-bg);
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: top var(--t-med) var(--ease-out);
}

.skip-link:focus-visible {
  top: 16px;
}

/* ---------- Layout primitives ---------- */

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

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

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

.section--tight {
  padding-block: calc(var(--space-section) * 0.62);
}

.section--dark {
  background: var(--c-primary-deep);
  color: var(--c-bg);
}

.section--soft {
  background: var(--c-primary-soft);
}

.section--ivory {
  background: var(--c-bg);
}

.section--surface {
  background: var(--c-surface);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Typography helpers ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-rose-deep);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section--dark .kicker { color: var(--c-rose); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 65ch;
}

.section--dark .lede,
.section--dark .body-copy { color: rgba(250, 248, 242, 0.82); }

.micro {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-out),
              color var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
  cursor: pointer;
}

.btn svg { flex: 0 0 auto; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--c-primary-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-rose {
  background: var(--c-rose);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-rose:hover {
  background: var(--c-rose-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  border: 1.5px solid var(--c-primary);
  color: var(--c-primary);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  background: var(--c-bg);
  color: var(--c-primary-deep);
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost-light {
  border: 1.5px solid rgba(250, 248, 242, 0.5);
  color: var(--c-bg);
}

.btn-ghost-light:hover {
  border-color: var(--c-bg);
  background: rgba(250, 248, 242, 0.1);
  color: var(--c-bg);
}

.btn-lg { min-height: 56px; padding: 15px 34px; font-size: 1rem; }

/* ---------- Reveal animation system ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out),
              filter var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

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