.sol-section { padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 3rem); max-width: 1480px; margin: 0 auto; }
.sol-section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 720px; }
.sol-section__head .cap-overview__kicker { display: block; margin-bottom: 0.75rem; }
.sol-section__head .sol-section__lede { color: rgba(15, 13, 11, 0.62); font-size: 1.05rem; line-height: 1.6; margin-top: 1rem; }

.sol-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem);
  perspective: 1200px;
}
@media (max-width: 800px) { .sol-cards { grid-template-columns: 1fr; } }

.sol-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #FAF8F2;
  border: 1px solid rgba(15, 13, 11, 0.08);
  border-radius: var(--radius-xl, 22px);
  overflow: hidden;
  text-decoration: none; color: inherit;
  min-height: 480px;
  transition: transform 0.45s var(--ease, cubic-bezier(.2,.7,.2,1)),
              border-color 0.45s var(--ease, cubic-bezier(.2,.7,.2,1)),
              box-shadow 0.45s var(--ease, cubic-bezier(.2,.7,.2,1));
  isolation: isolate;
}
.sol-card.is-tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: none;
}
.sol-card:hover {
  border-color: rgba(255, 36, 60, 0.28);
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.45),
              0 0 0 1px rgba(255, 36, 60, 0.08);
}

/* IMAGE PLACEHOLDER — top third of card */
.sol-card__visual {
  height: 33%; min-height: 200px;
  position: relative;
  background: linear-gradient(135deg, #2A211D 0%, #15120F 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(245,242,234,0.06);
}
.sol-card.is-tilt .sol-card__visual { transform-style: preserve-3d; }

/* Card cover image (replaces placeholder pattern/icon) */
.sol-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 1; display: block; }

/* Generative pattern fill — placeholder ornament */
.sol-card__pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255, 36, 60, 0.12), transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(95, 227, 159, 0.08), transparent 40%),
    repeating-linear-gradient(135deg,
      rgba(245,242,234,0.03) 0 1px,
      transparent 1px 24px);
  transition: opacity 0.5s var(--ease, ease);
}
.sol-card__icon {
  position: relative; z-index: 2;
  width: 72px; height: 72px;
  color: #0F0D0B;
  opacity: 0.85;
  transition: transform 0.4s var(--ease, ease), color 0.3s var(--ease, ease);
}
.sol-card.is-tilt .sol-card__icon { transform: translateZ(40px); }
.sol-card:hover .sol-card__icon { color: var(--red, #FF243C); opacity: 1; }
.sol-card__index {
  position: absolute; top: 1.25rem; left: 1.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 11px; letter-spacing: 0.08em;
  color: rgba(245,242,234,0.45);
  z-index: 3;
}
.sol-card.is-tilt .sol-card__index { transform: translateZ(20px); }
:root[lang="ar"] .sol-card__index { left: auto; right: 1.5rem; }

/* BODY — bottom two-thirds */
.sol-card__body {
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1rem;
  flex: 1;
}
.sol-card.is-tilt .sol-card__body { transform-style: preserve-3d; }
.sol-card__title {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.2; font-weight: 600;
  margin: 0;
  transition: color 0.3s var(--ease, ease);
}
.sol-card.is-tilt .sol-card__title { transform: translateZ(28px); }
.sol-card:hover .sol-card__title { color: var(--red, #FF243C); }
.sol-card__desc {
  font-size: 0.98rem; line-height: 1.6;
  color: rgba(15, 13, 11, 0.62);
  margin: 0;
}
.sol-card.is-tilt .sol-card__desc { transform: translateZ(16px); }
.sol-card__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: auto;
  font-family: var(--font-mono, monospace);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0F0D0B;
  transition: transform 0.3s var(--ease, ease);
}
.sol-card.is-tilt .sol-card__cta { transform: translateZ(24px); }
.sol-card__cta svg { transition: transform 0.3s var(--ease, ease); }
:root[lang="ar"] .sol-card__cta svg { transform: scaleX(-1); }
.sol-card:hover .sol-card__cta svg { transform: translateX(4px); }
:root[lang="ar"] .sol-card:hover .sol-card__cta svg { transform: scaleX(-1) translateX(4px); }

/* === Solutions mega-4 dropdown (added) ========================================
   4-column variant of the existing nav mega menu, plus optional 'sub-title as
   link' styling for clickable category headings.                              */
.nav__dropdown--mega-4 .nav__dropdown-mega-grid{
  grid-template-columns:repeat(4,1fr);
  gap:28px;
}
.nav__dropdown--mega-4{
  /* Center the 4-column dropdown under the Solutions nav item (LTR).
     Override the parent .nav__dropdown--mega left:0 anchoring. */
  left:50%;
  right:auto;
  transform:translate(-50%, -8px);
  min-width:1080px;
  max-width:calc(100vw - 64px);
}
.nav__item-wrap:hover .nav__dropdown--mega-4,
.nav__item-wrap:focus-within .nav__dropdown--mega-4{
  transform:translate(-50%, 0);
}
/* RTL: there's a higher-specificity rule [dir="rtl"] .nav__dropdown--mega
   {right:0 !important} that wins, so use a stronger selector to anchor
   the centered version under the Solutions item in RTL too. */
[dir="rtl"] .nav__dropdown--mega.nav__dropdown--mega-4,
:root[lang="ar"] .nav__dropdown--mega.nav__dropdown--mega-4{
  right:50% !important;
  left:auto !important;
  transform:translate(50%, -8px);
}
[dir="rtl"] .nav__item-wrap:hover .nav__dropdown--mega.nav__dropdown--mega-4,
[dir="rtl"] .nav__item-wrap:focus-within .nav__dropdown--mega.nav__dropdown--mega-4,
:root[lang="ar"] .nav__item-wrap:hover .nav__dropdown--mega.nav__dropdown--mega-4,
:root[lang="ar"] .nav__item-wrap:focus-within .nav__dropdown--mega.nav__dropdown--mega-4{
  transform:translate(50%, 0);
}
.nav__dropdown-title--link{
  color:var(--text);
  text-decoration:none;
  transition:color 0.25s ease;
}
.nav__dropdown-title--link:hover{
  color:var(--red);
}
.m-drawer__sub-title--link{
  /* Inherit base sub-title styling (drawer is dark-themed) but make it a link. */
  font-family:var(--font-mono);
  font-size:10px;
  font-weight:500;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:rgba(245,242,234,0.55);
  padding:14px 0 8px;
  border-top:1px solid rgba(245,242,234,0.05);
  margin-top:6px;
  display:block;
  text-decoration:none;
  transition:color 0.25s ease;
}
.m-drawer__sub:first-child .m-drawer__sub-title--link:first-child,
.m-drawer__sub-title--link:first-child{
  border-top:0;
  margin-top:0;
  padding-top:6px;
}
.m-drawer__sub-title--link:hover{color:#F5F2EA;}
/* Tablet/mobile fallback for the desktop mega-4 when viewport is narrow but
   the desktop nav is still visible (e.g. ~960–1180px). Drop to 2 columns. */
@media (max-width:1180px){
  .nav__dropdown--mega-4{min-width:0;width:calc(100vw - 64px);}
  .nav__dropdown--mega-4 .nav__dropdown-mega-grid{grid-template-columns:repeat(2,1fr);}
}
/* ============================================================================ */
/* overview-hero-clearance: keep first section's eyebrow clear of the fixed header on mobile */
@media (max-width: 800px) { main > .sol-section:first-of-type { padding-top: clamp(6.5rem, 22vw, 8.5rem); } }
