/* ═══════════════════════════════════════════════════
   MAIN.CSS — Variables + Global Reset + Imports
   Mantaram Yoga © 2026
═══════════════════════════════════════════════════ */

@import url('layout.css');
@import url('nav.css');
@import url('hero.css');
@import url('sections.css');
@import url('cards.css');
@import url('footer.css');

/* ─── Variables ─── */
:root {
  --color-bg:          #FAF7F2;
  --color-bg-alt:      #F5EFE4;
  --color-bg-white:    #FFFFFF;
  --color-gold:        #C8A882;
  --color-gold-light:  #DEC9A8;
  --color-gold-dark:   #A8845A;
  --color-text:        #2C2418;
  --color-text-sec:    #5A4B37;
  --color-text-muted:  #A08060;
  --color-border:      rgba(200, 168, 130, 0.35);

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --max-w:       1180px;
  --pad-x:       clamp(1.25rem, 5vw, 3.5rem);
  --section-gap: clamp(5rem, 10vw, 9rem);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --transition:  0.35s var(--ease-out);
}

/* ─── 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-sans);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.05vw + 0.5rem, 1.0625rem);
  line-height: 1.75;
  color: var(--color-text);
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  background-color: var(--color-bg);
}

/* Фиксированный фоновый слой (hero image сквозь прозрачные секции) */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../media/title_photo_doing_the_splits.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ─── Global Typography ─── */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background-color: var(--color-text-sec);
}

.btn--ghost {
  border: 1px solid rgba(44, 36, 24, 0.35);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-text);
  background: rgba(44, 36, 24, 0.04);
}

.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: 0.875rem;
}

/* ─── Gold divider ─── */
.gold-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* ─── Scroll-reveal animation ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
