/*
Theme Name: Davar AI Church
Theme URI: https://www2.davarkg.com/
Author: Davar Web Team
Description: AI-readable bilingual WordPress theme for Davar Church Kingdom of God in Pasadena.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: davar-ai
*/

:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #20231f;
  --muted: #62685f;
  --line: #ded8cc;
  --green: #2f6248;
  --green-dark: #1f4935;
  --gold: #c7923f;
  --red: #9d433a;
  --blue: #3d6f8f;
  --shadow: 0 18px 50px rgba(32, 35, 31, .09);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

a { color: var(--green-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }
h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 .75rem;
  font-family: "Noto Serif JP", Georgia, serif;
}
h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 245, 239, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 74px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 220px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  font-family: Georgia, serif;
}
.brand-name { display: grid; line-height: 1.18; font-weight: 800; }
.brand-name small { color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}
.nav a:hover { background: #ece7db; }
.lang-switch { border-left: 1px solid var(--line); margin-left: 6px; padding-left: 10px; }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #18251f;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 24, 18, .86), rgba(13, 24, 18, .42) 55%, rgba(13, 24, 18, .22)),
    var(--hero-image, url("https://www2.davarkg.com/wp-content/uploads/2025/04/2025_04_13_1.jpg")) center / cover;
}
.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 9vh 0 8vh;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5d69c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  margin-bottom: 18px;
}
.hero p {
  max-width: 790px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.9);
}
.hero-actions, .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--gold);
  color: #1d170f;
  text-decoration: none;
  font-weight: 850;
}
.button.secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.button.light {
  background: #fff;
  border-color: var(--line);
  color: var(--green-dark);
}

.section { padding: 72px 24px; }
.section.alt { background: #ede9df; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head p { color: var(--muted); max-width: 650px; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card.compact { padding: 18px; box-shadow: none; }
.meta { color: var(--muted); font-size: .94rem; font-weight: 700; }
.fact {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--green);
}
.fact strong { font-size: 1.18rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: center;
}
.photo-band {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.quote {
  border-left: 5px solid var(--gold);
  padding-left: 18px;
  color: var(--green-dark);
  font-size: 1.15rem;
  font-family: "Noto Serif JP", Georgia, serif;
}

.page-hero {
  padding: 78px 24px 46px;
  background: #e5e0d4;
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.page-content > * + h2 { margin-top: 2.2rem; }
.page-content ul { padding-left: 1.2rem; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 16px 18px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}
.faq-list p { margin-top: 12px; color: var(--muted); }

.sermon-card iframe, .video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
}
.map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
}

.site-footer {
  background: #17241d;
  color: #f4efe4;
  padding: 52px 24px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
}
.site-footer a { color: #f4d493; }
.footer-title { font-weight: 850; margin-bottom: 10px; }
.small { font-size: .9rem; color: var(--muted); }
.site-footer .small { color: rgba(244, 239, 228, .72); }
.resource-groups {
  display: grid;
  gap: 42px;
}
.resource-group {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.resource-description {
  color: var(--muted);
  max-width: 760px;
}
.resource-link h3 {
  font-family: "Noto Sans JP", "Inter", system-ui, sans-serif;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}
.resource-link .small {
  overflow-wrap: anywhere;
}
.network-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
  font-weight: 800;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfc7b9;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(47, 98, 72, .18);
  border-color: var(--green);
}
.checkbox-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
}
.checkbox-row input { margin-top: 7px; }
.required { color: var(--red); }
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 20px;
  background: #fff;
}
.notice.success { border-color: rgba(47, 98, 72, .35); background: #edf6f0; }
.notice.error { border-color: rgba(157, 67, 58, .35); background: #fbefed; }
.notice p { margin: 6px 0 0; color: var(--muted); }
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .header-inner { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero { min-height: auto; }
  .hero-inner { padding: 82px 0 68px; }
  .grid.two, .grid.three, .grid.four, .split, .footer-inner, .form-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
}

@media (max-width: 560px) {
  .section { padding: 52px 18px; }
  .header-inner { padding-left: 18px; padding-right: 18px; }
  .nav a { padding: 8px 8px; font-size: .86rem; }
  .hero-inner { width: calc(100% - 36px); }
  .card { padding: 20px; }
}
