/* ============================================================
   Vallecito Church — site styles
   Palette inspired by the Vallecito valley: pine, lake, timber
   ============================================================ */

:root {
  --pine: #2f4a3c;
  --pine-dark: #223729;
  --pine-light: #3e6350;
  --gold: #c89b5a;
  --gold-dark: #a97f41;
  --cream: #f7f4ec;
  --white: #ffffff;
  --ink: #2b2f2c;
  --ink-soft: #55605a;
  --line: #e3ded2;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(34, 55, 41, 0.10);
  --maxw: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4 { font-family: "Lora", Georgia, serif; color: var(--pine-dark); line-height: 1.25; }

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

a { color: var(--pine-light); }
a:hover { color: var(--gold-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand-name { font-family: "Lora", Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--pine-dark); }
.brand-tag { display: block; font-family: "Source Sans 3", sans-serif; font-size: .75rem; font-weight: 400; color: var(--ink-soft); letter-spacing: .06em; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; font-size: 1.8rem; color: var(--pine-dark); user-select: none; }

.site-nav ul { list-style: none; display: flex; gap: .25rem; }
.site-nav a {
  display: block; padding: .55rem .85rem; text-decoration: none;
  color: var(--pine-dark); font-weight: 600; border-radius: 6px; font-size: .98rem;
}
.site-nav a:hover { background: var(--cream); color: var(--pine); }
.site-nav a.active { background: var(--pine); color: var(--white); }
.site-nav a.nav-give { background: var(--gold); color: var(--pine-dark); border-radius: 999px; padding: .55rem 1.2rem; margin-left: .35rem; }
.site-nav a.nav-give:hover { background: #d9ad6d; color: var(--pine-dark); }

/* Service-time bar under header */
.time-bar {
  background: var(--pine); color: #e6dcc4; text-align: center;
  font-size: .95rem; padding: .45rem 1rem; letter-spacing: .02em;
}
.time-bar a { color: var(--gold); font-weight: 700; text-decoration: none; }
.time-bar a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(34,55,41,.72), rgba(34,55,41,.72)), var(--pine-dark);
  background-size: cover; background-position: center;
  color: var(--white); text-align: center;
  padding: 5.5rem 1.25rem 6rem;
}
.hero.has-photo { background-image: linear-gradient(rgba(24,40,30,.66), rgba(24,40,30,.66)), var(--hero-img); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: .75rem; }
.hero .tagline { font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-style: italic; color: #eee6d4; margin-bottom: .35rem; }
.hero .sub { color: #cfd8cf; font-style: italic; margin-bottom: 1.75rem; }

.btn {
  display: inline-block; padding: .7rem 1.6rem; border-radius: 999px;
  background: var(--gold); color: var(--pine-dark); font-weight: 700;
  text-decoration: none; border: none; cursor: pointer; font-size: 1rem;
  transition: background .15s ease;
}
.btn:hover { background: #d9ad6d; color: var(--pine-dark); }
.btn.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.75); }
.btn.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn.btn-pine { background: var(--pine); color: var(--white); }
.btn.btn-pine:hover { background: var(--pine-light); }

/* Page hero (interior pages) */
.page-hero { padding: 3.5rem 1.25rem 3.75rem; }
.page-hero h1 { margin-bottom: .4rem; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--white); }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
.section .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--ink-soft); flex: 1; margin-bottom: 1rem; }
.card .btn { align-self: flex-start; font-size: .92rem; padding: .55rem 1.25rem; }
.card .kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); font-weight: 700; margin-bottom: .35rem; }

/* ---------- Feature rows (what to expect) ---------- */
.feature { border-left: 4px solid var(--gold); padding-left: 1.25rem; margin-top: 1.75rem; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--ink-soft); }

/* ---------- Plan your visit ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2rem; }
.visit-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.visit-block h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--pine); }
.visit-block p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Give page ---------- */
.give-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2rem; }
.give-method {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.give-method h3 { margin-bottom: .5rem; }
.give-method p { color: var(--ink-soft); flex: 1; margin-bottom: 1rem; }
.give-method .btn { align-self: flex-start; }
.fine-note { font-size: .9rem; color: var(--ink-soft); margin-top: 1.5rem; max-width: 70ch; }

/* ---------- Tap-to-call button ---------- */
.tel-btn {
  display: inline-block; margin-top: .35rem; padding: .45rem 1rem; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line); color: var(--pine-dark);
  font-weight: 700; text-decoration: none; font-size: .92rem;
}
.tel-btn:hover { background: var(--gold); color: var(--pine-dark); }

/* ---------- Leadership ---------- */
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2rem; }
.leader {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
}
.leader h3 { margin-bottom: .15rem; }
.leader .role { color: var(--gold-dark); font-weight: 700; font-size: .95rem; margin-bottom: .8rem; }
.leader ul { margin: .4rem 0 1rem 1.2rem; color: var(--ink-soft); }
.leader .cell { font-weight: 600; color: var(--pine-dark); }

/* ---------- Faith / accordion-style blocks ---------- */
.faith-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2rem; }
.faith { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem; }
.faith h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--pine); }
.faith p, .faith li { color: var(--ink-soft); font-size: .98rem; }
.faith ol { margin: .5rem 0 .5rem 1.3rem; }

/* ---------- History ---------- */
.history p { margin-bottom: 1.1rem; max-width: 72ch; }
.timeline { list-style: none; margin-top: 2rem; border-left: 3px solid var(--gold); }
.timeline li { padding: 0 0 1.5rem 1.5rem; position: relative; max-width: 70ch; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .45rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--cream);
}
.timeline .year { font-family: "Lora", Georgia, serif; font-weight: 700; color: var(--pine-dark); font-size: 1.1rem; display: block; }
.timeline p { color: var(--ink-soft); }

/* ---------- Events ---------- */
.event-list { margin-top: 2rem; display: grid; gap: 1.2rem; }
.event {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 130px 1fr; gap: 1.4rem; align-items: start;
}
.event .when {
  font-family: "Lora", Georgia, serif; font-weight: 700; color: var(--pine);
  border-right: 3px solid var(--gold); padding-right: 1rem; font-size: .98rem;
}
.next-badge {
  display: block; margin-top: .5rem; padding: .2rem .65rem; border-radius: 999px;
  background: var(--gold); color: var(--pine-dark);
  font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: .8rem;
  width: fit-content;
}
.series-note { color: var(--ink-soft); font-style: italic; margin-top: .5rem; }
.event h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.event p { color: var(--ink-soft); }
.event ul { margin: .5rem 0 0 1.2rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; margin-top: 2rem; align-items: start; }
.form-card, .info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; margin: .9rem 0 .3rem; color: var(--pine-dark); font-size: .95rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; background: var(--cream); color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--pine-light); background: var(--white); }
textarea { min-height: 140px; resize: vertical; }
.form-card .btn { margin-top: 1.25rem; }
.info-card h3 { margin-bottom: .5rem; }
.info-card p { color: var(--ink-soft); margin-bottom: 1rem; }
.info-card .big-link { font-size: 1.05rem; font-weight: 700; }

.prayer-band {
  background: var(--pine); color: var(--white); text-align: center;
  padding: 3.25rem 1.25rem; margin-top: 3.5rem;
}
.prayer-band h2 { color: var(--white); margin-bottom: .5rem; }
.prayer-band p { color: #d8e0d6; margin-bottom: 1.5rem; }

/* ---------- Newsletter band ---------- */
.newsletter-band { background: var(--white); border-top: 1px solid var(--line); padding: 3rem 1.25rem; text-align: center; }
.newsletter-band h2 { margin-bottom: .4rem; }
.newsletter-band p { color: var(--ink-soft); margin-bottom: 1.25rem; }
.newsletter-band .fine { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-dark); color: #cfd8cf; padding: 3rem 0 1.5rem; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.site-footer h4 { color: var(--white); margin-bottom: .75rem; font-size: 1.05rem; }
.site-footer a { color: #e6dcc4; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.footer-bottom {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .88rem; color: #9fb0a2;
}
.social { display: flex; gap: .9rem; margin-top: .75rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: var(--white); font-weight: 700;
}
.social a:hover { background: var(--gold); color: var(--pine-dark); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .leader-grid, .faith-grid, .visit-grid, .give-methods { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .nav-toggle:checked ~ .site-nav { max-height: 400px; }
  .card-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; }
  .event .when { border-right: none; border-bottom: 3px solid var(--gold); padding: 0 0 .5rem; margin-bottom: .25rem; }
  .form-row { grid-template-columns: 1fr; }
}
