/* ============================================
   RAVEN FORGE SOFTWARE - Norse Theme Styles
   ============================================ */

:root {
  --rf-gold: #c9912b;
  --rf-gold-light: #e8a832;
  --rf-gold-dark: #8a6914;
  --rf-bg: #0a0c10;
  --rf-bg-alt: #121620;
  --rf-surface: #1a1e2a;
  --rf-text: #e0dbd0;
  --rf-text-muted: #b0a890;
  --rf-border: #2a2e3a;
  --rf-glow: rgba(201, 145, 43, 0.3);
}

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

body {
  background-color: var(--rf-bg);
  color: var(--rf-text);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
}

::selection { background: var(--rf-gold); color: var(--rf-bg); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--rf-bg); }
::-webkit-scrollbar-thumb { background: var(--rf-gold-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--rf-gold); }

/* --- Site Header / Navigation --- */
.rf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 145, 43, 0.15);
  transition: all 0.3s ease;
}

.rf-header.scrolled {
  background: rgba(10, 12, 16, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.rf-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rf-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.rf-logo img { height: 45px; width: auto; }

.rf-logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rf-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.rf-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--rf-text-muted);
  letter-spacing: 0.2em;
}

.rf-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.rf-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--rf-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.6rem 1.3rem;
  position: relative;
  transition: color 0.3s ease;
}

.rf-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rf-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.rf-nav a:hover,
.rf-nav a.active { color: var(--rf-gold); }

.rf-nav a:hover::after,
.rf-nav a.active::after { width: 60%; }

.rf-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.rf-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rf-gold);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.rf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.rf-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rf-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0.3) 0%, rgba(10,12,16,0.1) 40%, rgba(10,12,16,0.6) 80%, rgba(10,12,16,1) 100%);
}

.rf-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.rf-hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--rf-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(201, 145, 43, 0.3);
}

.rf-hero .rf-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--rf-text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.rf-hero .rf-hero-logo { max-width: 500px; width: 80%; margin-bottom: 1.5rem; }

/* --- Buttons --- */
.rf-btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border: 1px solid var(--rf-gold);
  color: var(--rf-gold);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.rf-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rf-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.rf-btn:hover { color: var(--rf-bg); border-color: var(--rf-gold); }
.rf-btn:hover::before { transform: scaleX(1); }

.rf-btn-primary { background: var(--rf-gold); color: var(--rf-bg); position: relative; z-index: 1; }
.rf-btn-primary::before { background: var(--rf-gold-light); z-index: -1; }

/* --- Sections --- */
.rf-section { padding: 6rem 2rem; position: relative; }

.rf-section-inner { max-width: 1200px; margin: 0 auto; }

.rf-section-texture {
  background-image: url('https://ravenforgesoftware.com/wp-content/uploads/2026/03/raven-forge-section-texture.png');
  background-size: cover;
  background-position: center;
}

.rf-section-alt { background-color: var(--rf-bg-alt); }

.rf-section-header { text-align: center; margin-bottom: 4rem; }

.rf-section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--rf-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.rf-section-header p {
  font-size: 1.15rem;
  color: var(--rf-text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.rf-divider { width: 100%; max-width: 400px; height: auto; margin: 0 auto; display: block; opacity: 0.7; }
.rf-divider-full { max-width: 100%; padding: 0; margin: 0; }

/* --- Product Feature Cards --- */
.rf-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.rf-product-card {
  position: relative;
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  overflow: hidden;
  transition: all 0.4s ease;
}

.rf-product-card:hover {
  border-color: var(--rf-gold-dark);
  box-shadow: 0 0 40px rgba(201, 145, 43, 0.1);
  transform: translateY(-4px);
}

.rf-product-card-img { width: 100%; height: 280px; object-fit: cover; display: block; }

.rf-product-card-body { padding: 2rem; }

.rf-product-card-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--rf-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.rf-product-card-body p { color: var(--rf-text-muted); line-height: 1.7; margin-bottom: 1.5rem; }

.rf-product-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 1rem;
  border: 1px solid var(--rf-gold-dark);
  color: var(--rf-gold);
  margin-bottom: 1rem;
}

/* --- Platform Section --- */
.rf-platforms { text-align: center; padding: 4rem 2rem; }
.rf-platforms img { max-width: 700px; width: 100%; height: auto; margin: 0 auto; display: block; }

/* --- Page Header (inner pages) --- */
.rf-page-header {
  position: relative;
  padding: 10rem 2rem 4rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0.6) 0%, rgba(10,12,16,0.85) 60%, rgba(10,12,16,1) 100%);
}

.rf-page-header-content { position: relative; z-index: 2; }

.rf-page-header h1 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--rf-gold);
  margin-bottom: 0.5rem;
}

.rf-page-header p {
  font-size: 1.15rem;
  color: var(--rf-text-muted);
  letter-spacing: 0.05em;
}

/* --- Content Sections --- */
.rf-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  line-height: 1.8;
}

.rf-content h2 { margin-top: 3rem; margin-bottom: 1rem; }
.rf-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.rf-content p { margin-bottom: 1.25rem; color: var(--rf-text); font-size: 1.2rem; line-height: 1.8; }

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

.rf-content a:not(.rf-btn) {
  color: var(--rf-gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 145, 43, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.rf-content a:not(.rf-btn):hover { text-decoration-color: var(--rf-gold); color: var(--rf-gold-light); }

/* --- Contact Section --- */
.rf-contact-block { text-align: center; padding: 4rem 2rem; max-width: 600px; margin: 0 auto; }

.rf-contact-block .rf-email {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--rf-gold);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1px solid var(--rf-gold-dark);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.rf-contact-block .rf-email:hover {
  background: rgba(201, 145, 43, 0.1);
  border-color: var(--rf-gold);
  box-shadow: 0 0 30px rgba(201, 145, 43, 0.15);
}

/* --- Footer --- */
.rf-footer {
  background: var(--rf-bg);
  border-top: 1px solid var(--rf-border);
  padding: 4rem 2rem 2rem;
}

.rf-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.rf-footer-emblem { width: 80px; height: auto; opacity: 0.6; transition: opacity 0.3s ease; }
.rf-footer-emblem:hover { opacity: 1; }

.rf-footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }

.rf-footer-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--rf-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
}

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

.rf-footer-legal { text-align: center; font-size: 0.9rem; color: var(--rf-text-muted); line-height: 1.6; }
.rf-footer-legal a { color: var(--rf-text-muted); text-decoration: none; }
.rf-footer-legal a:hover { color: var(--rf-gold); }

/* --- Coming Soon Badge --- */
.rf-coming-soon { text-align: center; padding: 3rem 2rem; border: 1px dashed var(--rf-border); margin-top: 3rem; }

.rf-coming-soon h3 {
  font-family: 'Cinzel', serif;
  color: var(--rf-text);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rf-coming-soon p { color: var(--rf-text); font-size: 1.35rem; line-height: 1.8; }

/* --- Additional Layout Classes (from page content) --- */
.rf-container { max-width: 1200px; margin: 0 auto; }
.rf-text-center { text-align: center; }

/* Hero overlay (used on hero with inline bg) */
.rf-hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 140vh;
  width: 100%;
  padding: 2rem 2rem 4rem;
  background: linear-gradient(180deg, rgba(10,12,16,0.0) 0%, rgba(10,12,16,0.0) 45%, rgba(10,12,16,0.5) 60%, rgba(10,12,16,0.85) 75%, rgba(10,12,16,1) 85%);
}

.rf-hero-content {
  text-align: center;
}

.rf-hero { background-size: 100% auto; background-position: top center; background-repeat: no-repeat; }

.rf-hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--rf-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 40px rgba(201, 145, 43, 0.4);
}

.rf-hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--rf-text);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* Section title (standalone h2) */
.rf-section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--rf-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Section divider wrapper */
.rf-section-divider { padding: 0; text-align: center; overflow: hidden; max-height: 120px; display: flex; align-items: center; justify-content: center; }
.rf-divider-img { max-width: 600px; width: 80%; height: auto; margin: 0 auto; display: block; opacity: 0.7; }

/* Intro section */
.rf-intro-content { text-align: center; max-width: 800px; margin: 0 auto; }
.rf-intro-monogram { width: 120px; height: auto; margin: 0 auto 2rem; display: block; opacity: 0.8; }
.rf-intro-text { font-size: 1.3rem; color: var(--rf-text); line-height: 1.8; }

/* Product cards on homepage */
.rf-product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.rf-product-card-image { overflow: hidden; }
.rf-product-card-image img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.rf-product-card:hover .rf-product-card-image img { transform: scale(1.03); }
.rf-product-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--rf-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.rf-product-card-text { color: var(--rf-text-muted); font-size: 1.2rem; line-height: 1.7; margin-bottom: 1.5rem; }

/* Badge */
.rf-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 1rem;
  border: 1px solid var(--rf-gold-dark);
  color: var(--rf-gold);
  margin-bottom: 1rem;
  margin-right: 0.5rem;
}

.rf-btn-secondary {
  border-color: var(--rf-gold-dark);
  color: var(--rf-gold);
}

/* Platforms section (within sections) */
.rf-platforms-image { text-align: center; margin: 2rem 0; }
.rf-platforms-img { max-width: 700px; width: 100%; height: auto; margin: 0 auto; display: block; }
.rf-platforms-text { font-size: 1.3rem; color: var(--rf-text-muted); text-align: center; max-width: 650px; margin: 0 auto 2rem; }

/* Product feature sections (products page) */
.rf-product-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.rf-product-feature-reverse { direction: rtl; }
.rf-product-feature-reverse > * { direction: ltr; }
.rf-product-feature-image img { width: 100%; height: auto; border: 1px solid var(--rf-border); }
.rf-product-feature-content p { color: var(--rf-text); font-size: 1.2rem; line-height: 1.8; margin-bottom: 1.25rem; }
.rf-product-feature-content h3 {
  font-family: 'Cinzel', serif;
  color: var(--rf-gold-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* CTA section */
.rf-cta { text-align: center; }
.rf-cta-text { font-size: 1.3rem; color: var(--rf-text-muted); max-width: 600px; margin: 0 auto 2rem; }

/* Page header overlay (inner pages) */
.rf-page-header-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}
.rf-page-header-title {
  font-family: 'Cinzel Decorative', serif;
  color: var(--rf-gold);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Contact monogram */
.rf-contact-monogram { width: 100px; height: auto; margin: 0 auto 2rem; display: block; opacity: 0.7; }
.rf-contact-email-wrapper { margin-top: 2rem; }

/* List styles */
.rf-list { list-style: none; padding-left: 0; }
.rf-list li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--rf-text); font-size: 1.2rem; line-height: 1.7; }
.rf-list li::before { content: '\25C6'; color: var(--rf-gold-dark); position: absolute; left: 0; font-size: 0.7rem; top: 0.3rem; }

/* Products highlight section (homepage with texture bg) */
.rf-products-highlight { background-size: cover; background-position: center; }

/* Sections with inline bg images */
.rf-section[style*="background-image"] { background-size: cover; background-position: center; }

@media (max-width: 768px) {
  .rf-product-feature-grid { grid-template-columns: 1fr; }
  .rf-product-feature-reverse { direction: ltr; }
  .rf-product-cards { grid-template-columns: 1fr; }
  .rf-hero-overlay { min-height: 80vh; }
}

/* --- Scroll Animations --- */
.rf-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rf-fade-in.visible { opacity: 1; transform: translateY(0); }
.rf-fade-in-delay-1 { transition-delay: 0.15s; }
.rf-fade-in-delay-2 { transition-delay: 0.3s; }
.rf-fade-in-delay-3 { transition-delay: 0.45s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .rf-header-inner { padding: 0.6rem 1.2rem; }

  .rf-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 12, 16, 0.98);
    border-top: 1px solid var(--rf-border);
    padding: 1rem 0;
  }

  .rf-nav.open { display: flex; }
  .rf-nav a { padding: 0.8rem 2rem; width: 100%; }
  .rf-nav a::after { display: none; }
  .rf-nav-toggle { display: block; }

  .rf-hero { min-height: 80vh; }
  .rf-hero h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .rf-hero .rf-hero-logo { max-width: 320px; }

  .rf-section { padding: 4rem 1.2rem; }
  .rf-products-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rf-product-card-img { height: 200px; }
  .rf-footer-nav { gap: 1rem; }
  .rf-page-header { padding: 8rem 1.2rem 3rem; }
}

@media (max-width: 480px) {
  .rf-logo-text { font-size: 0.95rem; }
  .rf-logo img { height: 35px; }
  .rf-contact-block .rf-email { font-size: 1rem; padding: 0.8rem 1.5rem; }
}
