/* Base Styles & Global Typography */

/* ===== LAYOUT ===== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Sections */
section {
  position: relative;
  padding: var(--spacing-4xl) var(--spacing-lg);
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* ===== TYPOGRAPHY ===== */

/* Display/Hero text */
.text-hero {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-dark);
}

/* Section headings */
.text-section {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-dark);
}

/* Subheadings */
.text-subheading {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--lh-normal);
  color: var(--text-dark);
}

/* Body text */
.text-body {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-mid);
}

/* Small text */
.text-small {
  font-size: var(--fs-sm);
  color: var(--text-light);
}

/* Label/Caption text */
.text-label {
  font-family: var(--font-label);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
}

/* ===== DECORATIVE ELEMENTS ===== */

/* Gold overline above headings */
.overline {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background-color: var(--accent-gold);
  margin-bottom: var(--spacing-md);
}

.overline-center {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.overline-center::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background-color: var(--accent-gold);
}

/* ===== BACKGROUNDS ===== */

.bg-navy {
  background-color: var(--surface-dark);
  color: var(--text-white);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4,
.bg-navy h5,
.bg-navy h6 {
  color: var(--text-white);
}

.bg-light {
  background-color: var(--surface-light);
}

.bg-pale {
  background-color: var(--accent-gold-pale);
}

.bg-white {
  background-color: var(--surface-white);
}

/* ===== UTILITIES ===== */

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

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

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

.mt-auto {
  margin-top: auto;
}

.mb-auto {
  margin-bottom: auto;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-navy-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LUXURY SECTION BACKGROUNDS ===== */

.bg-cream {
  background-color: var(--surface-cream);
}

.bg-charcoal {
  background-color: var(--surface-charcoal);
  color: var(--text-white);
}

.bg-charcoal h1,
.bg-charcoal h2,
.bg-charcoal h3,
.bg-charcoal h4,
.bg-charcoal h5,
.bg-charcoal h6 {
  color: var(--text-white);
}

/* ===== LUXURY TYPOGRAPHY ===== */

/* Editorial display number sizing */
.text-display-giant {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text-dark);
}

/* Micro-label above editorial headings */
.text-micro-label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
}

/* Gold hairline horizontal rule */
.gold-rule {
  border: none;
  border-top: 1px solid var(--gold-hairline);
  margin: 0;
}
