/*
Theme Name: Aegira
Theme URI: https://aegira.com
Author: Aegira GmbH
Author URI: https://aegira.com
Description: Enterprise AI Governance — EU AI Act Readiness. Souveräne Kontrolle für vertrauenswürdige KI.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aegira
Tags: one-column, custom-menu, featured-images, translation-ready, blog
*/

/* ========================================================================
   DESIGN TOKENS
   ======================================================================== */

:root {
  /* Colors matching screenshots */
  --midnight:       #0B1320;
  --navy:           #0F1923;
  --navy-light:     #162130;
  --slate-dark:     #1E293B;
  --slate:          #334155;
  --slate-mid:      #475569;
  --slate-light:    #64748B;
  --cool-gray:      #94A3B8;
  --gray-300:       #CBD5E1;
  --gray-200:       #E2E8F0;
  --gray-100:       #F1F5F9;
  --light-bg:       #F5F7FA;
  --off-white:      #F8FAFB;
  --white:          #FFFFFF;

  /* Teal accent */
  --teal:           #2C7A7B;
  --teal-bright:    #319795;
  --teal-light:     #E6FFFA;
  --teal-subtle:    #F0FDFA;
  --teal-muted:     #B2DFDB;

  /* Typography */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-w: 1200px;
  --max-w-wide: 1320px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: 200ms ease;
  --ease-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}


/* ========================================================================
   RESET & BASE
   ======================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--slate-mid);
  background-color: var(--white);
}

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

a { color: var(--teal); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--teal-bright); }

::selection { background-color: var(--teal-light); color: var(--midnight); }


/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--midnight);
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: var(--sp-4); color: var(--slate-mid); }

.overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}


/* ========================================================================
   LAYOUT
   ======================================================================== */

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-8); }
.container--wide { max-width: var(--max-w-wide); }

.section { padding: var(--sp-24) 0; }

.section--dark {
  background-color: var(--midnight);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--cool-gray); }

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

@media (max-width: 768px) {
  .section { padding: var(--sp-16) 0; }
  .container { padding: 0 var(--sp-6); }
}


/* ========================================================================
   HEADER
   ======================================================================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 4px rgba(0,0,0,0.04); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w-wide); margin: 0 auto; padding: 0 var(--sp-8);
}

/* AEGIRA wordmark — spaced uppercase, no icon */
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--midnight);
  text-decoration: none;
}
.site-logo:hover { color: var(--midnight); }

.primary-nav { display: flex; align-items: center; gap: var(--sp-10); }
.primary-nav .menu { display: flex; list-style: none; gap: var(--sp-8); margin: 0; padding: 0; }
.primary-nav .menu li a {
  font-size: 0.9375rem; font-weight: 500; color: var(--slate-mid);
  text-decoration: none; transition: color var(--ease);
}
.primary-nav .menu li a:hover,
.primary-nav .menu li.current-menu-item a { color: var(--midnight); }
.nav-cta { display: inline-flex; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: var(--sp-2); color: var(--midnight);
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .primary-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    flex-direction: column; padding: var(--sp-6); gap: var(--sp-4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav .menu { flex-direction: column; gap: var(--sp-3); }
}


/* ========================================================================
   BUTTONS
   ======================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; line-height: 1;
  padding: 0.75rem 1.5rem; border: none; border-radius: var(--radius);
  cursor: pointer; transition: all var(--ease); text-decoration: none; white-space: nowrap;
}

.btn--primary {
  background: var(--midnight); color: var(--white);
}
.btn--primary:hover {
  background: var(--slate-dark); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn--secondary {
  background: transparent; color: var(--midnight);
  border: 1.5px solid var(--gray-300);
}
.btn--secondary:hover {
  border-color: var(--slate); background: var(--light-bg);
  color: var(--midnight);
}

.btn--outline-light {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--outline-light:hover {
  border-color: rgba(255,255,255,0.4); color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn--sm { font-size: 0.8125rem; padding: 0.5rem 1rem; }
.btn--lg { font-size: 1rem; padding: 0.875rem 2rem; }

/* Pill button (dark section) */
.pill-btn {
  display: inline-flex; align-items: center;
  font-size: 0.875rem; font-weight: 500; color: var(--gray-300);
  padding: 0.625rem 1.25rem; border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full); background: rgba(255,255,255,0.04);
  transition: all var(--ease); cursor: pointer; text-decoration: none;
}
.pill-btn:hover {
  border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  color: var(--white);
}


/* ========================================================================
   CARDS
   ======================================================================== */

.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: var(--sp-8);
  transition: all var(--ease);
}
.card:hover {
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  border-color: var(--gray-300);
}

.card__icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-subtle); color: var(--teal);
  border-radius: var(--radius); margin-bottom: var(--sp-5);
}

.card__title {
  font-size: 1.0625rem; font-weight: 700; color: var(--midnight);
  margin-bottom: var(--sp-2);
}

.card__text {
  font-size: 0.9375rem; line-height: 1.6; color: var(--slate-light);
  margin-bottom: 0;
}


/* ========================================================================
   HERO — Light background (matching screenshots)
   ======================================================================== */

.hero {
  padding: calc(64px + var(--sp-20)) 0 var(--sp-16);
  background: var(--white);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.hero__overline {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
  padding: 0.375rem 0.875rem;
  border: 1.5px solid var(--teal-muted);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-8);
}

.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800; color: var(--midnight);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
}

.hero__subtitle {
  font-size: 1.0625rem; line-height: 1.7; color: var(--slate-light);
  margin-bottom: var(--sp-8); max-width: 480px;
}

.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Hero governance cards (right side) */
.hero__cards {
  display: flex; flex-direction: column; gap: var(--sp-4);
}

.gov-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-6);
  transition: all var(--ease);
}
.gov-card:hover { border-color: var(--gray-300); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

.gov-card__label {
  font-size: 0.9375rem; font-weight: 600; color: var(--midnight);
}

.gov-card__badge {
  font-size: 0.75rem; font-weight: 600; color: var(--teal);
  background: var(--teal-subtle); border: 1px solid var(--teal-muted);
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__cards { display: none; }
}


/* ========================================================================
   PERSONA BAR (dark strip below hero)
   ======================================================================== */

.persona-bar {
  background: var(--midnight);
  padding: var(--sp-6) 0;
}

.persona-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-12); flex-wrap: wrap;
}

.persona-bar__item {
  font-size: 0.9375rem; font-weight: 500; color: var(--gray-300);
  text-decoration: none; transition: color var(--ease);
  white-space: nowrap;
}
.persona-bar__item:hover { color: var(--white); }

@media (max-width: 768px) {
  .persona-bar__inner { gap: var(--sp-6); }
  .persona-bar__item { font-size: 0.8125rem; }
}


/* ========================================================================
   PROBLEM SECTION (2-col text)
   ======================================================================== */

.problem-section {
  padding: var(--sp-20) 0;
}

.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-16); align-items: start;
}

.problem-grid h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.problem-grid p {
  font-size: 1.0625rem; line-height: 1.75; color: var(--slate-light);
}

@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}


/* ========================================================================
   FEATURES (3-col cards on gray)
   ======================================================================== */

.features-section {
  padding: var(--sp-20) 0;
  background: var(--light-bg);
}

.features-header {
  text-align: center; max-width: 640px; margin: 0 auto var(--sp-12);
}

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}


/* ========================================================================
   EU AI ACT SECTION (dark, centered)
   ======================================================================== */

.euai-section {
  background: var(--midnight);
  padding: var(--sp-24) 0;
  text-align: center;
}

.euai-section h2 {
  color: var(--white); max-width: 720px; margin: 0 auto var(--sp-6);
}

.euai-section p {
  color: var(--cool-gray); font-size: 1.0625rem;
  max-width: 640px; margin: 0 auto var(--sp-10);
  line-height: 1.7;
}

.euai-pills {
  display: flex; justify-content: center; gap: var(--sp-3);
  flex-wrap: wrap;
}


/* ========================================================================
   HOW IT WORKS (3 numbered steps)
   ======================================================================== */

.steps-section {
  padding: var(--sp-24) 0;
  text-align: center;
}

.steps-header h2 { margin-bottom: var(--sp-12); }

.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-10);
  text-align: center;
}

.step__number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal-subtle); color: var(--teal);
  font-size: 1.125rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
}

.step__title {
  font-size: 1.125rem; font-weight: 700; color: var(--midnight);
  margin-bottom: var(--sp-3);
}

.step__text {
  font-size: 0.9375rem; line-height: 1.6; color: var(--slate-light);
  max-width: 320px; margin: 0 auto;
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}


/* ========================================================================
   COMPARISON SECTION
   ======================================================================== */

.compare-section {
  padding: var(--sp-20) 0;
}

.compare-header {
  text-align: center; max-width: 640px; margin: 0 auto var(--sp-6);
}

.compare-header p {
  font-size: 1.0625rem; line-height: 1.7; color: var(--slate-light);
  max-width: 560px; margin: 0 auto var(--sp-10);
}

.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-6); max-width: 800px; margin: 0 auto;
}

.compare-card {
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: var(--sp-8); background: var(--off-white);
}

.compare-card--highlight {
  border-color: var(--teal-muted); background: var(--teal-subtle);
}

.compare-card__label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate-light);
  margin-bottom: var(--sp-5);
}

.compare-card--highlight .compare-card__label {
  color: var(--teal);
}

.compare-card ul {
  list-style: none; padding: 0; margin: 0;
}

.compare-card li {
  font-size: 0.9375rem; color: var(--slate-light);
  padding: var(--sp-2) 0;
  display: flex; align-items: center; gap: var(--sp-3);
}

.compare-card li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray-300); flex-shrink: 0;
}

.compare-card--highlight li {
  color: var(--midnight); font-weight: 500;
}

.compare-card--highlight li::before {
  background: var(--teal);
}

@media (max-width: 640px) {
  .compare-grid { grid-template-columns: 1fr; }
}


/* ========================================================================
   CTA SECTION (dark, centered)
   ======================================================================== */

.cta-section {
  background: var(--midnight);
  padding: var(--sp-24) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white); margin-bottom: var(--sp-8);
  max-width: 600px; margin-left: auto; margin-right: auto;
}

.cta-section .btn { margin-top: var(--sp-2); }


/* ========================================================================
   FOOTER
   ======================================================================== */

.site-footer {
  background: var(--midnight); color: var(--cool-gray);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12); margin-bottom: var(--sp-12);
}

.footer-brand { max-width: 280px; }
.footer-brand .site-logo { color: var(--white); margin-bottom: var(--sp-4); display: inline-block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; color: var(--slate-light); margin-bottom: 0; }

.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gray-300); margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a { font-size: 0.875rem; color: var(--slate-light); transition: color var(--ease); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-8); border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8125rem; color: var(--slate-light);
}
.footer-bottom a { color: var(--slate-light); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: var(--sp-6); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: var(--sp-4); text-align: center; }
}


/* ========================================================================
   BLOG / CONTENT
   ======================================================================== */

.content-area { padding-top: calc(64px + var(--sp-16)); padding-bottom: var(--sp-16); }
.entry-content { max-width: 720px; font-size: 1.0625rem; line-height: 1.8; }
.entry-content h2 { margin-top: var(--sp-12); margin-bottom: var(--sp-4); }
.entry-content h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.entry-content p { margin-bottom: var(--sp-4); color: var(--slate-mid); }
.entry-content ul, .entry-content ol { margin-bottom: var(--sp-4); padding-left: var(--sp-6); color: var(--slate-mid); }
.entry-content li { margin-bottom: var(--sp-2); }
.entry-content blockquote {
  border-left: 3px solid var(--teal); padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0; background: var(--teal-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content blockquote p { font-size: 1.0625rem; font-style: italic; color: var(--slate); margin-bottom: 0; }
.entry-content code { font-size: 0.875em; background: var(--light-bg); padding: 0.125em 0.375em; border-radius: 3px; color: var(--teal); }
.entry-content pre { background: var(--midnight); color: var(--gray-300); padding: var(--sp-6); border-radius: var(--radius-lg); overflow-x: auto; margin-bottom: var(--sp-4); }
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content img { border-radius: var(--radius-lg); margin: var(--sp-8) 0; }

/* PAGE HEADER */
.page-header {
  background: var(--midnight); padding: calc(64px + var(--sp-16)) 0 var(--sp-12);
  position: relative;
}
.page-header h1 { color: var(--white); margin-bottom: var(--sp-3); }
.page-header p { color: var(--cool-gray); font-size: 1.0625rem; max-width: 560px; }

/* FORMS */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], textarea, select {
  font-family: var(--font-body); font-size: 0.9375rem; padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); color: var(--midnight); width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.08);
}
label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--slate); margin-bottom: var(--sp-1); }

/* UTILITIES */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* WP CORE */
.wp-caption { max-width: 100%; margin-bottom: var(--sp-4); }
.wp-caption-text { font-size: 0.8125rem; color: var(--slate-light); padding-top: var(--sp-2); }
.aligncenter { display: block; margin: var(--sp-6) auto; }
.alignleft { float: left; margin: 0 var(--sp-6) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-6); }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; word-wrap: normal; }
.pagination { display: flex; justify-content: center; gap: var(--sp-2); padding: var(--sp-12) 0; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 var(--sp-2); border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; color: var(--slate-mid); transition: all var(--ease); }
.pagination .page-numbers:hover { border-color: var(--midnight); color: var(--midnight); }
.pagination .page-numbers.current { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
