/* ==========================================================================
   Petrekivka2 — Typography System
   Display: Playfair Display | Body: Source Sans 3
   Scale: 1.25 (Major Third)
   ========================================================================== */

/* -----------------------------------------------------------------------
   Google Fonts Import
   ----------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* -----------------------------------------------------------------------
   Base Typography
   ----------------------------------------------------------------------- */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
}

/* -----------------------------------------------------------------------
   Headings
   All headings use Playfair Display
   ----------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
}

h1, .h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
}

h2, .h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
}

h3, .h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

h5, .h5 {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
}

h6, .h6 {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}

/* -----------------------------------------------------------------------
   Body Text
   ----------------------------------------------------------------------- */

p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

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

/* Lead paragraph — intro text, larger */
.text-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  font-weight: var(--weight-regular);
}

/* Small text — captions, labels */
.text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-tertiary);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
}

/* -----------------------------------------------------------------------
   Special Text Styles
   ----------------------------------------------------------------------- */

/* Section eyebrow — small label above heading */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent-red);
  margin-bottom: var(--space-3);
  display: block;
}

/* Section subtitle */
.subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* Display — extra large decorative headings (hero) */
.text-display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

/* Quote / testimonial */
.text-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--color-text-secondary);
}

/* Price display */
.text-price {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
}

.text-price-currency {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-tertiary);
  margin-left: var(--space-1);
}

/* -----------------------------------------------------------------------
   Links
   ----------------------------------------------------------------------- */

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text-link-hover);
}

/* Underline link style */
.link-underline {
  text-decoration: underline;
  text-decoration-color: var(--color-accent-red-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast),
              color var(--transition-fast);
}

.link-underline:hover {
  text-decoration-color: var(--color-accent-red);
}

/* -----------------------------------------------------------------------
   Lists
   ----------------------------------------------------------------------- */

ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

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

/* -----------------------------------------------------------------------
   Utility Classes
   ----------------------------------------------------------------------- */

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

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.font-regular { font-weight: var(--weight-regular); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-accent { color: var(--color-accent-red); }
.text-gold { color: var(--color-accent-gold); }

/* -----------------------------------------------------------------------
   Responsive Typography
   ----------------------------------------------------------------------- */

@media (max-width: 768px) {
  h1, .h1 {
    font-size: var(--text-3xl);
  }

  h2, .h2 {
    font-size: var(--text-2xl);
  }

  h3, .h3 {
    font-size: var(--text-xl);
  }

  .text-display {
    font-size: var(--text-4xl);
  }

  .text-lead {
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  h1, .h1 {
    font-size: var(--text-2xl);
  }

  h2, .h2 {
    font-size: var(--text-xl);
  }

  .text-display {
    font-size: var(--text-3xl);
  }
}
