/* Lufkin Nazarene — shared stylesheet
   Theme values match the church's existing brand (neutral black/white,
   Inter typeface, 0.5rem radius). Colors stored as HSL triples so they
   can be composed with alpha (e.g. hsl(var(--primary) / .9)). */

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 3.9%;
  --primary: 0 0% 0%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --accent: 0 0% 96.1%;
  --accent-foreground: 0 0% 9%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 0 0% 0%;
  --radius: 0.5rem;
}

html.dark {
  --background: 0 0% 3.9%;
  --foreground: 0 0% 98%;
  --card: 0 0% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 9%;
  --secondary: 0 0% 14.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 14.9%;
  --muted-foreground: 0 0% 63.9%;
  --accent: 0 0% 14.9%;
  --accent-foreground: 0 0% 98%;
  --border: 0 0% 14.9%;
  --input: 0 0% 14.9%;
  --ring: 0 0% 100%;
}

* { box-sizing: border-box; }

html { color-scheme: light; }
html.dark { color-scheme: dark; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 1 auto; }

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

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

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

.muted { color: hsl(var(--muted-foreground)); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header .container {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  transition: color 0.15s ease;
}

.nav-desktop a.nav-link:hover,
.nav-desktop a.nav-link.active {
  color: hsl(var(--foreground));
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.icon-btn:hover { background-color: hsl(var(--accent)); }

.icon-btn svg { width: 1.2rem; height: 1.2rem; }

.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: inline-flex; }

.menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: hsl(var(--primary));
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-actions { display: flex; align-items: center; gap: 0.25rem; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle, .mobile-menu, .mobile-actions { display: none !important; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
}

.mobile-menu a.accent { color: hsl(var(--primary)); }
.mobile-menu a:hover { background-color: hsl(var(--muted)); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  height: 2.25rem;
  padding: 0 1.25rem;
}

.btn svg { width: 1rem; height: 1rem; }

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { background-color: hsl(var(--primary) / 0.9); }

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover { background-color: hsl(var(--secondary) / 0.8); }

.btn-outline {
  background-color: hsl(var(--background));
  border-color: hsl(var(--input));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background-color: hsl(var(--accent)); }

.btn-lg { height: 2.75rem; padding: 0 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Sections & headings ---------- */

.section { padding: 4rem 0; }
.section-muted { background-color: hsl(var(--muted)); }
.section-primary { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section-title {
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.875rem;
  line-height: 1.15;
}

@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

.section-lede {
  margin: 1rem auto 0;
  max-width: 700px;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) { .section-lede { font-size: 1.125rem; } }

.prose { max-width: 800px; margin: 0 auto; text-align: center; }
.prose p { color: hsl(var(--muted-foreground)); margin-top: 1rem; }
@media (min-width: 768px) { .prose p { font-size: 1.125rem; } }
.prose p:first-of-type { margin-top: 1.5rem; }
.prose b { color: hsl(var(--foreground)); }

/* ---------- Grid & cards ---------- */

.grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

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

.card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  overflow: hidden;
}

.card-glass {
  background-color: hsl(var(--background) / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.2s ease;
}
.card-glass:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }

.card-body { padding: 1.5rem; }
.card-header { padding: 1.5rem 1.5rem 0.5rem; }
.card-header + .card-body { padding-top: 0; }

.card-icon { color: hsl(var(--primary)); width: 2rem; height: 2rem; }

.card-title { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0.5rem 0 0; }
.card-title-lg { font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; margin: 0; }
.card-subtitle { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; display: flex; align-items: center; gap: 0.4rem; }

.card-media { position: relative; height: 12rem; width: 100%; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.card-center { text-align: center; }

.icon-circle {
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 4rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary) / 0.1);
}
.icon-circle svg { width: 2rem; height: 2rem; color: hsl(var(--primary)); }

/* ---------- Hero ---------- */

.hero { position: relative; }

.hero-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 60vh;
}
.hero-media.hero-tall { height: 70vh; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-copy { text-align: center; color: #fff; padding: 0 1.5rem; }
.hero-copy h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.1;
}
@media (min-width: 768px) { .hero-copy h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-copy h1 { font-size: 3.75rem; } }

.hero-copy p {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}
@media (min-width: 768px) { .hero-copy p { font-size: 1.5rem; } }

/* ---------- CTA banner ---------- */

.cta { text-align: center; }
.cta h2 { margin: 0; }
.cta p { margin: 1rem auto 0; max-width: 600px; color: hsl(var(--primary-foreground) / 0.85); }
@media (min-width: 768px) { .cta p { font-size: 1.125rem; } }
.cta-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }

/* ---------- Contact / detail rows ---------- */

.detail-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.detail-row + .detail-row { margin-top: 1rem; }
.detail-row svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); margin-top: 0.15rem; flex-shrink: 0; }
.detail-row h3 { margin: 0 0 0.25rem; font-weight: 500; font-size: 1rem; }
.detail-row p { margin: 0; color: hsl(var(--muted-foreground)); }
.detail-row a:hover { text-decoration: underline; }

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

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted));
  padding: 1.5rem 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer .container { flex-direction: row; text-align: left; }
}

.footer-brand { font-size: 0.875rem; font-weight: 500; margin: 0; }
.footer-copy { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin: 0; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: hsl(var(--muted-foreground)); }
.footer-social a:hover { color: hsl(var(--foreground)); }
.footer-social svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.col-span-full { grid-column: 1 / -1; }
