/* ==========================================================================
   Base — resets, typography, generic element styling, layout helpers
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-2); color: var(--color-text); }

a {
  color: var(--color-coral-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover { color: var(--color-oxblood); }

ul, ol { padding-left: 1.25rem; }

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

section { padding: var(--space-6) 0; }
section.is-compact { padding: var(--space-5) 0; }

.section-bg-alt { background: var(--color-bg-alt); }
.section-bg-navy { background: var(--color-navy); color: var(--color-white); }
.section-bg-navy h2, .section-bg-navy h3 { color: var(--color-white); }
.section-bg-navy p { color: rgba(255,255,255,0.85); }
.section-bg-oxblood { background: var(--color-oxblood); color: var(--color-white); }
.section-bg-oxblood h2, .section-bg-oxblood h3 { color: var(--color-white); }
.section-bg-oxblood p { color: rgba(255,255,255,0.88); }

.section-header {
  max-width: 700px;
  margin: 0 auto var(--space-5);
  text-align: center;
}
.section-header .eyebrow { display: block; margin-bottom: var(--space-1); }
.section-header p { color: var(--color-text-muted); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-coral-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.75em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}
.btn--primary {
  background: var(--color-coral);
  color: var(--color-white);
  border-color: var(--color-coral);
}
.btn--primary:hover { background: var(--color-coral-dark); border-color: var(--color-coral-dark); color: var(--color-white); }

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-light:hover { background: var(--color-white); color: var(--color-navy); border-color: var(--color-white); }

.btn--small { padding: 0.6em 1.25em; font-size: 0.9rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--color-bg-alt); }
.card__body { padding: var(--space-3); }
.card__body h3 { margin-bottom: var(--space-1); }
.card__body p { color: var(--color-text-muted); margin-bottom: var(--space-2); }

/* Grid helpers */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Image placeholder provision — swap the <img src> in each page's HTML
   for a real photo. This class just gives an unstyled image a sensible
   fallback appearance until it's replaced. */
.img-provision {
  background: var(--color-bg-alt) url('/assets/images/placeholder.svg') center/cover no-repeat;
  min-height: 220px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
