/* THE GRACE TOWER FAMILY CHURCH — shared styles
   Palette: royal blue #1a4fa0, ministry green #1f9d55, gold #c9a227, ivory #faf7ef */

:root {
  --blue: #1a4fa0;
  --blue-deep: #0e2f63;
  --green: #1f9d55;
  --green-deep: #157347;
  --gold: #c9a227;
  --gold-light: #e3c55c;
  --ivory: #faf7ef;
  --white: #ffffff;
  --ink: #1e2430;
  --muted: #5b6474;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 47, 99, .12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, .serif {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--blue);
  line-height: 1.25;
}

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

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

section { padding: 64px 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--blue-deep);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--gold); background: #fff;
}
.brand-text { line-height: 1.2; }
.brand-text strong {
  display: block; color: #fff; font-family: "Playfair Display", Georgia, serif;
  font-size: 17px; letter-spacing: .5px;
}
.brand-text span { color: var(--gold-light); font-size: 12.5px; letter-spacing: 1.5px; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; color: #fff; font-size: 26px; cursor: pointer; padding: 6px 10px;
}
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a {
  color: #e9e4d4; text-decoration: none; padding: 10px 14px; border-radius: 8px;
  font-size: 15.5px; font-weight: 600; letter-spacing: .3px;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(201,162,39,.18); color: #fff; }
.main-nav a.active { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 30px; border-radius: 999px; font-size: 16.5px;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: 2px solid transparent; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--blue-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-navy { background: var(--green); color: #fff; }
.btn-navy:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue) 55%, #2a6bc4 100%);
  color: #fff; text-align: center; padding: 96px 0 84px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(31,157,85,.20), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .kicker {
  color: var(--gold-light); letter-spacing: 4px; font-size: 14px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: clamp(34px, 5.5vw, 58px); margin-bottom: 10px; }
.hero .hero-sub { font-size: clamp(18px, 2.6vw, 23px); color: #e9e4d4; max-width: 640px; margin: 0 auto; }
.hero .hero-meta { margin-top: 18px; color: var(--gold-light); font-weight: 600; }

.page-hero {
  background: linear-gradient(160deg, var(--blue-deep), var(--blue) 70%, var(--green-deep));
  color: #fff; text-align: center; padding: 64px 0 52px;
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); }
.page-hero p { color: #d9d3bf; max-width: 640px; margin: 12px auto 0; }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.card h3 { margin-bottom: 10px; font-size: 22px; }
.card p { color: var(--muted); }
.card .big { font-size: 15px; color: var(--blue); font-weight: 700; }

.scripture-strip {
  background: linear-gradient(160deg, var(--blue-deep), var(--green-deep)); color: #fff; text-align: center; padding: 54px 0;
}
.scripture-strip blockquote {
  font-family: "Playfair Display", Georgia, serif; font-size: clamp(20px, 3vw, 28px);
  max-width: 760px; margin: 0 auto; font-style: italic; color: #f3eeda;
}
.scripture-strip cite {
  display: block; margin-top: 14px; font-style: normal; color: var(--gold-light);
  letter-spacing: 2px; font-size: 14px; font-weight: 700;
}

/* ---------- Pastor welcome ---------- */
.pastor-block { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.pastor-photo {
  width: 220px; height: 260px; border-radius: 18px; margin: 0 auto;
  border: 5px solid var(--gold); object-fit: cover; object-position: top; background: #fff;
  box-shadow: var(--shadow);
}
.signature { font-family: "Playfair Display", Georgia, serif; color: var(--blue); font-size: 20px; margin-top: 16px; }
.signature small { display: block; font-family: "Source Sans 3", sans-serif; font-size: 14px; color: var(--muted); letter-spacing: 2px; }

/* ---------- Scrolling banner ---------- */
.marquee { overflow: hidden; background: var(--blue-deep); padding: 20px 0; border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee-scroll 55s linear infinite; }
.marquee-track img {
  height: 250px; width: auto; border-radius: 14px; flex: 0 0 auto;
  border: 3px solid rgba(255,255,255,.85); box-shadow: var(--shadow);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 520px) { .marquee-track img { height: 180px; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid img {
  width: 100%; height: 300px; object-fit: cover; border-radius: 14px;
  box-shadow: var(--shadow); border: 3px solid #fff;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } .gallery-grid img { height: 220px; } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid img { height: auto; } }

/* ---------- Video ---------- */
.video-wrap {
  position: relative; width: 100%; padding-bottom: 56.25%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.shorts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.short-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; transition: transform .15s;
}
.short-card:hover { transform: translateY(-4px); }
.short-card .thumb {
  aspect-ratio: 9/16; max-height: 300px; width: 100%;
  background: linear-gradient(160deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center; color: var(--gold-light);
  font-size: 44px;
}
.short-card .label { padding: 14px 16px; font-weight: 700; color: var(--blue); font-size: 15.5px; }
.short-card .label small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }

/* ---------- Social ---------- */
.social-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--blue); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: background .2s, transform .15s;
}
.social-btn:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Lists ---------- */
.check-list { list-style: none; margin-top: 14px; }
.check-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid #eee5cf; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "✓"; position: absolute; left: 4px; top: 10px; color: var(--green);
  font-weight: 800; font-size: 18px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #cfc9b4; padding: 54px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; background: #fff; }
.footer-brand strong { color: #fff; font-family: "Playfair Display", Georgia, serif; }
.site-footer h4 { color: var(--gold-light); font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; text-transform: uppercase; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 15px; }
.site-footer a { color: #cfc9b4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(201,162,39,.25); margin-top: 34px; padding-top: 20px;
  text-align: center; font-size: 13.5px; color: #8f8a76;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .shorts-grid { grid-template-columns: 1fr; }
  .pastor-block { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle-label { display: block; }
  .main-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; padding-bottom: 12px; }
  .main-nav a { display: block; }
  .header-inner { flex-wrap: wrap; }
  section { padding: 48px 0; }
}

/* ---------- Language switcher ---------- */
.lang-switcher { display: flex; gap: 6px; align-items: center; margin-left: 6px; }
.lang-switcher button {
  background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #e9e4d4;
  font-weight: 700; font-size: 12.5px; letter-spacing: .5px; padding: 6px 11px;
  border-radius: 999px; cursor: pointer; transition: all .2s;
}
.lang-switcher button:hover { border-color: var(--gold); color: #fff; }
.lang-switcher button.active { background: var(--gold); border-color: var(--gold); color: var(--blue-deep); }
@media (max-width: 860px) { .lang-switcher { margin-left: auto; margin-right: 6px; } }

/* Pillar icons */
.pillar-card { text-align:center; }
.pillar-icon { width:84px; height:84px; border-radius:22px; margin:0 auto 14px; display:block; box-shadow:0 4px 14px rgba(14,47,99,.15); }

/* Social brand icons in footer */
.social-icons { display:flex; gap:12px; margin:2px 0 14px; }
.social-icons a { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.12); transition:transform .2s ease, background .2s ease; }
.social-icons a:hover { transform:translateY(-2px); background:var(--gold); }
.social-icons img { width:22px; height:22px; display:block; }

/* Prayer pages */
.form-card { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea {
  width: 100%; padding: 13px 15px; border: 2px solid #e3dcc6; border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { min-height: 150px; resize: vertical; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input[type="checkbox"] { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 auto; }
.form-note { display: none; margin-top: 16px; padding: 16px 18px; border-radius: 10px; background: #eef7f0; border: 1px solid #bfe3cd; color: var(--green-deep); font-weight: 600; }
.form-note.show { display: block; }
.point-card { position: relative; padding-left: 78px; }
.point-num {
  position: absolute; left: 22px; top: 26px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: #fff; font-family: "Playfair Display", Georgia, serif;
  font-size: 21px; display: flex; align-items: center; justify-content: center;
}
.decree-text {
  font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 18px;
  color: var(--blue-deep); margin-top: 16px; padding-left: 16px; border-left: 4px solid var(--gold);
}
@media (max-width: 1100px) and (min-width: 861px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.video-wrap-vertical { position:relative; width:100%; max-width:380px; margin:0 auto; aspect-ratio:9/16; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); background:#000; }
.video-wrap-vertical video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
