/* ---------------------------------------------------------------------
   R Prasad Ayurveda — design tokens & primitives
   Palette taken from the client's "colors hexa codes.png".
   --------------------------------------------------------------------- */

:root {
  /* Brand */
  --teal:        #17505A; /* primary: brand, buttons, headings, footer */
  --teal-2:      #377685; /* secondary: labels, accents */
  --sage:        #79B7BD; /* highlights, borders, icons */
  --mint:        #F0FBF9; /* backgrounds, cards, wellness sections */
  --cream:       #F8F5EC; /* traditional / Ayurveda sections */
  --ink:         #193638; /* main body text */
  --white:       #FFFFFF;

  /* Derived neutrals */
  --muted:       #5D7173;
  --muted-light: #789093;
  --line:        #E2EBEB;
  --line-soft:   #EDF3F3;
  --footer-bg:   #102F33;
  --footer-text: #D7E5E6;

  /* Tints used on dark sections */
  --on-dark:       #DCEBED;
  --on-dark-quiet: #A8D7D8;
  --dark-card:     rgba(255, 255, 255, 0.07);
  --dark-line:     rgba(255, 255, 255, 0.16);

  /* Status */
  --success-bg:   #F2FBF5;
  --success-line: #BFE6CB;
  --success-ink:  #1A7F3C;
  --error-bg:     #FDF2F2;
  --error-line:   #F3C2C2;
  --error-ink:    #B3261E;
  --note-bg:      #FFF8E8;
  --note-line:    #EAD9A9;
  --note-ink:     #6B5C3B;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --text-caption: 0.8125rem;   /* 13px */
  --text-small:   0.875rem;    /* 14px */
  --text-body:    1rem;
  --text-lead:    clamp(1.0625rem, 0.99rem + 0.35vw, 1.1875rem);
  --text-h3:      clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-h2:      clamp(1.75rem, 1.25rem + 2.2vw, 2.5rem);
  --text-h1:      clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem);

  /* Space */
  --gutter:        6%;
  --space-section: clamp(3.25rem, 2.2rem + 4.2vw, 5rem);
  --space-card:    clamp(1.375rem, 1.1rem + 1vw, 1.75rem);

  /* Shape */
  --radius-pill:  999px;
  --radius-card:  22px;
  --radius-panel: 34px;
  --radius-field: 14px;

  /* Elevation */
  --shadow-card:  0 10px 35px rgba(23, 80, 90, 0.05);
  --shadow-lift:  0 18px 45px rgba(23, 80, 90, 0.10);
  --shadow-panel: 0 22px 60px rgba(23, 80, 90, 0.13);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 150ms;
  --base: 260ms;
}

/* ------------------------------ reset ------------------------------ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

img { height: auto; display: block; }

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

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--teal);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); line-height: 1.05; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.01em; }

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

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }

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

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

/* --------------------------- layout ------------------------------- */

.container {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--mint  { background: var(--mint); }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--teal); color: var(--white); }

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark p  { color: var(--on-dark); }

.center {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.stack       { display: flex; flex-direction: column; }
.stack.gap-8  { gap: 0.5rem; }
.stack.gap-12 { gap: 0.75rem; }
.stack.gap-16 { gap: 1rem; }
.stack.gap-24 { gap: 1.5rem; }

.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.row.wrap     { flex-wrap: wrap; }
.row.gap-8    { gap: 0.5rem; }
.row.gap-12   { gap: 0.75rem; }
.row.gap-16   { gap: 1rem; }

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

/* --------------------------- typography --------------------------- */

.eyebrow {
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-2);
}

.section--dark .eyebrow { color: var(--on-dark-quiet); }

.text-lead    { font-size: var(--text-lead); color: var(--muted); }
.text-muted   { color: var(--muted); }
.text-caption { font-size: var(--text-caption); color: var(--muted-light); }
.text-small   { font-size: var(--text-small); }

.section--dark .text-muted,
.section--dark .text-caption { color: var(--on-dark); }

/* ---------------------------- buttons ----------------------------- */

.btn {
  --btn-bg: var(--teal);
  --btn-fg: var(--white);
  --btn-line: var(--teal);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease),
              background var(--fast) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(23, 80, 90, 0.22);
}

.btn:active { transform: translateY(0); }

.btn-lg { padding: 0.95rem 1.7rem; font-size: var(--text-body); }

.btn-alt {
  --btn-bg: var(--white);
  --btn-fg: var(--teal);
  --btn-line: #C9DADD;
}
.btn-alt:hover { box-shadow: 0 10px 22px rgba(23, 80, 90, 0.12); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-line: var(--dark-line);
}

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

.btn[aria-disabled='true'],
.btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

/* ----------------------------- cards ------------------------------ */

.card {
  padding: var(--space-card);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card--mint  { background: var(--mint); border-color: #D8ECEC; }
.card--cream { background: var(--cream); border-color: #EBE3D2; }

.card--dark {
  background: var(--dark-card);
  border-color: var(--dark-line);
  color: var(--white);
  box-shadow: none;
}
.card--dark h3 { color: var(--white); }
.card--dark p  { color: var(--on-dark); }

.card-link {
  display: block;
  transition: transform var(--base) var(--ease),
              box-shadow var(--base) var(--ease),
              border-color var(--base) var(--ease);
}
.card-link:hover {
  transform: translateY(-4px);
  border-color: var(--sage);
  box-shadow: var(--shadow-lift);
}

.card-num {
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sage);
}

/* ----------------------------- badges ----------------------------- */

.badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--teal);
}

.badge-accent {
  background: var(--mint);
  border-color: var(--sage);
}

.badge-filled {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.badge-soon {
  background: var(--note-bg);
  border-color: var(--note-line);
  color: var(--note-ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}

.section--dark .badge {
  background: transparent;
  border-color: var(--dark-line);
  color: var(--white);
}

/* ------------------------- notes & alerts ------------------------- */

.note {
  padding: 1.1rem 1.25rem;
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: 18px;
  color: var(--note-ink);
  font-size: var(--text-small);
}

.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-field);
  border: 1px solid var(--line);
  font-size: var(--text-small);
  margin-bottom: 1rem;
}
.alert-success { background: var(--success-bg); border-color: var(--success-line); color: var(--success-ink); }
.alert-error   { background: var(--error-bg);   border-color: var(--error-line);   color: var(--error-ink); }

/* ----------------------------- forms ------------------------------ */

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--teal);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid #CFDDDE;
  border-radius: var(--radius-field);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-2);
  box-shadow: 0 0 0 3px rgba(55, 118, 133, 0.18);
}

.field textarea { resize: vertical; min-height: 96px; }

.field-hint  { font-size: var(--text-caption); color: var(--muted-light); }
.field-error { font-size: var(--text-small); color: var(--error-ink); }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.checkbox-row input { width: auto; }

/* --------------------------- utilities ---------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* --------------------------- responsive --------------------------- */

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

@media (max-width: 720px) {
  :root { --gutter: 5%; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

@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;
  }
}
