/*
Theme Name: mindcoa
Theme URI: https://www.mindcoa.ch
Author: mindcoa.ch gmbh
Description: Custom theme for mindcoa.ch - the parent company site for the Eternias/Galene universe (Galene.Life, Piraten, Sturmische Zeiten). Dark, gold/teal palette matching the shared visual identity used across the Galene product family.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mindcoa
*/

:root {
  --bg: #17110F;
  --bg-raised: #201815;
  --bg-card: #241B17;
  --gold: #D99938;
  --gold-light: #F2C878;
  --teal: #4C8C8A;
  --teal-light: #7FBAB8;
  --text: #EDE0CC;
  --text-dim: #B8A98F;
  --border: #3A2C24;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}
:root:not([data-theme="light"]) { color-scheme: dark; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F7F1E6; --bg-raised: #FDFAF3; --bg-card: #FFFFFF;
    --text: #2A211B; --text-dim: #5C4E42; --border: #E3D6C2;
  }
}
:root[data-theme="light"] {
  --bg: #F7F1E6; --bg-raised: #FDFAF3; --bg-card: #FFFFFF;
  --text: #2A211B; --text-dim: #5C4E42; --border: #E3D6C2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-light); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 28px; }

/* Language toggle */
.lang-toggle {
  position: fixed; top: 18px; right: 18px; z-index: 50;
  background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px;
}
.lang-toggle ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lang-toggle li { margin: 0; }
.lang-toggle a {
  display: block; font-family: var(--sans); font-size: 13px; font-weight: 600;
  text-decoration: none; color: var(--text-dim);
  padding: 6px 14px; border-radius: 999px;
  transition: background .15s, color .15s;
}
/* Polylang adds this class to the link for the language currently
   being viewed - the equivalent of the old .active state on the
   JS-toggle buttons, just driven by which URL you're actually on.
   NOTE: "current-lang" is the commonly-documented class name for this,
   but I could not confirm it against Polylang's own source directly -
   after installing, inspect the rendered <li>/<a> in browser dev tools
   and adjust this selector if the actual class differs. */
.lang-toggle .current-lang a,
.lang-toggle li.current-lang a { background: var(--gold); color: #1A1310; }

/* Header */
header.site { padding: 28px 0 0; }
.wordmark { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.3px; color: var(--text); text-decoration: none; }
.wordmark span { color: var(--gold-light); }

/* Hero */
.hero { padding: 90px 0 70px; text-align: left; }
.hero .stat-row { display: flex; gap: 44px; flex-wrap: wrap; margin-bottom: 34px; }
/* Each stat-pair is one flex item at the .stat-row level, so wrapping
   (on narrow viewports) moves a whole number+label pair to the next
   line together - it can never split a label from its own number, or
   let the two pairs' numbers/labels interleave in the wrong order. */
.stat-pair { display: flex; gap: 16px; align-items: baseline; flex-wrap: nowrap; }
.stat-num { font-family: var(--serif); font-size: clamp(64px, 12vw, 108px); font-weight: 600; color: var(--gold-light); line-height: 1; white-space: nowrap; }
.stat-label { font-size: 17px; color: var(--text-dim); max-width: 260px; line-height: 1.5; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 38px); line-height: 1.28; max-width: 700px; margin: 0 0 20px; color: var(--text); }
.hero p.lede { font-size: 17px; color: var(--text-dim); max-width: 560px; margin: 0; }

/* Sections */
section.mc-section { padding: 64px 0; border-top: 1px solid var(--border); }
section.mc-section h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 18px; }
section.mc-section .body-text { font-size: 16.5px; color: var(--text-dim); max-width: 640px; }
section.mc-section .body-text p { margin: 0 0 16px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.product-card .kicker { font-family: var(--serif); font-size: 13px; color: var(--teal-light); font-style: italic; }
.product-card h3 { font-family: var(--serif); font-size: 22px; margin: 0; font-weight: 500; }
.product-card p { font-size: 15px; color: var(--text-dim); margin: 0; flex-grow: 1; }
.product-card .link { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--gold-light); }
.product-card .link:hover { text-decoration: underline; }

/* Universe links */
.universe-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.universe-links a {
  font-family: var(--sans); font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--bg-raised); border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 999px; transition: border-color .15s, color .15s;
}
.universe-links a:hover { border-color: var(--gold); color: var(--gold-light); }

/* Awards */
.awards-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 720px) { .awards-layout { grid-template-columns: 1fr; } }
.award-photos { display: flex; flex-direction: column; gap: 16px; }
.award-photos img { border-radius: 8px; border: 1px solid var(--border); }
.award-photos figcaption { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.award-list { list-style: none; margin: 0; padding: 0; }
.award-list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border); align-items: baseline;
}
.award-list li:last-child { border-bottom: none; }
.award-year { font-family: var(--serif); font-size: 16px; color: var(--gold-light); font-weight: 500; }
.award-text { font-size: 15px; color: var(--text-dim); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block h4 { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--teal-light); font-style: italic; margin: 0 0 8px; }
.contact-block p { font-size: 15px; color: var(--text-dim); margin: 0 0 4px; }
.contact-block a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.contact-block a:hover { border-color: var(--gold); }

footer.site { padding: 40px 0 60px; border-top: 1px solid var(--border); }
footer.site p { font-size: 13px; color: var(--text-dim); margin: 0; }

/* No [data-lang-content] show/hide rules needed anymore - Polylang
   serves each language as its own real page server-side via pll__(),
   so there's no dual-language markup on one page left to toggle. */

/* Focus visibility - keyboard accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
