/* ==========================================================================
   SOLARMA S.N.C. — corporate stylesheet
   Self-contained: no external fonts, CDNs or trackers (GDPR-friendly).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --ink:        #0b1b2b;
  --ink-soft:   #37475a;
  --ink-mute:   #64758a;
  --line:       #dde4ec;
  --line-soft:  #edf1f6;

  --brand:      #0f5686;
  --brand-dark: #0a3c60;
  --brand-deep: #072c47;
  --brand-tint: #eaf2f8;

  --solar:      #f0a500;
  --solar-dark: #c98400;
  --solar-tint: #fff5e0;

  --leaf:       #17976a;
  --leaf-tint:  #e7f5ef;

  --bg:         #ffffff;
  --bg-alt:     #f6f8fb;
  --bg-deep:    #072c47;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --font-alt: ui-serif, Georgia, Cambria, "Times New Roman", serif;

  /* Spacing / shape */
  --wrap: 1160px;
  --wrap-narrow: 780px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(7, 44, 71, .06), 0 2px 8px rgba(7, 44, 71, .05);
  --shadow-md: 0 4px 12px rgba(7, 44, 71, .08), 0 16px 40px rgba(7, 44, 71, .08);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--solar); outline-offset: 2px; border-radius: 3px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(3.2rem, 2rem + 4vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--brand-tint); }
.section--deep { background: var(--bg-deep); color: #c8dced; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--tight { padding-block: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--solar-dark); margin-bottom: .7rem;
}
.section--deep .eyebrow { color: var(--solar); }
.lede { font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); color: var(--ink-mute); max-width: 62ch; }
.section--deep .lede { color: #a9c6dc; }
.section-head { max-width: 68ch; margin-bottom: 2.6rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1.2rem;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 52px; width: auto; }
@media (max-width: 420px) { .brand img { height: 38px; } }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  display: block; padding: .55rem .8rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.nav a:hover { background: var(--bg-alt); color: var(--brand-dark); }
.nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }

.lang {
  display: flex; align-items: center; gap: .1rem; margin-left: .6rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px;
}
.lang a {
  padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: var(--ink-mute); text-decoration: none;
}
.lang a[aria-current] { background: var(--brand); color: #fff; }
.lang a:not([aria-current]):hover { background: var(--bg-alt); color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 22px 1.1rem;
    box-shadow: var(--shadow-md); gap: .1rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .8rem .6rem; font-size: 1.02rem; }
  .lang { margin: .6rem 0 0; align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: .97rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--solar); color: #26190a; }
.btn--primary:hover { background: var(--solar-dark); color: #1a1105; }
.btn--dark { background: var(--brand-dark); color: #fff; }
.btn--dark:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--brand-dark); background: #fff; }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #d7e6f2;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(240,165,0,.28), transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(23,151,106,.22), transparent 60%),
    linear-gradient(160deg, #0a3c60 0%, #072c47 55%, #051f33 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: clamp(3.4rem, 2rem + 6vw, 6.4rem) 0;
}
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero__lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.24rem); color: #b6d1e6; max-width: 54ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem;
  font-size: .86rem; color: #8fb4d1; letter-spacing: .02em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--solar); }
.hero__art { display: flex; justify-content: center; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__art { max-width: 380px; }
}

.badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
  padding: .38rem .85rem; border-radius: 999px;
  background: rgba(240,165,0,.14); border: 1px solid rgba(240,165,0,.4);
  color: #ffd98a; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: linear-gradient(160deg, #0a3c60 0%, #072c47 100%);
  color: #b6d1e6; padding: clamp(2.6rem, 2rem + 3vw, 4.2rem) 0;
}
.page-head h1 { color: #fff; margin-bottom: .4rem; }
.page-head p { color: #a9c6dc; max-width: 64ch; margin-bottom: 0; }
.breadcrumb { font-size: .82rem; color: #7ba6c7; margin-bottom: 1rem; }
.breadcrumb a { color: #9dc3de; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 1.6rem 1.4rem; }
.section--alt .stat { background: #fff; }
.stat__value { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 800; color: var(--brand-dark); line-height: 1.1; letter-spacing: -.02em; }
.stat__value small { font-size: .5em; font-weight: 700; color: var(--ink-mute); margin-left: .2em; }
.stat__label { font-size: .84rem; color: var(--ink-mute); margin-top: .35rem; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .grid--5 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
}
.card { display: flex; flex-direction: column; }
.card h3 { margin-bottom: .5rem; }
.card__more { margin-top: auto; padding-top: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-dark); margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--solar { background: var(--solar-tint); color: var(--solar-dark); }
.card__icon--leaf  { background: var(--leaf-tint);  color: var(--leaf); }
.card__more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; color: var(--brand); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

/* ---------- Feature list ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .85rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf);
  transform: rotate(-45deg);
}
.section--deep .checklist li::before { border-color: var(--solar); }

/* ---------- Data table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.data-table th, .data-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { width: 38%; color: var(--ink); font-weight: 600; background: var(--bg-alt); white-space: nowrap; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.7rem .4rem; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.6rem - 7px); top: .45em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--solar); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--solar);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline__date { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--solar-dark); }
.timeline__title { font-weight: 700; color: var(--ink); }

/* ---------- People ---------- */
.person { display: flex; gap: 1rem; align-items: flex-start; }
.person__avatar {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-dark); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
}
.person__role { font-size: .84rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }

/* Professional registration details shown under a partner */
.credential {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem;
  margin: 0 0 .7rem; padding: .8rem 1rem;
  background: var(--bg-alt); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .86rem; line-height: 1.5;
}
.credential dt { color: var(--ink-mute); font-weight: 600; white-space: nowrap; }
.credential dd { margin: 0; color: var(--ink); }
.credential + p { margin-bottom: 0; font-size: .86rem; }
@media (max-width: 520px) {
  .credential { grid-template-columns: 1fr; gap: 0; }
  .credential dt { margin-top: .5rem; }
  .credential dt:first-child { margin-top: 0; }
}

/* ---------- Contact ---------- */
.contact-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-dark); }
.contact-item__icon svg { width: 19px; height: 19px; }
.contact-item__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink-mute); }
.contact-item__value { color: var(--ink); font-weight: 600; word-break: break-word; }
.contact-item__value a { text-decoration: none; }
.contact-item__value a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
  border-radius: var(--radius); padding: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  color: #bcd6e9; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin-bottom: 0; }
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Notes / callouts ---------- */
.note {
  border-left: 3px solid var(--solar); background: var(--solar-tint);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }
.note--info { border-left-color: var(--brand); background: var(--brand-tint); }

/* ---------- Placeholder media ---------- */
.media-placeholder {
  aspect-ratio: 4 / 3; border: 1px dashed var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 12px, #fff 12px, #fff 24px);
  display: grid; place-items: center; text-align: center; padding: 1.2rem;
  color: var(--ink-mute); font-size: .85rem;
}

/* ---------- Project card ---------- */
.project {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.project .media-placeholder { border: 0; border-radius: 0; }
.project__body { padding: 1.3rem 1.4rem; }
.project__meta {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-mute);
}
.project__title { font-size: 1.08rem; margin: .35rem 0 .5rem; }
.project__body p:last-child { margin-bottom: 0; font-size: .93rem; }

/* ---------- Prose (legal pages) ---------- */
.prose h2 { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose dl { margin: 0 0 1.2rem; }
.prose dt { font-weight: 700; color: var(--ink); margin-top: .8rem; }
.prose dd { margin: 0 0 .3rem; }

/* ---------- Footer ---------- */
.site-footer { background: #051f33; color: #90b3cc; font-size: .92rem; padding-top: 3.4rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: #b9d5e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.6rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-brand img {
  height: 54px; width: auto; margin-bottom: 1.1rem;
  background: #fff; padding: 8px 10px; border-radius: var(--radius-sm);
}
.footer-brand p { margin-bottom: 0; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: #6d94b0;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1.2rem 1.3rem; font-size: .9rem;
}
.cookie-bar p { margin-bottom: .9rem; }
.cookie-bar .btn { padding: .6rem 1.1rem; font-size: .88rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.tbd { color: var(--solar-dark); font-style: italic; }
.stat__value .tbd { font-size: .62em; font-style: normal; letter-spacing: .01em; }

@media print {
  .site-header, .site-footer, .cookie-bar, .btn-row, .hero__art { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .hero, .page-head, .section--deep { background: none !important; color: #000 !important; }
  .hero h1, .page-head h1, .section--deep h2 { color: #000 !important; }
}
