/* ==========================================================================
   Palestine Church — Warm Pastoral Minimalism
   Palette: cream background, sage green primary, burnt sienna accent
   ========================================================================== */

:root {
  --primary: #A8B8A0;
  --accent: #A0522D;
  --background: #F5F1E8;
  --foreground: #3D3B3B;
  --foreground-70: rgba(61, 59, 59, 0.7);
  --foreground-60: rgba(61, 59, 59, 0.6);
  --border: #E5DDD0;
  --white: #FFFFFF;
  --radius: 0.65rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0;
  color: var(--foreground);
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container--narrow {
  max-width: 720px;
}

.container--wide {
  max-width: 960px;
}

.container--faith {
  max-width: 860px;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__title {
  font-size: 1.5rem;
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #8B9E82 0%, var(--accent) 100%);
  background-size: cover;
  background-position: center;
}

.hero--image {
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero__content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: 1.25rem;
  margin: 0;
}

@media (min-width: 768px) {
  .hero { height: 500px; }
  .hero__content h2 { font-size: 3.75rem; }
  .hero__content p { font-size: 1.5rem; }
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--background), var(--white));
}

.section--white {
  background: var(--white);
}

.section--welcome {
  position: relative;
  background-size: cover;
  background-position: center;
}

.section--welcome::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 241, 232, 0.92), rgba(245, 241, 232, 0.78));
  z-index: 0;
}

.section--welcome > .container {
  position: relative;
  z-index: 1;
}

.section--welcome h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section--welcome p {
  font-size: 1.125rem;
  color: var(--foreground-70);
}

.section-title {
  font-size: 2.5rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  color: var(--foreground-70);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
  .section--welcome h2 { font-size: 3rem; }
  .section-title { font-size: 3rem; }
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--narrow {
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card--service {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.card--image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.card--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
  z-index: 0;
}

.card--image .card__header,
.card--image .card__text,
.card--image .card__time,
.card--image h3 {
  position: relative;
  z-index: 1;
}

.card--no-pad {
  padding: 0;
  overflow: hidden;
}

.card--center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.card h3 {
  font-size: 1.5rem;
}

.card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card__time {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.25rem 0 0 0;
}

.card__eyebrow {
  font-size: 1.125rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card__text {
  color: var(--foreground-70);
  margin-bottom: 0;
}

.card__text--small {
  font-size: 0.875rem;
  color: var(--foreground-60);
  margin-top: 0.75rem;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge--primary {
  background: rgba(168, 184, 160, 0.2);
  color: var(--primary);
}

.icon-badge--accent {
  background: rgba(160, 82, 45, 0.2);
  color: var(--accent);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(168, 184, 160, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ---------- Location ---------- */
.map-card {
  min-height: 320px;
}

.map-card iframe {
  display: block;
  height: 100%;
  min-height: 320px;
}

.location-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon-accent {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.divider {
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.connect-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.link-accent {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.link-accent:hover {
  opacity: 0.8;
}

/* ---------- Statement of Faith ---------- */
.faith-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.faith-subtitle {
  font-size: 1.125rem;
  color: var(--foreground-70);
}

.faith-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faith-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.faith-letter {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: rgba(160, 82, 45, 0.2);
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faith-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ---------- Prayer Form ---------- */
.prayer-card {
  max-width: 640px;
  margin: 0 auto;
}

.prayer-card h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.prayer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
  opacity: 0.9;
}

.btn-submit:active {
  transform: scale(0.97);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Success overlay ---------- */
.success-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

.success-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  text-align: center;
  max-width: 320px;
  border: 2px solid var(--accent);
  animation: pop-in 0.25s ease;
}

.success-box svg {
  margin-bottom: 1rem;
}

.success-box h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-box p {
  color: var(--foreground-70);
  margin: 0;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--foreground);
  color: var(--white);
  padding: 3rem 0;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.5rem 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom p {
  margin: 0;
  color: inherit;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
