@font-face {
  font-family: "LokiCola";
  src: url("../assets/fonts/LOKICOLA.TTF") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "CocaScript";
  src: url("../assets/fonts/cocacola.ttf") format("truetype");
  font-display: swap;
}

:root {
  --text-primary: #f6f4ef;
  --text-muted: rgba(246, 244, 239, 0.82);
  --overlay-dark: rgba(9, 17, 13, 0.28);
  --overlay-light: rgba(61, 79, 59, 0.08);
  --panel-bg: rgba(12, 18, 15, 0.78);
  --panel-border: rgba(246, 244, 239, 0.2);
  --accent-warm: #d8bc7a;
  --font-script: "LokiCola", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-display: "Book Antiqua", "Palatino Linotype", Palatino, serif;
  --font-body: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #101714;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(8, 13, 11, 0.62), rgba(8, 13, 11, 0));
}

.site-logo {
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.03em;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1.4vw, 1.1rem);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--text-primary);
  border-bottom-color: rgba(246, 244, 239, 0.78);
}

/*
  The hero uses the exact image path provided in your repository.
  background-size: cover ensures the viewport is fully filled while
  preserving the image's aspect ratio.
*/
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* modern mobile: excludes browser chrome */
  padding: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(5rem, 11vh, 7rem);
  background-image: url("../assets/images/farm-bg-2x.png");
  background-size: cover;
  background-position: 38% center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--overlay-light), var(--overlay-dark));
}

.hero-content {
  position: absolute;
  top: clamp(20vh, 27vh, 32vh);
  right: clamp(1rem, 7vw, 7rem);
  width: min(44vw, 34rem);
}

.brand-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.72rem, 1.7vw, 1.28rem);
  font-size: clamp(1.95rem, 5vw, 4.25rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
  text-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
}

.brand-line {
  display: block;
  width: max-content;
  max-width: 100%;
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  filter: blur(6px);
}

.brand-line-one {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 6vw, 4.9rem);
  font-weight: 400;
  word-spacing: 0.16em;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  text-shadow: none;
  animation: hero-reveal 4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.brand-line-two {
  position: relative;
  margin: 0;
  padding-bottom: 0.16em;
  font-family: "CocaScript", var(--font-display);
  font-size: clamp(1.85rem, 3.9vw, 3.35rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  text-shadow: none;
  animation: hero-reveal 4s cubic-bezier(0.22, 1, 0.36, 1) 2.5s forwards;
}

/*
  Fallback outline for browsers that do not support text-stroke.
  This keeps the same visual intent without stacking stroke + shadows
  together on browsers that already render text-stroke.
*/
@supports not (-webkit-text-stroke: 1px #000) {
  .brand-line-one {
    text-shadow:
      -2px -2px 0 #000,
      2px -2px 0 #000,
      -2px 2px 0 #000,
      2px 2px 0 #000,
      0 -2px 0 #000,
      0 2px 0 #000,
      -2px 0 0 #000,
      2px 0 0 #000;
  }

  .brand-line-two {
    text-shadow:
      -2px -2px 0 #000,
      2px -2px 0 #000,
      -2px 2px 0 #000,
      2px 2px 0 #000,
      0 -2px 0 #000,
      0 2px 0 #000,
      -2px 0 0 #000,
      2px 0 0 #000;
  }
}

.brand-line-two::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(246, 244, 239, 0.92);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-underline 1.8s cubic-bezier(0.22, 1, 0.36, 1) 6.5s forwards;
}

/*
  Scroll cue visually tells users there is more content below the hero.
  This keeps the first screen cinematic while still inviting page exploration.
*/
.scroll-cue {
  display: inline-block;
  margin-top: clamp(1rem, 2.5vw, 1.6rem);
  padding-bottom: 0.2rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: clamp(0.9rem, 1.4vw, 1.02rem);
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(246, 244, 239, 0.7);
  opacity: 0;
  transform: translateY(10px);
  animation: title-fade 1.2s ease-out 8.5s forwards;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--accent-warm);
  border-bottom-color: var(--accent-warm);
}

/*
  This is the new long-form content zone below the hero.
  It is intentionally structured like a ministry presentation section:
  headline, story card, and a practical presentation outline card.
*/
.ministry-about {
  position: relative;
  padding: clamp(4.5rem, 10vh, 6.5rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 7vh, 4.5rem);
  background:
    radial-gradient(circle at 10% -30%, rgba(212, 165, 94, 0.22), transparent 45%),
    radial-gradient(circle at 90% 8%, rgba(68, 109, 65, 0.25), transparent 40%),
    linear-gradient(180deg, #121a16 0%, #0f1512 42%, #0a0f0d 100%);
}

.ministry-shell {
  max-width: 72rem;
  margin: 0 auto;
}

.section-kicker {
  margin: 0;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.ministry-shell h2 {
  margin: 0.7rem 0 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.7rem);
  line-height: 1.2;
}

.ministry-grid {
  margin-top: clamp(1.3rem, 3.2vw, 2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.2vw, 1.4rem);
}

.ministry-card {
  padding: clamp(1rem, 2.6vw, 1.5rem);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel-bg);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.ministry-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.ministry-card p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.presentation-list {
  margin: 0.95rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.presentation-list li {
  margin-top: 0.5rem;
  line-height: 1.55;
}

.presentation-list strong {
  color: var(--text-primary);
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes title-fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-underline {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.content-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(5.25rem, 13vh, 7rem) clamp(1rem, 3vw, 2rem) 2.5rem;
  background: radial-gradient(circle at 15% -10%, #4e6136 0%, #20291e 45%, #101714 100%);
}

.content-shell {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(246, 244, 239, 0.18);
  border-radius: 14px;
  background: rgba(16, 23, 20, 0.72);
}

.content-shell h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.content-shell p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/*
  Tablet / small laptop — hero content needs more room than the desktop
  44vw width, but the screen isn't small enough for full-width mobile layout.
*/
@media (max-width: 900px) {
  .hero-content {
    width: min(70vw, 30rem);
    right: clamp(1rem, 4vw, 3rem);
  }

  .brand-line-one,
  .brand-line-two {
    -webkit-text-stroke: 1.5px #000;
  }

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

/*
  Phone portrait — full-width layout, centered hero, touch-friendly targets.
*/
@media (max-width: 640px) {
  .site-logo {
    display: none;
  }

  .site-header {
    justify-content: flex-end;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .site-nav {
    gap: 0.2rem;
  }

  .nav-link {
    padding: 0.5rem 0.4rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    background-position: 65% center;
  }

  .hero-overlay {
    background: linear-gradient(
      160deg,
      rgba(9, 17, 13, 0.25),
      rgba(9, 17, 13, 0.40)
    );
  }

  .hero-content {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    text-align: center;
  }

  .brand-line {
    margin: 0 auto;
  }

  .brand-title {
    align-items: center;
    font-size: clamp(1.7rem, 11vw, 2.7rem);
  }

  .brand-line-one {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
    -webkit-text-stroke: 1px #000;
  }

  .brand-line-two {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    -webkit-text-stroke: 1px #000;
  }

  .scroll-cue {
    margin-top: 0.95rem;
    padding: 0.4rem 0;
    font-size: 0.88rem;
  }

  .ministry-about {
    padding-top: 4rem;
  }

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

/*
  Landscape phone — short viewport, tighten vertical spacing.
*/
@media (max-width: 900px) and (max-height: 500px) {
  .hero {
    min-height: 100svh;
    padding-top: 4rem;
    padding-bottom: 1.5rem;
  }

  .brand-title {
    gap: 0.4rem;
  }

  .brand-line-one {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .brand-line-two {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }
}
