/* ============================================
   IRON FORGE FITNESS — Base Styles & Reset
   ============================================ */

/* === Modern Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-gray);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
}

p {
  margin: 0;
}

/* === Section Utilities === */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-red);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-badge.light {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.section-title {
  font-size: var(--text-section);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-title.light {
  color: #FFFFFF;
}

.section-desc {
  font-size: var(--text-body);
  color: var(--color-gray);
  max-width: 600px;
  line-height: 1.8;
}

.section-desc.light {
  color: rgba(255, 255, 255, 0.7);
}

.section-desc.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

/* === Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* === Selection === */
::selection {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-navy);
}

/* === Scrollbar (Webkit) === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray);
}

/* === Focus Visible (Accessibility) === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
  border-radius: 4px;
}
