/* ============================================================
   DWACI: Divine Word Apostolic Church International
   Shared stylesheet for the front site and the Institute
   Palette: green #3C6246 · olive #313122 · peach #EBC094
            cream #FAF6E8 · white · border #EEE6DB
   Fonts:   Hedvig Letters Serif (headings) · Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hedvig+Letters+Serif:opsz@12..24&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --green: #3C6246;
  --green-dark: #2C4A34;
  --olive: #313122;
  --peach: #EBC094;
  --peach-dark: #DFA96F;
  --cream: #FAF6E8;
  --cream-alt: #F0F0DE;
  --sand: #EFDFCE;
  --taupe: #9E8D7B;
  --text: #3D4343;
  --muted: #777C7B;
  --border: #EEE6DB;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(49, 49, 34, .10);
  --font-head: "Hedvig Letters Serif", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 400; color: var(--olive); line-height: 1.2; }

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container { width: min(1176px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-family: var(--font-body);
}
.btn-peach { background: var(--peach); color: var(--olive); }
.btn-peach:hover { background: var(--peach-dark); color: var(--olive); transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: var(--olive); color: var(--olive); background: transparent; }
.btn-outline:hover { background: var(--olive); color: var(--cream); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-outline-light:hover { background: var(--cream); color: var(--olive); }
.btn-sm { padding: 9px 20px; font-size: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 232, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--peach);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 20px;
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-head); font-size: 20px; color: var(--olive); line-height: 1.1; white-space: nowrap; }
.brand-tag { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.main-nav ul { list-style: none; display: flex; gap: 6px; align-items: center; }
.main-nav a, .main-nav .btn { white-space: nowrap; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block; padding: 10px 14px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--olive); border-radius: 8px;
}
.main-nav a:hover, .main-nav li.active > a { color: var(--green); background: var(--cream-alt); }
.main-nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; display: block;
}
.main-nav li:hover > .dropdown, .main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .dropdown li { display: block; }
.main-nav .dropdown a { padding: 10px 14px; border-radius: 8px; }
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--olive); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh;
  display: grid; place-items: center; text-align: center;
  color: var(--cream); overflow: hidden;
  isolation: isolate;
}
.hero-slide {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(49,49,34,.55) 0%, rgba(60,98,70,.65) 100%);
}
.hero-content { padding: 120px 20px; max-width: 860px; }
.hero-kicker { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--peach); margin-bottom: 18px; font-weight: 600; }
.hero h1 { color: var(--white); font-size: clamp(40px, 6vw, 72px); margin-bottom: 10px; }
.hero .hero-sub { font-family: var(--font-head); font-style: italic; font-size: clamp(20px, 3vw, 30px); color: var(--peach); margin-bottom: 22px; }
.hero p { font-size: 18px; max-width: 560px; margin: 0 auto 34px; color: rgba(250,246,232,.92); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(250,246,232,.45); transition: .25s; padding: 0;
}
.hero-dots button.active { background: var(--peach); width: 26px; border-radius: 6px; }

/* ---------- Countdown strip ---------- */
.countdown-strip { background: var(--olive); color: var(--cream); padding: 34px 0; }
.countdown-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.countdown-label h3 { color: var(--cream); font-size: 26px; }
.countdown-label span { color: var(--peach); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.countdown { display: flex; gap: 14px; }
.count-box { text-align: center; background: rgba(250,246,232,.08); border: 1px solid rgba(235,192,148,.35); border-radius: 12px; padding: 12px 18px; min-width: 84px; }
.count-box b { display: block; font-family: var(--font-head); font-size: 32px; color: var(--peach); }
.count-box small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,246,232,.75); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-alt); }
.section-white { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 12px; display: block; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sand); color: var(--green);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .time { color: var(--green); font-weight: 600; font-size: 14px; letter-spacing: .04em; }

/* Photo schedule cards (service name + time over a photo) */
.photo-card {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center;
  isolation: isolate; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.photo-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(49,49,34,.05) 35%, rgba(49,49,34,.78) 100%);
  transition: background .3s ease;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.photo-card .pc-body { padding: 26px 18px 30px; width: 100%; }
.photo-card h3 { color: var(--white); font-size: 27px; margin-bottom: 6px; }
.photo-card .time { color: rgba(250,246,232,.92); font-size: 14.5px; letter-spacing: .06em; font-weight: 600; }
.photo-card .pc-note { color: var(--peach); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; display: block; }

.card-img { overflow: hidden; padding: 0; }
.card-img .thumb { height: 210px; background-size: cover; background-position: center; transition: transform .4s ease; }
.card-img:hover .thumb { transform: scale(1.05); }
.card-img .card-body { padding: 26px 26px 30px; }
.card-img .meta { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); margin-bottom: 8px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.split-img .frame { height: 460px; background-size: cover; background-position: center; }
.split-img .badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--peach); color: var(--olive); border-radius: 12px;
  padding: 14px 20px; font-family: var(--font-head); font-size: 18px;
}
.split-text h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 20px; }
.split-text p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Quote banner ---------- */
.quote-banner {
  background: var(--green); color: var(--cream);
  text-align: center; padding: 90px 20px;
  position: relative; overflow: hidden;
}
.quote-banner::before {
  content: "\201C"; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: 340px; color: rgba(235,192,148,.14); line-height: 1;
}
.quote-banner blockquote { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 38px); max-width: 820px; margin: 0 auto 18px; position: relative; }
.quote-banner cite { color: var(--peach); font-style: normal; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }

/* ---------- Sermon rows ---------- */
.sermon-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 28px; margin-bottom: 14px; transition: .25s;
}
.sermon-row:hover { box-shadow: var(--shadow); transform: translateX(6px); }
.sermon-row .s-info h3 { font-size: 19px; }
.sermon-row .s-info span { color: var(--muted); font-size: 13.5px; }
.sermon-row .s-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: var(--olive); border-radius: 24px; color: var(--cream);
  padding: 70px 60px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-panel h2 { color: var(--cream); font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.cta-panel p { color: rgba(250,246,232,.8); }
.cta-panel .cta-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive); color: rgba(250,246,232,.82); margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 44px; padding: 70px 0 50px; }
.site-footer h4 { color: var(--peach); font-size: 17px; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer a { color: rgba(250,246,232,.82); }
.site-footer a:hover { color: var(--peach); }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { font-size: 14px; margin-top: 14px; color: rgba(250,246,232,.65); }
.newsletter-form { display: flex; gap: 10px; margin-top: 14px; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(235,192,148,.4);
  background: rgba(250,246,232,.08); color: var(--cream); font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(250,246,232,.5); }
.footer-bottom { border-top: 1px solid rgba(250,246,232,.15); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: rgba(250,246,232,.55); }
.footer-admin { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-admin:hover { color: #FAF6E8; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(235,192,148,.4); color: var(--peach); font-size: 15px;
}
.socials a:hover { background: var(--peach); color: var(--olive); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, rgba(49,49,34,.62), rgba(60,98,70,.72)), var(--olive) center/cover no-repeat;
  color: var(--cream); text-align: center; padding: 110px 20px 90px;
}
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 56px); margin-bottom: 10px; }
.page-hero p { color: rgba(250,246,232,.85); max-width: 620px; margin: 0 auto; }
.page-hero .crumbs { margin-top: 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--cream); font-family: var(--font-body); font-size: 15px; color: var(--text);
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--muted); }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.check-row input { margin-top: 4px; }

.fieldset-title { font-family: var(--font-head); font-size: 24px; color: var(--olive); margin: 34px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--sand); }
.fieldset-title:first-child { margin-top: 0; }

/* ---------- Alerts / badges ---------- */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: #E4EFE4; color: #2C4A34; border: 1px solid #BFD8BF; }
.alert-error { background: #F7E3DD; color: #7A2E1D; border: 1px solid #E8C0B4; }
.alert-info { background: var(--sand); color: var(--olive); border: 1px solid var(--border); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-green { background: #E4EFE4; color: var(--green-dark); }
.badge-peach { background: var(--sand); color: #8A5A2B; }
.badge-gray { background: var(--cream-alt); color: var(--muted); }
.badge-red { background: #F7E3DD; color: #7A2E1D; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.data th { text-align: left; padding: 14px 18px; background: var(--cream-alt); color: var(--olive); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
table.data td { padding: 14px 18px; border-top: 1px solid var(--border); vertical-align: middle; }
table.data tr:hover td { background: var(--cream); }

/* ---------- LMS layout ---------- */
.lms-shell { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; padding: 44px 0 90px; }
.lms-side { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 96px; }
.lms-side a { display: block; padding: 11px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--olive); margin-bottom: 4px; }
.lms-side a:hover, .lms-side a.active { background: var(--cream-alt); color: var(--green); }
.lms-side .side-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); padding: 12px 14px 6px; }
.lms-main h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.lms-main .sub { color: var(--muted); margin-bottom: 28px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 34px; }
.stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-family: var(--font-head); font-size: 34px; color: var(--green); }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.lesson-item { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; transition: .2s; }
.lesson-item:hover { box-shadow: var(--shadow); }
.lesson-item .num { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--green); display: grid; place-items: center; font-family: var(--font-head); flex-shrink: 0; }
.lesson-item .grow { flex: 1; }
.lesson-item h4 { font-size: 17px; }
.lesson-item small { color: var(--muted); }

.discussion-post { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.discussion-post .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--peach); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.who b { display: block; font-size: 15px; color: var(--olive); }
.who small { color: var(--muted); font-size: 12.5px; }
.reply-list { margin-top: 16px; padding-left: 24px; border-left: 3px solid var(--sand); }

.prose { max-width: 760px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; color: var(--text); }
.prose h2, .prose h3 { margin: 28px 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cta-panel { grid-template-columns: 1fr; text-align: center; padding: 50px 32px; }
  .cta-panel .cta-actions { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .lms-shell { grid-template-columns: 1fr; }
  .lms-side { position: static; }
}
/* Menu becomes a hamburger below 1120px so labels never get squeezed onto two lines */
@media (max-width: 1120px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--border); padding: 12px 4%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding-left: 18px; }
  .nav-toggle { display: block; }
  .nav-cta { margin: 8px 0 0; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .countdown-inner { justify-content: center; text-align: center; }
  .form-card { padding: 26px 20px; }
  .hero-content { padding: 90px 16px; }
}

/* Church logo */
.brand-logo { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; display: block; }
.brand-logo.on-dark { background: #FAF6E8; border-radius: 50%; padding: 3px; }
