/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #f2b8a0;
  color: #672016;
}

/* ── Typography ── */
h1, h2, h3 {
  font-weight: 300;
}

p {
  font-weight: 300;
}

/* ── Nav ── */
#site-header {
  background: rgba(254, 252, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220, 200, 190, 0.3);
}

#site-header.scrolled {
  background: rgba(254, 252, 251, 0.95);
  box-shadow: 0 1px 0 rgba(220, 200, 190, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #d44a28;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  transition: opacity 0.3s ease;
}

.menu-line {
  transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ── Hero Animations ── */
.hero-title {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: translateY(30px);
  opacity: 0;
}

.hero-subtitle {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  transform: translateY(30px);
  opacity: 0;
}

.hero-eyebrow {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  transform: translateY(30px);
  opacity: 0;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Buttons ── */
.btn-primary {
  position: relative;
  padding: 14px 32px;
  background: #d44a28;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #c2371e;
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  color: #fff;
}

.btn-white {
  padding: 14px 32px;
  background: #fff;
  color: #c2371e;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-white:hover {
  background: #fdf0eb;
  color: #9f2c1b;
}

.btn-ghost {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

/* ── Eyebrow ── */
.eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Input Fields ── */
.input-field {
  font-family: 'Inter', system-ui, sans-serif;
}

.input-field option {
  background: #fdfcfb;
  color: #87352c;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.visible[data-reveal] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Approach Cards ── */
.approach-card {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .approach-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .approach-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Program Cards ── */
.program-card {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .program-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .program-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Image Hover ── */
img {
  display: block;
}

/* ── Select Arrow ── */
select.input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c4a882' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
}

/* ── Focus Visible ── */
*:focus-visible {
  outline: 1px solid #d44a28;
  outline-offset: 2px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #fdfcfb;
}

::-webkit-scrollbar-thumb {
  background: #e8d4c7;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c4a882;
}
