/* Template 66 - Crimson Ink Traditional */
@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Noto+Serif:wght@400;600;700;900&display=swap");

:root {
  --gradient-1: linear-gradient(135deg, #8b0000 0%, #660000 100%);
  --gradient-2: linear-gradient(135deg, #a52a2a 0%, #8b0000 100%);
  --gradient-3: linear-gradient(135deg, #dc143c 0%, #b22222 100%);
  --gradient-4: linear-gradient(135deg, #2f1a1a 0%, #1a0f0f 100%);
  --gradient-5: linear-gradient(135deg, #4d1a1a 0%, #331111 100%);

  --bg-primary: #fffaf0;
  --bg-secondary: #faf5ed;
  --glass-bg: rgba(139, 0, 0, 0.04);
  --glass-border: rgba(139, 0, 0, 0.15);

  --text-primary: #2f1a1a;
  --text-secondary: #4d1a1a;
  --text-muted: #6d3333;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Crimson Text", serif;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(139, 0, 0, 0.02) 50px, rgba(139, 0, 0, 0.02) 51px),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(139, 0, 0, 0.02) 50px, rgba(139, 0, 0, 0.02) 51px);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid #8b0000;
  border-top: 4px solid #8b0000;
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(47, 26, 26, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-family: "Noto Serif", serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #8b0000;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

.site-logo a:hover {
  color: #660000;
  transform: scale(1.03);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.3rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #8b0000;
  transition: width 0.3s ease;
}

.site-nav a:hover {
  color: #8b0000;
}

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

/* Hero Section */
.section.head {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section.head h1 {
  font-family: "Noto Serif", serif;
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #8b0000;
  line-height: 1.1;
  letter-spacing: -1px;
}

.section.head p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  max-width: 950px;
  margin: 0 auto;
  line-height: 1.9;
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--glass-border);
}

.section header h2 {
  font-family: "Noto Serif", serif;
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #8b0000;
  letter-spacing: -1px;
}

.section header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 3.5rem 0 1.5rem;
  border-top: 4px solid #8b0000;
  margin-top: 6rem;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.footer-about {
  flex: 1;
  max-width: 400px;
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.95;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #8b0000;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.copyright a {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Animations */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: floatIn 0.9s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

body:not(.faq) h3,
:not(section.faq) h3 {
  font-size: 1.95rem;
  color: #8b0000;
  margin-top: 22px;
  margin-bottom: 12px;
  text-align: left;
  font-weight: 900;
}
