/*
Theme Name: Bethel Clean
Theme URI: https://egliseadventistebethel.org/
Author: Codex
Description: Lightweight redesign theme for Eglise Adventiste Bethel Haiti.
Version: 0.1.1
Text Domain: bethel-clean
*/

:root {
  --navy: #16233a;
  --blue: #2467a6;
  --gold: #d6a33a;
  --burgundy: #8e2430;
  --green: #3f6f4e;
  --ink: #1d2430;
  --muted: #647082;
  --line: #dfe5eb;
  --stone: #f5f3ee;
  --white: #fff;
  --shadow: 0 16px 42px rgba(22, 35, 58, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfaf7; font-family: "Inter", "Segoe UI", Arial, sans-serif; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
.wrap { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(22,35,58,.96); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.top-strip { color: #f7e8c2; background: rgba(0,0,0,.22); font-size: 13px; }
.top-strip .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.brand-row .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: #fff; }
.brand strong { display: block; font-family: Georgia, serif; font-size: clamp(20px, 3vw, 31px); line-height: 1.05; }
.brand span { display: block; color: #dbe5ee; font-size: 14px; font-weight: 650; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 7px; border: 1px solid transparent; text-decoration: none; font-weight: 720; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { color: #fff; background: var(--burgundy); }
.btn-secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.btn-gold { color: var(--navy); background: var(--gold); }
.btn-ghost { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.nav-row { background: rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.12); }
.nav-row .wrap { display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--navy); font-weight: 720; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > div > ul { display: flex; justify-content: center; align-items: center; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 12px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 680; border-bottom: 3px solid transparent; }
.primary-nav a:hover { color: #ffe7ab; border-bottom-color: var(--gold); }
.primary-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.primary-nav .sub-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 9px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .16s ease; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { min-height: 38px; padding: 8px 10px; border-bottom: 0; border-radius: 6px; white-space: normal; color: var(--navy); }
.primary-nav .sub-menu a:hover { background: var(--stone); }
.hero { position: relative; min-height: 660px; display: grid; place-items: center; isolation: isolate; color: #fff; overflow: hidden; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(180deg, rgba(22,35,58,.55), rgba(22,35,58,.92)), url("http://dev.egliseadventistebethel.org/wp-content/uploads/2020/05/slide84082047149d4872bba1d526d3459ab91.png"); background-size: cover; background-position: center; animation: heroDrift 18s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: auto 8% 0; height: 7px; z-index: -1; background: var(--gold); border-radius: 999px 999px 0 0; }
.hero-content { width: min(920px, calc(100% - 36px)); margin-inline: auto; padding-block: 108px; animation: fadeUp .7s ease both; }
.kicker { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; font-size: 12px; font-weight: 780; letter-spacing: .08em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; color: var(--navy); }
.hero h1 { margin: 0 auto; color: #fff; font-size: clamp(42px, 7vw, 78px); max-width: 900px; }
.hero p { max-width: 760px; margin-inline: auto; font-size: clamp(17px, 2vw, 22px); color: #edf2f7; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.scripture-band { color: #fff; background: var(--burgundy); }
.scripture-band .wrap { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 24px; align-items: center; padding-block: 22px; }
.scripture-band span { color: #ffe4a5; font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.scripture-band p { margin: 0; color: #fff5f6; }
.section { padding-block: 68px; }
.section.alt { background: var(--stone); }
.section-head { max-width: 760px; margin-bottom: 30px; animation: fadeUp .55s ease both; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .info-card, .content-panel { background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 28px rgba(22,35,58,.08); overflow: hidden; animation: fadeUp .55s ease both; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body, .info-card, .content-panel { padding: 22px; }
.card h3, .info-card h3 { margin: 0 0 10px; font-size: 23px; }
.card p, .info-card p, .content-panel p, .content-panel li { color: #384556; }
.icon-badge { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; color: #fff; background: var(--blue); }
.icon { width: 25px; height: 25px; }
.link-more { font-weight: 760; text-decoration: none; }
.worship-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr); gap: 42px; align-items: center; }
.worship-grid figure { margin: 0; position: relative; }
.worship-grid figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 2px solid var(--gold); border-radius: 18px; }
.worship-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px 18px 4px 18px; box-shadow: var(--shadow); }
.worship-copy h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); }
.worship-copy p { color: var(--muted); font-size: 18px; }
.worship-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.worship-links a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 720; }
.feature-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); gap: 30px; align-items: center; }
.feature-band img { width: 100%; border-radius: 9px; box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3; }
.page-hero { position: relative; isolation: isolate; padding-block: 84px; color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(90deg, rgba(22,35,58,.88), rgba(22,35,58,.42)), var(--hero-image); background-size: cover; background-position: center; }
.page-hero h1 { margin: 0; color: #fff; font-size: clamp(36px, 5vw, 58px); }
.page-hero p { max-width: 720px; color: #e8eef5; font-size: 18px; }
.content { padding-block: 54px; background: #fff; }
.content-panel { max-width: 900px; }
.content-panel h2, .content-panel h3 { margin-top: 1.4em; }
.ministry-section { background: #fff; }
.ministry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.ministry-pill { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 999px 14px 14px 999px; background: #fbfaf7; color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ministry-pill:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--gold); }
.ministry-pill img { width: 104px; height: 76px; border-radius: 999px; object-fit: cover; }
.ministry-pill strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 21px; }
.ministry-pill small { display: block; color: var(--muted); line-height: 1.45; }
.prayer-strip { color: #fff; background: radial-gradient(circle at 15% 20%, rgba(214,163,58,.28), transparent 32%), linear-gradient(135deg, var(--burgundy), var(--navy)); }
.prayer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.prayer-strip h2 { color: #fff; }
.prayer-strip p { color: #f3e8ea; }
.site-footer { color: #cfd6de; background: #111820; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-block: 44px; }
.site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 16px; color: #9ca7b3; font-size: 14px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroDrift { from { transform: scale(1.02); } to { transform: scale(1.09) translateY(-1.5%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 980px) {
  .primary-nav > div > ul { justify-content: flex-start; overflow-x: auto; }
  .grid-4, .ministry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { position: relative; }
  .top-strip .wrap, .brand-row .wrap { align-items: flex-start; flex-direction: column; }
  .header-actions { display: none; }
  .nav-row .wrap { justify-content: flex-start; padding-block: 9px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; margin-top: 8px; }
  .site-header.is-open .primary-nav { display: block; }
  .primary-nav > div > ul { display: block; overflow: visible; }
  .primary-nav a { justify-content: space-between; min-height: 40px; }
  .primary-nav .sub-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--gold); border-radius: 0; background: transparent; margin: 0 0 8px 12px; padding: 0 0 0 10px; }
  .primary-nav .sub-menu a { color: #fff; }
  .hero { min-height: 520px; }
  .hero-content { padding-block: 58px; }
  .scripture-band .wrap, .grid-3, .grid-4, .departments-grid, .feature-band, .footer-grid, .worship-grid, .ministry-list { grid-template-columns: 1fr; }
  .ministry-pill { grid-template-columns: 82px minmax(0,1fr); border-radius: 18px; }
  .ministry-pill img { width: 82px; height: 70px; border-radius: 14px; }
  .prayer-inner { align-items: flex-start; flex-direction: column; }
  .section { padding-block: 44px; }
  .brand img { width: 54px; height: 54px; }
}
