/* Thousand Oaks SDA Church — shared styles */
:root {
  /* ---- TOSDA design system (matches letterhead + signage) ---- */
  --navy: #1E3D20;          /* Oak Green — headings, primary buttons, accents */
  --navy-dark: #16301A;     /* Oak Green, darker (hover) */
  --olive: #6B7A5A;         /* Olive Rule — rules, borders, dates, labels */
  --sage: #C9D6B8;          /* sage — small-caps labels on Oak Green */
  --sage-rule: #8FA27A;     /* rules on Oak Green */
  --sage-tagline: #E2EAD8;  /* tagline on Oak Green */
  --charcoal: #222222;      /* letterhead body text */
  --gold: #1E3D20;          /* primary action = Oak Green (legacy var name) */
  --gold-dark: #16301A;
  --blue: #6B7A5A;          /* legacy var name, mapped to Olive */
  --cream: #FDFCF8;         /* Paper — page background */
  --sand: #F4F0E6;          /* Paper, deeper — bands */
  --white: #ffffff;
  --text: #222222;
  --text-light: #5F6B57;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(30, 61, 32, 0.10);
  --font-display: "Figtree", "Avenir Next", -apple-system, Helvetica, Arial, sans-serif;
  --font-body: "Figtree", "Avenir Next", -apple-system, Helvetica, Arial, sans-serif;
  --font-script: "Hurricane", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 { font-family: var(--font-display); font-weight: 600; color: var(--navy); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-family: var(--font-display); font-weight: 600; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--olive); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--text-light); max-width: 680px; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 12px auto 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; transition: all .2s ease; text-decoration: none !important;
}
.btn-gold { background: var(--navy); color: #fff; }
.btn-gold:hover { background: var(--navy-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(107,122,90,.28);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.logo-img { height: 46px; width: auto; flex-shrink: 0; }
.logo-text { font-family: var(--font-display); font-weight: 600; color: var(--charcoal); line-height: 1.1; }
.logo-text small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 500; color: var(--text-light); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--charcoal); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); text-decoration: none; }
/* Give button in the nav: beat the .nav-links a colour rules */
.nav-links a.btn-gold,
.nav-links a.btn-gold:hover,
.nav-links a.btn-gold.active { color: #fff; }
.nav-links .btn { padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; min-height: 62vh; display: grid; place-items: center; text-align: center;
  color: var(--white); padding: 64px 24px; overflow: hidden;
  background: url("images/photos/hero-azaleas.jpg") center/cover no-repeat, var(--navy);
}
.hero-slides div {
  position: absolute; inset: 0; background-position: center; background-size: cover;
  opacity: 0; animation: heroFade 21s infinite;
}
.hero-slides div:nth-child(1) { animation-delay: 7s; }
.hero-slides div:nth-child(2) { animation-delay: 14s; }
@keyframes heroFade {
  0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(30,61,32,.46), rgba(30,61,32,.58)); }
.hero-content { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero-slides div { animation: none; } }
.hero h1 { color: var(--white); max-width: 800px; margin: 0 auto 20px; }
.hero p { font-size: 1.2rem; max-width: 620px; margin: 0 auto 34px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(rgba(30,61,32,.44), rgba(30,61,32,.58)), var(--navy) center/cover no-repeat;
  color: var(--white); text-align: center; padding: 110px 24px;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.88); max-width: 640px; margin: 14px auto 0; font-size: 1.1rem; }

/* Info bar (service times) */
.info-bar { background: var(--sand); color: var(--text); padding: 30px 0;
  border-top: 1px solid rgba(107,122,90,.35); border-bottom: 1px solid rgba(107,122,90,.35); }
.info-bar .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; text-align: center; }
.info-bar h3 { color: var(--navy); font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.info-bar p { color: var(--text); }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid rgba(107,122,90,.28);
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 68px; height: 68px; border-radius: 50%; background: rgba(30,61,32,.07);
  display: grid; place-items: center; color: var(--navy); margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: .97rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 600; }

.photo-card { padding: 0; overflow: hidden; }
.photo-card .photo { height: 210px; background: var(--navy) center/cover no-repeat; }
.photo-card .body { padding: 26px 28px 30px; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .photo {
  border-radius: var(--radius); min-height: 420px; background: var(--navy) center/cover no-repeat;
  box-shadow: var(--shadow);
}

/* Embed placeholders */
.embed-slot {
  background: var(--white); border: 2px dashed var(--gold); border-radius: var(--radius);
  padding: 56px 32px; text-align: center; color: var(--text-light);
}
.embed-slot strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; }
.embed-slot code { background: var(--cream); padding: 2px 8px; border-radius: 6px; font-size: .85rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(rgba(30,61,32,.60), rgba(30,61,32,.68)),
              url("images/photos/cta-band.jpg")
              center/cover no-repeat, var(--navy);
  color: var(--white); text-align: center; padding: 90px 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: rgba(255,255,255,.88); }

/* Footer */
.site-footer { background: var(--sand); color: var(--text-light); padding: 64px 0 28px;
  border-top: 3px solid var(--olive); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.site-footer h3 { color: var(--navy); font-family: var(--font-body); font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--gold-dark); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(107,122,90,.35); padding-top: 24px; font-size: .85rem; text-align: center; color: var(--text-light); }

/* Verse */
.verse { text-align: center; padding: 90px 24px; }
.verse blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--navy); max-width: 760px; margin: 0 auto 16px; font-style: italic; }
.verse cite { color: var(--gold-dark); font-style: normal; font-weight: 600; letter-spacing: .06em; }

/* Contact */
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 18px; padding-left: 34px; position: relative; }
.contact-list li::before { content: "◆"; color: var(--gold); position: absolute; left: 0; font-size: .8rem; top: 6px; }
.map-frame { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Giving */
.giving-amounts { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.giving-amounts span {
  border: 2px solid var(--navy); border-radius: 999px; padding: 10px 24px; font-weight: 600;
  color: var(--navy); cursor: pointer; transition: .15s;
}
.giving-amounts span:hover { background: var(--navy); color: var(--white); }

/* Responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .photo { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: var(--white); flex-direction: column;
    padding: 28px; gap: 20px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 56px 0; }
}

/* Social icon links */
.social-links { display: flex; gap: 14px; align-items: center; }
.social-links a { color: var(--charcoal); display: inline-flex; }
.social-links a:hover { color: var(--gold-dark); }
.site-footer .social-links a { color: var(--navy); }
.site-footer .social-links a:hover { color: var(--gold-dark); }

/* ---- Tagline lockup: script interrupting a thin rule (as on the letterhead) ---- */
.tagline-rule {
  display: flex; align-items: center; gap: 16px;
  max-width: 560px; margin: 0 auto;
}
.tagline-rule::before, .tagline-rule::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--olive);
}
.tagline-rule img { height: 46px; width: auto; display: block; flex: 0 0 auto; }
.tagline-rule span {           /* text fallback if the image is missing */
  font-family: var(--font-script); font-size: 2.1rem; line-height: 1;
  color: var(--navy); white-space: nowrap; padding-bottom: .15em;
}
/* on Oak Green / photo backgrounds */
.tagline-rule.on-dark::before, .tagline-rule.on-dark::after { background: var(--sage-rule); }
.tagline-rule.on-dark span { color: var(--sage-tagline); }
@media (max-width: 560px) {
  .tagline-rule span { font-size: 1.7rem; }
  .tagline-rule img { height: 34px; }
  .tagline-rule { gap: 10px; }
}
