/* ===========================================================
   Potter's House Chiba — Design System
   Warm & modern: off-white base, navy + red from the church logo
   =========================================================== */

:root {
  --navy: #16234a;
  --navy-deep: #0e1730;
  --red: #d21f2e;
  --red-deep: #a3131f;
  --cream: #faf7f1;
  --cream-deep: #f2ede2;
  --ink: #23262b;
  --ink-soft: #565b64;
  --line: #e4ded0;
  --white: #ffffff;

  --font-head: "Poppins", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Inter", "Hiragino Sans", "Yu Gothic", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 35, 74, 0.12);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6em;
}

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.9); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--cream-deep { background: var(--cream-deep); }

.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head p { color: var(--ink-soft); }
.section-head .map-note {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--navy);
  background: rgba(22,35,74,0.08);
  padding: 6px 14px;
  border-radius: 999px;
}
.section--navy .section-head p { color: rgba(255,255,255,0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(210,31,46,0.3); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 35, 74, 0.97);
  backdrop-filter: blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-brand img { height: 40px; width: 40px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--red);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 7px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.lang-toggle button.active { background: var(--red); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-actions { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,23,48,0.55) 0%, rgba(14,23,48,0.82) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 100px; padding-bottom: 70px; }
.hero h1 { color: var(--white); }
.hero .tagline-red { color: #ff6b6b; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 560px;
  color: rgba(255,255,255,0.88);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6rem; }

.page-hero {
  position: relative;
  padding: 130px 0 60px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(14,23,48,0.72);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  border: 1px solid var(--line);
}
.card h3 { margin-bottom: 0.4em; }

.vision-card {
  text-align: center;
  padding: 34px 24px;
}
.vision-card .num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ---------- Photo placeholder (real photo not yet supplied) ---------- */
.photo-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(135deg, #eee6d6, #eee6d6 12px, #e6ddc9 12px, #e6ddc9 24px);
  border: 2px dashed #c9bd9e;
  border-radius: var(--radius);
  color: #8a7d5c;
  font-size: 0.85rem;
  padding: 20px;
  min-height: 220px;
  overflow: hidden;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: none; }
.photo-slot span { position: relative; z-index: 1; max-width: 220px; }

.photo-grid-item { min-height: 200px; }
@media (max-width: 860px) and (min-width: 561px) {
  .photo-grid-item { min-height: 260px; }
}
@media (max-width: 560px) {
  .photo-grid-item { min-height: 220px; }
}

.photo-slot--16x9 { aspect-ratio: 16 / 9; min-height: 0; }

.photo-slot--portrait { min-height: 380px; }
@media (max-width: 860px) {
  .photo-slot--portrait { min-height: 440px; }
}
@media (max-width: 560px) {
  .photo-slot--portrait { min-height: 320px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-family: var(--font-head); font-weight: 700; margin-bottom: 12px; }
.footer-brand img { height: 38px; width: 38px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a:hover { color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.social-row a svg { width: 22px; height: 22px; display: block; }
.social-row a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Footer sits on navy, so social icons need a dark-friendly badge */
.site-footer .social-row a {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.site-footer .social-row a:hover { background: rgba(255,255,255,0.16); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */
.stack { display: flex; flex-direction: column; gap: 10px; }
.center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
.badge {
  display: inline-block;
  background: rgba(210,31,46,0.1);
  color: var(--red-deep);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.scripture-quote {
  margin: 16px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--red);
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Statement of Faith list ---------- */
.faith-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.faith-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}
.faith-list li::before {
  content: "✝";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ---------- Gallery ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item .photo-slot { border-radius: 0; min-height: 210px; margin: 0; }
.gallery-caption { background: var(--white); padding: 14px 18px; }
.gallery-caption h4 { margin: 0 0 2px; font-size: 0.98rem; color: var(--navy); }
.gallery-caption p { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Contact / info blocks ---------- */
.info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.info-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.info-row .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(210,31,46,0.1);
  display: flex; align-items: center; justify-content: center;
}
.info-row .icon svg { width: 24px; height: 24px; display: block; }
.info-row .icon--whatsapp { background: rgba(37,211,102,0.12); }
.info-row .icon--gmail { background: rgba(234,67,53,0.1); }
.info-row .icon--line { background: rgba(6,199,85,0.12); }
.info-row--primary {
  background: rgba(6,199,85,0.05);
  border-color: rgba(6,199,85,0.3);
}
.info-row .value { font-weight: 600; color: var(--red-deep); overflow-wrap: break-word; word-break: break-word; }
.info-row:hover .value { text-decoration: underline; }
.info-row > div:last-child { min-width: 0; flex: 1; }
.section--navy .info-row { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }

.schedule-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  text-align: center;
  border-top: 4px solid var(--red);
}
.schedule-card h3 {
  color: var(--navy);
}
.schedule-card .time {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.6rem;
  margin: 10px 0;
}
.schedule-card .time-label {
  font-weight: 400;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-wrap--half { height: 100%; }
.map-wrap--half iframe { height: 100%; min-height: 320px; }

.bank-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  border-left: 5px solid var(--navy);
}
.bank-card dl { display: grid; grid-template-columns: 160px 1fr; row-gap: 10px; margin: 0; }
.bank-card dt { color: var(--ink-soft); font-size: 0.85rem; }
.bank-card dd { margin: 0; font-weight: 600; }

.donate-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  border-left: 5px solid #0070ba;
  text-align: center;
  margin-bottom: 28px;
}
.donate-actions {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0.6rem;
}
.donate-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.donate-email {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.donate-email span { font-weight: 600; color: var(--ink); }
.btn-paypal {
  background: #ffc439;
  color: #003087;
}
.btn-paypal:hover { background: #f2b632; }
.btn-paypal svg { width: 22px; height: 22px; }
.btn-stripe {
  background: #635bff;
  color: var(--white);
}
.btn-stripe:hover { background: #524adb; }
.btn-stripe svg { width: 22px; height: 22px; }
.donate-qr {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.donate-qr img {
  width: 180px;
  height: 180px;
  margin: 0 auto 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.donate-qr p { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }

.flyer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 700px) { .flyer-grid { grid-template-columns: 1fr; } }
.flyer-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.flyer-card .photo-slot { min-height: 320px; border-radius: 0; }
.flyer-card .flyer-caption { padding: 18px 22px; }
