/* ======================================
   Faith Frontier Theme – Foundation
====================================== */

/* Import vintage-inspired fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ff-ink: #f9fafb;      /* light text on dark backgrounds */
  --ff-muted: #a8a29e;    /* warm secondary text */
  --ff-surface: #0f172a;  /* page background (neutral dark) */
  --ff-primary: #0f766e;  /* emerald - primary brand color */
  --ff-secondary: #b08968; /* brass - secondary brand color */
  --ff-accent: #d4a574;   /* warm brass accent for highlights */
  --ff-emerald: #0f766e;  /* emerald for emphasis */
  --ff-vintage-gold: #d4a574; /* vintage gold */
  --ff-sepia: #78716c;    /* sepia tone */
  --ff-cream: #fef3c7;    /* warm cream for highlights */
  --ff-aged-paper: #1c1917; /* aged paper dark */
}

/* Global reset / base */

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background: var(--ff-surface);
  color: var(--ff-ink);
  font-family: 'Crimson Text', 'Georgia', serif;
  line-height: 1.7;
  font-size: 18px;
  /* Subtle texture overlay */
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(212, 165, 116, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(15, 118, 110, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Global links */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Headings */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--ff-cream);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 600;
}

/* Layout containers */

.container,
.shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ======================================
   Header / Navigation / Logo
====================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.98);
  color: var(--ff-ink);
  border-bottom: 2px solid var(--ff-vintage-gold);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.site-logo:hover {
  color: var(--ff-vintage-gold);
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  margin-right: 0.5rem;
}

/* Mobile nav toggle */

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.65rem;
  color: var(--ff-ink);
  border-radius: 6px;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: rgba(212, 165, 116, 0.1);
  color: var(--ff-vintage-gold);
}

.nav-toggle-bar {
  width: 24px;
  height: 2.5px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Backdrop overlay when nav is open */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 998;
  animation: fadeIn 0.25s ease;
}

.nav-backdrop.is-visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Nav */

.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
}

.site-nav li {
  width: 100%;
}

.site-nav a {
  opacity: 0.9;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  position: relative;
  display: block;
  padding: 0.75rem 1rem;
  min-height: 44px;
  border-radius: 6px;
  text-align: right;
  border: 1px solid transparent;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  width: 0;
  height: 2px;
  background: var(--ff-vintage-gold);
  transition: width 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  opacity: 1;
  color: var(--ff-vintage-gold);
  text-decoration: none;
  background: rgba(212, 165, 116, 0.1);
  border-color: rgba(212, 165, 116, 0.3);
  outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: calc(100% - 2rem);
}

.site-nav a:active {
  background: rgba(212, 165, 116, 0.2);
  transform: scale(0.98);
}

/* Mobile open state */

.site-nav.is-open {
  display: block;
  position: fixed;
  top: 70px;
  right: 0;
  width: min(280px, 75vw);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  padding: 1.75rem 1.5rem;
  border-left: 2px solid var(--ff-vintage-gold);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.6);
  z-index: 999;
  animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Desktop layout */

@media (min-width: 768px) {
  .site-header-inner {
    padding-inline: 0;
  }

  .site-nav {
    display: flex;
    align-items: center;
    position: static;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border: none;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
  }

  .site-nav a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    min-height: auto;
    text-align: left;
  }

  .site-nav a::after {
    bottom: -4px;
    right: auto;
    left: 0;
  }

  .site-nav a:hover {
    background: transparent;
  }

  .site-nav a:hover::after {
    width: 100%;
  }

  .nav-toggle {
    display: none;
  }
}

/* Tablet optimizations */
@media (min-width: 640px) and (max-width: 767px) {
  .site-nav.is-open {
    width: min(340px, 80vw);
    padding: 2rem 1.75rem;
  }

  .site-nav a {
    font-size: 1.1rem;
    padding: 0.85rem 1.25rem;
    min-height: 48px;
  }

  .site-nav ul {
    gap: 0.75rem;
  }
}

/* ======================================
   Footer – base styling
====================================== */

.site-footer {
  border-top: 2px solid var(--ff-vintage-gold);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
  color: var(--ff-muted);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 96px;
  height: auto;
  margin-bottom: 0.5rem;
}

.footer-name {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--ff-vintage-gold);
  font-family: 'Playfair Display', serif;
}

.footer-tagline {
  margin-top: 0.25rem;
  color: var(--ff-muted);
  font-style: italic;
  font-family: 'Crimson Text', serif;
}

.footer-about {
  max-width: 700px;
  margin: 0 auto;
  color: var(--ff-ink);
  line-height: 1.8;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--ff-ink);
}

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

.footer-meta {
  font-size: 0.85rem;
  margin-top: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
}

.footer-logo {
  width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-logo-link {
  text-decoration: none;
  display: inline-block;
}
