/*
Theme Name: Widmer AI Solutions
Theme URI: https://widmeraisolutions.ch
Author: Widmer AI Solutions
Author URI: https://widmeraisolutions.ch
Description: Premium Dark Theme für Widmer AI Solutions — KI-Beratung, Schulungen, digitale Produkte, Content- und Medienproduktion. Dunkles Navy mit Gold-Akzenten.
Version: 2.4.0
License: Proprietary
License URI: https://widmeraisolutions.ch
Text Domain: widmer-ai
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Primary Navy */
  --navy: #000066;
  --navy-light: #000088;
  --navy-dark: #000044;
  --navy-deeper: #00002E;

  /* Gold Accents */
  --gold: #D4AF37;
  --gold-light: #E8C860;
  --gold-dark: #B8942E;
  --gold-glow: rgba(212, 175, 55, 0.15);

  /* Text Colors */
  --text-primary: #E8ECF0;
  --text-secondary: #9AABBF;
  --text-muted: #607080;
  --text-dark: #1A1A2E;

  /* Backgrounds */
  --bg-body: #00003D;
  --bg-card: rgba(0, 0, 102, 0.5);
  --bg-card-hover: rgba(0, 0, 136, 0.4);
  --bg-overlay: rgba(0, 0, 60, 0.85);
  --bg-light: #F5F3EE;
  --bg-light-alt: #EDE8DF;

  /* Borders */
  --border-subtle: rgba(212, 175, 55, 0.15);
  --border-gold: rgba(212, 175, 55, 0.4);

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-width: 1200px;
  --container-narrow: 800px;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
  --font-accent: 'Outfit', sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card: 0 4px 30px rgba(0, 0, 40, 0.4);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
  --shadow-hover: 0 8px 40px rgba(0, 0, 40, 0.6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-body);
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--navy-dark);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

a:hover {
  color: var(--gold-light);
}

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

h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

p { margin-bottom: 1.2em; }

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-secondary); }

.label-accent {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* Light section overrides */
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--navy);
}

.section--light p,
.section--light li {
  color: var(--text-dark);
}

.section--light .section-intro {
  color: #555;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section--light-alt {
  background: var(--bg-light-alt);
  color: var(--text-dark);
}

.section--navy {
  background: var(--navy);
}

.section--gradient {
  background: linear-gradient(170deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

.section--dark-gradient {
  background: linear-gradient(180deg, var(--bg-body) 0%, var(--navy-dark) 100%);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s var(--ease-smooth);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(0, 0, 50, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 30px rgba(0, 0, 30, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo span {
  color: var(--gold);
}

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

.site-logo img {
  max-height: 40px;
  width: auto;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  position: relative;
  transition: color 0.3s var(--ease-out);
}

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

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--gold);
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after {
  transform: translateX(-50%) scaleX(1);
}

/* CTA in Nav */
.nav-cta a {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.3s var(--ease-out);
}

.nav-cta a::after { display: none; }

.nav-cta a:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all 0.3s var(--ease-out);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn--gold:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

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

.btn--outline:hover {
  background: var(--gold-glow);
  color: var(--gold-light);
  border-color: var(--gold);
}

.btn--white {
  background: #FFFFFF;
  color: var(--navy);
}

.btn--white:hover {
  background: var(--bg-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn--large {
  padding: 1.2rem 3rem;
  font-size: 0.9rem;
}

.btn--small {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deeper) 0%, var(--navy) 40%, var(--navy-light) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 0, 180, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-50px, 30px) scale(1.1); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-content .label-accent {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Decorative line */
.hero-line {
  position: absolute;
  right: 10%;
  top: 20%;
  width: 1px;
  height: 300px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.3;
}

/* ========================================
   PILLAR CARDS (5 Säulen)
   ======================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2.2rem 1.8rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  transition: all 0.3s var(--ease-out);
}

.pillar-card:hover .pillar-icon {
  background: var(--gold);
  border-color: var(--gold);
}

.pillar-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.3s;
}

.pillar-card:hover .pillar-icon svg {
  stroke: var(--navy-dark);
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.pillar-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pillar-link::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
}

.pillar-card:hover .pillar-link::after {
  transform: translateX(4px);
}

/* Light section pillar cards */
.section--light .pillar-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 102, 0.08);
}

.section--light .pillar-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.section--light .pillar-card h3 {
  color: var(--navy);
}

.section--light .pillar-card p {
  color: #555;
}

/* ========================================
   PRODUCTS / FEATURED SECTION
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: linear-gradient(135deg, rgba(0, 0, 102, 0.6) 0%, rgba(0, 0, 68, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
}

.product-card-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.product-card-body .label-accent {
  font-size: 0.7rem;
}

.product-card-body h3 {
  margin-bottom: 0.8rem;
}

.product-card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Product Coming Soon Badge */
.product-card {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--gold) 0%, #d4a84b 100%);
  color: var(--navy);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.product-card--coming-soon .product-card-image {
  position: relative;
}

.product-card--coming-soon .product-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 51, 0.3);
  pointer-events: none;
}

/* ========================================
   ABOUT / TRUST SECTION
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  pointer-events: none;
}

.about-text .label-accent {
  margin-bottom: 1rem;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  display: block;
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-gold);
}

.blog-card-image {
  height: 200px;
  background: var(--navy-light);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

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

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  gap: 1rem;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.blog-card-body h3 a {
  color: var(--text-primary);
  transition: color 0.3s;
}

.blog-card-body h3 a:hover {
  color: var(--gold);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  text-align: center;
  padding: var(--section-padding) 0;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--navy-deeper);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .site-logo {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
  font-size: 0.9rem;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================
   SINGLE POST / BLOG
   ======================================== */
.post-header {
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 3rem;
}

.post-header .label-accent {
  margin-bottom: 1rem;
}

.post-header h1 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 3rem 0 1rem;
}

.post-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
}

.post-content img {
  border-radius: 8px;
  margin: 2rem 0;
}

.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
}

.post-content blockquote p {
  font-style: italic;
  color: var(--text-primary);
  margin: 0;
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.post-content li {
  margin-bottom: 0.5rem;
}

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

.post-content pre {
  background: var(--navy-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.reading-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  max-width: 760px;
  margin: 0 auto;
}

.post-nav-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.post-nav-item:hover {
  border-color: var(--border-gold);
}

.post-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  display: block;
}

.post-nav-title {
  font-size: 1rem;
  color: var(--text-primary);
}

/* ========================================
   ARCHIVE / BLOG LISTING
   ======================================== */
.archive-header {
  text-align: center;
  padding: 8rem 0 3rem;
}

.archive-header h1 {
  margin-bottom: 0.5rem;
}

.archive-header p {
  color: var(--text-secondary);
}

/* ========================================
   PAGE TEMPLATES
   ======================================== */
/* Standard Page */
.page-header {
  text-align: center;
  padding: 8rem 0 3rem;
  background: linear-gradient(170deg, var(--navy-deeper) 0%, var(--navy) 100%);
}

.page-header .label-accent {
  margin-bottom: 1rem;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* Services Page */
.services-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.services-detail.reverse {
  direction: rtl;
}

.services-detail.reverse > * {
  direction: ltr;
}

.service-detail-content h3 {
  margin-bottom: 1rem;
}

.service-detail-content p {
  color: var(--text-secondary);
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.contact-item-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-item-text span,
.contact-item-text a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.3s;
}

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

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

/* Legal Page */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

/* ========================================
   COMMENTS
   ======================================== */
.comments-area {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0;
}

.comments-title {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
}

.comment {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
  color: var(--gold);
}

.comment-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.comment-respond {
  margin-top: 2rem;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404 {
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 6rem;
}

.error-404 .error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--navy-light);
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--navy-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-404 h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.error-404 p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ========================================
   SIDEBAR / WIDGETS
   ======================================== */
.sidebar {
  padding-left: 2rem;
}

.widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.widget-title {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 0.4rem 0;
}

.widget a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ========================================
   SEARCH FORM
   ======================================== */
.search-form {
  display: flex;
  gap: 0;
  max-width: 500px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--gold);
}

.search-form button {
  padding: 0.8rem 1.5rem;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0 6px 6px 0;
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
}

.search-form button:hover {
  background: var(--gold-light);
}

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

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

/* ========================================
   ELEMENTOR COMPATIBILITY
   ======================================== */
.elementor-page .site-header + * {
  padding-top: 0;
}

.elementor-page .page-header {
  display: none;
}

body.elementor-default,
body.elementor-template-full-width {
  background-color: var(--bg-body);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-detail.reverse {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 50, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s var(--ease-smooth);
    box-shadow: -5px 0 30px rgba(0, 0, 30, 0.5);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav a {
    padding: 1rem 0;
    font-size: 1rem;
    display: block;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
  }

  .main-nav a::after {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.8rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
