/* ============================================================
   BASE: RESET + TYPOGRAPHY + UTILITIES
   ============================================================ */

/* ─── GOOGLE FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Playfair+Display:wght@400;600;700;900&display=swap');

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

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

ul, ol { list-style: none; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--c-text);
}

h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); }
h2 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); }
h3 { font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl)); }
h4 { font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl)); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  line-height: 1.8;
  color: var(--c-text-muted);
}

strong { font-weight: var(--fw-semibold); color: var(--c-text); }

/* ─── LAYOUT UTILITIES ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--sp-12); }
}

.section {
  padding-block: var(--sp-24);
}

.section--dark {
  background: var(--g-navy);
  color: var(--c-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--c-white);
}

.section--dark p {
  color: var(--c-mid-gray);
}

.section--teal {
  background: var(--g-teal);
  color: var(--c-white);
}

.section--light {
  background: var(--c-off-white);
}

.section--white {
  background: var(--c-white);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-teal-mid);
  margin-bottom: var(--sp-3);
}

.section-label--gold {
  color: var(--c-gold-light);
}

.section-label--white {
  color: rgba(255,255,255,0.6);
}

.section-heading {
  margin-bottom: var(--sp-4);
}

.section-subheading {
  font-size: var(--fs-md);
  color: var(--c-text-muted);
  max-width: var(--max-width-text);
  margin-bottom: var(--sp-12);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.mx-auto     { margin-inline: auto; }

/* ─── GRID UTILITIES ─── */
.grid {
  display: grid;
  gap: var(--sp-8);
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ─── SCREEN READER ONLY ─── */
.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;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-teal-light), transparent);
  opacity: 0.3;
  margin-block: var(--sp-4);
}

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
}

.badge--teal {
  background: rgba(13,122,110,0.15);
  color: var(--c-teal-light);
  border: 1px solid rgba(18,196,174,0.3);
}

.badge--gold {
  background: rgba(200,146,42,0.15);
  color: var(--c-gold-light);
  border: 1px solid rgba(232,174,60,0.3);
}
