/**
 * Typography Styles
 * Luxury fonts and text styling
 */

/* ============================================
   ELEGANT TYPOGRAPHY
   ============================================ */

/* Ensure proper font loading */
@supports (font-variation-settings: normal) {
  html {
    font-feature-settings: "kern" 1, "liga" 1;
  }
}

/* Text Selection */
::selection {
  background-color: var(--color-gold);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-gold);
  color: var(--color-white);
}

/* ============================================
   HEADINGS WITH LUXURY STYLE
   ============================================ */
.heading-accent {
  font-family: var(--font-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.heading-with-line {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.heading-with-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.heading-with-line.align-left::after {
  left: 0;
  transform: translateX(0);
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

/* ============================================
   TEXT STYLES
   ============================================ */
.text-large {
  font-size: var(--font-size-large);
  line-height: 1.8;
}

.text-small {
  font-size: var(--font-size-small);
  line-height: 1.6;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ============================================
   COLOR VARIATIONS
   ============================================ */
.text-primary {
  color: var(--color-primary);
}

.text-gold {
  color: var(--color-gold);
}

.text-white {
  color: var(--color-white);
}

.text-light {
  color: var(--color-text-light);
}

/* ============================================
   FONT WEIGHT
   ============================================ */
.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* ============================================
   SPECIAL TEXT ELEMENTS
   ============================================ */
.lead-text {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-light);
}

.quote-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  position: relative;
  padding-left: var(--spacing-md);
  border-left: 4px solid var(--color-gold);
}

.subtitle {
  font-family: var(--font-accent);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

/* ============================================
   LISTS
   ============================================ */
ul.styled-list,
ol.styled-list {
  list-style: none;
  padding-left: 0;
}

ul.styled-list li,
ol.styled-list li {
  position: relative;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
}

ul.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
}

ol.styled-list {
  counter-reset: styled-counter;
}

ol.styled-list li {
  counter-increment: styled-counter;
}

ol.styled-list li::before {
  content: counter(styled-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-weight: 700;
  font-family: var(--font-accent);
}

/* ============================================
   LINKS
   ============================================ */
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.text-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--spacing-md) 0;
}

.text-divider::before,
.text-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.text-divider::before {
  margin-right: var(--spacing-sm);
}

.text-divider::after {
  margin-left: var(--spacing-sm);
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */
@media (max-width: 768px) {
  .lead-text {
    font-size: 1.125rem;
  }

  .quote-text {
    font-size: 1.25rem;
    padding-left: var(--spacing-sm);
  }
}
