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

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #1B4332;
  color: #FDF6E3;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.3);
}
.btn-primary:hover {
  background: #16382a;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(27, 67, 50, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #1B4332;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 1rem;
  text-decoration: none;
  border: 2px solid #d5e2d9;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-secondary:hover {
  background: #f0f5f2;
  border-color: #7ab882;
  transform: translateY(-2px);
}

/* ── Inputs ── */
.input-field {
  background: #FDF6E3;
  border: 2px solid #d5e2d9;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: #1B4332;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.input-field::placeholder { color: #7ab882; }
.input-field:focus {
  border-color: #1B4332;
  box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.1);
}

/* ── Nav links ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #337d43;
  border-radius: 1px;
  transition: width 0.25s;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile links ── */
.mobile-link {
  display: block;
}

/* ── Floating animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 4.5s ease-in-out infinite 0.5s; }

/* ── Ice card shadow ── */
.ice-card-main {
  box-shadow: 0 25px 60px rgba(27, 67, 50, 0.25), 0 8px 20px rgba(27, 67, 50, 0.15);
}

/* ── Scroll-reveal base (progressive enhancement) ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ── Mobile menu transition ── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .font-display { font-size: 2.5rem; line-height: 1.1; }
  h2.font-display { font-size: 2.25rem; }
}

@media (min-width: 641px) and (max-width: 1023px) {
  h2.font-display { font-size: 3rem; }
}
