@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@400;500;700&family=Amatic+SC:wght@700&family=Archivo+Black&display=swap');

:root {
  /* parchment paper */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.27 0 0 0 0 0.14 0 0 0 0.38 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper: var(--paper-grain), linear-gradient(180deg, #f0e4c9 0%, #e5d5b2 100%);
  --ink: #3b2d1c;
  --ink-soft: #5a4126;
  --brush-orange: #ea8a2e;
  --plate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-6%25' y='-12%25' width='112%25' height='124%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.09' numOctaves='3' seed='7' result='t'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='t' scale='16'/%3E%3C/filter%3E%3Crect x='14' y='16' width='372' height='128' rx='14' fill='%23232a1b' fill-opacity='0.66' filter='url(%23r)'/%3E%3C/svg%3E");
  --night: #15110d;
  --font-ui: "Alegreya Sans", "Roboto", sans-serif;
  --font-title: "Amatic SC", "Impact", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: #2f2a24;
  background: #F3E4D1;
}

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

.container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

/* Header / navigation - mobile-first */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: transparent;
}

.header-content {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 110px;
  height: auto;
  display: block;
}

.header-donate {
  display: none;
}

/* Hamburger button */
.menu-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 30;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav panel */
.main-nav {
  display: none;
  position: absolute;
  top: 82px;
  left: 16px;
  right: 16px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  z-index: 25;
}

.main-nav.active {
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.main-nav li {
  width: 100%;
}

.nav-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px;
  background: none;
  border: none;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-title:hover,
.nav-title:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  color: #c1621a;
}

.nav-title.is-current {
  color: #c1621a;
}

/* Dropdown panel (mobile: inline; desktop: floating) */
.dropdown {
  display: none;
  margin: 2px 4px 8px;
  padding: 4px 0 2px;
}

.dropdown.active {
  display: block;
}

.dropdown-label {
  position: relative;
  padding: 6px 10px 12px;
  font-family: "Archivo Black", "Roboto", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

/* hand-drawn looking rule under the label */
.dropdown-label::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(90, 65, 38, 0.5) 6%, rgba(90, 65, 38, 0.4) 94%, transparent 100%);
}

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

.dropdown li + li {
  border-top: 1px solid rgba(90, 65, 38, 0.16);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 7px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

/* painted orange wash on hover/focus */
.dropdown a:hover,
.dropdown a:focus-visible {
  outline: none;
  color: #2a1d0f;
  background:
  radial-gradient(ellipse at 28% 35%,
    rgba(245, 205, 140, 0.507),
    transparent 60%),
  radial-gradient(ellipse at 75% 70%,
    rgba(223, 153, 67, 0.719),
    transparent 65%),
  linear-gradient(90deg,
    #edc58e,
    #dfae75 55%,
    #d19a60);
}

/* the row above/below a hovered row shouldn't show its divider on the wash */
.dropdown li:hover,
.dropdown li:hover + li {
  border-top-color: transparent;
}

/* Desktop nav */
@media (min-width: 1024px) {
  .header-content {
    min-height: 96px;
  }

  .logo img {
    width: 140px;
  }

  .header-donate {
    display: inline-flex;
    align-items: center;
    padding: 12px 34px 13px;
    background: #d9792a;
    color: #fff6e8;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 30px 36px 32px 38px / 36px 30px 38px 32px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
  }

  .header-donate:hover {
    transform: translateY(-2px) rotate(-0.6deg);
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-nav > ul {
    flex-direction: row;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
  }

  .main-nav li {
    position: relative;
  }

  .nav-title {
    width: auto;
    padding: 14px 0;
    color: #f5ecdd;
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  }

  .nav-title,
  .nav-title.is-current {
    position: relative;
    color: #f5ecdd;
  }

  .nav-title:hover,
  .nav-title:focus-visible {
    background: none;
    color: #fff;
  }

  /* orange brush stroke under the active / hovered item */
  .nav-title::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    bottom: 6px;
    height: 5px;
    background: linear-gradient(90deg, rgba(234, 138, 46, 0.2), var(--brush-orange) 14%, var(--brush-orange) 84%, rgba(234, 138, 46, 0.25));
    clip-path: polygon(0 62%, 6% 18%, 50% 8%, 94% 22%, 100% 58%, 92% 92%, 48% 100%, 8% 86%);
    transform: rotate(-0.8deg) scaleX(0);
    transform-origin: left center;
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .main-nav li:hover > .nav-title::after,
  .main-nav li:focus-within > .nav-title::after,
  .nav-title.is-current::after {
    opacity: 1;
    transform: rotate(-0.8deg) scaleX(1);
  }

  .dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: -16px;
    width: max-content;
    min-width: 280px;
    max-width: 360px;
    margin: 6px 0 0;
    padding: 14px 14px 16px;
    background: var(--paper);
    border-radius: 7px;
    box-shadow:
      0 18px 40px rgba(20, 12, 4, 0.38),
      0 2px 0 rgba(255, 255, 255, 0.45) inset,
      0 0 0 1px rgba(90, 65, 38, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  }

  /* invisible bridge so the cursor never loses hover between item and card */
  .dropdown::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
  }

  /* keep the last dropdowns inside the viewport */
  .main-nav li:last-child .dropdown {
    left: auto;
    right: -16px;
  }

  .main-nav li:hover .dropdown,
  .main-nav li:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .dropdown a {
    font-size: 1rem;
  }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-video { display: block; }
.mobile-video  { display: none; }

@media (max-width: 768px) {
  .desktop-video { display: none; }
  .mobile-video  { display: block; }
}

/* dark at the top for the nav, light in the middle for the artwork,
   and a long fade into the footer colour at the bottom */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(14, 10, 6, 0.78) 0%,
      rgba(14, 10, 6, 0.30) 16%,
      rgba(14, 10, 6, 0.06) 34%,
      rgba(14, 10, 6, 0.10) 46%,
      rgba(14, 10, 6, 0.50) 64%,
      rgba(21, 17, 13, 0.82) 80%,
      rgba(21, 17, 13, 0.96) 92%,
      var(--night) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 108px 0 44px;
  color: #f5ecdd;
  text-align: center;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  margin-top: 2rem;
}

/* ---------- title on the painted plate ---------- */
.hero .hero-title {
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 24px clamp(26px, 6vw, 64px) 28px;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1;
  color: #f7efdc;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.hero-title::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  z-index: -1;
  background: var(--plate) center / 100% 100% no-repeat;
}

.hero-title__peaks {
  display: block;
  width: clamp(64px, 9vw, 112px);
  height: auto;
  margin: 0 auto 6px;
  color: #f7efdc;
}

.hero-title__line1 {
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 2.5rem);
  letter-spacing: 0.14em;
  -webkit-text-stroke: 0.5px currentColor;
}

.hero-title__line2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin-top: 4px;
  font-size: clamp(2.4rem, 6.6vw, 5rem);
  letter-spacing: 0.07em;
  -webkit-text-stroke: 1.2px currentColor;
}

.hero-title__tree {
  width: 0.42em;
  height: auto;
  flex-shrink: 0;
  color: #f7efdc;
}

/* ---------- message on its own plate so it never blends into the art ---------- */
.hero-copy {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: auto;
  padding: 30px clamp(22px, 5vw, 56px) 26px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -5% -3%;
  z-index: -1;
}

.hero-copy p {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.1vw, 1.42rem);
  line-height: 1.42;
  color: #f7efdc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-copy .hero-highlight {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  color: #ffd9a0;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px auto 12px;
}

.hero-divider .divider-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(2.3) sepia(0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 190px;
  padding: 0 34px;
  border: none;
  border-radius: 32px 38px 34px 40px / 38px 32px 40px 34px;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary { background: #2f6b40; color: #f7efdc; }
.btn-light   { background: #f3e8d2; color: #3b2d1c; }
.btn-donate  { background: #d9792a; color: #fff6e8; }

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) rotate(-0.5deg);
}

@media (max-width: 700px) {
  .hero-content { padding: 96px 0 36px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: min(100%, 280px); }
}

/* Footer */

.site-footer {
  position: relative;
  padding: 56px 0 26px;
  color: #f1e4cc;
  font-family: var(--font-ui);
  background: linear-gradient(180deg, var(--night) 0%, #0f0b08 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper-grain);
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  gap: 34px;
  align-items: start;
}

.footer-brand img {
  display: block;
  width: 220px;
  height: 124px;
  margin: 0 0 20px;
  object-fit: cover;
  object-position: 50% 49%;
}

.footer-brand p {
  max-width: 520px;
  margin: 0 0 20px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #eadcc2;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-socials .btn {
  height: 50px;
  min-width: 0;
  padding: 0 26px;
  font-size: 1.2rem;
}

/* contact "pinned note", echoing the notes on the artwork */
.footer-note {
  padding: 24px 24px 20px;
  color: #3b2d1c;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: rotate(-0.8deg);
  font-size: 1.12rem;
  line-height: 1.45;
}

.footer-note h4 {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2f2314;
  -webkit-text-stroke: 0.5px currentColor;
}

.footer-note p { margin: 0 0 12px; }
.footer-note p:last-child { margin-bottom: 0; }

.footer-note a {
  color: #a8481a;
  text-decoration: underline;
  text-decoration-color: rgba(168, 72, 26, 0.4);

}

.footer-note a:hover { color: #6f2c08; }

.footer-note strong {
  font-weight: 700;
  color: #8a4a15;
}

.footer-note .small {
  font-size: 1rem;
  opacity: 0.8;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 22px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px dashed rgba(240, 222, 190, 0.22);
}

.footer-links h4 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f2a65a;
  -webkit-text-stroke: 0.4px currentColor;
}

.footer-links a {
  display: block;
  margin: 0 0 9px;
  font-size: 1.12rem;
  line-height: 1.25;
  color: #f1e4cc;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffb066;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px dashed rgba(240, 222, 190, 0.22);
  font-size: 1.05rem;
  color: #cdb99a;
}

.footer-bottom p { margin: 0; }

@media (min-width: 700px) {
  .footer-top { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1100px) {
  .footer-links { grid-template-columns: repeat(6, 1fr); gap: 32px 20px; }
}
