/* Akron Hmong Alliance Church - styles.css
   Mobile-first, fast, accessible, and responsive. No frameworks. */

:root {
  --bg: #0e1b2e;
  --bg-alt: #11233f;
  --surface: #ffffff;
  --text: #0f1222;
  --muted: #5a6b85;
  --primary: #1f6feb; /* accessible blue */
  --primary-700: #195ec8;
  --accent: #2bb673; /* green accent */
  --shadow: 0 10px 30px rgba(0,0,0,.15);
  --radius: 12px;
  --container: 1120px;
}

/* System font stack for speed and legibility */
html { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji"; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--surface); line-height: 1.6; }
img, svg, video { max-width: 100%; height: auto; }

/* Utilities */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 70ch; }
.section { padding: 4rem 0; }
.section.alt { background: #f7f9fc; }
.list { margin: 0; padding: 0 0 0 1.1rem; }
.list li { margin: .35rem 0; }
.btn { display: inline-block; padding: .75rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn:hover { background: var(--primary-700); }
.btn.cta { margin-right: .5rem; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 0; top: 0; width: auto; height: auto; background: #000; color: #fff; padding: .5rem 1rem; z-index: 1000; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid #e5e9f2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { font-weight: 800; color: var(--text); text-decoration: none; }

.nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; }
.nav a { color: var(--text); text-decoration: none; padding: .5rem .25rem; font-weight: 600; }
.nav a:hover { color: var(--primary); }

/* Mobile menu */
.menu-toggle { display: inline-flex; flex-direction: column; gap: 4px; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid #d6deeb; background: #fff; border-radius: 10px; }
.menu-toggle .menu-bar { width: 20px; height: 2px; background: #1f2937; border-radius: 2px; }

/* Nav collapses on small screens */
@media (max-width: 800px) {
  .nav { position: absolute; inset: 60px 0 auto 0; background: #fff; border-bottom: 1px solid #e5e9f2; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .75rem; }
}
@media (min-width: 801px) { .menu-toggle { display: none; } }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 400px at 0% 0%, rgba(31,111,235,.35), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg-alt)); }
.hero::before { content: ""; position: absolute; inset: 0; background: url('../images/community.jpg') center/cover no-repeat; opacity: .35; }
.hero-inner { position: relative; padding: 6rem 0; }
.hero h1 { font-size: clamp(1.8rem, 2.8vw + 1rem, 3rem); margin: 0 0 .5rem; }
.hero .lead { max-width: 60ch; color: #e6eefc; }
.hmong { opacity: .9; font-weight: 700; }

/* Grid */
.grid { display: grid; gap: 2rem; }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact a { color: var(--primary); text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.social { display: flex; gap: .75rem; margin-top: .5rem; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #d6deeb; border-radius: 10px; color: #1f2937; background: #fff; }
.icon:hover { color: var(--primary); border-color: var(--primary); }

.map { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: #0b1526; color: #c6d4f5; }
.footer-inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.site-footer a { color: #c6d4f5; text-decoration: none; opacity: .9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

/* Pastor Profile */
.pastor-profile { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; align-items: start; }
@media (min-width: 760px) { .pastor-profile { grid-template-columns: 300px 1fr; } }
.pastor-photo { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; background: #f0f4f8; }
.pastor-photo img { width: 100%; height: 100%; object-fit: cover; }
.pastor-bio h3 { margin: 0 0 .25rem; font-size: 1.75rem; color: var(--text); }
.pastor-title { margin: 0 0 1rem; color: var(--muted); font-weight: 600; font-size: 1rem; }
.pastor-bio p { margin: 0 0 1rem; line-height: 1.7; }

/* Photo Gallery */
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.photo-item { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; background: #f0f4f8; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-item:hover img { transform: scale(1.05); }

/* Accessibility: focus styles */
:where(a, button, [role="button"]) { outline: none; }
:where(a, button, [role="button"]):focus-visible { box-shadow: 0 0 0 3px rgba(31,111,235,.35), 0 0 0 6px rgba(31,111,235,.15); border-radius: 10px; }

/* Print (minimal) */
@media print {
  .menu-toggle, .nav, .hero::before, .social, .map { display: none !important; }
  .hero { color: #000; background: none; }
  .site-header { position: static; backdrop-filter: none; }
}
