/* Reset and global variables */
:root {
  --color-primary: #c0392b;
  --color-secondary: #ffba00;
  --color-text: #333;
  --color-bg: #fff;
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; }
header, nav, main, footer { width: min(90%, 70rem); margin-inline: auto; }
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: 1rem 0;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
nav a:hover, nav a:focus {
  background-color: #f0f0f0;
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
nav a.active { color: var(--color-primary); }
.hero {
  display: grid;
  place-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
  background: url('/assets/hero.jpg') center/cover no-repeat;
  min-height: 45vh;
  aspect-ratio: 16 / 9;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
}
section { padding-block: 2rem; }
.section--alt { background: #f7f7f7; }
.features {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature { text-align: center; }
footer {
  padding-block: 2rem;
  font-size: .875rem;
  text-align: center;
  border-top: 1px solid #ddd;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* === Layout Helpers === */
.container { width:min(95%, 72rem); margin-inline:auto; }
header {
  position:sticky; top:0; z-index:1000;
  background:#fff; box-shadow:0 2px 4px rgba(0,0,0,.05);
}
header .container { display:flex; align-items:center; justify-content:space-between; padding-block:.75rem; }
nav ul { gap:1.25rem; }
/* hero full-width */
.hero { width:100%; margin:0; }
.hero::after { content:""; position:absolute; inset:0; background:rgba(0,0,0,.35); }
.hero h1 { position:relative; z-index:1; }
.hero { position:relative; }
/* responsive hero height */
@media (min-width: 700px){ .hero{ min-height:55vh;} }
/* content sections */
section>h2 { text-align:center; margin-top:0; }
.features { padding-inline:1rem; }
/* utilities */
.text-center { text-align:center; } 