/*
  ===================================================================
  NOMADIC HERITAGE FOUNDATION — DESIGN FILE
  ===================================================================

  This file controls how the website looks.
  The easiest things to change are the COLOURS and FONTS just below.
  A colour looks like #1f1d1a. You can pick new ones at
  https://htmlcolorcodes.com and paste the code in.
  ===================================================================
*/

:root {
  /* ---- COLOURS ---- */
  /* Taken from the brand palette (see brand-identity/palette.html) */
  --page:      #f4ece1;   /* main page background: Sand Light */
  --stone:     #e9dccb;   /* slightly deeper sand (button hover): Sand */
  --ink:       #2e2116;   /* main text colour: Bark */
  --ink-soft:  #6e5f50;   /* softer text colour */
  --line:      #c9b29a;   /* thin lines: Dune */
  --white:     #f4ece1;   /* light text and buttons on top of photos */

  /* ---- FONTS ---- */
  --font-serif: "Cormorant Garamond", Georgia, serif;    /* big elegant text */
  --font-sans:  "Inter", Helvetica, Arial, sans-serif;   /* small text and labels */

  /* ---- SIZES ---- */
  --max-width: 1200px;    /* how wide the content can get */
}


/* ===== BASICS (you rarely need to change these) ===== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

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

p { margin: 0 0 1em; }

a { color: inherit; }

.center { text-align: center; }

/* The tiny, widely spaced capital-letter labels, like "MISSION" */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Big, elegant serif text used for the mission and vision */
.serif-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}


/* ===== MENU BAR ===== */

.menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.menu-logo {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-links {
  order: 2;   /* keeps the links after (to the right of / below) the name */
  position: absolute;
  right: 32px;
  display: flex;
  gap: 24px;
}

.menu-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
}

.menu-links a:hover { opacity: 1; }


/* ===== BIG OPENING PHOTO ===== */
/* To change the photo, replace "acacia-walker.jpg" with your file name. */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 8vw 80px;
  color: var(--white);
  text-align: left;
}

.hero-photo {
  background:
    linear-gradient(to right, rgba(25, 18, 10, 0.6), rgba(25, 18, 10, 0.2) 70%),
    linear-gradient(rgba(25, 18, 10, 0.25), rgba(25, 18, 10, 0.25)),
    url("images/acacia-walker.jpg") center / cover no-repeat;
}

.hero-text { max-width: 640px; position: relative; }

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.hero h1 em {
  font-style: italic;
  text-transform: none;
  display: block;
}

.hero-tagline {
  font-size: 15px;
  max-width: 34em;
  margin-bottom: 32px;
}


/* ===== BUTTON ===== */

.button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.button:hover { background: var(--stone); }


/* ===== DESCRIPTION ===== */

.intro {
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.intro p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.35;
  margin: 0;
}

/* A short line under the opening sentence, to separate it from the Mission */
.intro::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--line);
  margin: 64px auto 0;
}


/* ===== MISSION (photo next to text) ===== */

.split {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}


/* ===== VISION (text over a full-width photo) ===== */
/* To change the photo, replace "camels-walking.jpg" with your file name. */

.photo-band {
  min-height: 110vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 8vw 12vh;
  color: var(--white);
}

.vision-photo {
  background:
    linear-gradient(to top, rgba(25, 18, 10, 0.8), rgba(25, 18, 10, 0.35) 45%, rgba(25, 18, 10, 0) 70%),
    url("images/camels-walking.jpg") center / cover no-repeat;
}

.photo-band-text { max-width: 620px; position: relative; }


/* ===== CORE VALUES ===== */

.values-section {
  padding: 120px 24px;
}

.values {
  max-width: var(--max-width);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}

.value {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.value h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.value p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}


/* ===== PROJECTS ===== */

.projects-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 120px;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--ink);
}

.project-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Every other project puts its photo on the right */
.project.flip .project-photo { order: 2; }

.project-number {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.project h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.project-text p:last-child {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}


/* ===== QUIET PHOTO STRIP (full-width photo, no text) ===== */
/* To change the photo, replace "acacia-canopy.jpg" with your file name. */

.photo-strip {
  height: 55vh;
  min-height: 320px;
  margin-bottom: 120px;
}

.strip-photo {
  background: url("images/acacia-canopy.jpg") center / cover no-repeat;
}


/* ===== PHOTOS THAT STAY STILL WHILE THE PAGE SCROLLS ===== */
/* A section with class "window" shows its photo like a window:
   the photo stays in place and the page moves past it. */

.window {
  position: relative;
  isolation: isolate;
  clip-path: inset(0);   /* only show the photo inside this section */
}

.window-photo {
  position: fixed;
  inset: 0;
  z-index: -1;
}


/* ===== GENTLE FADE-IN ANIMATIONS ===== */
/* Used by animations.js. Change 1s to make fades slower or faster. */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* The opening photo settles in slowly when the page loads */
.animations-on .hero-photo {
  animation: settle 2.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes settle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* For people who switch off motion on their device: no movement at all */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .window { clip-path: none; overflow: hidden; }
  .window-photo { position: absolute; }
}


/* ===== SUPPORT ===== */

.support-section {
  background: var(--stone);
  padding: 120px 24px;
  text-align: center;
}

.support-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 20px;
}

.support-text {
  max-width: 36em;
  margin: 0 auto 36px;
  color: var(--ink-soft);
}

/* A dark button for light backgrounds (for when donations open) */
.button-dark { background: var(--ink); color: var(--page); }
.button-dark:hover { background: var(--acacia, #5f5a35); }

.button-dark { border: 0; cursor: pointer; font-family: var(--font-sans); }

/* Email sign-up */
.signup {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.signup input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font: 300 15px var(--font-sans);
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 0;
}

.signup input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.signup-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.signup-message { margin: 10px 0 0; font-size: 14px; min-height: 1.4em; }

/* The thank-you page after signing up */
.thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Text only screen readers announce */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ===== FOOTER ===== */

.footer {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-name {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-dedication {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin: 0;
}


/* ===== PHONES AND SMALL SCREENS ===== */
/* Everything below only applies when the screen is narrower than 800px. */

/* On medium screens, the name moves to the left and the links stay on the right */
@media (max-width: 1150px) {
  .menu { justify-content: space-between; }
  .menu-links { position: static; }
}

@media (max-width: 800px) {
  /* On phones, the links move under the name */
  .menu {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px 16px;
  }
  .menu-links { gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
  .menu-logo { font-size: 11px; letter-spacing: 0.24em; text-align: center; }

  .hero {
    justify-content: flex-start;
    text-align: left;
    padding: 140px 20px 56px;
    align-items: flex-end;
  }
  .hero-tagline { margin-left: 0; }

  .intro { padding: 72px 20px; }
  .intro::after { margin-top: 40px; }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px 72px;
  }

  .photo-band { min-height: 100vh; padding: 48px 20px 10vh; }
  .vision-photo { background-position: 78% center; }   /* keeps the lead camel in view */

  .values-section { padding: 72px 20px; }
  .values { grid-template-columns: 1fr; gap: 36px; }

  .projects-section { padding: 0 20px 72px; }
  .support-section { padding: 72px 20px; }
  .signup { flex-direction: column; }
  .project { grid-template-columns: 1fr; gap: 28px; }
  .project.flip .project-photo { order: 0; }   /* on phones the photo always comes first */

  .photo-strip { height: 40vh; min-height: 240px; margin-bottom: 72px; }
}
