/* Abundant Life Church of Christ — site styles
   Black & white theme. Colours and sizes live in :root below. */

@font-face {
  font-family: 'ALC Khmer';
  src: url('../fonts/content-khmer.woff') format('woff');
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200B-200D, U+25CC;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --black: #0A0A0A;
  --ink: #0A0A0A;
  --muted: #555555;
  --line: #DDDDDD;
  --alt: #F2F2F2;
  --on-dark: #FFFFFF;
  --on-dark-muted: #A8A8A8;
  --dark-card: #1C1C1C;
  --radius: 8px;
  --radius-btn: 6px;
  --section-height: 640px;
  --max: 1280px;
  --font: 'ALC Khmer', 'Kantumruy Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { opacity: .8; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid #2F6FEB; outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--black); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #EEEEEE; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-en { font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand-km { font-size: 13px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 6px 28px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; padding: 6px 0; }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--ink); }
.main-nav .btn { padding: 12px 22px; border-bottom: 0; }
.main-nav .btn[aria-current="page"] { border-bottom: 0; }
.nav-toggle { display: none; -webkit-appearance: none; appearance: none; background: none; border: 0; color: var(--ink); -webkit-tap-highlight-color: transparent; padding: 8px 4px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid #EEEEEE; font-size: 17px; }
  .main-nav a[aria-current="page"] { border-bottom: 1px solid #EEEEEE; font-weight: 700; }
  .main-nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius-btn); line-height: 1.2; text-decoration: none; padding: 12px 22px; font-weight: 700; font-size: 15px; letter-spacing: .04em; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-caps { text-transform: uppercase; letter-spacing: .06em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.sec { min-height: var(--section-height); display: flex; align-items: center; }
.sec > .wrap { padding-top: 96px; padding-bottom: 96px; }
.light { background: var(--white); color: var(--ink); }
.dark { background: var(--black); color: var(--on-dark); }
.dark .muted { color: var(--on-dark-muted); }
.muted { color: var(--muted); }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.h2 { font-size: clamp(30px, 4vw, 44px); }
@media (min-width: 760px) { .one-line { white-space: nowrap; } }
.h-xl { font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.intro { max-width: 720px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.uc { text-transform: uppercase; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: center; }
@media (max-width: 420px) { .split { grid-template-columns: 1fr; } .grid { grid-template-columns: 1fr; } }

.card { border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.light .card { background: var(--alt); }
.dark .card { background: var(--dark-card); }
.card-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card-title { font-size: 21px; font-weight: 700; }
.card-big { font-size: 26px; font-weight: 700; }

.photo { width: 100%; height: 448px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .photo { height: 300px; } }

/* ---------- Hero ---------- */
.hero { color: var(--white); background-color: var(--black); background-size: cover; background-position: center 38%; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); z-index: 1; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero > .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; max-width: 900px; }
.hero .lead { font-size: 20px; max-width: 620px; color: #E6E6E6; }
.hero-worship { background-image: url('../images/worship.jpg'); }
.hero-congregation { background-image: url('../images/congregation.jpg'); background-position: center 55%; }
@media (prefers-reduced-motion: reduce) { .hero video { display: none; } }

/* ---------- Service times ---------- */
.times { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 2px solid currentColor; }
.times > div { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.time-big { font-size: clamp(44px, 5vw, 64px); font-weight: 700; line-height: 1; }

/* ---------- Quote box ---------- */
.quote-box { border-radius: var(--radius); border: 2px solid currentColor; padding: 44px; display: flex; flex-direction: column; gap: 22px; margin: 0; }
.quote-box blockquote { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 600; }

/* ---------- Giving ---------- */
.give-panel { border-radius: 16px; background: var(--dark-card); padding: 48px; display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
@media (max-width: 600px) { .give-panel { padding: 28px; } }
.progress-card { border-radius: var(--radius); background: var(--white); color: #0F172A; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.progress-amount { font-size: 38px; font-weight: 700; }
.progress-track { height: 12px; background: #EAEAEA; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--black); border-radius: 999px; width: 0; }
.bank { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; align-items: center; }
.bank dt { font-weight: 600; }
.bank dd { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy { border-radius: 4px; font: inherit; font-size: 13px; font-weight: 600; padding: 4px 10px; min-height: 32px; background: transparent; color: inherit; border: 1.5px solid currentColor; cursor: pointer; }

/* ---------- Beliefs ---------- */
.beliefs details { border-top: 1px solid var(--line); }
.beliefs details:last-child { border-bottom: 1px solid var(--line); }
.beliefs summary { cursor: pointer; padding: 20px 0; font-size: 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.beliefs summary::-webkit-details-marker { display: none; }
.beliefs summary::after { content: '+'; font-size: 26px; line-height: 1; }
.beliefs details[open] summary::after { content: '–'; }
.beliefs details p { padding: 0 0 22px; color: var(--muted); max-width: 860px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq > div { padding: 22px 0; border-top: 1px solid #333333; }
.faq h3 { font-size: 20px; margin-bottom: 6px; }

/* ---------- Leaders ---------- */
.leader { border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; padding: 32px; background: var(--dark-card); }
.leader h3 { font-size: 26px; }

/* ---------- Contact form ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.form input, .form textarea { border-radius: var(--radius-btn); font: inherit; padding: 12px 14px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); min-height: 48px; }
.form textarea { min-height: 160px; resize: vertical; }
.form-status { font-weight: 600; min-height: 1.6em; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--muted); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer-head { color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid a { color: var(--ink); }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
