/**
 * Base Typography, Resets & Global Utility Styles
 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-total) + 16px);
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 3.65rem);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw + 0.5rem, 2.65rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.3rem, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

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

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

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

/* Text & Gradient Utilities */
.gradient-text {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-navy {
  background: linear-gradient(135deg, #0D2B55 0%, #1A4480 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.accent-text {
  color: var(--accent-dark);
}

.primary-text {
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
}

.text-light {
  color: var(--text-light);
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--content-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: var(--content-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Spacing */
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

.section-sm {
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
  position: relative;
}

.section-alt {
  background-color: var(--bg-pale);
}

.section-dark {
  background: var(--grad-dark);
  color: var(--text-white);
}

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

.section-dark .text-muted {
  color: var(--text-light);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.75rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.15rem;
  border-radius: var(--r-full);
  background: rgba(13, 43, 85, 0.06);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1.15rem;
}

.section-pill.gold {
  background: var(--accent-pale);
  border-color: var(--border-gold);
  color: var(--accent-dark);
}

.section-pill.pill-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--accent-bright);
}

.section-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}

.section-title {
  margin-bottom: 1.15rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

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

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

/* Scroll Reveal Animations (Always 100% visible by default, smooth hover/entrance) */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
