/* Green Apple Events: single dark theme, mobile first from 320px up. */

:root {
  /* Color roles. Pure black base matches the opaque black logo master. */
  --bg: #000000;
  --surface: #101508;
  --border: #2a3618;
  --fg: #eef3ea;
  --muted: #b9c4ae;
  --accent: #8dc63f;
  --accent-soft: #b8dd85;
  --link: #a8d766;
  --focus: #d3ecab;
  --btn-fg: #0c1305;

  /* Type scale */
  --font-body:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-display:
    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2.5vw, 3.1rem);

  /* Spacing, radii, widths, motion */
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4.5rem;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 70rem;
  --dur: 200ms;
  --ease: ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
}

h2 {
  font-size: var(--step-2);
}

h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 var(--space-3);
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-soft);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  z-index: 10;
  background: var(--accent);
  color: var(--btn-fg);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus-visible {
  top: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--btn-fg);
  font-weight: 700;
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  transition:
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover {
  background: var(--accent-soft);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--link);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--accent-soft);
}

.btn--small {
  padding: 0.625rem 1rem;
}

.btn--large {
  font-size: var(--step-1);
  padding: 1rem 2rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-3);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-header__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--fg);
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  display: inline-block;
  padding: 0.625rem 0.625rem;
  color: var(--fg);
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Sections */
.section {
  padding-block: var(--space-6);
  scroll-margin-top: var(--space-3);
}

.section__lead {
  color: var(--muted);
  max-width: 46rem;
  margin-bottom: var(--space-5);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: var(--space-2);
}

/* Hero */
.hero {
  padding-block: var(--space-5) var(--space-6);
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--accent-soft);
}

.hero__lead {
  color: var(--muted);
  max-width: 46rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-4) var(--space-5);
}

.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Service cards */
.cards {
  display: grid;
  gap: var(--space-4);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card img {
  width: 100%;
}

.card__body {
  padding: var(--space-4);
}

.card__body p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Gallery */
.gallery {
  display: grid;
  gap: var(--space-4) var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
}

.figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: var(--space-2);
}

/* About */
.about {
  display: grid;
  gap: var(--space-5);
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* Contact call to action */
.section--cta {
  background: var(--surface);
  border-block: 1px solid var(--border);
  text-align: center;
}

.section--cta .section__lead {
  margin-inline: auto;
}

.cta__action {
  margin-block: var(--space-4);
}

.cta__note {
  color: var(--muted);
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  padding-block: var(--space-5);
  text-align: center;
}

.site-footer__logo {
  margin-inline: auto;
  width: 200px;
  height: auto;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin-block: var(--space-3) var(--space-2);
}

.site-footer__area {
  color: var(--muted);
}

.site-footer__credit {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: var(--space-4);
  margin-bottom: 0;
}

/* Wider screens */
@media (min-width: 40rem) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .about {
    grid-template-columns: 1fr 45%;
    align-items: center;
  }
}

@media (min-width: 64rem) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Motion preferences: disable all nonessential movement. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
