/*
Theme Name: Every Tribe Every Nation
Theme URI: https://etenministry.com
Author: Every Tribe Every Nation Ministry
Author URI: https://etenministry.com
Description: A faith-based multilingual communication ministry theme. Taking audio and visual communication to the nations. Based on Revelation 7:9 and Matthew 28:19. Features dark navy and gold design with support for posts, pages, and multilingual content.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: faith, ministry, multilingual, dark, gold, blog, custom-menu, featured-images, responsive-layout, two-columns, widgetized-sidebar
Text Domain: every-tribe-every-nation
*/

/* =========================================================
   GOOGLE FONTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --color-dark:      #1f1a16;
  --color-dark-2:    #2a2218;
  --color-dark-3:    #332b24;
  --color-gold:      #c08742;
  --color-gold-light:#d4993f;
  --color-gold-dim:  rgba(192,135,66,0.15);
  --color-text:      #f6f5f2;
  --color-text-muted:#e8e5dd;
  --color-text-dim:  rgba(232,229,221,0.7);
  --font-heading:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --max-width:       1200px;
  --radius:          0.75rem;
  --transition:      0.25s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--color-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  background: var(--color-gold-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}

ul, ol { padding-left: 1.5rem; color: var(--color-text-muted); }
li { margin-bottom: 0.5rem; }

hr { border: none; border-top: 1px solid var(--color-dark-3); margin: 2rem 0; }

/* =========================================================
   LAYOUT WRAPPER
   ========================================================= */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content  { flex: 1; }

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

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  padding: 4rem 0;
}

@media (max-width: 1024px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
}

/* =========================================================
   SITE HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-dark);
  border-bottom: 1px solid var(--color-dark-3);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(31,26,22,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo */
.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-branding a:hover { color: var(--color-gold); }

.logo-icon {
  width: 1.6rem; height: 1.6rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Main nav */
.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-navigation ul li { margin: 0; }

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a { color: var(--color-gold); }

/* Auth buttons */
.header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  background: transparent;
  transition: background var(--transition);
}
.btn-login:hover { background: var(--color-gold-dim); color: var(--color-gold); }

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark);
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-register:hover { background: var(--color-gold-light); color: var(--color-dark); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 900px) {
  .main-navigation { display: none; }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 0; padding: 1rem 0; }
  .main-navigation ul li { border-bottom: 1px solid var(--color-dark-3); }
  .main-navigation a { display: block; padding: 0.75rem 1.5rem; }
  .menu-toggle { display: block; }
  .header-auth { gap: 0.5rem; }
  .btn-login, .btn-register { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
}

/* =========================================================
   PAGE HERO (for Pages & Posts)
   ========================================================= */
.page-hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--color-dark-2), var(--color-dark));
  border-bottom: 1px solid var(--color-dark-3);
}

.page-hero h1 { color: var(--color-text); margin-bottom: 1rem; }

.page-hero .entry-meta {
  color: var(--color-gold);
  font-size: 0.875rem;
  font-weight: 500;
}

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(31,26,22,0.75) 0%,
    rgba(31,26,22,0.55) 50%,
    rgba(31,26,22,1) 100%
  );
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.home-hero-content h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}

.home-hero-content h1 span { color: var(--color-gold); }

.home-hero-content .tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-text-muted);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.home-hero-content blockquote {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  background: transparent;
  border-left: none;
  border: none;
  font-size: 1.1rem;
  color: rgba(232,229,221,0.8);
}

.home-hero-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--color-gold);
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-hero:hover { background: var(--color-gold-light); color: var(--color-dark); transform: translateY(-2px); }

/* =========================================================
   SECTION SHARED
   ========================================================= */
.section { padding: 6rem 1.5rem; }
.section--dark   { background: var(--color-dark); }
.section--darker { background: var(--color-dark-2); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 640px; margin: 0 auto; color: var(--color-text-dim); font-size: 1.05rem; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

/* =========================================================
   SCRIPTURE SECTION
   ========================================================= */
.scripture-section { background: var(--color-dark-2); padding: 6rem 1.5rem; }

.scripture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 768px) { .scripture-grid { grid-template-columns: 1fr; } }

.scripture-card {
  background: var(--color-dark-3);
  border: 1px solid rgba(192,135,66,0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.scripture-ref {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.scripture-card p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* =========================================================
   CARDS GRID
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 1100px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cards-grid { grid-template-columns: 1fr; } }

.tribe-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tribe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.tribe-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tribe-card-body { padding: 1.25rem; }
.tribe-card-body h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.tribe-card-body p  { font-size: 0.875rem; color: var(--color-gold); margin: 0; }

/* =========================================================
   LANGUAGES GRID
   ========================================================= */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 1024px) { .languages-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .languages-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .languages-grid { grid-template-columns: repeat(2, 1fr); } }

.lang-card {
  background: var(--color-dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.lang-card:hover { border-color: var(--color-gold); transform: translateY(-2px); }

.lang-flag  { font-size: 2rem; margin-bottom: 0.5rem; }
.lang-name  { font-size: 0.9rem; font-weight: 600; color: var(--color-text); display: block; }
.lang-native { font-size: 0.8rem; color: var(--color-text-dim); display: block; margin-bottom: 0.4rem; }
.lang-count { font-size: 0.75rem; font-weight: 600; color: var(--color-gold); background: var(--color-gold-dim); padding: 0.2rem 0.5rem; border-radius: 999px; display: inline-block; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card { text-align: center; }

.step-number {
  width: 3.5rem; height: 3.5rem;
  background: var(--color-gold);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.step-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.step-card p  { font-size: 0.9rem; color: var(--color-text-dim); }

/* =========================================================
   POSTS LOOP
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--color-dark-2);
  border: 1px solid var(--color-dark-3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  transform: translateY(-3px);
}

.post-card-thumb { width: 100%; height: 200px; object-fit: cover; }
.post-card-thumb-placeholder { width: 100%; height: 200px; background: var(--color-dark-3); display: flex; align-items: center; justify-content: center; color: var(--color-gold); font-size: 2rem; }

.post-card-body { padding: 1.5rem; }

.post-card-meta {
  font-size: 0.78rem;
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.post-card-body h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.post-card-body h2 a { color: var(--color-text); }
.post-card-body h2 a:hover { color: var(--color-gold); }
.post-card-body p { font-size: 0.9rem; color: var(--color-text-dim); margin-bottom: 1.25rem; }

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.read-more:hover { color: var(--color-gold-light); gap: 0.5rem; }

/* =========================================================
   SINGLE POST / PAGE
   ========================================================= */
.entry-content {
  max-width: 740px;
}

.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2rem 0 1rem; }

.entry-content p { font-size: 1.05rem; line-height: 1.8; }

.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }

.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }

.wp-block-image { margin: 2rem 0; }

.featured-image-wrapper { margin-bottom: 2rem; }

.featured-image-wrapper img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar { position: sticky; top: 6rem; }

.widget {
  background: var(--color-dark-2);
  border: 1px solid var(--color-dark-3);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-gold);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-dark-3); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-text-muted); font-size: 0.9rem; }
.widget ul li a:hover { color: var(--color-gold); }

/* =========================================================
   CONTACT / FORM
   ========================================================= */
.contact-section { background: var(--color-dark-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--color-text-dim); margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-detail strong { color: var(--color-gold); }

.wpcf7 label,
.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--color-dark-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  transition: border-color var(--transition);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.wpcf7 input[type="submit"],
.contact-form button[type="submit"] {
  width: 100%;
  padding: 0.9rem;
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.wpcf7 input[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
  background: var(--color-gold-light);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 2rem 0; }

.pagination .page-numbers {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--color-dark-3);
  border-radius: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #120f0b;
  border-top: 1px solid var(--color-dark-3);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

@media (max-width: 900px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  max-width: 320px;
  margin-top: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-logo:hover { color: var(--color-gold); }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--color-text-dim); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid var(--color-dark-3);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

@media (max-width: 560px) { .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; } }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-gold { color: var(--color-gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-primary { background: var(--color-gold); color: var(--color-dark); border: none; }
.btn-primary:hover { background: var(--color-gold-light); color: var(--color-dark); }

.btn-outline { background: transparent; color: var(--color-gold); border: 1px solid var(--color-gold); }
.btn-outline:hover { background: var(--color-gold-dim); }

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; color: var(--color-gold); display: block; }
.stat-label  { font-size: 0.85rem; color: var(--color-text-dim); }

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 480px) {
  .section { padding: 4rem 1rem; }
  .home-hero { padding: 6rem 1rem 3rem; }
  .header-auth { display: none; }
}

/* =========================================================
   WP ALIGNMENT HELPERS
   ========================================================= */
.alignleft  { float: left;  margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { text-align: center; margin: 0 auto; }
.wp-caption { text-align: center; }
.wp-caption-text { font-size: 0.85rem; color: var(--color-text-dim); margin-top: 0.5rem; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}


/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('https://images.pexels.com/photos/20724370/pexels-photo-20724370.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-align: center;
  padding: 8rem 2rem 4rem;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,26,22,0.55) 0%, rgba(31,26,22,0.70) 50%, rgba(31,26,22,0.95) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}
.hero-eyebrow {
  margin-bottom: 2rem;
}
.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(192,135,66,0.15);
  border: 1px solid rgba(205,160,94,0.30);
  backdrop-filter: blur(6px);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e9d6b8;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fbf8f3;
  margin-bottom: 1.5rem;
}
.hero-title-accent {
  display: block;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, #dcbe8c 0%, #fbbf24 50%, #cda05e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(246,245,242,0.72);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid rgba(192,135,66,0.2);
}
.hero-stat { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246,245,242,0.55);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(192,135,66,0.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.2; }
}

/* ══════════════════════════════════════════════════════════
   SCRIPTURE SECTION
══════════════════════════════════════════════════════════ */
.scripture-section {
  padding: var(--section-padding);
  background: var(--bg-card);
}
.scripture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.scripture-card {
  background: var(--bg-dark);
  border: 1px solid rgba(192,135,66,0.15);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.scripture-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.scripture-card.featured {
  background: linear-gradient(135deg, var(--bg-card-2) 0%, rgba(192,135,66,0.08) 100%);
  border-color: rgba(192,135,66,0.35);
}
.scripture-icon {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.scripture-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(246,245,242,0.85);
  font-style: italic;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}
.scripture-ref {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .scripture-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   VIDEOS SECTION
══════════════════════════════════════════════════════════ */
.videos-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.video-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(192,135,66,0.12);
  transition: transform 0.3s, border-color 0.3s;
}
.video-card:hover { transform: translateY(-4px); border-color: rgba(192,135,66,0.35); }
.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-info { padding: 1.5rem; }
.video-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.video-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.video-desc { font-size: 0.88rem; color: rgba(246,245,242,0.62); line-height: 1.6; }
@media (max-width: 900px) {
  .videos-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

/* ══════════════════════════════════════════════════════════
   TRIBES SECTION
══════════════════════════════════════════════════════════ */
.tribes-section {
  padding: var(--section-padding);
  background: var(--bg-card);
}
.tribes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.tribe-card {
  background: var(--bg-dark);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(192,135,66,0.1);
  transition: transform 0.3s, border-color 0.3s;
}
.tribe-card:hover { transform: translateY(-4px); border-color: rgba(192,135,66,0.3); }
.tribe-image-wrap {
  position: relative;
  padding-top: 66%;
  overflow: hidden;
  background: var(--bg-card-2);
}
.tribe-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.tribe-card:hover .tribe-image-wrap img { transform: scale(1.05); }
.tribe-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(transparent, rgba(13,11,9,0.75));
}
.tribe-location {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.tribe-info { padding: 1rem 1.2rem; }
.tribe-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.tribe-population { font-size: 0.82rem; color: rgba(246,245,242,0.55); }
@media (max-width: 1024px) { .tribes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .tribes-grid { grid-template-columns: repeat(2, 1fr); } }

/* ══════════════════════════════════════════════════════════
   LANGUAGES SECTION
══════════════════════════════════════════════════════════ */
.languages-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}
.languages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.language-card {
  background: var(--bg-card);
  border: 1px solid rgba(192,135,66,0.1);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s, border-color 0.3s;
}
.language-card:hover { transform: translateY(-3px); border-color: rgba(192,135,66,0.3); }
.language-flag { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.language-name { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.language-native { font-size: 0.78rem; color: var(--gold); }
@media (max-width: 1024px) { .languages-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .languages-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .languages-grid { grid-template-columns: repeat(2, 1fr); } }

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
══════════════════════════════════════════════════════════ */
.how-it-works-section {
  padding: var(--section-padding);
  background: var(--bg-card);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 3rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(192,135,66,0.3), transparent);
}
.step-card {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(192,135,66,0.12);
  position: relative;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(192,135,66,0.35); }
.step-number {
  position: absolute;
  top: -1px;
  right: 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(192,135,66,0.08);
  line-height: 1;
  pointer-events: none;
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.step-desc { font-size: 0.88rem; color: rgba(246,245,242,0.65); line-height: 1.7; }
@media (max-width: 900px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } .steps-grid::before { display: none; } }
@media (max-width: 560px)  { .steps-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════════ */
.contact-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-desc {
  color: rgba(246,245,242,0.72);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.contact-details a { color: var(--text); text-decoration: none; }
.contact-details a:hover { color: var(--gold); }
.contact-icon { color: var(--gold); font-size: 1.1rem; }
.contact-ways { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-way h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text); }
.contact-way p  { font-size: 0.88rem; color: rgba(246,245,242,0.62); }
/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(192,135,66,0.15);
  border-radius: 14px;
  padding: 2.5rem;
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,245,242,0.6);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid rgba(192,135,66,0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-dark); }
.btn-full { width: 100%; text-align: center; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ══════════════════════════════════════════════════════════
   SHARED SECTION ELEMENTS
══════════════════════════════════════════════════════════ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1rem;
  color: rgba(246,245,242,0.65);
  line-height: 1.75;
}
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: #0d0b09;
  border-color: var(--gold);
}
.btn-primary:hover { background: #d9a060; border-color: #d9a060; color: #0d0b09; }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover { background: rgba(192,135,66,0.1); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }

/* ══════════════════════════════════════════════════════════
   BLOG / ARCHIVE
══════════════════════════════════════════════════════════ */
.blog-main, .archive-main, .single-main, .page-main { padding: 4rem 0 6rem; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}
.page-header { margin-bottom: 2.5rem; }
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
}
/* Post card */
.post-card {
  background: var(--bg-card);
  border: 1px solid rgba(192,135,66,0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s, border-color 0.3s;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(192,135,66,0.3); }
.post-card-image { overflow: hidden; }
.post-card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.5s; }
.post-card:hover .post-card-image img { transform: scale(1.03); }
.post-card-body { padding: 1.75rem; }
.post-meta { display: flex; gap: 1rem; align-items: center; font-size: 0.8rem; margin-bottom: 0.75rem; }
.post-date  { color: rgba(246,245,242,0.45); }
.post-cat a { color: var(--gold); text-decoration: none; }
.post-read-time { color: rgba(246,245,242,0.45); }
.post-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--gold); }
.post-excerpt { font-size: 0.92rem; color: rgba(246,245,242,0.65); line-height: 1.7; margin-bottom: 1.25rem; }
.read-more-link { color: var(--gold); font-size: 0.88rem; text-decoration: none; font-weight: 500; }
.read-more-link:hover { text-decoration: underline; }
/* Pagination */
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination a, .pagination .current {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  text-decoration: none;
}
.pagination a { color: var(--text); border: 1px solid rgba(192,135,66,0.2); }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: #0d0b09; border: 1px solid var(--gold); }
/* No posts */
.no-posts { text-align: center; padding: 4rem 2rem; }
.no-posts h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; margin-bottom: 1rem; }
/* Single post */
.single-featured-image { margin-bottom: 2rem; border-radius: 12px; overflow: hidden; }
.single-featured-image img { width: 100%; max-height: 480px; object-fit: cover; }
.single-header { margin-bottom: 2.5rem; }
.single-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--text); line-height: 1.15; margin-bottom: 1rem; }
.author-line { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; color: rgba(246,245,242,0.6); }
.author-line img { border-radius: 50%; width: 40px; height: 40px; }
.single-body { font-size: 1.05rem; line-height: 1.85; color: rgba(246,245,242,0.85); }
.single-body h2, .single-body h3 { font-family: 'Cormorant Garamond', serif; color: var(--text); margin: 2rem 0 0.75rem; }
.single-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(192,135,66,0.15); display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.post-tags, .post-share { font-size: 0.88rem; color: rgba(246,245,242,0.6); }
.tags-label, .share-label { color: rgba(246,245,242,0.4); }
.share-link { color: var(--gold); margin-left: 0.5rem; text-decoration: none; }
/* Post navigation */
.post-navigation { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(192,135,66,0.12); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { color: var(--text); text-decoration: none; padding: 1rem; border: 1px solid rgba(192,135,66,0.15); border-radius: 8px; display: block; }
.post-navigation a:hover { border-color: var(--gold); }
.nav-label { font-size: 0.78rem; color: rgba(246,245,242,0.45); display: block; margin-bottom: 0.25rem; }
.nav-title { font-size: 0.95rem; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.sidebar { position: sticky; top: 5.5rem; }
.widget { background: var(--bg-card); border: 1px solid rgba(192,135,66,0.1); border-radius: 12px; padding: 1.75rem; margin-bottom: 1.5rem; }
.widget-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(192,135,66,0.15); }
.widget p { font-size: 0.9rem; color: rgba(246,245,242,0.65); line-height: 1.65; margin-bottom: 1rem; }
.widget blockquote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: rgba(246,245,242,0.8); line-height: 1.65; margin: 0 0 0.75rem; border-left: 2px solid var(--gold); padding-left: 1rem; }
.widget cite { font-size: 0.8rem; color: var(--gold); }
.recent-posts-list { list-style: none; padding: 0; margin: 0; }
.recent-posts-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(192,135,66,0.08); }
.recent-posts-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.recent-thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.recent-info a { color: var(--text); font-size: 0.88rem; text-decoration: none; display: block; margin-bottom: 0.25rem; line-height: 1.4; }
.recent-info a:hover { color: var(--gold); }
.recent-date { font-size: 0.75rem; color: rgba(246,245,242,0.4); }

/* ══════════════════════════════════════════════════════════
   PAGE TEMPLATE
══════════════════════════════════════════════════════════ */
.page-hero-image { margin-bottom: 2rem; border-radius: 12px; overflow: hidden; }
.page-hero-image img { width: 100%; max-height: 400px; object-fit: cover; }
.page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.page-content { min-width: 0; }
.entry-content { font-size: 1.05rem; line-height: 1.85; color: rgba(246,245,242,0.85); }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: 'Cormorant Garamond', serif; color: var(--text); margin: 2rem 0 0.75rem; }
.entry-content a { color: var(--gold); }
.entry-content img { max-width: 100%; border-radius: 8px; }
@media (max-width: 900px) { .page-layout { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════════════════ */
.error-404-main { padding: 8rem 0 6rem; text-align: center; }
.error-404-wrap { max-width: 600px; margin: 0 auto; }
.error-404-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: rgba(192,135,66,0.15);
  line-height: 1;
  margin-bottom: -1rem;
}
.error-404-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--text); margin-bottom: 1rem; }
.error-404-desc { color: rgba(246,245,242,0.65); max-width: 420px; margin: 0 auto 2rem; }
.error-404-search { margin-bottom: 2rem; }
.error-404-search input[type="search"] {
  background: var(--bg-card);
  border: 1px solid rgba(192,135,66,0.25);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
  width: 100%;
  max-width: 360px;
  outline: none;
}
.error-404-search input[type="search"]:focus { border-color: var(--gold); }
.error-404-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.error-404-verse { border-top: 1px solid rgba(192,135,66,0.15); padding-top: 2rem; }
.error-404-verse blockquote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.2rem; color: rgba(246,245,242,0.75); margin: 0 0 0.5rem; }
.error-404-verse cite { color: var(--gold); font-size: 0.82rem; }

/* ══════════════════════════════════════════════════════════
   FADE-IN ANIMATION
══════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (ensure declared)
══════════════════════════════════════════════════════════ */
:root {
  --bg-dark: #1f1a16;
  --bg-card: #2a2218;
  --bg-card-2: #332b24;
  --gold: #c08742;
  --text: #f6f5f2;
  --section-padding: 6rem 0;
}
