/* =========================================================
   Elysium Farms & Agro Allied — Corporate Website
   ========================================================= */

:root {
  --green-950: #0f1c14;
  --green-900: #15241a;
  --green-800: #1b3022;
  --green-700: #243d2c;
  --green-600: #2f4f38;
  --gold: #c9963a;
  --gold-light: #d4a85a;
  --gold-dark: #a67a28;
  --cream: #f7f4ef;
  --cream-dark: #efeae2;
  --white: #ffffff;
  --ink: #1b3022;
  --muted: #5c6b60;
  --line: #e2ddd4;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 5.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}

.btn-outline-dark:hover {
  background: var(--green-800);
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header-inner {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  position: relative;
  transition: color 0.2s;
}

.main-nav a.active { color: var(--gold); font-weight: 500; }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 1.5px;
  background: var(--gold);
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

/* Home header — over dark hero */
.page-home .site-header { color: var(--white); }
.page-home .brand-name { color: var(--white); }
.page-home .brand-sub { color: var(--gold-light); }
.page-home .main-nav a { color: rgba(255, 255, 255, 0.88); }
.page-home .main-nav a:hover { color: var(--white); }
.page-home .main-nav a.active { color: var(--gold-light); }
.page-home .nav-toggle { color: var(--white); }

/* Scrolled / interior header */
.site-header.is-scrolled,
.page-interior .site-header {
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.site-header.is-scrolled .brand-name,
.page-interior .brand-name { color: var(--green-800); }

.site-header.is-scrolled .brand-sub,
.page-interior .brand-sub { color: var(--gold); }

.site-header.is-scrolled .main-nav a,
.page-interior .main-nav a { color: var(--green-700); }

.site-header.is-scrolled .main-nav a:hover,
.page-interior .main-nav a:hover { color: var(--gold); }

.site-header.is-scrolled .main-nav a.active,
.page-interior .main-nav a.active { color: var(--gold); }

.site-header.is-scrolled .nav-toggle,
.page-interior .nav-toggle { color: var(--green-800); }

/* ---------- Hero (Home) ---------- */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 28, 20, 0.72) 0%, rgba(15, 28, 20, 0.55) 45%, rgba(15, 28, 20, 0.75) 100%),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 18s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-home__content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 3rem));
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.hero-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-location::before,
.hero-location::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-home h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-home h1 .gold { color: var(--gold-light); }

.hero-home__lead {
  margin: 1.5rem auto 0;
  max-width: 560px;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  opacity: 0.7;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--white);
  animation: scrollDot 1.6s ease infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--white), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Page Hero (interior) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 5rem) 0 4.5rem;
  background:
    linear-gradient(135deg, rgba(15, 28, 20, 0.88), rgba(27, 48, 34, 0.78)),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero .eyebrow {
  color: var(--gold-light);
  margin-bottom: 0.85rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
}

.page-hero p {
  margin: 1rem auto 0;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1.5px;
  background: var(--gold);
}

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 3rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-green {
  background: var(--green-900);
  color: var(--white);
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--green-800);
  line-height: 1.15;
  margin-top: 0.85rem;
}

.section-green .section-header h2 { color: var(--white); }

.section-header p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-green .section-header p { color: rgba(255, 255, 255, 0.7); }

/* ---------- Story / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: 0.35rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--green-800);
  line-height: 1.15;
  margin-top: 0.85rem;
}

.split-copy p {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.split-copy .btn { margin-top: 1.75rem; }

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.card-icon svg { width: 1.75rem; height: 1.75rem; stroke-width: 1.5; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 0.65rem;
}

.card p { color: var(--muted); font-size: 0.95rem; }

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 28, 20, 0.08);
}

.product-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card__img img { transform: scale(1.05); }

.product-card__body { padding: 1.75rem; }

.product-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--green-800);
}

.product-card__body p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--cream);
  border-top: 2px solid var(--gold);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.55;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 0.65rem;
}

.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Values / sustainability ---------- */
.value-list {
  display: grid;
  gap: 1.5rem;
}

.value-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-cream .value-item,
.section-white .value-item { border-color: var(--line); }

.value-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
}

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.value-item p { color: var(--muted); font-size: 0.95rem; }
.section-green .value-item p { color: rgba(255, 255, 255, 0.68); }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 5rem 0;
  text-align: center;
  background:
    linear-gradient(rgba(15, 28, 20, 0.88), rgba(15, 28, 20, 0.88)),
    url("../images/cta-field.jpg") center/cover no-repeat;
  color: var(--white);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

.cta-band p {
  margin: 1rem auto 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.75);
}

.cta-band .hero-actions { margin-top: 2rem; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 0.25rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 58, 0.15);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.contact-detail dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.contact-detail dd { color: var(--muted); }

.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--green-800);
  margin-bottom: 0.5rem;
}

.form-success p { color: var(--muted); }

.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0.25rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #eef6f0;
  color: var(--green-800);
  border: 1px solid #c8dfd0;
}

.alert-error {
  background: #fdf2f0;
  color: #8b3a2f;
  border: 1px solid #f0c9c2;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 4.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-sub { color: var(--gold-light); }

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.15rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-contact li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal a:hover { color: var(--gold-light); }

.media-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--gold);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: 0 0.75rem 0 0.35rem;
  line-height: 1.2;
}

.media-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.media-badge span {
  font-size: 0.75rem;
  opacity: 0.92;
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .split,
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav,
  .header-cta { display: none; }

  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: 0 12px 30px rgba(15, 28, 20, 0.1);
  }

  .main-nav.is-open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .main-nav.is-open a { color: var(--green-800) !important; }
  .main-nav.is-open a.active { color: var(--gold) !important; }

  .header-cta.is-open {
    display: inline-flex;
    position: absolute;
    top: calc(var(--header-h) + 14rem);
    left: 1.5rem;
  }

  .card-grid,
  .steps,
  .stats-grid,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .stat { border-right: none !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }

  .form-panel { padding: 1.5rem; }
  .split-media { order: -1; }
}

@media (min-width: 769px) {
  .header-cta.is-open { display: inline-flex !important; }
}
