:root {
  --bg: #ffffff;
  --accent: #ff9800;
  --text: #222;
  --gap: 1rem;
  --header-bg: #333;
  --header-text: #fff;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --nav-bg: #333;
  --nav-text: #fff;
  --skip-link-bg: #000;
  --skip-link-text: #fff;
  --feature-bg: rgba(137, 137, 137, 0.2);
  --hero-overlay: rgba(0, 0, 0, 0.4);
  --cta-text: #fff;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--skip-link-bg);
  color: var(--skip-link-text);
  padding: 0.5rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--header-bg);
  color: var(--header-text);
  height: 4rem;
}

nav ul {
  display: flex;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-toggle {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.4rem;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover,
a:focus {
  text-decoration: none;
  color: inherit;
}

@media (min-width: 768px) {
  .close-menu {
    display: none;
  }
}

@media (max-width: 767px) {
  nav {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--overlay-bg);
    z-index: 1;
    min-width: 250px;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .close-menu {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--nav-text);
  }

  body.overlay::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    z-index: 1;
  }
}
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  nav {
    display: block;
  }
}

#features-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    padding: 2rem;
  }
}

.hero {
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("hero.jpg") center/cover no-repeat;
  color: var(--header-text);
  padding: clamp(3rem, 8vw, 6rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.6rem, 6vw, 3rem);
  margin-bottom: 0.5rem;
}
.cta {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--cta-text);
  border-radius: 6px;
  text-decoration: none;
}

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

.feature {
  animation: fadeUp 0.6s ease both;
  background-color: var(--feature-bg);
  text-align: center;
  padding: 1rem;
}

.feature img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.site-footer {
  background: var(--header-bg);
  color: var(--header-text);
  padding-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.footer-col h3 {
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--nav-text);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important;
    transition: none !important;
  }
}
