/* ============================================================
   Hillside Group — Design System
   Modern · Clean · Warm · Trustworthy
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Colour — restrained, nature-inspired neutrals */
  --forest:        #2f4a3c;
  --forest-deep:   #223528;
  --sage:          #6b8060;
  --sage-soft:     #e7ede3;
  --gold:          #b3853f;
  --gold-soft:     #f0e6d4;
  --cream:         #f8f5ef;
  --sand:          #efe9dd;
  --ink:           #242c26;
  --muted:         #59635b;
  --line:          #e4ddce;
  --white:         #ffffff;

  /* Typography */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale (8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(36, 44, 38, 0.06);
  --shadow-md: 0 12px 34px rgba(36, 44, 38, 0.10);
  --shadow-lg: 0 26px 60px rgba(36, 44, 38, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-deep);
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 var(--s-3); }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.75; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-3); }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.section { padding-block: var(--s-7); }
.section--tight { padding-block: var(--s-6); }
.bg-sand   { background: var(--sand); }
.bg-cream  { background: var(--cream); }
.bg-sage   { background: var(--sage-soft); }
.bg-forest { background: var(--forest-deep); color: #eef1ea; }
.bg-forest h2, .bg-forest h3 { color: #fff; }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-2);
}
.bg-forest .eyebrow { color: #d8b878; }
.section-head { max-width: 680px; margin-bottom: var(--s-5); }
.section-head.text-center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.6rem; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--forest); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--forest-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #fff; }
.btn--light { background: #fff; color: var(--forest-deep); }
.btn--light:hover { background: var(--gold-soft); color: var(--forest-deep); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: #fff; color: var(--forest-deep); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: 0.95rem; color: var(--forest);
}
.link-more .arrow { transition: transform .25s var(--ease); }
.link-more:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--forest-deep); }
.brand:hover { color: var(--forest-deep); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 700;
  font-family: var(--font-head);
}
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
/* Real header logo (falls back to the lettermark lockup if the file is missing) */
.brand-logo { height: 46px; width: auto; display: block; }
.brand-fallback { display: flex; align-items: center; gap: 0.7rem; }
@media (max-width: 480px) { .brand-logo { height: 38px; } }
/* Farming God's Way logo */
.fgw-logo { width: 150px; height: auto; margin-bottom: var(--s-3); display: block; }
.bg-forest .fgw-logo { filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.96rem; font-weight: 500; color: var(--ink); position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width .25s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest-deep); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest-deep); margin: 5px 0; transition: .3s var(--ease); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: var(--s-2) var(--s-3) var(--s-4);
    transform: translateY(-120%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-md); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: var(--s-2) 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(28,42,33,.86) 0%, rgba(28,42,33,.62) 46%, rgba(28,42,33,.30) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 9rem); }
.hero__content { max-width: 660px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); font-size: 1.24rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* Compact interior page banner */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,42,33,.55), rgba(28,42,33,.78)); }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(4rem, 9vw, 7rem); }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero .lead { color: rgba(255,255,255,.9); max-width: 640px; }
.breadcrumb { font-size: .85rem; letter-spacing: .04em; color: rgba(255,255,255,.75); margin-bottom: var(--s-3); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { color: var(--muted); font-size: .98rem; }
.card__body .link-more { margin-top: auto; padding-top: var(--s-2); }

/* Icon feature block */
.icon-block { text-align: left; }
.icon-block .icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--sage-soft); color: var(--forest);
  display: grid; place-items: center; margin-bottom: var(--s-2);
}
.bg-forest .icon-block .icon { background: rgba(255,255,255,.1); color: #d8b878; }
.icon-block h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.icon-block p { color: var(--muted); font-size: .98rem; margin: 0; }
.bg-forest .icon-block p { color: rgba(255,255,255,.82); }
.icon svg { width: 26px; height: 26px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-4) var(--s-3); text-align: center; box-shadow: var(--shadow-sm);
}
.bg-forest .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.stat__num { font-family: var(--font-head); font-size: clamp(2.4rem, 4vw, 3.1rem); font-weight: 700; color: var(--forest); line-height: 1; }
.bg-forest .stat__num { color: #d8b878; }
.stat__label { font-size: .92rem; color: var(--muted); margin-top: .6rem; letter-spacing: .02em; }
.bg-forest .stat__label { color: rgba(255,255,255,.8); }

/* ---------- Alternating feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-row + .feature-row { margin-top: var(--s-7); }
.feature-row__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-row--reverse .feature-row__media { order: 2; }
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--s-4); }
  .feature-row--reverse .feature-row__media { order: 0; }
}

/* ---------- Split / two-column prose ---------- */
.prose h2 { margin-top: var(--s-5); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* Scripture / quote block — set apart in italic serif */
.scripture {
  border-left: 3px solid var(--gold); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3);
  margin: var(--s-3) 0;
  background: rgba(179, 133, 63, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: 1.2rem; line-height: 1.55; color: var(--forest-deep);
}
.scripture strong { font-weight: 700; font-style: normal; color: var(--gold); font-size: .85em; margin-right: .15em; }
.scripture cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .88rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); margin-top: .8rem; }
.bg-forest .scripture { color: #f2f0e8; border-color: #d8b878; background: rgba(255,255,255,.06); }
.bg-forest .scripture cite, .bg-forest .scripture strong { color: #d8b878; }

/* Section / sub-brand logo slot (hidden gracefully until a logo is supplied) */
.section-logo { height: 60px; width: auto; margin-bottom: var(--s-2); display: block; }
.section-head .section-logo, .text-center .section-logo { margin-inline: auto; }
.logo-showcase { max-width: 300px; width: 100%; height: auto; border-radius: var(--radius); }
.logo-frame {
  display: grid; place-items: center; padding: var(--s-4);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); min-height: 220px;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery a, .gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s var(--ease); }
.gallery img:hover { transform: scale(1.06); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; text-align: center; color: #fff; }
.cta-banner__bg { position: absolute; inset: 0; z-index: 0; }
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,53,40,.82), rgba(34,53,40,.9)); }
.cta-banner__inner { position: relative; z-index: 1; padding-block: var(--s-7); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.88); max-width: 560px; margin-inline: auto; }
.cta-banner .btn { margin-top: var(--s-3); }

/* ---------- FAQ accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: 1.18rem; color: var(--forest-deep);
  padding: var(--s-3) 2.5rem var(--s-3) 0; position: relative;
}
.acc-trigger::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold); transition: transform .3s var(--ease); font-family: var(--font-body);
}
.acc-trigger[aria-expanded="true"]::after { content: "\2013"; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-panel__inner { padding: 0 0 var(--s-3); color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--forest-deep); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-3); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.contact-card .role { font-size: .85rem; color: var(--gold); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem; }
.contact-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #cdd4cb; padding-block: var(--s-6) var(--s-4); }
.site-footer a { color: #cdd4cb; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-4); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: var(--s-2); }
.footer-brand .brand:hover { color: #fff; }
.footer-brand p { color: #a9b3a7; font-size: .95rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; font-size: .96rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-5); padding-top: var(--s-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2);
  font-size: .86rem; color: #97a196;
}
.social { display: flex; gap: .7rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--gold); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.maxw-640 { max-width: 640px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff; padding: .7rem 1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
