/* VM Church App — Official Website
   Ark Studio. Plain CSS, no Tailwind. */

/* --- Variables --- */
:root {
  --bg: #F6F6F3;
  --navy: #0E1F3C;
  --gold: #C9A43B;
  --gold-hover: #B8932E;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(14, 31, 60, 0.08);
  --shadow-hover: 0 8px 28px rgba(14, 31, 60, 0.12);
  --transition: 0.2s ease;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --max-w: 1100px;
  --section-pad: clamp(2rem, 5vw, 4rem);
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  flex: 1;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-link:hover { text-decoration: none; }
.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230E1F3C'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/24px no-repeat;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-sm);
}
.nav-toggle-label:hover { background-color: rgba(14, 31, 60, 0.06); }

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--navy);
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { text-decoration: none; background: rgba(14, 31, 60, 0.06); }
.nav-link-active { background: rgba(201, 164, 59, 0.15); color: var(--navy); }

@media (max-width: 700px) {
  .nav-toggle-label { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-toggle-input:checked ~ .nav { max-height: 320px; }
  .nav-list { flex-direction: column; padding: 1rem; gap: 0; }
  .nav-link { padding: 0.75rem 1rem; width: 100%; }
}

/* --- Main --- */
.main {
  flex: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-hover); box-shadow: var(--shadow-hover); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 31, 60, 0.12);
}
.btn-secondary:hover { background: rgba(255,255,255,0.95); box-shadow: var(--shadow-hover); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* --- Page sections (home) --- */
.hero, .section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) 1.25rem;
}

.hero {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero .logo-hero {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.hero-sub {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.hero-desc {
  margin: 0 0 1.75rem;
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--text);
}
.hero-cta { margin-bottom: 1rem; }
.hero-cta .btn-group { gap: 1rem; margin-bottom: 1rem; }

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
}
.section-desc {
  margin: 0 0 2rem;
  max-width: 560px;
  color: var(--text-muted);
}

/* Feature cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-hover); }
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.feature-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Support strip --- */
.support-strip {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-pad) 1.25rem;
}
.support-strip .section-inner { max-width: var(--max-w); margin: 0 auto; }
.support-strip .section-title { color: var(--white); }
.support-strip .section-desc { color: rgba(255,255,255,0.85); }
.support-strip .btn-primary { background: var(--gold); color: var(--navy); }
.support-strip .btn-primary:hover { background: var(--gold-hover); }

/* Updates preview (cards) --- */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.update-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.update-card:hover { box-shadow: var(--shadow-hover); }
.update-card time {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.update-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.update-card h3 a { color: var(--navy); text-decoration: none; }
.update-card h3 a:hover { text-decoration: underline; }
.update-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Newsletter --- */
.newsletter {
  background: var(--white);
  padding: var(--section-pad) 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: var(--max-w);
  margin: 0 auto var(--section-pad);
}
.newsletter-wrap { max-width: 480px; }
.newsletter .section-title { margin-bottom: 0.25rem; }
.newsletter .section-desc { margin-bottom: 1.25rem; }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(14, 31, 60, 0.2);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }
.newsletter-form .btn { flex-shrink: 0; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding: 2rem 1.25rem;
  margin-top: auto;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
}
.footer-nav a:hover { text-decoration: underline; color: var(--white); }
.footer-credit {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.footer-credit strong { color: var(--white); }
.ark-studio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.ark-studio:hover {
  opacity: 0.85;
  text-decoration: none;
}
.ark-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* --- Content pages (support, updates, privacy, terms, contact) --- */
.page-header {
  padding: var(--section-pad) 1.25rem 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
}
.page-header .lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem var(--section-pad);
}

/* FAQ accordion (CSS-only) --- */
.faq-list { margin: 0; padding: 0; list-style: none; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding-right: 3rem;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230E1F3C'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") center/20px no-repeat;
  transition: transform 0.2s ease;
}
.faq-item [type="checkbox"]:checked + .faq-q::after { transform: translateY(-50%) rotate(180deg); }
.faq-item [type="checkbox"] { display: none; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item [type="checkbox"]:checked ~ .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 1.25rem 1rem; color: var(--text-muted); }
.faq-a-inner p:first-child { margin-top: 0; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* Legal / long-form (privacy, terms) --- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem var(--section-pad);
}
.legal-content .legal-section {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.legal-content .legal-section:hover {
  box-shadow: var(--shadow-hover);
}
.legal-content .legal-section:last-child {
  margin-bottom: 0;
}
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.legal-content .legal-section h2:first-child {
  margin-top: 0;
}
.legal-content p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}
.legal-content .legal-section p:last-child {
  margin-bottom: 0;
}
.legal-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}
.legal-content li {
  margin-bottom: 0.35rem;
}
.legal-content li:last-child {
  margin-bottom: 0;
}
.legal-content strong {
  font-weight: 600;
  color: var(--navy);
}
.legal-content .legal-contact {
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.legal-content .legal-contact a {
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.legal-content .legal-contact a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}
.legal-content .legal-section-contact {
  border: 1px solid rgba(201, 164, 59, 0.25);
}

/* Article content (blog posts, updates) --- */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem var(--section-pad);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}
.article-content p {
  margin: 0 0 1.25rem;
}
.article-content p:last-child {
  margin-bottom: 0;
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.article-content h2:first-of-type {
  margin-top: 2rem;
}
.article-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.75rem;
  list-style-type: disc;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content li:last-child {
  margin-bottom: 0;
}
.article-content strong {
  font-weight: 600;
  color: var(--navy);
}
.article-content hr {
  border: 0;
  height: 1px;
  background: rgba(14, 31, 60, 0.15);
  margin: 2.5rem 0;
}
.article-content a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(14, 31, 60, 0.3);
}
.article-content a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* Prose (shared long-form fallback) --- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem var(--section-pad);
}
.prose h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.prose h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; color: var(--navy); }
.prose p { margin: 0.75rem 0; }
.prose .last-updated { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Contact block --- */
.contact-block {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 0 auto;
}
.contact-block h2 { margin: 0 0 1rem; font-size: 1.25rem; color: var(--navy); }
.contact-block p { margin: 0 0 0.5rem; color: var(--text); }
.contact-block a { font-weight: 500; }
.contact-block .church-name { font-weight: 600; color: var(--navy); }

/* Updates list (blog-style) --- */
.updates-list { margin: 0; padding: 0; list-style: none; }
.updates-list .update-card { margin-bottom: 1rem; }
.updates-list .update-card:last-child { margin-bottom: 0; }
