/* =====================================================================
   God's Creation — Stylesheet
   Location: public_html/assets/css/style.css
   Look: classic American editorial — navy, cream, old-glory red, gold
   ===================================================================== */

:root {
  --navy:   #1c2b4a;
  --navy-2: #2a3f68;
  --red:    #a3312c;
  --gold:   #b88a3e;
  --gold-2: #d4ab62;
  --cream:  #f7f3ea;
  --paper:  #fffdf8;
  --ink:    #1f2533;
  --muted:  #6b6f7a;
  --line:   #e5dccb;

  --serif-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif-body:    'Lora', Georgia, serif;
  --sans:          'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(28,43,74,.06), 0 8px 24px rgba(28,43,74,.08);
  --max: 1180px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1,h2,h3 { font-family: var(--serif-display); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.wide   { max-width: 1100px; }
.center { text-align: center; }

/* ---------- Top stripe (subtle flag nod) ---------- */
.stripe {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 60px, var(--paper) 60px 64px, var(--red) 64px 124px, var(--paper) 124px 128px);
}

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.masthead__inner { display: flex; justify-content: center; align-items: center; padding: 26px 16px 18px; position: relative; }
.brand { text-decoration: none; text-align: center; display: grid; justify-items: center; gap: 2px; }
.brand__star { color: var(--gold); font-size: 1.1rem; line-height: 1; }
.brand__name { font-family: var(--serif-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--navy); letter-spacing: .5px; }
.brand__tag  { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav { border-top: 1px solid var(--line); }
.nav__inner { display: flex; justify-content: center; align-items: center; gap: 4px; padding-top: 4px; padding-bottom: 4px; }
.nav a {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--navy); padding: 12px 16px; position: relative;
}
.nav a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__search input {
  margin-left: 12px; font: 400 .85rem var(--sans); padding: 8px 12px; width: 180px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink);
}
.nav__search input:focus { outline: 2px solid var(--gold-2); border-color: transparent; }

.nav-toggle { display: none; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Kicker / meta ---------- */
.kicker { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }
.kicker--light { color: var(--gold-2); }
.meta { font-family: var(--sans); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: .6em; }
.meta--center { justify-content: center; }
.meta__cat { color: var(--red); font-weight: 600; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 600 .82rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: .2s;
}
.btn--navy  { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--red); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--gold  { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-2); }
.link-arrow { font: 600 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--red); }

/* ---------- Photo + credit overlay ---------- */
.photo { position: relative; overflow: hidden; background: #d9d2c3; }
.photo img { width: 100%; height: 100%; object-fit: cover; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.photo[data-credit]::after {
  content: '© ' attr(data-credit);
  position: absolute; right: 10px; bottom: 8px;
  font: 500 .66rem var(--sans); letter-spacing: .06em; color: rgba(255,255,255,.9);
  text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none;
}
.photo--empty {
  display: grid; place-items: center; min-height: 220px;
  background: linear-gradient(165deg, #1c2b4a 0%, #3c5c8f 45%, #d59a62 82%, #f3d7a6 100%);
}
.photo__mark { color: rgba(255,255,255,.75); font-size: 2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end;
  background: var(--navy) center/cover no-repeat; color: #fff;
}
.hero--empty { background-image: linear-gradient(165deg, #142038 0%, #2f4b7a 40%, #c98a55 80%, #f1d19d 100%); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,30,.05) 30%, rgba(10,16,30,.78) 100%); }
.hero[data-credit]:not(.hero--empty)::after {
  content: '© ' attr(data-credit); position: absolute; right: 16px; bottom: 12px;
  font: 500 .7rem var(--sans); color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.hero__content { position: relative; padding-top: 80px; padding-bottom: 72px; max-width: 860px; margin-left: max(16px, calc((100% - var(--max)) / 2)); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .35em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero__verse { margin: 0 0 1.8em; font-family: var(--serif-body); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; color: rgba(255,255,255,.92); max-width: 640px; border-left: 3px solid var(--gold-2); padding-left: 18px; }
.hero__verse cite { display: block; margin-top: .5em; font: 600 .75rem var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.hero__soon { font-family: var(--sans); color: rgba(255,255,255,.8); }

/* ---------- Verse band ---------- */
.verse-band { background: var(--navy); color: #fff; text-align: center; padding: 56px 0; }
.verse-band__rule { display: block; width: 60px; height: 2px; background: var(--gold); margin: 0 auto 22px; }
.verse-band p { font-family: var(--serif-display); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.9rem); max-width: 820px; margin: 0 auto 12px; line-height: 1.45; }
.verse-band cite { font: 600 .75rem var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 40px 0 80px; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head--center { display: block; text-align: center; }

.page-head { padding: 64px 0 16px; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media .photo { aspect-ratio: 4 / 3; min-height: 0; }
.card__media .photo img { transition: transform .6s; }
.card:hover .card__media .photo img { transform: scale(1.04); }
.card__body { padding: 22px 22px 26px; }
.card__title { font-size: 1.35rem; margin-bottom: .3em; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--red); }
.card__ref { font: 600 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .6em; }
.card__excerpt { color: #4a4f5c; font-size: .98rem; margin: 0; }

/* ---------- Themes ---------- */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.theme { display: grid; gap: 6px; padding: 26px; text-decoration: none; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); background: var(--cream); transition: .2s; }
.theme:hover { border-top-color: var(--red); background: #fff; box-shadow: var(--shadow); }
.theme__name { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.theme__desc { color: var(--muted); font-size: .95rem; }
.theme__count { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* ---------- Split (photo + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }
.split__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Single devotion ---------- */
.devotion { padding: 56px 0 72px; }
.devotion__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 0; }
.devotion__figure { margin: 36px auto 0; }
.photo--hero { aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: var(--shadow); min-height: 0; }
.devotion__figure figcaption { font: 400 .85rem var(--sans); color: var(--muted); text-align: center; margin-top: 12px; }
.devotion__figure .loc { margin-left: 10px; }

.scripture { margin: 48px 0 40px; padding: 30px 32px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.scripture p { font-family: var(--serif-display); font-style: italic; font-size: 1.35rem; line-height: 1.55; color: var(--navy); margin-bottom: .6em; }
.scripture cite { font: 600 .76rem var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }

.prose { font-size: 1.12rem; line-height: 1.85; }
.prose > p:first-child::first-letter {
  float: left; font-family: var(--serif-display); font-size: 3.6em; line-height: .85; padding: 6px 10px 0 0; color: var(--red);
}
.prayer { margin: 44px 0; padding: 30px 32px; background: var(--navy); color: #eef1f7; border-radius: var(--radius); font-style: italic; }
.prayer__label { font: 600 .74rem var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.prayer p:last-child { margin: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share > span { font: 600 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share__btn { font: 500 .82rem var(--sans); background: var(--paper); color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; text-decoration: none; }
.share__btn:hover { border-color: var(--navy); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.pager__item { text-decoration: none; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; gap: 4px; }
.pager__item span { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.pager__item strong { font-family: var(--serif-display); color: var(--navy); font-size: 1.1rem; }
.pager__item--next { text-align: right; grid-column: 2; }
.pager__item:hover { border-color: var(--navy); }

/* ---------- Archive: search + chips + pagination ---------- */
.search-bar { display: flex; gap: 10px; max-width: 560px; margin: 24px auto; }
.search-bar input { flex: 1; font: 400 1rem var(--sans); padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { font: 500 .8rem var(--sans); text-decoration: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--navy); }
.chip:hover, .chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { font: 500 .88rem var(--sans); text-decoration: none; padding: 10px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.pagination a.is-active, .pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty .brand__star { font-size: 2rem; display: block; margin-bottom: 10px; }

/* ---------- Gallery ---------- */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry__item { display: block; break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: var(--radius); overflow: hidden; }
.masonry__item .photo img { height: auto; transition: transform .6s; }
.masonry__item:hover .photo img { transform: scale(1.03); }
.masonry__label {
  position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px 30px;
  background: linear-gradient(180deg, rgba(10,16,30,.65), transparent);
  color: #fff; font-family: var(--serif-display); font-size: 1.05rem; opacity: 0; transition: .25s;
}
.masonry__item:hover .masonry__label { opacity: 1; }

.lightbox { position: fixed; inset: 0; background: rgba(8,12,22,.94); z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox .photo { background: transparent; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; object-fit: contain; }
.lightbox figcaption { color: #dfe3ec; text-align: center; font-family: var(--sans); font-size: .9rem; margin-top: 12px; }
.lightbox figcaption a { color: var(--gold-2); margin-left: 8px; }
.lightbox__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---------- About pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.pillar { padding: 30px 22px; }
.pillar__icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.pillar p { color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; background: var(--paper); padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font: 600 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.form .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.form input, .form textarea { font: 400 1rem var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-transform: none; letter-spacing: 0; }
.form input:focus, .form textarea:focus, .search-bar input:focus { outline: 2px solid var(--gold-2); border-color: transparent; }
.form button { justify-self: start; }
.form__alt { text-align: center; margin-top: 20px; font-family: var(--sans); color: var(--muted); }
.alert { background: #fbecea; border: 1px solid #efc4c0; color: #7d211d; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-family: var(--sans); font-size: .92rem; }
.alert p { margin: 0; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* ---------- Flash ---------- */
.flash { font-family: var(--sans); font-size: .92rem; padding: 14px 0; }
.flash .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flash--ok  { background: #e8f1ea; color: #1f5130; border-bottom: 1px solid #c7dccb; }
.flash--err { background: #fbecea; color: #7d211d; border-bottom: 1px solid #efc4c0; }
.flash__x { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: inherit; }

/* ---------- Subscribe ---------- */
.subscribe { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0; }
.subscribe__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.subscribe h2 { color: #fff; margin-bottom: .3em; }
.subscribe__note { color: rgba(255,255,255,.75); margin: 0; }
.subscribe__form { display: flex; gap: 10px; }
.subscribe__form input[type=email] { flex: 1; font: 400 1rem var(--sans); padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
.subscribe__form input::placeholder { color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.footer { background: #141f37; color: #c8cede; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer__brand strong { font-family: var(--serif-display); font-size: 1.6rem; color: #fff; display: block; margin: 4px 0 10px; }
.footer__brand p { font-style: italic; max-width: 460px; }
.footer__brand p span { display: block; font: 600 .72rem var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin-top: 6px; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.footer__links a { color: #c8cede; text-decoration: none; font-family: var(--sans); font-size: .92rem; }
.footer__links a:hover { color: var(--gold-2); }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-family: var(--sans); font-size: .82rem; text-align: center; }
.footer__base p { margin: 0; }
.footer__credit { color: #8e96aa; margin-top: 4px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .themes, .pillars { grid-template-columns: repeat(2, 1fr); }
  .split, .subscribe__inner, .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .split__photo { aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .masthead__inner { justify-content: flex-start; padding: 18px 16px 14px; }
  .brand { justify-items: start; text-align: left; }
  .brand__tag { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__inner { flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a.is-active { color: var(--red); }
  .nav__search input { margin: 12px 0 0; width: 100%; }

  .hero { min-height: 72vh; }
  .hero__content { padding-bottom: 48px; }
  .section { padding: 56px 0; }
  .grid--3, .themes, .pillars, .form__row, .pager { grid-template-columns: 1fr; }
  .pager__item--next { grid-column: 1; }
  .scripture, .prayer, .form { padding: 22px; }
  .subscribe__form { flex-direction: column; }
  .search-bar { flex-direction: column; }
  .footer__links { grid-template-columns: 1fr 1fr; }
}
