/* Kingdom Community Church — shared styles
   Friendly & casual: warm cream, warm teal, generous whitespace, rounded corners. */

:root {
  /* Palette pulled from the KCC logo: warm sienna brown (cross/thorns)
     + golden yellow (crown) on a soft cream background. */
  --bg: #FAF7F2;
  --bg-soft: #F2EDE4;
  --text: #1F1D1A;
  --muted: #6F6A63;
  --brand: #8B6F47;      /* warm sienna brown — matches the cross/thorns */
  --brand-dark: #6B5538; /* darker brown for hover states */
  --accent: #E8C547;     /* crown gold */
  --accent-dark: #C9A82E;
  --line: #E5DFD4;
  --shadow: 0 1px 3px rgba(31, 29, 26, 0.04), 0 8px 24px rgba(31, 29, 26, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover { color: var(--brand-dark); }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

/* --- Layout --- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }

/* --- Header / nav --- */
.site-header {
  background: #FFFFFF; /* pure white so JPG logo background blends */
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .logo-img {
  height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 720px) {
  .site-header .logo-img { height: 36px; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span { color: var(--brand); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.current { color: var(--brand); }

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

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 12px 24px;
    border-top: 1px solid var(--line);
  }
}

/* --- Hero with logo prominence --- */
.hero-logo {
  display: none; /* hidden by default — site header logo is enough */
}

/* --- Image-friendly sections --- */
.about-mark {
  display: block;
  width: 180px;
  margin: 0 auto 32px;
}

/* --- Hero --- */
.hero {
  padding: 88px 0 72px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero h1 { margin-bottom: 0.3em; }
.hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 1.5em;
}
.hero .service-line {
  font-size: 1.15rem;
  margin-bottom: 2em;
}
.hero .service-line strong { color: var(--brand); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  margin: 0 8px 8px 0;
  transition: transform 0.06s ease, background 0.12s ease;
}
.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: white;
}
.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-secondary:hover {
  background: var(--brand);
  color: white;
}
.btn:active { transform: translateY(1px); }

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(31, 29, 26, 0.05), 0 14px 32px rgba(31, 29, 26, 0.08);
  color: var(--text);
}
.card .emoji {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}
.card h3 { color: var(--brand); margin-bottom: 0.3em; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* --- Info blocks (Visit page) --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.info-block {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.info-block h3 {
  color: var(--brand);
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-block p:last-child { margin-bottom: 0; }
.info-block address {
  font-style: normal;
  line-height: 1.6;
}

/* --- Page header (non-home pages) --- */
.page-header {
  background: var(--bg-soft);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin: 0; }
.page-header .lede { color: var(--muted); margin-top: 0.5em; font-size: 1.1rem; }

/* --- Prose blocks --- */
.prose {
  max-width: 720px;
}
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--text); }

.placeholder-note {
  background: #FFF7E8;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.placeholder-note strong { color: var(--text); }

/* --- Forms (contact) --- */
.form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg);
  margin-bottom: 18px;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 500;
}
.form .checkbox input { margin: 0; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 64px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer .footer-meta strong { color: var(--text); display: block; margin-bottom: 4px; }

/* --- Beliefs page --- */
.creed {
  background: white;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0 32px;
  box-shadow: var(--shadow);
  font-style: normal;
}
.creed h3 {
  color: var(--brand);
  margin-top: 0;
  font-style: normal;
}
.creed p { line-height: 1.7; }
.creed .footnote {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
}

.belief-section {
  margin: 32px 0;
}
.belief-section h3 {
  color: var(--brand);
  font-size: 1.25rem;
  margin-bottom: 0.4em;
}
.scripture-refs {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  display: block;
  margin-top: 6px;
}

/* --- Leadership block (About page) --- */
.leader {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 32px;
  align-items: start;
  margin: 32px 0;
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.leader img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.leader-body h3 {
  color: var(--brand);
  margin-top: 0;
  margin-bottom: 0.4em;
}
.leader-body .role {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1em;
  margin-top: -0.2em;
}
@media (max-width: 640px) {
  .leader { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
}

/* --- Wide community photo --- */
.community-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  margin: 24px 0 12px;
  box-shadow: var(--shadow);
}
.community-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 32px;
  font-style: italic;
}

/* --- Utility --- */
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
