/* ============================================================
   FILLMORE MISSIONARY CHURCH — main.css
   Mobile-first · Breakpoint: 768px
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Raleway:ital,wght@0,200;0,300;0,400;0,500;1,300&display=swap');

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --color-linen:      #F0EDE8;
  --color-fillmore:   #060B0B;
  --color-missionary: #999999;
  --color-church:     #767673;
  --color-body:       #1A1A1A;
  --color-divider:    #D8D4CE;
  --color-white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Raleway', system-ui, sans-serif;

  --text-hero:  clamp(42px, 7vw, 64px);
  --text-h1:    clamp(32px, 5vw, 48px);
  --text-h2:    clamp(26px, 4vw, 36px);
  --text-h3:    clamp(22px, 3vw, 28px);
  --text-lead:  18px;
  --text-body:  16px;
  --text-small: 12px;
  --text-label: 11px;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  --radius:    2px;
  --max-width: 1100px;
  --nav-h:     72px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-body);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

address { font-style: normal; }

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

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Wordmark ───────────────────────────────────────────────── */
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 3px;
  text-decoration: none;
}

.wordmark-fillmore {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-fillmore);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wordmark-missionary {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-missionary);
  letter-spacing: 0.3em;
}

.wordmark-church {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-church);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wordmark-sm .wordmark-fillmore,
.wordmark-sm .wordmark-church {
  font-size: 1.05rem;
}

.wordmark-sm .wordmark-missionary {
  font-size: 0.6rem;
}

.footer-logo .nav-icon {
  height: 52px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary,
.btn-ghost {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-fillmore);
  color: var(--color-linen);
}

.btn-primary:hover {
  opacity: 0.8;
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-fillmore);
  border: 1px solid var(--color-fillmore);
}

.btn-ghost:hover {
  background: var(--color-fillmore);
  color: var(--color-linen);
}

/* ── Section Shared Styles ──────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 500;
  color: var(--color-fillmore);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.section-subhead {
  font-size: var(--text-lead);
  font-weight: 300;
  color: var(--color-church);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(240, 237, 232, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-divider);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  height: 72px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-fillmore);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.5;
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-fillmore);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--color-linen);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid var(--color-divider);
  gap: var(--space-sm);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-fillmore);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-divider);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background-color: var(--color-linen);
  padding-top: calc(var(--nav-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  width: 65vw;
  max-width: 680px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  color: var(--color-fillmore);
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: var(--text-lead);
  font-weight: 300;
  color: var(--color-church);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Announcement Banner ────────────────────────────────────── */
.announcements {
  background: var(--color-white);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-md) 0;
}

.announcement-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.announcement-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  border: 1px solid var(--color-divider);
  background: var(--color-linen);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.announcement-label {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 400;
  color: var(--color-fillmore);
  letter-spacing: 0.02em;
}

.announcement-divider {
  color: var(--color-missionary);
  font-size: 1.2rem;
}

.announcement-date {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-missionary);
}

/* ── Pastor Section ─────────────────────────────────────────── */
.pastor-section {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.pastor-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.pastor-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.pastor-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
}

.pastor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-linen);
  border: 1px solid var(--color-divider);
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.photo-placeholder span {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-missionary);
}

.pastor-caption {
  text-align: center;
  max-width: 340px;
}

.pastor-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 500;
  color: var(--color-fillmore);
  margin-bottom: var(--space-xs);
}

.pastor-caption em {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--color-missionary);
  letter-spacing: 0.05em;
  font-style: normal;
}

.pastor-text {
  display: flex;
  align-items: center;
}

.pastor-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--color-fillmore);
  line-height: 1.7;
  position: relative;
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-divider);
}

/* ── Newsletter Section ─────────────────────────────────────── */
.newsletter-section {
  background: var(--color-linen);
  padding: var(--space-xl) 0;
  text-align: center;
}

.newsletter-section .container {
  max-width: 720px;
}

.inline-form {
  margin-top: var(--space-md);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-row input {
  flex: 1;
}

/* ── Prayer Section ─────────────────────────────────────────── */
.prayer-section {
  background: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
}

.prayer-section .container {
  max-width: 640px;
}

.stacked-form {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.form-col-2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ── Shared Form Styles ─────────────────────────────────────── */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-body);
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--color-fillmore);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: var(--color-missionary);
  font-weight: 300;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-church);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--color-fillmore);
  cursor: pointer;
  border: none;
  padding: 0;
}

.form-message {
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: var(--space-xs) 0;
  min-height: 1.5em;
  text-align: center;
}

.form-message.success {
  color: #2e6b45;
}

.form-message.error {
  color: #8b3a3a;
}

/* ── Mission & Vision ───────────────────────────────────────── */
.mission-vision {
  background: var(--color-linen);
  padding: var(--space-xl) 0;
}

.mv-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.mv-divider {
  width: 1px;
  height: 60px;
  background: var(--color-divider);
}

.mv-col {
  text-align: center;
  max-width: 400px;
}

.mv-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-missionary);
  margin-bottom: var(--space-sm);
}

.mv-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--color-fillmore);
  line-height: 1.6;
}

/* ── Location ───────────────────────────────────────────────── */
.location-section {
  background: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-divider);
}

.location-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 500;
  color: var(--color-fillmore);
  margin-bottom: var(--space-sm);
}

.location-text {
  font-size: var(--text-lead);
  font-weight: 300;
  color: var(--color-church);
  max-width: 520px;
  margin: 0 auto var(--space-sm);
  line-height: 1.8;
}

.location-address {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-missionary);
}

/* ── Giving ─────────────────────────────────────────────────── */
.giving-section {
  background: var(--color-fillmore);
  padding: var(--space-xl) 0;
  text-align: center;
}

.giving-section .section-header h2 {
  color: var(--color-linen);
}

.giving-section .section-subhead {
  color: var(--color-missionary);
}

.giving-section .btn-primary {
  background: var(--color-linen);
  color: var(--color-fillmore);
  margin-top: var(--space-sm);
}

.giving-section .btn-primary:hover {
  background: var(--color-white);
  opacity: 1;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-logo {
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-missionary);
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  color: var(--color-fillmore);
  border-color: var(--color-fillmore);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--color-missionary);
  letter-spacing: 0.05em;
}

.footer-dot {
  color: var(--color-divider);
}

.footer-meta a {
  color: var(--color-missionary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-meta a:hover {
  color: var(--color-fillmore);
}

/* ============================================================
   RESPONSIVE — 768px+
   ============================================================ */
@media (min-width: 768px) {

  /* Nav */
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }

  /* Announcement */
  .announcement-grid {
    flex-direction: row;
    gap: var(--space-md);
  }
  .announcement-card {
    flex: 1;
  }

  /* Pastor */
  .pastor-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
  }
  .pastor-photo-col {
    flex: 0 0 auto;
    width: 300px;
    align-items: flex-start;
  }
  .pastor-photo-wrap {
    max-width: 100%;
  }
  .pastor-caption {
    text-align: left;
  }
  .pastor-text {
    flex: 1;
    padding-top: var(--space-sm);
  }

  /* Newsletter form row */
  .form-row {
    flex-direction: row;
    align-items: stretch;
  }
  .form-row input {
    flex: 1;
  }
  .form-row .btn-primary {
    flex-shrink: 0;
  }

  /* Prayer form two-column inputs */
  .form-col-2 {
    flex-direction: row;
  }
  .form-col-2 input {
    flex: 1;
  }

  /* Mission & Vision */
  .mv-grid {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    align-items: stretch;
  }
  .mv-col {
    flex: 1;
    padding: 0 var(--space-lg);
  }
  .mv-divider {
    width: 1px;
    height: auto;
    flex-shrink: 0;
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}

/* ── Header scroll effect (JS-driven) ───────────────────────── */
/* Applied via JS IntersectionObserver on the hero section */
