/* ==========================================================================
   Selonia — Leading with trust
   Single-page production stylesheet.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --c-bg:            #F4F3F0;
  --c-surface:       #ffffff;
  --c-ink:           #12213A;
  --c-body:          #4A566B;
  --c-muted:         #6B7688;
  --c-accent:        #1F63B4;
  --c-accent-dark:   #164A88;
  --c-bullet:        #A9BBD2;
  --c-rule:          #D3DAE3;

  --c-hero:          #0B2440;
  --c-approach:      #0E4177;
  --c-contact:       #12539B;
  --c-footer:        #0B2748;
  --c-footer-link:   #86AEDC;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --shadow-card:       0 1px 2px rgba(16, 26, 46, .05), 0 18px 40px -24px rgba(16, 26, 46, .28);
  --shadow-card-hover: 0 1px 2px rgba(16, 26, 46, .05), 0 30px 56px -26px rgba(16, 26, 46, .36);
  --shadow-portrait:   0 16px 36px -22px rgba(16, 26, 46, .40);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease-pop: cubic-bezier(.2, .9, .3, 1.2);
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-dark); }

ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p  { text-wrap: pretty; }

.u-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero a:focus-visible,
.approach a:focus-visible,
.contact a:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible { outline-color: #fff; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- Shared pieces ------------------------------------------------------ */
.wrap { max-width: var(--wrap); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: #fff;
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; outline: 2px solid var(--c-accent); outline-offset: 2px; }

.eyebrow {
  margin: 0;
  color: var(--c-accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow--onDark { color: rgba(255, 255, 255, .68); }

.rule { margin-top: 22px; width: 48px; height: 2px; background: var(--c-rule); }
.rule--onDark { background: rgba(255, 255, 255, .45); }

.hr {
  margin: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--c-rule);
}

.icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--onDark { stroke: rgba(255, 255, 255, .9); }

.i-arrow {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s var(--ease-pop);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 4px;
  transition: transform .18s var(--ease-pop), background .18s ease, color .18s ease;
}
.btn:hover .i-arrow { transform: translateX(3px); }

.btn--glass {
  padding: 14px 22px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
}
.btn--glass:hover { background: rgba(255, 255, 255, .2); color: #fff; transform: translateY(-2px); }

.btn--outline {
  padding: 14px 24px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.btn--outline:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-2px); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 20px var(--gutter);
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  padding: 12px var(--gutter);
  background: rgba(9, 29, 56, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .10);
}
.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; color: #fff; }
.brand:hover { color: #fff; }
.brand__name {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -.005em;
}

.site-nav { display: flex; align-items: center; gap: clamp(6px, 2.2vw, 26px); }
.site-nav a {
  color: rgba(255, 255, 255, .86);
  font-size: 13.5px;
  padding: 6px 2px;
  transition: color .18s ease;
}
.site-nav a:hover,
.site-nav a[aria-current] { color: #fff; }

.nav-toggle {
  display: none;
  width: 40px; height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header.is-open .nav-toggle__bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.site-header.is-open .nav-toggle__bar:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 860px);
  display: flex;
  background: var(--c-hero);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 26, 50, .82) 0%, rgba(7, 26, 50, .34) 40%, rgba(7, 26, 50, .58) 100%),
    linear-gradient(90deg, rgba(7, 26, 50, .70) 0%, rgba(7, 26, 50, .12) 62%);
}
/* Faint contour lines across the lower-left of the hero. */
.hero__lines {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  pointer-events: none;
  opacity: .16;
  background-image: repeating-linear-gradient(
    -14deg,
    transparent 0 22px,
    rgba(255, 255, 255, .55) 22px 23px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 55%, transparent);
}

.hero__body {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(120px, 17vh, 172px) var(--gutter) clamp(48px, 8vh, 84px);
  display: flex;
  flex-direction: column;
  animation: riseIn .7s ease both;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  color: #fff;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 1.03;
  letter-spacing: -.028em;
}
.hero__lede {
  margin: clamp(22px, 3vh, 32px) 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(14.5px, 1.35vw, 16px);
  line-height: 1.72;
  max-width: 46ch;
}
.hero__actions { margin: clamp(26px, 4vh, 38px) 0 0; }

.hero__established {
  margin: auto 0 0 auto;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, .55);
  color: rgba(255, 255, 255, .88);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
}

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(58px, 8.5vw, 104px) var(--gutter); }
.section--light { background: var(--c-bg); }

.h2 {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.9vw, 42px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--c-ink);
}
.h2--onDark { color: #fff; }

/* --- About -------------------------------------------------------------- */
.about__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}
.about__intro .h2 { max-width: 12ch; }
.about__lede {
  margin: 24px 0 0;
  color: var(--c-body);
  font-size: 15px;
  line-height: 1.72;
  max-width: 46ch;
}

.factgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.factgrid__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(18px, 2.4vw, 28px) clamp(10px, 1.6vw, 20px);
  border-left: 1px solid var(--c-rule);
}
.factgrid__cell:nth-child(3n + 1) { border-left: 0; }
.factgrid__cell:nth-child(n + 4)  { border-top: 1px solid var(--c-rule); }

.factgrid__value {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 38px);
  line-height: 1;
  color: var(--c-accent);
}
.factgrid__label {
  margin: 8px 0 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.5;
}
.factgrid__label--lead { margin-top: 14px; }

/* --- Businesses --------------------------------------------------------- */
.businesses {
  background: var(--c-bg);
  padding: 0 var(--gutter) clamp(58px, 8.5vw, 104px);
}
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(34px, 5vw, 56px);
}
.section-head__sub {
  margin: 14px 0 0;
  color: var(--c-muted);
  font-size: 15px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start;
}
.biz-card {
  background: var(--c-surface);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease-pop), box-shadow .22s ease;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.biz-card__media { position: relative; height: 168px; }
.biz-card__media img { width: 100%; height: 100%; object-fit: cover; }
.biz-card__badge {
  position: absolute;
  left: 22px;
  bottom: 0;
  transform: translateY(50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-accent-dark);
  box-shadow: 0 6px 18px -8px rgba(4, 20, 44, .8);
}
.biz-card__badge svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.biz-card__body { padding: 40px clamp(20px, 2.4vw, 26px) clamp(22px, 2.4vw, 26px); }
.biz-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -.012em;
}
.biz-card__kicker {
  margin: 7px 0 0;
  color: var(--c-accent);
  font-size: 12.5px;
  font-weight: 600;
}
.biz-card ul { margin: 18px 0 0; display: grid; gap: 9px; }
.biz-card li {
  display: flex;
  gap: 10px;
  color: var(--c-body);
  font-size: 13.5px;
  line-height: 1.5;
}
.biz-card li::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--c-bullet);
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--c-accent);
  font-size: 13.5px;
  font-weight: 600;
}
.learn-more:hover .i-arrow { transform: translateX(3px); }

/* --- Approach ----------------------------------------------------------- */
.approach {
  background: var(--c-approach);
  padding: clamp(52px, 7.5vw, 92px) var(--gutter);
}
.approach__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.approach .h2 { max-width: 11ch; }

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.principle {
  padding: 0 clamp(14px, 1.8vw, 24px);
  border-left: 1px solid rgba(255, 255, 255, .22);
}
.principle:first-child { border-left: 0; padding-left: 0; }
.principle__title {
  margin: 16px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.principle p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 12.5px;
  line-height: 1.6;
}

/* --- Leadership --------------------------------------------------------- */
.leadership__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.leadership .h2 { max-width: 11ch; }

.leaders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3.5vw, 44px);
}
.leader {
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
}
.leader__portrait {
  flex: none;
  width: clamp(112px, 12vw, 148px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-portrait);
}
.leader__portrait img { width: 100%; height: 100%; object-fit: cover; }
.leader__caption { display: block; }
.leader__name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.7vw, 20px);
  letter-spacing: -.01em;
}
.leader__role {
  display: block;
  margin-top: 6px;
  color: var(--c-accent);
  font-size: 12.5px;
}
.leader__rule {
  display: block;
  margin-top: 12px;
  width: 26px;
  height: 2px;
  background: var(--c-rule);
}

/* --- Contact ------------------------------------------------------------ */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--c-contact);
  padding: clamp(40px, 5.5vw, 64px) var(--gutter);
}
.contact__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .10;
  background-image: repeating-linear-gradient(
    -14deg,
    transparent 0 26px,
    rgba(255, 255, 255, .6) 26px 27px
  );
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 42%, transparent 72%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 42%, transparent 72%, #000);
}
.contact__grid {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) auto;
  gap: clamp(22px, 3.5vw, 48px);
  align-items: center;
}
.contact__head { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px); }
.contact__icon {
  flex: none;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.contact__icon svg {
  width: 25px; height: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  color: #fff;
  font-size: clamp(24px, 2.9vw, 33px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.contact__lede {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  line-height: 1.65;
}
.contact__action { margin: 0; justify-self: end; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--c-footer);
  padding: clamp(40px, 5.5vw, 62px) var(--gutter) clamp(34px, 4.5vw, 52px);
}
.site-footer__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
}
.site-footer .brand__name { font-size: 24px; font-weight: 300; }
.site-footer__tagline {
  margin: 10px 0 0;
  color: var(--c-footer-link);
  font-size: 13.5px;
}
.site-footer__legal {
  margin: clamp(22px, 3vw, 38px) 0 0;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  line-height: 1.6;
}
.site-footer__col h2 {
  margin: 0;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.site-footer__col ul { margin-top: 14px; display: grid; gap: 10px; }
.site-footer__col ul a { color: rgba(255, 255, 255, .70); font-size: 13px; }
.site-footer__col ul a:hover { color: #fff; }
.site-footer address {
  margin-top: 14px;
  color: rgba(255, 255, 255, .70);
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}
.site-footer address a { color: rgba(255, 255, 255, .70); }
.site-footer address a:hover { color: #fff; }

.social { display: flex; gap: 10px; }
.social__link {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
  transition: background .18s ease, color .18s ease;
}
.social__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.social__link svg { width: 18px; height: 18px; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1040px) {
  .about__grid,
  .approach__grid,
  .leadership__grid { grid-template-columns: minmax(0, 1fr); }
  .about__intro .h2,
  .approach .h2,
  .leadership .h2 { max-width: none; }
  .contact__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .contact__head { grid-column: 1 / -1; }
  .contact__action { justify-self: start; }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__legal { margin-top: 18px; }
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .principle:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-header { padding: 14px var(--gutter); }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 0 4px;
  }
  .site-header.is-open { background: rgba(9, 29, 56, .94); backdrop-filter: blur(20px); }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { width: 100%; padding: 10px 0; font-size: 15px; }

  .hero { min-height: 0; }
  .hero__body { padding-top: 132px; }
  .hero__established { margin: clamp(40px, 8vh, 64px) auto 0 0; }

  .factgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factgrid__cell:nth-child(3n + 1) { border-left: 1px solid var(--c-rule); }
  .factgrid__cell:nth-child(odd)    { border-left: 0; }
  .factgrid__cell:nth-child(n + 3)  { border-top: 1px solid var(--c-rule); }

  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle { border-left: 0; padding-left: 0; }

  .leaders { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__head { flex-direction: column; align-items: flex-start; gap: 20px; }

  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .factgrid { grid-template-columns: minmax(0, 1fr); }
  .factgrid__cell { border-left: 0 !important; }
  .factgrid__cell + .factgrid__cell { border-top: 1px solid var(--c-rule); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
