/* Hidden Blessings Agrivoltaics — public site */
:root {
  --forest: #1f3d2b;
  --forest-deep: #14281c;
  --sage: #5c7a62;
  --meadow: #2f6b4f;
  --meadow-soft: #e8f0ea;
  --gold: #c4a35a;
  --gold-deep: #a6853f;
  --cream: #f5f0e6;
  --cream-dark: #ebe3d4;
  --earth-50: #faf8f4;
  --earth-100: #f3eee5;
  --earth-200: #e4dccd;
  --earth-600: #5c5346;
  --earth-700: #3f392f;
  --earth-900: #1c1914;
  --white: #ffffff;
  --ink: #1c1914;
  --focus: #2f6b4f;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 32px rgba(20, 40, 28, 0.1);
  --shadow-sm: 0 2px 10px rgba(20, 40, 28, 0.06);
  --nav-h: 68px;
  --container: 1100px;
  --font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--earth-50);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--meadow); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--forest); color: white; padding: 0.75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Nav — corporate clean */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--earth-200);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h); gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--forest);
  min-width: 0;
}
.brand img { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-name {
  font-weight: 700; font-size: 0.9rem; letter-spacing: -0.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-tag {
  font-size: 0.65rem; color: var(--sage); font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-links {
  display: none; align-items: center; gap: 0.1rem; list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--earth-700); font-weight: 600;
  font-size: 0.875rem; padding: 0.45rem 0.75rem; border-radius: 6px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: var(--meadow-soft); color: var(--forest);
}
.nav-cta { display: none; font-size: 0.875rem !important; padding: 0.65rem 1.1rem !important; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--earth-200);
  border-radius: 8px; background: white; cursor: pointer; color: var(--forest);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle[aria-expanded="true"] { background: var(--meadow-soft); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .brand-name { font-size: 0.95rem; }
}

.mobile-nav {
  display: none; border-top: 1px solid var(--earth-200);
  background: var(--white); padding: 0.85rem 0 1.15rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block; text-decoration: none; color: var(--earth-900);
  font-weight: 600; padding: 0.75rem 0; border-bottom: 1px solid var(--earth-100);
  font-size: 0.95rem;
}
.mobile-nav .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 700;
  font-size: 0.9rem; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  letter-spacing: -0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold); color: var(--forest-deep); border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-deep); color: white; border-color: var(--gold-deep); }
.btn-secondary {
  background: transparent; color: white; border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: white; }
.btn-outline {
  background: white; color: var(--forest); border-color: var(--earth-200);
}
.btn-outline:hover { border-color: var(--meadow); background: var(--meadow-soft); color: var(--forest); }
.btn-dark {
  background: var(--forest); color: white; border-color: var(--forest);
}
.btn-dark:hover { background: var(--forest-deep); color: white; }

/* Hero */
.hero {
  position: relative; min-height: clamp(520px, 56.25vw, 760px);
  display: flex; align-items: flex-end; color: white; overflow: hidden;
  background: var(--forest-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-media picture {
  display: block; width: 100%; height: 100%;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,40,28,0.88) 0%, rgba(20,40,28,0.55) 38%, rgba(20,40,28,0.18) 100%),
    linear-gradient(0deg, rgba(20,40,28,0.28) 0%, transparent 32%);
}
.hero-content {
  position: relative; z-index: 1; padding: 3rem 0 3.5rem;
  width: min(100% - 2rem, var(--container)); margin-inline: auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
}
.hero h1 {
  font-family: var(--display); font-weight: 650;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.08; letter-spacing: -0.025em; margin: 0.65rem 0 0; max-width: 14ch;
  text-wrap: balance;
}
.hero-lede {
  margin: 0.85rem 0 0; font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.92); max-width: 36ch; font-weight: 500; line-height: 1.4;
}
.hero-sub {
  margin: 0.85rem 0 0; max-width: 44ch; color: rgba(255,255,255,0.76); font-size: 0.95rem;
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }

/* Trust row */
.trust {
  background: var(--forest); color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-inner {
  display: grid; gap: 0.75rem; padding: 0.95rem 0;
  grid-template-columns: 1fr;
  text-align: center; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
}
.trust-item { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.trust-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0;
}
@media (min-width: 720px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .trust-item { justify-content: flex-start; }
}

/* Sections */
.section { padding: var(--space-5) 0; }
.section-tight { padding: var(--space-4) 0; }
.section-muted { background: var(--cream); }
.section-white { background: white; }
.section-forest { background: var(--forest); color: white; }
.section-title {
  font-family: var(--display); font-weight: 650;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.18;
  letter-spacing: -0.022em; margin: 0.3rem 0 0; color: var(--earth-900);
}
.section-forest .section-title { color: white; }
.section-lede {
  margin: 0.7rem 0 0; color: var(--earth-600); max-width: 58ch; font-size: 0.98rem;
  line-height: 1.55;
}
.section-forest .section-lede { color: rgba(255,255,255,0.78); }
.section-cta { margin-top: 1.5rem; }
.kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-deep); margin: 0;
}
.section-forest .kicker { color: var(--gold); }

/* Cards */
.grid-3 {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-2 {
  display: grid; gap: 1.35rem; grid-template-columns: 1fr; margin-top: 1.75rem;
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
}
.card {
  background: white; border: 1px solid var(--earth-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #d4cbb8; }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--earth-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body {
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex; flex-direction: column; gap: 0.45rem; flex: 1;
}
.card h3 {
  margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--earth-900); letter-spacing: -0.015em;
}
.card p { margin: 0; color: var(--earth-600); font-size: 0.9rem; line-height: 1.5; }
.card-benefits {
  list-style: none; margin: 0.35rem 0 0; padding: 0;
  display: grid; gap: 0.3rem;
}
.card-benefits li {
  font-size: 0.8rem; color: var(--earth-700); padding-left: 0.9rem; position: relative;
  line-height: 1.4;
}
.card-benefits li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.card-link {
  margin-top: auto; padding-top: 0.75rem;
  font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--forest);
}
.card-link:hover { color: var(--meadow); }

.service-card {
  background: white; border: 1px solid var(--earth-200);
  border-radius: var(--radius-lg); padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.service-card h3 {
  margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--earth-900); letter-spacing: -0.01em;
}
.service-card p { margin: 0; color: var(--earth-600); font-size: 0.9rem; }
.service-num {
  font-family: var(--display); font-weight: 650; color: var(--gold-deep);
  font-size: 0.95rem; margin: 0 0 0.35rem;
}

.benefit-box {
  margin-top: 1.25rem;
  background: var(--meadow-soft);
  border: 1px solid #c5d9cb;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.benefit-box h3 {
  margin: 0 0 0.55rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest);
}
.benefit-box .list-check { margin-top: 0.35rem; }
.benefit-box .list-check li { font-size: 0.9rem; }

.logo-about { margin-top: 1.5rem; }
.logo-about img { height: auto; max-width: 280px; width: 100%; border-radius: 50%; }

/* Split */
.split {
  display: grid; gap: 1.75rem; align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 2.75rem; }
  .split.reverse { grid-template-columns: 0.95fr 1.05fr; }
  .split.reverse .split-media { order: 2; }
}
.split-media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--earth-100);
}
.split-media.portrait { aspect-ratio: 4/5; max-width: 420px; margin-inline: auto; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.prose { margin-top: 1.1rem; }
.prose p { color: var(--earth-600); margin: 0 0 0.9rem; font-size: 0.98rem; line-height: 1.55; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--earth-900); font-weight: 700; }

/* Books / thesis */
.book-grid {
  display: grid; gap: 0.85rem; margin-top: 1.35rem;
}
@media (min-width: 640px) { .book-grid { grid-template-columns: 1fr 1fr; } }
.book {
  border-radius: var(--radius); padding: 1.15rem 1.2rem;
  border: 1px solid var(--earth-200);
}
.book.plant { background: var(--meadow-soft); border-color: #c5d9cb; }
.book.farm { background: #f8f0de; border-color: #e6d5a8; }
.book .label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--sage); margin: 0;
}
.book h3 { margin: 0.35rem 0 0.4rem; font-size: 1.1rem; color: var(--earth-900); letter-spacing: -0.015em; }
.book p { margin: 0; color: var(--earth-600); font-size: 0.88rem; line-height: 1.45; }

/* Gallery */
.gallery {
  display: grid; gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
}
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; background: var(--earth-100); position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.7rem 0.55rem;
  background: linear-gradient(transparent, rgba(20,40,28,0.78));
  color: white; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
}

/* Page hero (inner) */
.page-hero {
  background: var(--forest); color: white; padding: 2.75rem 0 3rem;
  position: relative; overflow: hidden;
}
.page-hero.has-image { min-height: 320px; display: flex; align-items: flex-end; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,40,28,0.92), rgba(20,40,28,0.55));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--display); font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  margin: 0.4rem 0 0; letter-spacing: -0.022em; max-width: 20ch; line-height: 1.12;
}
.page-hero p {
  margin: 0.75rem 0 0; max-width: 52ch; color: rgba(255,255,255,0.8); font-size: 0.98rem;
}

/* Contact */
.contact-grid {
  display: grid; gap: 1.15rem; margin-top: 1.75rem;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact-card {
  background: white; border: 1px solid var(--earth-200);
  border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin: 0 0 0.3rem; font-size: 1rem; letter-spacing: -0.01em; }
.contact-card p { margin: 0; color: var(--earth-600); font-size: 0.9rem; }
.contact-card a.big {
  display: inline-block; margin-top: 0.75rem; font-size: 0.98rem;
  font-weight: 700; color: var(--forest); text-decoration: none;
  word-break: break-word;
}
.contact-card a.big:hover { color: var(--meadow); text-decoration: underline; }
.form { display: grid; gap: 0.9rem; }
.form label {
  display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.85rem; color: var(--earth-700);
}
.form input, .form textarea, .form select {
  font: inherit; padding: 0.7rem 0.85rem; border-radius: 8px;
  border: 1px solid var(--earth-200); background: var(--earth-50); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 3px solid rgba(47,107,79,0.25); border-color: var(--meadow);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--earth-600); margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--forest) 0%, #29553a 100%);
  color: white; border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; display: grid; gap: 1.15rem;
  box-shadow: var(--shadow);
}
@media (min-width: 800px) {
  .cta-band {
    grid-template-columns: 1fr auto; align-items: center; padding: 2.25rem 2.25rem;
  }
}
.cta-band h2 {
  font-family: var(--display); margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}
.cta-band p { margin: 0.4rem 0 0; color: rgba(255,255,255,0.78); max-width: 46ch; font-size: 0.92rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Footer — corporate */
.site-footer {
  background: var(--forest-deep); color: rgba(255,255,255,0.72);
  padding: 2.75rem 0 1.75rem; margin-top: 0;
}
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.5fr 0.9fr 1.1fr; }
}
.site-footer h3 {
  margin: 0 0 0.7rem; color: rgba(255,255,255,0.45); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-brand { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.footer-brand strong { display: block; color: white; font-size: 0.95rem; letter-spacing: -0.01em; }
.footer-brand span { font-size: 0.82rem; line-height: 1.45; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.5rem;
  justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.5);
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.75rem; }
.list-check {
  list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.55rem;
}
.list-check li {
  padding-left: 1.45rem; position: relative; color: var(--earth-600); font-size: 0.92rem;
}
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 0.4rem;
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--gold);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--meadow-soft); color: var(--forest);
  border: 1px solid #c5d9cb; border-radius: 6px;
  padding: 0.3rem 0.65rem; font-size: 0.75rem; font-weight: 700;
}

@media (max-width: 899px) {
  .nav-cta { display: none !important; }
  .brand-name { max-width: 11.5rem; }
  .brand-tag { max-width: 11.5rem; }
  .hero { min-height: 100vh; align-items: flex-end; }
  .hero-media img { object-position: 50% 62%; }
  .hero-content { padding-bottom: 2.25rem; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(20,40,28,0.08) 0%, rgba(20,40,28,0.42) 55%, rgba(20,40,28,0.86) 100%),
      linear-gradient(90deg, rgba(20,40,28,0.28), rgba(20,40,28,0.18));
  }
  .hero-actions .btn { width: 100%; }
}
