/* ── Kodeshway Global Styles ── */

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

:root {
  --deep:       #0c0a07;
  --deep-brown: #1a1208;
  --parchment:  #f0e6d0;
  --sand:       #b8a88a;
  --gold-light: #e8c87a;
  --gold-mid:   #c49a3c;
  --amber-dim:  #7a6040;
  --ink:        #2a1f10;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--deep);
  color: var(--parchment);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(to bottom, rgba(12,10,7,0.95), transparent);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: 0.25em;
  color: var(--gold-mid);
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold-mid); }
.nav-links a.active { color: var(--gold-mid); }

/* ── Page header (inner pages) ── */
.page-header {
  padding: 140px 24px 64px;
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(180,130,60,0.4), transparent);
  margin: 40px auto 0;
}

.page-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gold-mid);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 300;
  color: var(--parchment);
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* ── Prose content ── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--parchment);
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(180,130,60,0.15);
}

.prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--sand);
  margin: 32px 0 10px;
}

.prose p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--sand);
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose li {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--sand);
  line-height: 1.8;
  margin-bottom: 8px;
  font-weight: 300;
}

.prose a {
  color: var(--gold-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--parchment);
  font-weight: 500;
}

.prose .last-updated {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--amber-dim);
  margin-bottom: 48px;
}

/* ── Contact form ── */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold-mid);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(180,130,60,0.2);
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--parchment);
  outline: none;
  border-radius: 2px;
  transition: border-color 0.3s;
  font-weight: 300;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(180,130,60,0.5);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--amber-dim); }

.form-textarea { min-height: 140px; resize: vertical; }

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-select option { background: var(--deep-brown); }

.form-submit {
  width: 100%;
  background: rgba(180,130,60,0.15);
  border: 1px solid rgba(180,130,60,0.35);
  padding: 16px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-mid);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

.form-submit:hover {
  background: rgba(180,130,60,0.28);
  color: var(--gold-light);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  border: 1px solid rgba(180,130,60,0.2);
  border-radius: 2px;
}

.form-success p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.form-success span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--sand);
  font-weight: 300;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: rgba(180,130,60,0.25); border-radius: 3px; }

/* ── Selection ── */
::selection { background: rgba(180,130,60,0.3); color: var(--parchment); }

/* ── Page transitions ── */
@keyframes pageIn {
  from { opacity: 0.6; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header,
.hero,
.prose,
.bible-app,
.contact-form {
  animation: pageIn 0.4s ease forwards;
}

/* ── Hamburger menu ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold-mid);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ── Footer (consistent) ── */
.site-footer {
  border-top: 1px solid rgba(180,130,60,0.1);
  padding: 48px 24px;
  text-align: center;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--gold-mid);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold-mid); }

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(180,130,60,0.3);
}

@media (max-width: 600px) {
  .site-nav { padding: 16px 20px; }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12,10,7,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 105;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    letter-spacing: 0.15em;
  }

  .footer-links { gap: 20px; }
}
