/*
Theme overlay: c.c.com visual language for RAGnaroX.
Loaded after the compiled Tailwind bundle.
*/
:root {
  --c-primary: #073540;
  --c-primary-light: #0e5468;
  --c-accent: #18a4b8;
  --c-accent-soft: #d9eef1;
  --c-text: #1d2b30;
  --c-text-muted: #5a6e74;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f7f8;
  --c-border: #e1e9eb;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(7, 53, 64, 0.10);
  --maxw: 1140px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
}

.rx-header {
  background: var(--c-primary);
  color: #fff;
  border-bottom: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
}
.rx-header-inner {
  max-width: var(--maxw);
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  gap: 1rem;
}
.rx-brand { margin-right: auto; }
.rx-brand-text {
  display: block;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
}
.rx-brand-text:hover { color: #fff; }
.rx-brand-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rx-brand-claim {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.75;
}
.rx-brand img {
  max-height: 48px;
  border-radius: 6px;
}

.rx-nav { gap: 0.5rem; }
.rx-nav-list {
  gap: 0.25rem;
  flex-wrap: wrap;
}
.rx-nav-list a {
  color: #fff;
  border-bottom: 0;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.rx-nav-list .current-menu-item > a,
.rx-nav-list .current_page_item > a,
.rx-nav-list a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.rx-nav-cta {
  display: none;
  border-radius: 999px;
  background: #fff;
  color: var(--c-primary);
  padding: 0.55rem 1rem;
}
.rx-nav-cta:hover {
  color: var(--c-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.rx-nav-toggle-bar { background: #fff; }

.rx-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.15rem;
  flex-shrink: 0;
}
.rx-lang-switch a,
.rx-lang-switch span {
  display: block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}
.rx-lang-switch .active {
  background: #fff;
  color: var(--c-primary);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.rx-main h1,
.rx-main h2,
.rx-main h3 {
  color: var(--c-primary);
  line-height: 1.2;
}
.entry-content h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.2rem); }
.entry-content h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.entry-content h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }

.rx-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 70%, #11758d 100%);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2rem);
  text-align: left;
  overflow-x: clip;
}
.rx-hero > *,
.rx-pagehead > *,
.rx-section > *,
.rx-stats > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.rx-hero .wp-block-group__inner-container,
.rx-pagehead .wp-block-group__inner-container,
.rx-section .wp-block-group__inner-container,
.rx-stats .wp-block-group__inner-container {
  max-width: var(--maxw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.rx-hero .wp-block-group__inner-container > *,
.rx-pagehead .wp-block-group__inner-container > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.rx-hero h1,
.rx-hero-title {
  color: #fff;
  max-width: 20ch;
  margin-left: 0;
  margin-right: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}
.rx-hero-sub {
  color: var(--c-text-muted);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  max-width: 60ch;
}
.rx-hero .rx-hero-sub {
  color: rgba(255, 255, 255, 0.92);
  margin-left: 0;
}
.rx-eyebrow {
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}
.rx-hero .rx-eyebrow { color: rgba(255, 255, 255, 0.82); }
.rx-eyebrow::before { display: none; }

.rx-pagehead {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}
.rx-pagehead h1,
.rx-pagehead h2,
.rx-pagehead h3 { color: #fff; }
.rx-pagehead .rx-hero-sub { color: rgba(255, 255, 255, 0.9); }

.rx-hero-buttons,
.wp-block-buttons { gap: 0.8rem; }
.rx-hero-buttons {
  justify-content: flex-start;
  align-items: flex-start;
}
.rx-btn-primary .wp-block-button__link,
.rx-btn-secondary .wp-block-button__link {
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rx-btn-primary .wp-block-button__link {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.rx-hero .rx-btn-primary .wp-block-button__link,
.rx-section-dark .rx-btn-primary .wp-block-button__link {
  background: #fff;
  border-color: #fff;
  color: var(--c-primary);
}
.rx-btn-secondary .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
}
.rx-hero .rx-btn-secondary .wp-block-button__link,
.rx-section-dark .rx-btn-secondary .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.rx-btn-primary .wp-block-button__link:hover,
.rx-btn-secondary .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.rx-section {
  padding: clamp(2.8rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
}
.rx-section-surface { background: var(--c-bg-alt); }
.rx-section-dark {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  text-align: center;
  margin: 0;
}
.rx-section-dark h1,
.rx-section-dark h2,
.rx-section-dark h3 { color: #fff; }
.rx-section-dark p { color: rgba(255, 255, 255, 0.9); }

.rx-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(7, 53, 64, 0.16);
}
.rx-card h3 {
  border: 0;
  padding-bottom: 0;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
}
.rx-card p { color: var(--c-text-muted); }

.rx-stats {
  max-width: none;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2.5rem;
}
.rx-stat {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  box-shadow: none;
}
.rx-stat h3 {
  color: var(--c-primary);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
}
.rx-stat p { color: var(--c-text-muted); }

.rx-note {
  border-color: var(--c-accent);
  background: var(--c-bg-alt);
  color: var(--c-text-muted);
}
.rx-table th { background: var(--c-primary); }
.rx-table tbody tr:nth-child(2n) { background: var(--c-bg-alt); }

.rx-footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.85);
  margin-top: clamp(2.5rem, 7vw, 5rem);
}
.rx-footer-inner {
  max-width: var(--maxw);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 2rem;
}
.rx-footer-heading { color: #fff; }
.rx-footer a { color: rgba(255, 255, 255, 0.85); }
.rx-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.rx-footer-bottom {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 920px) {
  .rx-header-inner { position: relative; }
  .rx-nav-toggle {
    display: flex;
    order: 2;
  }
  .rx-lang-switch {
    order: 3;
    margin-left: 0;
  }
  .rx-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--c-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem 1rem;
  }
  .rx-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-primary);
    border-color: rgba(255, 255, 255, 0.15);
  }
  .rx-nav.is-open .rx-nav-list { gap: 0.15rem; }
  .rx-nav.is-open .rx-nav-list a {
    border: 0;
    color: #fff;
    padding: 0.8rem 1rem;
  }
  .rx-nav.is-open .rx-nav-cta {
    display: none;
  }
  .rx-hero {
    padding-top: clamp(4rem, 14vw, 5rem);
    padding-bottom: clamp(4rem, 18vw, 5.5rem);
  }
  .rx-hero h1,
  .rx-hero-title {
    font-size: clamp(1.7rem, 7vw, 2rem);
    line-height: 1.16;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .rx-hero-sub {
    font-size: 1.15rem;
    line-height: 1.55;
  }
  .rx-stats .wp-block-columns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .rx-stats .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
