/* ============================================
   AURELIAN — Base Styles
   Reset, Typography, Utilities
   ============================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
body.menu-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--fw-normal); line-height: var(--lh-tight); }
table { border-collapse: collapse; width: 100%; }

/* ── Selection ── */
::selection { background: var(--color-gold); color: var(--color-white); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-offwhite); }
::-webkit-scrollbar-thumb { background: var(--color-gray-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray); }

/* ── Typography ── */
.heading-serif {
  font-family: var(--font-serif);
  font-weight: var(--fw-normal);
  letter-spacing: var(--ls-tight);
}
.heading-sans {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
}

h1, .h1 { font-family: var(--font-serif); font-size: var(--fs-5xl); letter-spacing: var(--ls-tight); }
h2, .h2 { font-family: var(--font-serif); font-size: var(--fs-4xl); letter-spacing: var(--ls-tight); }
h3, .h3 { font-family: var(--font-serif); font-size: var(--fs-3xl); }
h4, .h4 { font-family: var(--font-sans); font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
h5, .h5 { font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
h6, .h6 { font-family: var(--font-sans); font-size: var(--fs-base); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; }

.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-body { font-size: var(--fs-body); }
.text-md { font-size: var(--fs-md); }
.text-base { font-size: var(--fs-base); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-gold { color: var(--text-gold); }
.text-white { color: var(--text-inverse); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; letter-spacing: var(--ls-wider); }
.text-capitalize { text-transform: capitalize; }

.label-text {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-muted);
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container-text {
  max-width: var(--container-text);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--section-padding) 0;
}
.section-dark {
  background-color: var(--color-black);
  color: var(--text-inverse);
}
.section-ivory {
  background: var(--color-ivory);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Spacing Utilities ── */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pb-md { padding-bottom: var(--space-md); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }

/* ── Visibility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ── Dividers ── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: var(--space-lg) 0;
}
.divider-center {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: var(--space-lg) auto;
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-header .label-text {
  margin-bottom: var(--space-sm);
  display: block;
}
.section-header h2 {
  margin-bottom: var(--space-sm);
}
.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: var(--fs-4xl); }
  h2, .h2 { font-size: var(--fs-3xl); }
  h3, .h3 { font-size: var(--fs-2xl); }
  .container { padding: 0 var(--space-md); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2.mobile-1, .grid-3.mobile-1, .grid-4.mobile-1 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
