/* ═══════════════════════════════════════════════════════
   Restoration Faith Ministry — Shared Stylesheet
   rfm-style.css  ·  All static pages link to this file.
   ═══════════════════════════════════════════════════════ */

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

:root {
  --sepia: #5C3A1E;
  --sepia-light: #7A5232;
  --charcoal: #333333;
  --olive: #5A6340;
  --gold: #B8860B;
  --gold-light: #D4A017;
  --parchment: #F5F0E8;
  --light-gold: #FFF8E7;
  --white: #FFFFFF;
  --gray: #888888;
  --border: #D4C5A9;
  --border-light: #E8E0D4;
  --heading: 'Merriweather', Georgia, serif;
  --body: 'Open Sans', 'Segoe UI', sans-serif;
  --script: 'Great Vibes', cursive;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--parchment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23F5F0E8'/%3E%3Crect width='1' height='1' x='0' y='0' fill='%23EDE8DF' fill-opacity='0.4'/%3E%3Crect width='1' height='1' x='2' y='2' fill='%23EDE8DF' fill-opacity='0.3'/%3E%3C/svg%3E");
}

a { color: var(--sepia); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }


/* ─── HEADER ─── */
.site-header {
  background: var(--sepia);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(40,30,20,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-title {
  font-family: var(--script);
  font-size: 32px;
  font-weight: 400;
  color: var(--parchment);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.4px rgba(245,240,232,0.5);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.25),
    0 2px 3px rgba(0,0,0,0.15),
    0 0 12px rgba(184,134,11,0.12);
  line-height: 1.2;
}

.site-title a { color: var(--parchment); text-shadow: inherit; }
.site-title a:hover { color: var(--gold-light); }


/* ─── NAVIGATION ─── */
nav ul { list-style: none; display: flex; gap: 0; }
nav > ul > li { position: relative; }
nav > ul > li > a {
  display: block;
  padding: 22px 16px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--parchment);
  transition: color 0.2s, background 0.2s;
}
nav > ul > li > a:hover,
nav > ul > li.active > a {
  color: var(--gold);
  background: rgba(0,0,0,0.1);
}

nav > ul > li.has-sub > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.6;
}

nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
}

nav > ul > li:hover > .sub-menu { display: block; }

nav .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s, color 0.15s;
}

nav .sub-menu li a:hover {
  background: var(--light-gold);
  color: var(--sepia);
}

nav .sub-menu li.has-sub {
  position: relative;
}

nav .sub-menu .sub-menu {
  top: 0;
  left: calc(100% - 6px);
  padding-left: 6px;
  border-top: none;
  background: transparent;
  min-width: 240px;
}

nav .sub-menu .sub-menu li a {
  background: var(--white);
  border-left: 3px solid var(--gold);
}

nav .sub-menu li.has-sub > a::after {
  content: " ▸";
  float: right;
  opacity: 0.5;
}

nav .sub-menu li:hover > .sub-menu { display: block; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
}


/* ─── HERO / SCRIPTURE BANNER ─── */
.hero {
  background: linear-gradient(135deg, #4A3020 0%, #5C3A1E 40%, #3A2510 100%);
  color: var(--parchment);
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='6' height='6' fill='transparent'/%3E%3Crect width='1' height='1' x='0' y='0' fill='%23ffffff' fill-opacity='0.03'/%3E%3Crect width='1' height='1' x='3' y='3' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-scripture {
  font-family: var(--heading);
  font-size: 19px;
  font-style: italic;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(245,240,232,0.92);
  margin-bottom: 16px;
}

.hero-ref {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Scripture carousel (homepage only) */
.scripture-carousel {
  position: relative;
  min-height: 180px;
}

.scripture-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  pointer-events: none;
}

.scripture-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}


/* ─── PAGE HERO (static inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, #4A3020 0%, #5C3A1E 40%, #3A2510 100%);
  color: var(--parchment);
  text-align: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='6' height='6' fill='transparent'/%3E%3Crect width='1' height='1' x='0' y='0' fill='%23ffffff' fill-opacity='0.03'/%3E%3Crect width='1' height='1' x='3' y='3' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--parchment);
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.page-hero .page-subtitle {
  font-family: var(--heading);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  color: rgba(245,240,232,0.75);
  position: relative;
  z-index: 1;
}


/* ─── DIVIDERS ─── */
.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 28px auto;
  opacity: 0.6;
}

.rule {
  max-width: 1100px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}


/* ─── MISSION STATEMENT (homepage) ─── */
.mission {
  text-align: center;
  padding: 56px 24px 40px;
  max-width: 840px;
  margin: 0 auto;
}

.mission h2 {
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--sepia);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.mission p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--charcoal);
  margin-top: 20px;
}


/* ─── THREE COLUMNS (homepage) ─── */
.columns-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.col-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  padding: 32px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.col-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.col-card h3 {
  font-family: var(--heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--sepia);
  margin-bottom: 12px;
}

.col-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
}

.col-card .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--sepia);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.col-card .card-link:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}


/* ─── RECENT TEACHINGS (homepage) ─── */
.recent {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  text-align: center;
}

.recent h2 {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--sepia);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.recent .placeholder {
  font-size: 15px;
  font-style: italic;
  color: var(--gray);
}


/* ─── CLOSING CALLOUT ─── */
.callout-banner {
  max-width: 840px;
  margin: 0 auto 48px;
  background: var(--light-gold);
  border-left: 4px solid var(--gold);
  padding: 28px 32px;
}

.callout-banner p {
  font-family: var(--heading);
  font-size: 16px;
  font-style: italic;
  line-height: 1.8;
  color: var(--sepia);
  text-align: center;
}

.callout-banner strong {
  font-style: normal;
  color: var(--olive);
}


/* ─── PAGE CONTENT (inner pages) ─── */
.page-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.page-content h2 {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--sepia);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--sepia-light);
  margin: 32px 0 10px;
}

.page-content p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.page-content ol,
.page-content ul {
  margin: 0 0 20px 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal);
}

.page-content li {
  margin-bottom: 8px;
}

.page-content blockquote {
  background: var(--light-gold);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin: 24px 0;
  font-family: var(--heading);
  font-size: 16px;
  font-style: italic;
  line-height: 1.8;
  color: var(--sepia);
}

.page-content blockquote strong {
  font-style: normal;
  color: var(--olive);
}

.page-content em.placeholder {
  display: block;
  font-size: 15px;
  color: var(--gray);
  padding: 20px;
  background: var(--white);
  border: 1px dashed var(--border);
  text-align: center;
  margin: 16px 0;
}


/* ─── FOOTER ─── */
.site-footer {
  background: var(--sepia);
  border-top: 3px solid var(--gold);
  color: var(--parchment);
}

.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  text-align: left;
}

.footer-brand-name {
  font-family: var(--script);
  font-size: 32px;
  color: var(--parchment);
  -webkit-text-stroke: 0.3px rgba(245,240,232,0.4);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.3),
    0 2px 3px rgba(0,0,0,0.2),
    0 0 10px rgba(184,134,11,0.1);
  margin-bottom: 8px;
  line-height: 1.3;
}

.footer-tagline {
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gold);
  margin-bottom: 4px;
}

.footer-tagline em {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(245,240,232,0.5);
}

.footer-divider-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}

.footer-vert-rule {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.footer-links-col {
  text-align: right;
}

.footer-nav {
  list-style: none;
  margin-bottom: 16px;
}

.footer-nav li {
  display: inline;
}

.footer-nav li a {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.footer-nav li a:hover {
  color: var(--gold);
}

.footer-nav li + li::before {
  content: "|";
  color: rgba(245,240,232,0.25);
  margin: 0 10px;
  font-size: 14px;
}

.footer-contact {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-contact a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(245,240,232,0.4);
}

.footer-bottom {
  background: rgba(0,0,0,0.40); border-top: 1px solid rgba(245,240,232,0.08);
  padding: 14px 24px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--heading);
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.02em;
}


/* ─── RESPONSIVE ─── */

/* Tablet */
@media (max-width: 960px) {
  .columns-section { grid-template-columns: 1fr 1fr; gap: 28px; }
  .col-card:nth-child(3) { grid-column: 1 / -1; max-width: 480px; justify-self: center; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-brand { text-align: center; }
  .footer-divider-col { display: none; }
  .footer-links-col { text-align: center; }
}

/* Mobile */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  nav > ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--sepia);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  nav > ul.open { display: flex; }
  nav > ul > li > a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav .sub-menu { position: static; box-shadow: none; border-top: none; background: rgba(0,0,0,0.1); }
  nav .sub-menu .sub-menu { border-left: none; padding-left: 16px; }
  nav .sub-menu li a { color: var(--parchment); border-bottom-color: rgba(255,255,255,0.06); }
  nav .sub-menu li a:hover { background: rgba(0,0,0,0.15); color: var(--gold); }
  nav > ul > li:hover > .sub-menu { display: block; }

  .site-title { font-size: 27px; }

  .scripture-carousel { min-height: 200px; }

  .columns-section { grid-template-columns: 1fr; gap: 24px; }
  .col-card:nth-child(3) { max-width: none; }

  .hero { padding: 40px 20px; }
  .hero-scripture { font-size: 17px; }
  .mission h2 { font-size: 22px; }
  .page-hero h1 { font-size: 24px; }

  .callout-banner { margin-left: 16px; margin-right: 16px; padding: 22px 20px; }

  .page-content { padding: 36px 20px 44px; }
  .page-content h2 { font-size: 20px; }

  .footer-main { padding: 32px 20px 24px; gap: 16px; }
  .footer-brand-name { font-size: 24px; }
  .footer-nav li + li::before { margin: 0 8px; }
}

/* Small phone */
@media (max-width: 420px) {
  .header-inner { padding: 0 16px; }
  .site-title { font-size: 24px; }
  .hero { padding: 32px 16px; }
  .hero-scripture { font-size: 16px; line-height: 1.8; }
  .mission { padding: 40px 16px 32px; }
  .mission h2 { font-size: 20px; }
  .page-hero { padding: 36px 16px; }
  .page-hero h1 { font-size: 22px; }
  .columns-section { padding: 32px 16px; gap: 20px; }
  .col-card { padding: 24px 20px; }
  .page-content { padding: 28px 16px 36px; }
  .footer-nav li a { font-size: 12px; }
  .footer-nav li + li::before { margin: 0 6px; }
}


/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-inner { animation: fadeUp 0.8s ease-out; }
.mission { animation: fadeUp 0.8s ease-out 0.2s both; }
.col-card:nth-child(1) { animation: fadeUp 0.6s ease-out 0.3s both; }
.col-card:nth-child(2) { animation: fadeUp 0.6s ease-out 0.4s both; }
.col-card:nth-child(3) { animation: fadeUp 0.6s ease-out 0.5s both; }
.page-content { animation: fadeUp 0.6s ease-out 0.2s both; }
