* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--olive);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.skip-link:focus {
  left: var(--gutter);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.btn {
  display: inline-block;
  padding: 18px 42px;
  border-radius: 0;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgb(var(--accent-rgb) / 0.35);
}

.btn-primary:hover {
  background: var(--olive-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -6px rgb(var(--accent-rgb) / 0.42);
}

.btn-outline {
  border-color: var(--olive);
  color: var(--olive);
  background: transparent;
}

.btn-outline:hover {
  background: var(--olive-soft);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .btn {
    padding: 15px 28px;
    font-size: 0.88rem;
  }
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* ── Mobile Fixed CTA Bar ── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--surface-inverse);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cta-bar.visible {
  transform: translateY(0);
}

.mobile-cta-bar .btn {
  flex: 1;
  text-align: center;
  padding: 14px 16px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
  }
}

/* iOS Safari: reliable full-viewport overlay height */
@supports (-webkit-touch-callout: none) {
  .mobile-overlay {
    min-height: -webkit-fill-available;
  }

  .mobile-overlay-inner {
    min-height: -webkit-fill-available;
  }

  .hero {
    min-height: -webkit-fill-available;
  }
}
