/* Faith Haven Journal — shared design system
   Palette + type match the live faithhavenjournal.com (Kadence theme) and brand kit. */

:root {
  --sand: #EAE3D9;
  --clay: #C8A68C;
  --sage: #8A9E85;
  --sage-dark: #7a8e75;
  --linen: #D6CBBA;
  --ink: #333333;
  --ink-soft: #555555;
  --mist: #DDE3D1;
  --cream: #FAF8F5;
  --white: #FFFFFF;
  --sage-tint: #EEF3EC;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-eyebrow: "Work Sans", Arial, sans-serif;
  --font-verse: Georgia, "Nanum Myeongjo", serif;
  --font-card-label: "Nanum Myeongjo", Georgia, serif;

  --content-width: 1290px;
  --header-bg: #2C2A27;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--mist);
}

/* Kadence "boxed content" look: the whole page floats as a white,
   rounded card on the mist background; header/footer stay outside it. */
.page-card {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 24px;
}

@media (max-width: 860px) {
  .page-card { padding: 32px 16px; }
}

.page-card-inner {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.08);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 4.5rem); line-height: 1.25; }
h2 { font-size: clamp(1.75rem, 1rem + 2.5vw, 3.5rem); line-height: 1.25; }
h3 { font-size: 1.5rem; }

/* Large centered statement headings ("Faith is meant for everyday life…",
   "Find peace in Scripture…", "Start here") — Kadence renders these as
   56px/48px Cormorant Garamond, not the plain small h3 default. */
.statement-lg { font-size: clamp(1.75rem, 1rem + 2.5vw, 3.5rem); line-height: 1.25; }
.statement-md { font-size: clamp(1.5rem, 1rem + 1.8vw, 3rem); line-height: 1.25; }

/* Small tracked label ("Our Mission", eyebrows) — Work Sans, not the serif heading font */
.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}

p { margin: 0 0 1.1em; }

.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--header-bg);
  color: var(--sand);
  position: relative;
  z-index: 50;
}

.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img { height: 80px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: 1rem;
  padding: 10px;
  color: var(--sand);
  opacity: 0.9;
  transition: opacity 0.15s;
}

.main-nav a:hover { opacity: 1; color: var(--clay); }

.main-nav details { position: relative; }
.main-nav summary { list-style: none; cursor: pointer; font-size: 1rem; padding: 10px; color: var(--sand); }
.main-nav summary::-webkit-details-marker { display: none; }

.dropdown {
  position: absolute;
  top: 28px;
  left: 0;
  background: var(--ink);
  border: 1px solid #4a423b;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.dropdown a { padding: 8px 16px; font-size: 0.85rem; }
.dropdown a:hover { background: #4a423b; }

.nav-shop {
  background: var(--sage);
  color: var(--white) !important;
  padding: 7px 18px;
  border-radius: 3px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 1 !important;
  font-size: 1.05rem !important;
  margin-left: 12px;
}

.nav-shop:hover { background: var(--sage-dark); }

.menu-toggle { display: none; background: none; border: none; color: var(--sand); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 16px 24px 24px;
    gap: 14px;
    align-items: flex-start;
  }
  .site-header.nav-open .dropdown { position: static; border: none; padding: 6px 0 0 12px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 48px;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-fill { background: var(--sage); color: var(--white); border-radius: 3px; padding: 7px 18px; }
.btn-fill:hover { background: var(--sage-dark); }

.btn-outline { background: transparent; border-color: #888; color: #888; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn-outline-light { background: transparent; border-color: var(--sand); color: var(--sand); }
.btn-outline-light:hover { background: var(--sand); color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  background: var(--sand);
  padding: 25px 24px 60px;
  border-radius: 4px 4px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  min-height: 460px;
}

/* DOM order matches the live site: photo column first (renders left on
   desktop); on mobile the text is pulled above the photo via `order`. */
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 20px 10px; }

.hero-figure {
  border-radius: 24px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 860px) {
  .hero { padding: 20px 16px 32px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure { min-height: 260px; order: 1; }
  .hero-text { order: 0; }
}

/* two-card row: tan text card + photo card, same pattern used for
   "Find peace in Scripture for your real life" */
.duo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 340px;
  padding: 40px;
}

.duo-card {
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 32px;
}

.duo-card-text { background: var(--sand); }

.duo-card-photo {
  background-size: cover;
  background-position: center;
}

@media (max-width: 860px) {
  .duo-cards { grid-template-columns: 1fr; padding: 24px 16px; min-height: 0; }
  .duo-card-photo { min-height: 220px; }
}

/* ---------- Section / grid helpers ---------- */

section { padding: 64px 0; }

.section-cream { background: var(--cream); }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--sand); }
.section-ink h2, .section-ink h3 { color: var(--white); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card-topic {
  background: var(--white);
}

.card-topic img { aspect-ratio: 1 / 1; object-fit: cover; }

.card-topic-body { padding: 20px 0 26px; }

.card-topic-tag {
  font-family: var(--font-card-label);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* ---------- Post cards (blog listing) ---------- */

.post-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card img { aspect-ratio: 3 / 2; object-fit: cover; }

.post-card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }

.post-card-cat {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.post-card h3 { font-size: 1.2rem; margin-bottom: 12px; }

.post-card-more {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.04em;
}

/* ---------- Article / single post ---------- */

.article-hero {
  background: var(--sand);
  padding: 56px 0 40px;
}

.article-hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 24px;
}

.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: 0.85rem; color: var(--clay); text-align: center; margin-top: 8px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.article-body li { margin-bottom: 0.4em; }

/* ---------- Verse callout (Scripture Anchor) ---------- */

.verse-anchor {
  background: #FDF5F0;
  border-left: 3px solid var(--clay);
  border-radius: 0 4px 4px 0;
  padding: 20px 24px;
  margin: 36px 0;
}

/* ---------- Forms ---------- */

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-field .required { color: var(--clay); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--linen);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}

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

.form-note { font-size: 0.82rem; color: var(--clay); margin-top: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  background: transparent;
  padding: 40px 0 28px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--clay);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.underline-heading { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 8px; }
.mw-740 { max-width: 740px; margin-left: auto; margin-right: auto; }
