/*
Theme Name: solecovia
Theme URI: https://solecovia.com/
Author: Cursor
Description: Gutenberg-compatible block theme inspired by dossier_technique.html.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solecovia
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, wide-blocks
*/

:root {
  --soleco-green: #30824a;
  --soleco-green-dark: #1f5c34;
  --soleco-green-mid: #4da066;
  --soleco-green-light: #e8f4ec;
  --soleco-green-pale: #f2faf5;
  --soleco-white: #ffffff;
  --soleco-gray-100: #f7f8f6;
  --soleco-gray-200: #eef0ec;
  --soleco-gray-400: #7e7e7e;
  --soleco-gray-700: #4a524a;
  --soleco-dark: #1a2018;
  --soleco-radius: 3px;
  --soleco-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --soleco-shadow-lg: 0 6px 28px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  /* clip instead of hidden: prevents horizontal scroll without creating a
     new scroll container, which would break position:sticky on the header */
  overflow-x: clip;
}

body {
  background: var(--soleco-white);
  color: var(--soleco-dark);
  overflow-x: clip;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

:where(.wp-site-blocks) > * {
  margin-block-start: 0;
}

:root :where(.is-layout-constrained) > * {
  margin-block-start: 0;
}

:where(.wp-site-blocks *:focus) {
  outline: none;
}

:where(.wp-site-blocks *:focus-visible) {
  outline: 2px solid var(--soleco-green);
  outline-offset: 3px;
  border-radius: 3px;
  box-shadow: 0 0 0 4px rgba(48, 130, 74, 0.18);
}

/* ── Site header ─────────────────────────────────────────────── */

/* The actual sticky wrapper is the template-part <header> */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--soleco-gray-200);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: padding 0.3s ease, box-shadow 0.3s ease,
              background 0.35s ease, border-color 0.35s ease;
}

/* ── Compact state (JS adds/removes this class on scroll) ────── */
.site-header.site-header--compact {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.site-header--compact .site-brand-logo img {
  width: 130px !important;
}

.site-header--compact .wp-block-navigation .wp-block-navigation-item__content {
  font-size: 0.84rem;
}

/* ── Logo ───────────────────────────────────────────────────── */
.site-brand {
  gap: 0.9rem;
}

.site-brand-logo {
  margin: 0;
}

.site-brand-logo img {
  display: block;
  height: auto;
  max-width: 180px;
  transition: width 0.3s ease;
}

/* When the mobile nav modal is open, backdrop-filter on the header
   creates a containing block that traps position:fixed children.
   Removing it lets the overlay escape and cover the full viewport.
   Two selectors: JS-added class (WordPress nav view.js) + CSS-only :has() fallback. */
html.has-modal-open .site-header,
.site-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
  backdrop-filter: none;
}

/* ── Desktop navigation ─────────────────────────────────────── */
.site-header .wp-block-navigation .wp-block-navigation-item__content {
  color: var(--soleco-dark);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 1.4rem;
  height: 2px;
  background: var(--soleco-green);
  border-radius: 1px;
  transition: transform 0.22s ease;
}

.site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--soleco-green);
}

.site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.site-header .wp-block-navigation__submenu-container {
  border: 1px solid var(--soleco-gray-200);
  box-shadow: var(--soleco-shadow);
  background: #fff;
}

.solecovia-hero {
  background: linear-gradient(135deg, var(--soleco-green-dark) 0%, var(--soleco-green) 60%, var(--soleco-green-mid) 100%);
  color: var(--soleco-white);
  overflow: hidden;
  position: relative;
}

.solecovia-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.solecovia-hero > * {
  position: relative;
}

.solecovia-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.82;
}

.solecovia-divider {
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  margin: 1.3rem auto;
}

.solecovia-badges {
  margin-top: -2rem;
  position: relative;
  z-index: 5;
}

.solecovia-badges .wp-block-column {
  background: var(--soleco-white);
  border-radius: var(--soleco-radius);
  box-shadow: var(--soleco-shadow);
  border-top: 3px solid var(--soleco-green);
  padding: 1rem 1.15rem;
}

.solecovia-badges strong {
  display: block;
  color: var(--soleco-dark);
  margin-bottom: 0.15rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6 {
  color: var(--soleco-green-dark);
  letter-spacing: -0.02em;
}

.entry-content h2,
.wp-block-post-content h2 {
  color: var(--soleco-dark);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--soleco-green);
}

.entry-content h3,
.wp-block-post-content h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-content h3::before,
.wp-block-post-content h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--soleco-green);
  border-radius: 2px;
  flex-shrink: 0;
}

.entry-content p,
.entry-content li,
.entry-content td,
.wp-block-post-content p,
.wp-block-post-content li,
.wp-block-post-content td,
.wp-block-post-content figcaption {
  color: var(--soleco-gray-700);
}

.entry-content ul,
.wp-block-post-content ul {
  list-style: none;
  padding-left: 0;
}

.entry-content ul li,
.wp-block-post-content ul li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.45rem;
}

.entry-content ul li::before,
.wp-block-post-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--soleco-green);
}

.entry-content table,
.wp-block-post-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--soleco-radius);
  overflow: hidden;
  box-shadow: var(--soleco-shadow);
}

.entry-content thead tr,
.wp-block-post-content thead tr {
  background: var(--soleco-green);
  color: var(--soleco-white);
}

.entry-content th,
.entry-content td,
.wp-block-post-content th,
.wp-block-post-content td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--soleco-gray-200);
  text-align: left;
  vertical-align: top;
}

.entry-content tbody tr:nth-child(odd),
.wp-block-post-content tbody tr:nth-child(odd) {
  background: var(--soleco-green-pale);
}

.is-style-solecovia-card,
.is-style-solecovia-panel,
.is-style-solecovia-conclusion,
.solecovia-card,
.solecovia-panel,
.solecovia-conclusion,
.solecovia-contact-card {
  border-radius: var(--soleco-radius);
}

.is-style-solecovia-card,
.solecovia-card {
  background: var(--soleco-white);
  box-shadow: var(--soleco-shadow);
  border-left: 4px solid var(--soleco-green);
  padding: 1.25rem 1.4rem;
}

.is-style-solecovia-panel,
.solecovia-panel {
  overflow: hidden;
  box-shadow: var(--soleco-shadow);
  background: var(--soleco-green-light);
  padding: 1.1rem 1.3rem;
  border-top: 4px solid var(--soleco-green);
}

.is-style-solecovia-conclusion,
.solecovia-conclusion {
  background: var(--soleco-green-pale);
  border: 2px solid var(--soleco-green);
  padding: 1.2rem 1.5rem;
}

.is-style-solecovia-conclusion > :first-child,
.solecovia-conclusion > :first-child {
  font-weight: 700;
  color: var(--soleco-green-dark);
}

.solecovia-contact-card {
  box-shadow: var(--soleco-shadow-lg);
  overflow: hidden;
}

.solecovia-contact-card .wp-block-group:first-child {
  background: linear-gradient(135deg, var(--soleco-green-dark), var(--soleco-green));
  color: var(--soleco-white);
}

.site-footer {
  border-top: 1px solid var(--soleco-gray-200);
  background: var(--soleco-white);
  overflow: hidden;
}

.site-footer-panel {
  background: linear-gradient(135deg, var(--soleco-green-dark), var(--soleco-green));
  box-shadow: var(--soleco-shadow-lg);
}

.site-footer-logo {
  margin: 0;
}

.site-footer-logo img {
  display: block;
  height: auto;
  max-width: 180px;
}

.site-footer-label {
  margin-bottom: 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

.site-footer-panel p,
.site-footer-panel .site-footer-label {
  color: var(--soleco-white);
}

.site-footer-panel .wp-element-button,
.site-footer-panel .wp-block-button__link {
  box-shadow: none;
}

.site-footer p,
.site-footer li,
.site-footer .wp-block-site-title a,
.site-footer .wp-block-navigation-item__content {
  color: var(--soleco-gray-700);
}

.site-footer .wp-block-site-title a {
  text-decoration: none;
  color: var(--soleco-green-dark);
}

/* ── Language switcher – header (TranslatePress v2) ────────── */

/* Prevent flex parents from clipping the absolutely-positioned dropdown */
.site-header .wp-block-group,
.site-header .wp-block-shortcode {
  overflow: visible;
}

/* Native block wrapper — flex-align it in the header row */
.site-header .trp-block-container {
  display: flex;
  align-items: center;
}

/* TranslatePress sets overflow:hidden on .trp-shortcode-switcher — override */
.site-header .trp-shortcode-switcher,
.site-header .trp-shortcode-overlay {
  overflow: visible !important;
}

.site-header .trp-shortcode-switcher__wrapper {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Language switcher (native cookie-based, no plugin required) ──── */
.sc-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.sc-lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  text-decoration: none;
  color: var(--soleco-dark);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.sc-lang-switcher__item:hover {
  background: var(--soleco-gray-100);
  color: var(--soleco-green);
}

.sc-lang-switcher__item--active {
  color: var(--soleco-green);
}

.sc-lang-switcher__flag {
  font-size: 1rem;
  line-height: 1;
}

/* Suppress TranslatePress floating bubble if plugin still installed */
#trp-floater-ls { display: none !important; }

.wp-element-button,
.wp-block-button__link {
  border-radius: 3px;
  font-weight: 700;
  padding: 0.9rem 1.35rem;
  box-shadow: var(--soleco-shadow);
}

/* ── Home page (sc-* components) ── */

/* shared utilities */
.sc-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--soleco-green);
  margin: 0 0 0.6rem;
}
.sc-kicker--light { color: #fff; }
.sc-kicker--center { text-align: center; }

.sc-divider {
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  margin: 1.2rem auto;
}

.sc-btn {
  display: inline-block;
  border-radius: 3px;
  font-weight: 700;
  padding: 0.9rem 2rem;
  text-decoration: none;
  margin-top: 2rem;
  transition: opacity 0.2s;
}
.sc-btn:hover { opacity: 0.88; }
.sc-btn--green { background: var(--soleco-green); color: #fff; }
.sc-btn--white { background: #fff; color: var(--soleco-green-dark); }

/* hero */
.sc-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.sc-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sc-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,18,8,0.58);
  z-index: 1;
}
.sc-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 5rem 2rem 4.5rem;
  margin: 0 auto;
}
.sc-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin: 0.5rem 0 0;
}
.sc-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin: 1.1rem 0 0;
  line-height: 1.6;
}

/* stat badges */
.sc-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem 3rem;
  margin-top: -2rem;
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.sc-badge {
  background: #fff;
  border-radius: var(--soleco-radius);
  box-shadow: var(--soleco-shadow);
  border-top: 3px solid var(--soleco-green);
  padding: 0.9rem 1.4rem;
  flex: 1 1 160px;
  text-align: center;
}
.sc-badge strong {
  display: block;
  font-size: 1.25rem;
  color: var(--soleco-dark);
}
.sc-badge span {
  font-size: 0.82rem;
  color: var(--soleco-gray-400);
}

/* banner */
.sc-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.sc-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sc-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,22,10,0.82) 40%, rgba(10,22,10,0.3) 100%);
}
.sc-banner__body {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 4rem 4rem 4rem max(4rem, calc((100% - 1100px) / 2 + 2rem));
}
.sc-banner__kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d8f2e2;
  margin: 0 0 0.75rem;
}
.sc-banner__text {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.sc-banner__sub {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.7;
  margin: 0 0 1.8rem;
}

/* Ensure banner copy stays light when theme / block styles target raw h2 & p */
.sc-banner__body h2 {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.sc-banner__body p:not(.sc-banner__kicker) {
  color: rgba(255, 255, 255, 0.94) !important;
}
.sc-banner__body .sc-banner__kicker {
  color: #d8f2e2 !important;
}

/* sections */
.sc-section {
  padding: 4rem 1.5rem;
}
.sc-section--pale {
  background: var(--soleco-green-pale);
}
.sc-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.sc-section__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--soleco-green-dark);
  margin: 0.4rem 0 2.5rem;
}
.sc-section h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--soleco-dark);
  background: none;
  padding: 0;
  margin: 0 0 1.2rem;
  border-left: none;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.sc-section p {
  color: var(--soleco-gray-700);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* two-column layout */
.sc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.sc-two-col--reversed { direction: rtl; }
.sc-two-col--reversed > * { direction: ltr; }
.sc-two-col__img img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  box-shadow: var(--soleco-shadow-lg);
  display: block;
}
.sc-two-col__apps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* mission banner */
.sc-mission {
  background: linear-gradient(135deg, var(--soleco-green-dark), var(--soleco-green));
  padding: 4.5rem 2rem;
  text-align: center;
}
.sc-mission__inner {
  max-width: 720px;
  margin: 0 auto;
}
.sc-mission h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0.4rem 0 0;
}
.sc-mission p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.sc-mission strong { color: #fff; }

/* feature cards */
.sc-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.sc-feature {
  background: #fff;
  border-left: 4px solid var(--soleco-green);
  border-radius: var(--soleco-radius);
  box-shadow: var(--soleco-shadow);
  padding: 1.4rem 1.5rem;
}
.sc-feature__icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--soleco-green);
}
.sc-feature__icon svg {
  width: 2rem;
  height: 2rem;
  display: block;
}
.sc-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--soleco-green-dark);
  margin: 0 0 0.4rem;
}
.sc-feature p {
  font-size: 0.9rem;
  color: var(--soleco-gray-700);
  margin: 0;
  line-height: 1.6;
}

/* callout box */
.sc-callout {
  background: var(--soleco-green-pale);
  border: 2px solid var(--soleco-green);
  border-radius: var(--soleco-radius);
  padding: 1.1rem 1.4rem;
  margin-top: 1.2rem;
}
.sc-callout p {
  font-weight: 700;
  color: var(--soleco-green-dark) !important;
  font-size: 0.97rem;
  margin: 0;
}

/* contact form (#contact) */
.sc-contact-form {
  position: relative;
  margin-top: 0.5rem;
}
.sc-contact-form__notice {
  padding: 0.85rem 1.1rem;
  border-radius: var(--soleco-radius);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.sc-contact-form__notice--success {
  background: var(--soleco-green-light);
  border: 1px solid var(--soleco-green);
  color: var(--soleco-green-dark);
}
.sc-contact-form__notice--error {
  background: #fff5f5;
  border: 1px solid #c53030;
  color: #742a2a;
}
.sc-contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sc-contact-form__field {
  margin: 0 0 1.1rem;
}
.sc-contact-form__label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--soleco-green-dark);
  margin-bottom: 0.35rem;
}
.sc-contact-form__input,
.sc-contact-form__textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--soleco-gray-200);
  border-radius: var(--soleco-radius);
  font: inherit;
  color: var(--soleco-dark);
  background: var(--soleco-white);
}
.sc-contact-form__textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.55;
}
.sc-contact-form fieldset.sc-contact-form__field--captcha {
  border: none;
  margin: 0 0 1.1rem;
  padding: 0;
  min-width: 0;
}
.sc-contact-form fieldset.sc-contact-form__field--captcha legend {
  padding: 0;
  float: left; /* removes legend bottom gap in some browsers */
  width: 100%;
}
.sc-contact-form__field--captcha .g-recaptcha {
  margin-top: 0.25rem;
  clear: both;
}
.sc-contact-form__actions {
  margin: 0;
}
.sc-contact-form__submit {
  margin-top: 0.25rem;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* app cards */
.sc-app {
  background: var(--soleco-green-light);
  border-top: 4px solid var(--soleco-green);
  border-radius: var(--soleco-radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--soleco-shadow);
}
.sc-app h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--soleco-green-dark);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sc-app__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--soleco-green);
}
.sc-app p {
  font-size: 0.9rem;
  color: var(--soleco-gray-700);
  margin: 0;
  line-height: 1.6;
}

/* CTA section */
.sc-cta {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.sc-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sc-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,18,8,0.65);
  z-index: 1;
}
.sc-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 4rem 2rem;
  margin: 0 auto;
}
.sc-cta__inner h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.sc-cta__inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin: 1rem 0 0;
  line-height: 1.7;
}

/* ── Inner page hero ── */
.sc-page-hero {
  background: linear-gradient(135deg, var(--soleco-green-dark) 0%, var(--soleco-green) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sc-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.sc-page-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.sc-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0.5rem 0 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.sc-page-hero__sub,
.sc-page-hero p.sc-page-hero__sub,
.wp-block-post-content .sc-page-hero__sub {
  font-size: 1.1rem;
  color: #fff;
  margin: 1rem 0 0;
  line-height: 1.7;
}
.sc-page-hero .sc-kicker {
  color: #fff;
  opacity: 0.85;
}
.sc-page-hero .sc-divider {
  margin: 1.2rem auto 0;
}

/* step cards (installation process) */
.sc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.sc-step {
  background: #fff;
  border-radius: var(--soleco-radius);
  box-shadow: var(--soleco-shadow);
  border-top: 4px solid var(--soleco-green);
  padding: 1.5rem 1.6rem;
}
.sc-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--soleco-green);
  color: #fff;
  border-radius: 0;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}
.sc-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--soleco-green-dark);
  margin: 0 0 0.4rem;
}
.sc-step p {
  font-size: 0.9rem;
  color: var(--soleco-gray-700);
  margin: 0;
  line-height: 1.6;
}

/* case study cards */
.sc-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.sc-case {
  background: var(--soleco-green-light);
  border-left: 4px solid var(--soleco-green);
  border-radius: var(--soleco-radius);
  padding: 1.1rem 1.3rem;
}
.sc-case strong {
  display: block;
  font-weight: 700;
  color: var(--soleco-green-dark);
  margin-bottom: 0.3rem;
}
.sc-case p {
  font-size: 0.9rem;
  color: var(--soleco-gray-700);
  margin: 0;
  line-height: 1.55;
}

/* stat row */
.sc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.sc-stat {
  flex: 1 1 180px;
  background: #fff;
  border-radius: var(--soleco-radius);
  box-shadow: var(--soleco-shadow);
  border-top: 3px solid var(--soleco-green);
  padding: 1.1rem 1.4rem;
  text-align: center;
}
.sc-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--soleco-green-dark);
  margin-bottom: 0.2rem;
}
.sc-stat span {
  font-size: 0.82rem;
  color: var(--soleco-gray-400);
}

/* docs grid */
.sc-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.sc-doc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--soleco-radius);
  box-shadow: var(--soleco-shadow);
  border-top: 4px solid var(--soleco-green);
  padding: 1.5rem;
}
.sc-doc-card__icon {
  display: block;
  color: var(--soleco-green);
  margin-bottom: 0.75rem;
}
.sc-doc-card__icon svg {
  width: 2rem;
  height: 2rem;
  display: block;
}
.sc-doc-card__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}
.sc-doc-card__lang {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  background: var(--soleco-gray-200);
  color: var(--soleco-gray-700);
}
.sc-doc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--soleco-green-dark);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.sc-doc-card p {
  font-size: 0.9rem;
  color: var(--soleco-gray-700);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.sc-doc-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
a.sc-doc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.4em 0.85em;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
a.sc-doc-card__link svg {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}
a.sc-doc-card__link--html {
  background: var(--soleco-green-pale);
  color: var(--soleco-green-dark);
}
a.sc-doc-card__link--html:hover,
a.sc-doc-card__link--html:focus-visible {
  background: var(--soleco-green);
  color: #fff;
}
a.sc-doc-card__link--pdf {
  background: #fde8e8;
  color: #b91c1c;
}
a.sc-doc-card__link--pdf:hover,
a.sc-doc-card__link--pdf:focus-visible {
  background: #b91c1c;
  color: #fff;
}

/* news cards */
.sc-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.sc-news-card {
  background: #fff;
  border-radius: var(--soleco-radius);
  box-shadow: var(--soleco-shadow);
  overflow: hidden;
  border-top: 4px solid var(--soleco-green);
  padding: 1.5rem;
}
.sc-news-card__body {
  padding: 1.5rem;
}
.sc-news-card__media {
  position: relative;
  width: 100%;
  height: clamp(5rem, 14vw, 6.75rem);
  background: var(--soleco-gray-200);
  overflow: hidden;
}
.sc-news-card__media .sc-news-card__img,
.sc-news-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sc-news-card__source {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soleco-green);
  margin: 0 0 0.5rem;
}
.sc-news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--soleco-green-dark);
  margin: 0 0 0.6rem;
  line-height: 1.4;
}
.sc-news-card p {
  font-size: 0.9rem;
  color: var(--soleco-gray-700);
  margin: 0;
  line-height: 1.6;
}
a.sc-news-card--link {
  display: block;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.sc-news-card--link:hover,
a.sc-news-card--link:focus-visible {
  box-shadow: var(--soleco-shadow-lg);
  transform: translateY(-2px);
  outline: none;
}
.sc-news-card__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soleco-green);
}
a.sc-news-card--link:hover .sc-news-card__cta,
a.sc-news-card--link:focus-visible .sc-news-card__cta {
  color: var(--soleco-green-dark);
}
.sc-news-grid--empty {
  margin-top: 2.5rem;
}
.sc-news-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--soleco-gray-700);
  font-size: 1rem;
  margin: 0;
  padding: 2rem 1rem;
  background: var(--soleco-gray-100);
  border-radius: var(--soleco-radius);
}

/* single blog post (single-post.html) */
.sc-page-hero__sub--meta {
  opacity: 0.92;
  font-size: 1rem !important;
}
.sc-single-back {
  margin: 1.25rem 0 0;
}
.sc-single-back__arr {
  margin-right: 0.35em;
  text-decoration: none;
}
.sc-single-back__link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.sc-single-back__link:hover,
.sc-single-back__link:focus-visible {
  color: rgba(255,255,255,0.92) !important;
}
.sc-single-article .wp-block-post-featured-image.sc-single-featured {
  margin-bottom: 2rem;
}
.sc-single-article .wp-block-post-featured-image.sc-single-featured img {
  width: 100%;
  border-radius: var(--soleco-radius);
  box-shadow: var(--soleco-shadow-lg);
  display: block;
}
.sc-single-article .wp-block-post-content > *:first-child {
  margin-top: 0;
}

/* bullet list in sc-section */
.sc-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}
.sc-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--soleco-gray-700);
  line-height: 1.6;
}
.sc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--soleco-green);
}

@media (max-width: 782px) {
  /* Keep header sticky on mobile so scroll-collapse works */

  /* Reorder: [logo] [flag] [hamburger] */
  .site-header .site-brand          { order: 2; }
  .site-header .trp-block-container { order: 3; }
  .site-header .wp-block-navigation { order: 1; }

  /* Mobile overlay menu — centered items, no borders */
  .wp-block-navigation__responsive-container.is-menu-open {
    align-items: center;
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content {
    align-items: center !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container,
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item {
    align-items: center !important;
    width: 100%;
  }

  /* Top-level items — large, bold */
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--soleco-dark);
    text-align: center;
    justify-content: center;
    padding: 0.55rem 0;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    transition: color 0.2s ease;
    position: relative;
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 2rem;
    height: 2px;
    background: var(--soleco-green);
    border-radius: 1px;
    transition: transform 0.22s ease;
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content:hover,
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container
    > .current-menu-item
    > .wp-block-navigation-item__content {
    color: var(--soleco-green);
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content:hover::after,
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container
    > .current-menu-item
    > .wp-block-navigation-item__content::after {
    transform: translateX(-50%) scaleX(1);
  }

  /* Sub-menu items — smaller, muted, indented */
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    align-items: center !important;
    padding-top: 0.1rem !important;
    padding-bottom: 0.6rem !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--soleco-gray-400);
    text-align: center;
    justify-content: center;
    padding: 0.3rem 0;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    transition: color 0.18s ease;
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:hover,
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .current-menu-item
    .wp-block-navigation-item__content {
    color: var(--soleco-green);
  }

  /* Flag only on mobile — hide the label */
  .sc-lang-switcher__label {
    display: none;
  }

  .sc-lang-switcher__item {
    padding: 0.2rem;
  }

  .solecovia-badges {
    margin-top: 1rem;
  }

  .sc-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sc-two-col--reversed { direction: ltr; }

  .sc-features {
    grid-template-columns: 1fr;
  }

  .sc-hero__sub br { display: none; }

  .sc-page-hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .sc-page-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .sc-steps {
    grid-template-columns: 1fr;
  }

  .sc-cases {
    grid-template-columns: 1fr;
  }

  .sc-stats {
    flex-direction: column;
  }

  .sc-news-grid {
    grid-template-columns: 1fr;
  }

  .sc-banner__body {
    padding: 3rem 1.5rem;
    max-width: 100%;
  }

  .sc-banner__text {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}

/* ── Per-language style overrides (:lang selectors) ───────────── */

/* French hero title is slightly longer — ease down the clamp ceiling */
:lang(fr) .sc-hero__title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

/* French sub-headline tends to run longer — slightly tighter line-height */
:lang(fr) .sc-hero__sub {
  line-height: 1.55;
}

/* French nav items are longer — allow wrapping to prevent overflow */
:lang(fr) .site-header .wp-block-navigation .wp-block-navigation-item__content {
  white-space: normal;
}
