/* =================================================================
   ACADEMIA DENTA — Core design system
   Palette grounded in the brand olive #A7A751
   Display: Soyuz Grotesk (Latin accents) · Body: Manrope (Kazakh-ready)
   ================================================================= */

:root {
  /* — Brand palette — */
  --olive:        #A7A751;   /* brand olive from logo */
  --olive-deep:   #6F6F35;   /* deep olive, text on light / borders */
  --olive-soft:   #C2C27F;   /* muted olive for tints */
  --olive-wash:   #EDEDD9;   /* faintest olive wash */

  --cream:        #F7F5EE;   /* primary warm background */
  --sand:         #EDE9DC;   /* secondary warm surface */
  --paper:        #FCFBF7;   /* lifted card surface */
  --graphite:     #2A2A24;   /* primary text, near-black warm */
  --graphite-2:   #57574C;   /* secondary text */
  --line:         #DEDACB;   /* hairline dividers */

  /* — Semantic — */
  --bg:           var(--cream);
  --surface:      var(--paper);
  --text:         var(--graphite);
  --text-muted:   var(--graphite-2);
  --accent:       var(--olive);
  --accent-deep:  var(--olive-deep);

  /* — Type — */
  --font-display: "Soyuz Grotesk", "Manrope", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* fluid type scale */
  --fs-hero:   clamp(2.6rem, 7vw, 6.2rem);
  --fs-h1:     clamp(2.1rem, 5vw, 4rem);
  --fs-h2:     clamp(1.7rem, 3.4vw, 2.8rem);
  --fs-h3:     clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead:   clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body:   1.02rem;
  --fs-small:  0.86rem;
  --fs-eyebrow:0.74rem;

  /* — Spacing & shape — */
  --maxw:      1240px;
  --gutter:    clamp(1.2rem, 4vw, 3rem);
  --radius:    18px;
  --radius-lg: 28px;
  --radius-sm: 10px;

  /* — Motion — */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:       0.7s;

  --shadow-sm: 0 2px 12px rgba(42,42,36,0.05);
  --shadow:    0 14px 44px -18px rgba(42,42,36,0.20);
  --shadow-lg: 0 30px 80px -28px rgba(42,42,36,0.30);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* — Headings — */
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* — Layout helpers — */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* — Eyebrow label — */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 56ch;
  font-weight: 350;
}

/* — Buttons — */
.btn {
  --b: var(--graphite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: var(--b);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  isolation: isolate;
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(-1px); }

.btn--accent { --b: var(--accent); color: var(--graphite); }
.btn--accent::after { background: var(--graphite); }
.btn--accent:hover { color: var(--cream); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn--ghost::after { background: var(--olive-wash); }
.btn--ghost:hover { color: var(--graphite); border-color: var(--accent); }

.btn .arw { transition: transform 0.4s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* — Pill / tag — */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.95em;
  border-radius: 100px;
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--olive-wash);
  color: var(--accent-deep);
}

/* — Hairline divider — */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* — Section heading block — */
.sec-head { max-width: 60ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head h2 { font-size: var(--fs-h2); margin-bottom: 0.7rem; }
.sec-head .lead { margin-top: 0.5rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .lead { margin-inline: auto; }

/* — Focus visibility (a11y floor) — */
:focus-visible {
  outline: 2.5px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* — Utility — */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* =================== Reduced motion =================== */
@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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
