/* ─── Variables ─────────────────────────────── */
:root {
  --bg:       #F5F0E6;
  --text:     #1C0E04;
  --accent:   #C07808;
  --form-bg:  #EDE8D8;
  --cream:    #F5EFE2;
  --font-heading: 'Gloock', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      system-ui, -apple-system, sans-serif;
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }

/* ─── Base ───────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid rgba(28, 14, 4, 0.08);
}

.nav-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  white-space: nowrap;
}

/* ─── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  height: 65vw;
  min-height: 280px;
  max-height: 72vh;
  display: flex;
  align-items: flex-end;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center 50%;
  will-change: background-position;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.25rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(245, 239, 226, 0.72);
  margin-bottom: 1.25rem;
}

/* ─── Button ─────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--text);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.82; }

.btn--full {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
}

/* ─── About ──────────────────────────────────── */
.about {
  padding: 2.5rem 1.25rem;
  border-bottom: 1px solid rgba(28, 14, 4, 0.08);
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.about-body {
  font-size: 1rem;
  color: rgba(28, 14, 4, 0.72);
  max-width: 50ch;
  margin-bottom: 1.75rem;
}

/* ─── Facts ──────────────────────────────────── */
.facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fact {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  padding-left: 1.2rem;
  position: relative;
}

.fact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Stockpile photo ────────────────────────── */
.photo-break {
  height: 42vw;
  max-height: 52vh;
  min-height: 200px;
  overflow: hidden;
}

.photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ─── Form section ───────────────────────────── */
.form-section {
  background: var(--form-bg);
  border-top: 2px solid var(--text);
  padding: 2.5rem 1.25rem;
}

.form-inner {
  max-width: 560px;
  margin: 0 auto;
}

.form-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-sub {
  font-size: 0.9rem;
  color: rgba(28, 14, 4, 0.6);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-wrap label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 14, 4, 0.55);
}

.field-wrap input,
.field-wrap textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(28, 14, 4, 0.22);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}

.field-wrap input:focus,
.field-wrap textarea:focus {
  outline: none;
  border-color: var(--text);
}

.field-wrap textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field-wrap--full {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.form-note {
  font-size: 0.8rem;
  color: rgba(28, 14, 4, 0.45);
  text-align: center;
  margin-top: 0.75rem;
}

/* ─── Footer ─────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(245, 239, 226, 0.42);
  text-align: center;
  padding: 1rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

/* ─── Page-load animation ────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero uses fade-only — transform breaks background-attachment: fixed */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nav          { animation: fadeUp 0.45s ease both; }
.hero         { animation: fadeIn 0.6s ease both; }
.hero-content { animation: fadeUp 0.45s ease 0.12s both; }
.about        { animation: fadeUp 0.45s ease 0.22s both; }
.photo-break  { animation: fadeUp 0.45s ease 0.28s both; }
.form-section { animation: fadeUp 0.45s ease 0.34s both; }

/* ─── Desktop ────────────────────────────────── */
@media (min-width: 720px) {
  .nav {
    padding: 1.25rem 2.5rem;
  }

  .nav-name { font-size: 1.1rem; }

  .hero-content {
    padding: 2.5rem 2.5rem;
  }

  .about {
    padding: 4rem 2.5rem;
  }

  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .about-body {
    margin-bottom: 0;
    max-width: none;
  }

  .form-section {
    padding: 4rem 2.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
