/* ============================================
   BASE — Reset, typography, utility classes
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.15;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--maroon);
  margin-bottom: 0.4rem;
}

.section-rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-bottom: var(--space-md);
  border-radius: 2px;
}

.section-intro {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.section > .container > .section-tag,
.section > .container > .section-heading,
.section > .container > .section-intro {
  display: block;
  text-align: center;
  text-align-last: center;
  margin-left: auto;
  margin-right: auto;
}

.section > .container > .section-rule {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: var(--navy-deep);
  color: var(--cream-light);
}

.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-outline {
  background: transparent;
  color: var(--navy-deep);
  border: 1.5px solid var(--navy-deep);
}

.btn-outline:hover {
  background: var(--navy-deep);
  color: var(--cream-light);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

.link-more svg {
  transition: transform 0.25s var(--ease);
}

.link-more:hover svg {
  transform: translateX(4px);
}

/* Reveal-on-scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-lg) 0;
  }
}
