/*
Theme Name: St. Mark Lutheran
Theme URI: https://stmarklj.org
Author: St. Mark Lutheran Church
Author URI: https://stmarklj.org
Description: A modern, mobile-friendly theme for St. Mark Lutheran Church & Preschool, Lake Jackson, TX. Keeps the congregation's teal-and-burgundy brand and Alegreya typography while giving the site a clean, contemporary layout. Member of the Lutheran Church Missouri Synod (LCMS).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stmark
Tags: church, nonprofit, one-page, custom-logo, responsive
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root{
  --cream:      #f4f1ea;
  --cream-alt:  #ece6d9;
  --paper:      #ffffff;
  --ink:        #22312f;
  --ink-soft:   #4a5854;

  --teal-900:   #023e47;   /* deep brand teal (headings) */
  --teal-700:   #0e5f6c;
  --teal-500:   #1a7c8a;   /* logo teal / accents */
  --teal-100:   #dcebed;

  --burgundy:   #7c2b3b;   /* the cross in the logo */
  --burgundy-d: #611f2c;
  --burgundy-100:#f0e2e4;

  --gold:       #c79a3c;

  --line:       rgba(2,62,71,.14);
  --shadow-sm:  0 2px 8px rgba(2,62,71,.06);
  --shadow-md:  0 10px 30px rgba(2,62,71,.10);
  --shadow-lg:  0 24px 60px rgba(2,62,71,.16);

  --radius:     16px;
  --radius-lg:  26px;
  --maxw:       1140px;
  --header-h:   76px;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans:  "Alegreya Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

/* =========================================================
   2. Reset / base
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 12px); }
body{
  margin:0;
  font-family:var(--sans);
  font-size:1.075rem;
  line-height:1.7;
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--teal-700); text-decoration:none; transition:color .18s ease; }
a:hover{ color:var(--burgundy); }
h1,h2,h3,h4{ font-family:var(--serif); color:var(--teal-900); line-height:1.15; margin:0 0 .5em; font-weight:800; letter-spacing:.2px; }
h2{ font-size:clamp(1.8rem,3.4vw,2.7rem); }
h3{ font-size:1.4rem; font-weight:700; }
p{ margin:0 0 1.1em; }
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:24px; }

/* Section rhythm */
.section{ padding:clamp(56px,8vw,104px) 0; }
.section--cream{ background:var(--cream); }
.section--alt{ background:var(--cream-alt); }
.section--paper{ background:var(--paper); }
.section--teal{ background:var(--teal-900); color:#eaf4f4; }
.section--teal h2,.section--teal h3{ color:#fff; }
.section--teal p{ color:#cfe4e6; }

.eyebrow{
  font-family:var(--sans);
  text-transform:uppercase;
  letter-spacing:.22em;
  font-weight:700;
  font-size:.78rem;
  color:var(--burgundy);
  margin:0 0 .8rem;
}
.section--teal .eyebrow{ color:var(--gold); }
.section-head{ max-width:720px; margin:0 auto clamp(32px,5vw,54px); text-align:center; }
.section-head p{ color:var(--ink-soft); font-size:1.12rem; }
.section--teal .section-head p{ color:#bfd8da; }

/* =========================================================
   3. Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:var(--sans); font-weight:700; font-size:1rem;
  letter-spacing:.02em;
  padding:.82em 1.6em; border-radius:999px;
  border:2px solid transparent; cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height:1;
}
.btn:hover{ transform:translateY(-2px); }
.btn--primary{ background:var(--burgundy); color:#fff; box-shadow:var(--shadow-sm); }
.btn--primary:hover{ background:var(--burgundy-d); color:#fff; box-shadow:var(--shadow-md); }
.btn--teal{ background:var(--teal-500); color:#fff; }
.btn--teal:hover{ background:var(--teal-700); color:#fff; box-shadow:var(--shadow-md); }
.btn--ghost{ background:transparent; color:var(--teal-900); border-color:var(--teal-900); }
.btn--ghost:hover{ background:var(--teal-900); color:#fff; }
.btn--light{ background:#fff; color:var(--teal-900); }
.btn--light:hover{ background:var(--cream); color:var(--burgundy); }
.btn--on-dark{ background:transparent; color:#fff; border-color:rgba(255,255,255,.6); }
.btn--on-dark:hover{ background:#fff; color:var(--teal-900); }

/* =========================================================
   4. Header
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(244,241,234,.9);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header__bar{
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand img{ height:52px; width:auto; }
.brand__text{ font-family:var(--serif); font-weight:800; color:var(--teal-900); font-size:1.15rem; line-height:1.05; }
.brand__text small{ display:block; font-family:var(--sans); font-weight:600; font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; color:var(--burgundy); }

.primary-nav{ display:flex; align-items:center; gap:6px; }
.primary-nav ul{ list-style:none; display:flex; align-items:center; gap:4px; margin:0; padding:0; }
.primary-nav a{
  font-family:var(--sans); font-weight:600; font-size:1rem; color:var(--teal-900);
  padding:.55em .8em; border-radius:10px;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a{ color:var(--burgundy); background:rgba(124,43,59,.07); }
.header-cta{ display:flex; align-items:center; gap:10px; margin-left:8px; }

.nav-toggle{
  display:none; align-items:center; justify-content:center;
  width:46px; height:46px; border:1px solid var(--line); border-radius:12px;
  background:#fff; cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:22px; height:2px; background:var(--teal-900); position:relative; transition:.25s;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }
body.nav-open .nav-toggle span{ background:transparent; }
body.nav-open .nav-toggle span::before{ top:0; transform:rotate(45deg); }
body.nav-open .nav-toggle span::after{ top:0; transform:rotate(-45deg); }

@media (max-width:960px){
  .primary-nav{
    position:fixed; inset:var(--header-h) 0 auto 0;
    background:var(--cream); border-bottom:1px solid var(--line);
    flex-direction:column; align-items:stretch; gap:0;
    padding:12px 24px 22px; box-shadow:var(--shadow-md);
    transform:translateY(-140%); transition:transform .3s ease; z-index:99;
  }
  body.nav-open .primary-nav{ transform:translateY(0); }
  .primary-nav ul{ flex-direction:column; align-items:stretch; gap:2px; width:100%; }
  .primary-nav a{ display:block; padding:.8em .4em; font-size:1.1rem; border-bottom:1px solid var(--line); border-radius:0; }
  .header-cta{ margin:14px 0 0; }
  .header-cta .btn{ flex:1; justify-content:center; }
  .nav-toggle{ display:inline-flex; }
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero{ position:relative; color:#fff; isolation:isolate; }
.hero__bg{ position:absolute; inset:0; z-index:-2; overflow:hidden; }
.hero__bg img{ width:100%; height:100%; object-fit:cover; }
.hero::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(2,42,49,.62) 0%, rgba(2,42,49,.72) 55%, rgba(2,42,49,.86) 100%);
}
.hero__inner{ padding:clamp(84px,13vw,150px) 0 clamp(64px,9vw,110px); max-width:760px; }
.hero .synod{ font-family:var(--sans); font-weight:700; letter-spacing:.2em; text-transform:uppercase; font-size:.76rem; color:var(--gold); margin-bottom:1rem; }
.hero h1{ color:#fff; font-size:clamp(2.6rem,6vw,4.6rem); line-height:1.02; margin-bottom:.35em; text-shadow:0 2px 30px rgba(0,0,0,.25); }
.hero__tagline{ font-family:var(--serif); font-style:italic; font-size:clamp(1.25rem,2.6vw,1.7rem); color:#f3e7d6; margin-bottom:1.8em; max-width:34ch; }
.hero__actions{ display:flex; flex-wrap:wrap; gap:14px; }
.hero__times{
  display:inline-flex; align-items:center; gap:14px; margin-top:34px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25);
  backdrop-filter:blur(6px); padding:14px 20px; border-radius:14px; font-family:var(--sans);
}
.hero__times strong{ display:block; font-size:1.35rem; color:#fff; font-family:var(--serif); }
.hero__times span{ font-size:.95rem; color:#d9e7e8; }
.hero__times .dot{ width:9px; height:9px; border-radius:50%; background:var(--gold); flex:none; }

/* =========================================================
   6. Cards & grids
   ========================================================= */
.grid{ display:grid; gap:26px; }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:900px){ .grid--3{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .grid--3,.grid--2{ grid-template-columns:1fr; } }

.card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; box-shadow:var(--shadow-sm); transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.card .ic{
  width:52px; height:52px; border-radius:13px; display:grid; place-items:center;
  background:var(--teal-100); color:var(--teal-700); margin-bottom:16px;
}
.card .ic svg{ width:26px; height:26px; }
.card h3{ margin-bottom:.35em; }
.card p{ color:var(--ink-soft); margin-bottom:0; }

/* Welcome / mission split */
.split{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(30px,5vw,64px); align-items:center; }
@media (max-width:860px){ .split{ grid-template-columns:1fr; } }
.split__media img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); width:100%; }
.mission-quote{
  font-family:var(--serif); font-style:italic; font-size:clamp(1.3rem,2.4vw,1.7rem);
  color:var(--teal-900); border-left:4px solid var(--burgundy); padding-left:22px; margin:0 0 1.2em;
}

/* Visit / service list */
.visit-list{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.visit-list li{ display:flex; gap:16px; align-items:flex-start; }
.visit-list .t{ font-family:var(--serif); font-weight:800; font-size:1.15rem; color:var(--gold); min-width:96px; }
.visit-list .d strong{ display:block; color:#fff; font-size:1.12rem; font-family:var(--serif); }
.visit-list .d span{ color:#c9dedf; }

/* Events */
.event{
  display:flex; gap:20px; align-items:center; background:var(--paper);
  border:1px solid var(--line); border-left:5px solid var(--burgundy);
  border-radius:14px; padding:22px 26px; box-shadow:var(--shadow-sm);
}
.event__badge{
  flex:none; width:70px; height:70px; border-radius:14px; background:var(--burgundy-100);
  color:var(--burgundy); display:grid; place-items:center; text-align:center; font-family:var(--serif); font-weight:800; line-height:1;
}
.event__badge b{ font-size:1.5rem; display:block; }
.event__badge small{ font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; }
.event h3{ margin:0 0 .2em; }
.event p{ margin:0; color:var(--ink-soft); }

/* =========================================================
   7. Leadership
   ========================================================= */
.lead-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:26px; }
@media (max-width:820px){ .lead-grid{ grid-template-columns:1fr; } }
.lead-card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); }
.lead-card__head{ background:var(--teal-900); color:#fff; padding:18px 24px; display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.lead-card__head h3{ color:#fff; margin:0; font-size:1.3rem; }
.lead-card__head .ph{ font-family:var(--sans); font-size:.9rem; color:var(--gold); font-weight:700; white-space:nowrap; }
.lead-card__body{ padding:10px 24px 22px; }
.people{ list-style:none; margin:0; padding:0; }
.people li{ padding:12px 0; border-bottom:1px dashed var(--line); display:flex; justify-content:space-between; gap:16px; align-items:baseline; }
.people li:last-child{ border-bottom:0; }
.people .name{ font-family:var(--serif); font-weight:700; color:var(--teal-900); font-size:1.08rem; }
.people .role{ color:var(--ink-soft); font-size:.95rem; text-align:right; }

.boards{ columns:2; column-gap:30px; }
@media (max-width:720px){ .boards{ columns:1; } }
.board{ break-inside:avoid; margin-bottom:22px; padding:18px 22px; background:var(--paper); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-sm); }
.board h4{ margin:0 0 .3em; font-size:1.08rem; color:var(--burgundy); font-family:var(--serif); }
.board p{ margin:0; color:var(--ink-soft); font-size:1rem; }
.board .dir{ color:var(--teal-700); font-weight:700; }
.legend{ text-align:center; color:var(--ink-soft); font-size:.95rem; margin-top:8px; }

/* =========================================================
   8. Preschool band
   ========================================================= */
.band{ display:grid; grid-template-columns:1fr 1fr; gap:0; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md); background:var(--paper); }
@media (max-width:820px){ .band{ grid-template-columns:1fr; } }
.band__text{ padding:clamp(30px,4vw,52px); }
.band__media{ background:var(--teal-100); min-height:260px; display:grid; place-items:center; padding:30px; }
.band__media img{ max-height:200px; width:auto; }

/* =========================================================
   9. Contact
   ========================================================= */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,4vw,52px); align-items:start; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.reach{ display:grid; gap:22px; }
.reach__block{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:24px 26px; box-shadow:var(--shadow-sm); }
.reach__block h3{ display:flex; align-items:center; gap:10px; margin-bottom:.5em; }
.reach__block h3 svg{ width:22px; height:22px; color:var(--burgundy); }
.reach__row{ display:flex; gap:10px; margin-bottom:6px; color:var(--ink-soft); }
.reach__row b{ color:var(--teal-900); font-family:var(--sans); min-width:74px; }

/* Contact form (works with Jetpack markup, styled generically) */
.form-wrap{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:clamp(24px,3vw,34px); box-shadow:var(--shadow-sm); }
.form-wrap label{ display:block; font-family:var(--sans); font-weight:700; color:var(--teal-900); margin:0 0 6px; font-size:.98rem; }
.form-wrap input[type=text],
.form-wrap input[type=email],
.form-wrap input[type=url],
.form-wrap input[type=tel],
.form-wrap textarea,
.form-wrap .grunion-field{
  width:100%; font-family:var(--sans); font-size:1rem; color:var(--ink);
  padding:12px 14px; margin-bottom:16px; background:var(--cream);
  border:1px solid var(--line); border-radius:12px; transition:border-color .15s, box-shadow .15s;
}
.form-wrap input:focus, .form-wrap textarea:focus{ outline:none; border-color:var(--teal-500); box-shadow:0 0 0 3px var(--teal-100); }
.form-wrap textarea{ min-height:140px; resize:vertical; }
.form-wrap button[type=submit], .form-wrap input[type=submit]{
  background:var(--burgundy); color:#fff; border:0; border-radius:999px;
  font-family:var(--sans); font-weight:700; font-size:1rem; padding:.85em 1.8em; cursor:pointer;
  transition:background .2s, transform .15s;
}
.form-wrap button[type=submit]:hover, .form-wrap input[type=submit]:hover{ background:var(--burgundy-d); transform:translateY(-2px); }
.map-frame{ margin-top:22px; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); border:1px solid var(--line); line-height:0; }
.map-frame iframe{ width:100%; height:280px; border:0; }

/* =========================================================
   10. Footer
   ========================================================= */
.site-footer{ background:#02333b; color:#cfe1e3; padding:60px 0 26px; }
.site-footer a{ color:#cfe1e3; }
.site-footer a:hover{ color:#fff; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr; gap:28px; } }
.site-footer h4{ color:#fff; font-size:1.05rem; text-transform:uppercase; letter-spacing:.12em; font-family:var(--sans); font-weight:700; margin-bottom:1em; }
.footer-brand img{ height:64px; background:#fff; padding:10px 14px; border-radius:12px; margin-bottom:16px; }
.footer-brand p{ color:#a9c6c9; font-size:.98rem; }
.footer-list{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.socials{ display:flex; gap:12px; margin-top:6px; }
.socials a{ width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.1); display:grid; place-items:center; transition:background .2s, transform .15s; }
.socials a:hover{ background:var(--burgundy); transform:translateY(-2px); }
.socials svg{ width:20px; height:20px; fill:#fff; }
.footer-bottom{ margin-top:44px; padding-top:20px; border-top:1px solid rgba(255,255,255,.14); display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; color:#8fb2b5; font-size:.9rem; }

/* Generic page content (page.php / index.php) */
.page-hero{ background:var(--teal-900); color:#fff; padding:clamp(60px,9vw,96px) 0 clamp(40px,6vw,64px); text-align:center; }
.page-hero h1{ color:#fff; }
.entry{ padding:clamp(40px,6vw,72px) 0; }
.entry .container{ max-width:820px; }
.entry img{ border-radius:var(--radius); margin:1.2em 0; }
.entry h2,.entry h3{ margin-top:1.4em; }

/* Utilities & motion */
.text-center{ text-align:center; }
.mt-lg{ margin-top:36px; }
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .btn:hover,.card:hover{ transform:none; }
}
.skip-link{ position:absolute; left:-9999px; top:0; background:#fff; color:var(--teal-900); padding:10px 16px; z-index:200; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }
