/*
Theme Name: ProCordis Precision in Blue
Theme URI: https://procordis.ai/
Author: ProCordis
Author URI: https://procordis.ai/
Description: A configurable single-page marketing theme for ProCordis.AI — the "Precision in Blue" direction. Every section (Hero, Detects marquee, How-it-works steps, Capabilities, Science, Waitlist) can be reordered, shown/hidden, and edited — including repeatable cards and links — live from the WordPress Customizer. Fonts are self-hosted (GDPR-friendly). The waitlist renders a form-plugin shortcode of your choice.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: procordis-precision
Tags: one-page, custom-colors, custom-logo, custom-menu, full-width-template, editor-style
*/

/*
 * The visual styles live in assets/css/theme.css (ported verbatim from the
 * approved design so it stays pixel-perfect). This file only carries the theme
 * header that WordPress requires, plus the WP-specific helper classes below.
 */

/* WordPress core alignment / accessibility helpers (not in the original mockup) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #1f5fd6;
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 12px 18px;
  position: absolute;
  top: 5px;
  width: auto;
  z-index: 100000;
}
.admin-bar header.nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar header.nav { top: 46px; }
}

/* Language switcher (header) — uses the theme's existing tokens */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.lang-switch .lang-link {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ink-faint);
  padding: 4px 7px;
  border-radius: 4px;
  line-height: 1;
  transition: 0.15s;
}
.lang-switch .lang-link:hover { color: var(--red); }
.lang-switch .lang-link.is-active {
  background: var(--red-tint);
  color: var(--red-deep);
}
@media (max-width: 920px) {
  .lang-switch { order: -1; }
}

/* Form-plugin (e.g. MailPoet) rendered inside the waitlist card —
   make its submit button match the theme's primary CTA. Inputs/selects
   already inherit the generic `form input` styling. */
.wl-form .mailpoet_form { padding: 0; }
.wl-form .mailpoet_paragraph { margin-bottom: 15px; }
.wl-form .mailpoet_message { margin-top: 12px; font-size: 14.5px; }
.wl-form .mailpoet_form input.mailpoet_submit {
  width: 100%;
  margin-top: 6px;
  background: var(--red);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  cursor: pointer;
  transition: 0.16s;
}
.wl-form .mailpoet_form input.mailpoet_submit:hover { background: var(--red-deep); }
.wl-form .mailpoet_form input.mailpoet_submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--red-soft);
}

/* Cookie-consent banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 60px -20px rgba(19, 33, 58, 0.35);
  padding: 18px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-in {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-text strong {
  font-family: var(--grot);
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}
.cookie-banner-text p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-text a { color: var(--red); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 10px 18px; font-size: 14px; }
.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
}
.cookie-settings-link:hover { color: var(--red); }
@media (max-width: 600px) {
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}
