/* ==========================================================
   Dragon Dudes · "Friendly Fire" theme
   Edit the colors and fonts in :root below.
   ========================================================== */

:root {
  /* Brand colors */
  --cream: #FFF8EC;        /* background */
  --cream-deep: #FCEDD2;   /* slightly deeper cream for the hero */
  --green: #1F5D3A;        /* primary forest green */
  --green-dark: #164529;
  --ember: #F26B21;        /* accent ember orange */
  --ember-dark: #D9561B;
  --gold: #F5B83D;         /* secondary gold */
  --gold-light: #FFD27A;   /* links on green (AA contrast) */
  --charcoal: #2B2B2B;     /* text */
  --white: #FFFFFF;

  /* Fonts */
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & spacing */
  --radius: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --space-section: clamp(3.5rem, 9vw, 6.5rem);
  --shadow: 0 6px 0 rgba(43, 43, 43, .12), 0 14px 30px rgba(43, 43, 43, .08);
  --nav-height: 68px;
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--green); font-weight: 700; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

img, svg { max-width: 100%; }

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Focus (visible everywhere) ---------- */
:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--green :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 3px solid var(--charcoal);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--charcoal);
  background: var(--white);
  box-shadow: 0 4px 0 var(--charcoal);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--charcoal); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--charcoal); }

/* Charcoal text on ember orange passes WCAG AA (≈4.6:1) */
.btn--ember { background: var(--ember); color: var(--charcoal); }
.btn--ember:hover { background: #F57A35; }

.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { background: var(--green-dark); }

.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--white); box-shadow: 0 4px 0 var(--charcoal); }

.btn--big { min-height: 60px; padding: 1rem 2rem; font-size: 1.375rem; }
.btn--small { min-height: 44px; padding: .5rem 1.1rem; font-size: 1rem; box-shadow: 0 3px 0 var(--charcoal); }

/* ---------- Sticky nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 3px solid var(--green);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--green);
  text-decoration: none;
}
.nav__logo { width: 44px; height: 44px; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 3px solid var(--charcoal);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 22px; height: 3px;
  background: var(--charcoal);
  border-radius: 3px;
  position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile menu: hidden behind the toggle only when JS is running */
.js .nav__menu {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--cream);
  border-bottom: 3px solid var(--green);
  box-shadow: 0 12px 24px rgba(43, 43, 43, .12);
}
.js .nav__menu.is-open { display: flex; }
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .nav { flex-wrap: wrap; padding-block: .5rem; }
html:not(.js) .nav__menu { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

.nav__menu a:not(.btn) {
  display: block;
  padding: .75rem .5rem;
  font-weight: 800;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 10px;
}
.nav__menu a:not(.btn):hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 3px; }
.nav__menu .btn { margin-top: .5rem; }

@media (min-width: 800px) {
  .nav__toggle { display: none; }
  .js .nav__menu,
  .nav__menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .25rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__menu a:not(.btn) { padding: .5rem .75rem; }
  .nav__menu .btn { margin: 0 0 0 .5rem; }
}

section[id] { scroll-margin-top: calc(var(--nav-height) + 8px); }

/* ---------- Shared section styles ---------- */
.section { padding-block: var(--space-section); }

.section--green { background: var(--green); color: var(--cream); }
.section--green a:not(.btn) { color: var(--gold-light); }
.section--gold { background: var(--gold); color: var(--charcoal); }

.section__title { font-size: clamp(2.25rem, 7vw, 3.5rem); color: var(--green); }
.section--green .section__title { color: var(--cream); }
.section--gold .section__title { color: var(--charcoal); }

.section__lead { font-size: 1.2rem; max-width: 46ch; margin-bottom: 2.5rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .3rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--cream);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow--light { background: var(--gold); color: var(--charcoal); }
.eyebrow--dark { background: var(--charcoal); color: var(--gold); }

/* ---------- Dividers (scales + flames) ---------- */
.divider {
  position: relative;
  height: 44px;
  background: var(--from);
  margin-top: -1px;
}
.divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--to);
  -webkit-mask: var(--shape) repeat-x bottom left / var(--tile) 100%;
          mask: var(--shape) repeat-x bottom left / var(--tile) 100%;
}
.divider--flames {
  --tile: 88px;
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C8 32 12 22 10 8 C18 16 24 24 26 30 C30 20 34 12 40 2 C46 12 50 20 54 30 C56 24 62 16 70 8 C68 22 72 32 80 40 Z'/%3E%3C/svg%3E");
}
.divider--scales {
  height: 24px;
  --tile: 48px;
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 A20 20 0 0 1 40 20 Z'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--cream-deep);
  /* subtle dragon-scale pattern */
  background-image:
    radial-gradient(circle at 50% 100%, transparent 58%, rgba(31, 93, 58, .07) 60%, rgba(31, 93, 58, .07) 66%, transparent 68%),
    radial-gradient(circle at 50% 100%, transparent 58%, rgba(31, 93, 58, .07) 60%, rgba(31, 93, 58, .07) 66%, transparent 68%);
  background-size: 40px 20px;
  background-position: 0 0, 20px 10px;
  padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(3.5rem, 16vw, 7rem);
  color: var(--green);
  margin-bottom: .15em;
  text-shadow: 4px 4px 0 var(--gold);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: .75rem;
}

.hero__summary { font-size: 1.2rem; max-width: 38ch; margin-bottom: 1.75rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__actions .btn { flex: 1 1 auto; }

.hero__art {
  position: relative;
  justify-self: center;
  width: min(320px, 78vw);
}
.hero__art::before {
  content: "";
  position: absolute;
  inset: 6% 2% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 61, .55), rgba(242, 107, 33, .18) 60%, transparent 70%);
  z-index: 0;
}
.hero__dragon {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
}
.hero__bubble {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -4%;
  max-width: 13rem;
  margin: 0;
  padding: .6rem .9rem;
  background: var(--white);
  border: 3px solid var(--charcoal);
  border-radius: 18px 18px 18px 4px;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.3;
  transform: rotate(4deg);
}

@media (min-width: 800px) {
  .hero__inner { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__art { width: 100%; max-width: 400px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__dragon { animation: bob 4s ease-in-out infinite; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* ---------- Cards ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  color: var(--charcoal);
  border: 3px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card h3 { font-size: 1.6rem; color: var(--green); }
.card p:last-child { margin-bottom: 0; }

@media (hover: hover) {
  html .cards .card:hover { transform: translateY(-4px) rotate(-.5deg); }
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 1rem;
  font-size: 1.9rem;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--gold);
}

/* ---------- About ---------- */
.mission {
  position: relative;
  margin: 0 0 3rem;
  padding: 2rem 1.5rem 2rem 2rem;
  background: var(--white);
  border-left: 8px solid var(--ember);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 52rem;
}
.mission p {
  margin: 0;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.45;
}

.value-card:nth-child(1) .card__icon { border-color: var(--green); }
.value-card:nth-child(2) .card__icon { border-color: var(--gold); }
.value-card:nth-child(3) .card__icon { border-color: var(--ember); }

/* ---------- What we do ---------- */
.activity-card { border-color: var(--green-dark); box-shadow: 0 6px 0 var(--green-dark); }

/* ---------- Events ---------- */
.coming-soon {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 3px dashed var(--green);
  border-radius: var(--radius-lg);
}
.coming-soon__icon { width: 120px; height: 120px; justify-self: center; transform: rotate(-6deg); }
.coming-soon h3 { font-size: clamp(1.5rem, 4.5vw, 2rem); color: var(--green); }
.coming-soon__badge {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  font-weight: 800;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (min-width: 700px) {
  .coming-soon { grid-template-columns: auto 1fr; padding: 2.5rem 3rem; gap: 2.5rem; }
  .coming-soon__icon { width: 160px; height: 160px; }
}

/* Ready for a future Google Calendar embed */
.calendar-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
@media (min-width: 800px) { .calendar-embed { aspect-ratio: 16 / 9; } }
.calendar-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Ready for future event cards */
.event-card__date { font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
.event-card__place { font-weight: 700; }

/* ---------- Join ---------- */
.join__inner { display: grid; gap: 2.5rem; align-items: center; }
.join__pitch {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.2;
}
.join__text > p:not(.join__pitch):not(.eyebrow) { max-width: 48ch; }
.join__text .btn { margin: .5rem 0 1.5rem; }
.join__note {
  padding: 1rem 1.25rem;
  background: rgba(255, 248, 236, .75);
  border-radius: var(--radius);
  border: 2px solid var(--charcoal);
  max-width: 48ch;
}

.joke { text-align: center; transform: rotate(1.5deg); }
.joke h3 { color: var(--green); }
.joke__text { font-size: 1.2rem; font-weight: 700; min-height: 4.2em; display: grid; place-items: center; }

@media (min-width: 880px) {
  .join__inner { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: var(--cream);
  padding-block: 3rem 2.5rem;
  text-align: center;
}
.site-footer a { color: var(--gold-light); }
.footer__inner { display: grid; justify-items: center; gap: .25rem; }
.footer__brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.footer__logo { width: 56px; height: 56px; }
.footer__name { font-family: var(--font-display); font-size: 1.9rem; margin: 0; }
.footer__contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; }
.placeholder-tag {
  display: inline-block;
  padding: .15rem .6rem;
  border: 2px dashed var(--gold);
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer__small { font-size: .95rem; opacity: .95; margin-top: 1rem; }

/* ---------- Scroll-in animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .joke.reveal.is-visible { transform: rotate(1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
