/* HABiVELO — logical properties throughout so the Arabic (RTL) build mirrors automatically. */
:root {
  --sage: #6B8262;
  --sage-dark: #4F6348;
  --sage-soft: #E3E8DD;
  --ink: #232523;
  --ink-2: #4A4D49;
  --muted: #6E716C;
  --paper: #F5F4EF;
  --paper-2: #ECEBE4;
  --white: #FFFFFF;
  --forest: #1E2620;
  --line: #DAD9D1;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --font-display: "Jost", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
.lang-ar {
  --font-display: "IBM Plex Sans Arabic", "Jost", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.35; font-weight: 500; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-dark); font-weight: 500; margin-bottom: 1rem; }
.lang-ar .eyebrow { letter-spacing: 0; font-size: .9rem; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 46rem; }
.big { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-2); }
.muted { color: var(--muted); }
.num { display: inline-block; font-family: "Jost", sans-serif; font-size: .85rem; color: var(--sage); letter-spacing: .1em; margin-bottom: .8rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: .88rem; }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sage-soft); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.actions.center { justify-content: center; }
.link { display: inline-flex; gap: .4em; color: var(--sage-dark); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lang-ar .link span, .lang-ar .btn span { transform: scaleX(-1); display: inline-block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,244,239,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: .93rem; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--sage); }
.nav-cta-mobile { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { font-size: .9rem; text-decoration: none; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; }
.lang:hover { background: var(--paper-2); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; inset-inline: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,21,.15) 0%, rgba(20,26,21,.35) 45%, rgba(20,26,21,.82) 100%); }
.hero-content { position: relative; padding-block: clamp(80px, 12vw, 140px) clamp(48px, 7vw, 88px); width: 100%; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); font-weight: 300; max-width: 14ch; }
.lang-ar .hero h1 { font-weight: 500; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.88); }
.hero .eyebrow { color: #CFDCC7; }

.page-hero { padding-block: clamp(72px, 10vw, 128px) clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 300; max-width: 18ch; }
.lang-ar .page-hero h1 { font-weight: 500; }
.page-hero.simple { min-height: 60vh; display: grid; place-items: center; }
.page-hero.simple h1, .page-hero.simple .lead { margin-inline: auto; }
.page-hero-img { max-width: var(--wrap); margin: clamp(32px, 5vw, 56px) auto 0; padding-inline: var(--gutter); }
.page-hero-img img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius-lg); }

/* Sections */
.section { padding-block: var(--section); }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--forest); color: #E9ECE6; }
.section.dark .pillar { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section.dark .pillar p, .section.dark .note { color: #B9C1B5; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .h2 { margin: 0; }
.section-head p { margin: 0; }

.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 34px 12px; text-align: center; border-inline-start: 1px solid rgba(255,255,255,.1); }
.stats-grid div:first-child { border: 0; }
.stats-grid strong { display: block; font: 300 clamp(2rem, 4vw, 2.8rem)/1.1 "Jost", sans-serif; color: #CFDCC7; }
.stats-grid span { font-size: .88rem; color: rgba(255,255,255,.7); }

.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.pillars.four { grid-template-columns: repeat(4, 1fr); }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: var(--muted); margin: 0; font-size: .95rem; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4/5; background: var(--ink); }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); opacity: .9; }
.svc-card:hover img { transform: scale(1.05); }
.svc-card div { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(transparent, rgba(15,20,16,.85)); }
.svc-card h3 { font-size: 1.3rem; margin-bottom: .2em; }
.svc-card p { font-size: .85rem; margin: 0; color: rgba(255,255,255,.8); }
.svc-card:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.svc-card:first-child h3 { font-size: 1.8rem; }

.living-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.living-img img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.loop { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 2px; counter-reset: l; }
.loop li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.loop strong { font-family: var(--font-display); font-weight: 500; color: var(--sage-dark); }
.loop span { color: var(--muted); }

.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sol-card { text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(30,38,32,.35); }
.sol-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.sol-body { padding: 20px; }
.sol-body .eyebrow { font-size: .7rem; margin-bottom: .5rem; }
.sol-body h3 { font-size: 1.3rem; margin: 0; }

.process { list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process li { border-top: 2px solid var(--sage); padding-top: 22px; }
.process h3 { font-size: 1.35rem; }
.process p { color: var(--muted); font-size: .95rem; margin: 0; }

.chips { list-style: none; padding: 0; margin: 32px 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.lang-ar .chips { justify-content: flex-end; }
.chips li { font: 400 1.1rem/1 "Jost", sans-serif; padding: 14px 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

.faq { border-top: 1px solid var(--line); margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; }
.lang-ar .faq summary { padding: 22px 0 22px 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font: 300 1.6rem/1 "Jost", sans-serif; color: var(--sage); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary h3 { font: 500 1.08rem/1.4 var(--font-body); margin: 0; }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 62ch; }

.cta-band { background: var(--sage-dark); color: #fff; padding-block: clamp(56px, 8vw, 96px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 300; }
.lang-ar .cta-inner h2 { font-weight: 500; }
.cta-inner p { color: rgba(255,255,255,.82); max-width: 40rem; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Feature rows (services, smart living) */
.features { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; scroll-margin-top: 100px; }
.feature.flip .feature-img { order: 2; }
.feature-img img { border-radius: var(--radius-lg); aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.feature-body p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 8px; border-inline-start: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage); transform: rotate(-45deg); }
.lang-ar .ticks li::before { transform: rotate(45deg) scaleX(-1); }

.sol-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sol-detail { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sol-detail img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.sol-detail-body { padding: clamp(24px, 3vw, 36px); }
.sol-detail-body p { color: var(--ink-2); }
.sol-detail .ticks { margin-bottom: 0; }

.eras { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eras li { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.eras li span { font: 400 .8rem/1 "Jost", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lang-ar .eras li span { letter-spacing: 0; font-family: var(--font-body); }
.eras h3 { font-size: 1.6rem; margin-top: 14px; }
.eras p { color: var(--muted); margin: 0; }
.eras li.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.eras li.on span, .eras li.on p { color: rgba(255,255,255,.82); }
.note { margin-top: 32px; font-size: .92rem; }

.prose p { color: var(--ink-2); }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form abbr { color: var(--sage-dark); text-decoration: none; }
.form input:not([type=checkbox]), .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sage); outline-offset: 0; border-color: var(--sage); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .9rem; font-weight: 500; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; font-weight: 400 !important; cursor: pointer; }
.checks .check { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.checks .check:has(input:checked) { background: var(--sage-soft); border-color: var(--sage); }
.check input { accent-color: var(--sage); width: 16px; height: 16px; margin: 0; }
.consent { font-size: .88rem !important; color: var(--ink-2); }
.form .btn { justify-self: start; }
.hp { position: absolute; inset-inline-start: -9999px; }
.contact-aside { position: sticky; top: 110px; }
.contact-aside .btn { margin: 8px 0 28px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--sage-dark); }
.lang-ar [dir="ltr"] { unicode-bidi: isolate; }

/* Footer */
.site-footer { background: var(--paper-2); padding-top: clamp(56px, 7vw, 88px); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand img { width: 180px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 26ch; }
.site-footer h2 { font: 500 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.lang-ar .site-footer h2 { letter-spacing: 0; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--sage-dark); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 56px; padding-block: 24px; color: var(--muted); font-size: .85rem; }

.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }

/* Reveal on scroll (enabled by JS only) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .svc-grid, .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card:first-child { grid-row: auto; aspect-ratio: 16/9; }
  .pillars.four { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 76px 0 0 0; flex-direction: column; gap: 0; padding: 24px var(--gutter); background: var(--paper); margin: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; overflow-y: auto; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { font: 400 1.6rem/1.2 var(--font-display); padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-cta-mobile { display: inline-flex !important; margin-top: 28px; font-size: 1rem !important; border: 0 !important; }
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .header-inner { min-height: 68px; }
  .nav { inset-block-start: 68px; }
  .brand img { width: 140px; }
  .menu-open { overflow: hidden; }
  .section-head, .intro-grid, .living-grid, .feature, .contact-grid, .sol-detail-grid { grid-template-columns: 1fr; }
  .feature.flip .feature-img { order: 0; }
  .pillars, .eras { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-inline-start: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .contact-aside { position: static; }
  .loop li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 600px) {
  .svc-grid, .sol-grid, .pillars.four, .process, .row2 { grid-template-columns: 1fr; }
  .svc-card:first-child { grid-column: auto; }
  .svc-card { aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 82vh; }
  .actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .page-hero-img img { aspect-ratio: 4/3; }
}

/* Homepage: benefit panels (Savant-style) */
.benefits { display: grid; }
.benefit { display: grid; grid-template-columns: 1.15fr 1fr; min-height: min(78vh, 720px); background: var(--white); }
.benefit:nth-child(even) { background: var(--paper-2); }
.benefit.flip .benefit-img { order: 2; }
.benefit-img { overflow: hidden; }
.benefit-img img { width: 100%; height: 100%; object-fit: cover; }
.benefit-body { align-self: center; padding: clamp(40px, 7vw, 112px); max-width: 640px; }
.benefit-body h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; }
.lang-ar .benefit-body h3 { font-weight: 500; }
.benefit-body p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 1.6rem; }

/* Homepage: swipeable services rail (Basalte-style) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 24%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 20px; scrollbar-width: thin; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.rail-card { scroll-snap-align: start; text-decoration: none; color: inherit; }
.rail-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); transition: transform .6s var(--ease); }
.rail-card:hover img { transform: scale(1.02); }
.rail-card div { padding: 16px 2px 0; }
.rail-card h3 { font-size: 1.3rem; margin-bottom: .2em; }
.rail-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Homepage: inspire */
.inspire-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.inspire-card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--ink); color: #fff; }
.inspire-card img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .8s var(--ease); }
.inspire-card:hover img { transform: scale(1.04); }
.inspire-card figcaption { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(transparent, rgba(15,20,16,.88)); }
.inspire-card h3 { font-size: 1.35rem; margin-bottom: .25em; }
.inspire-card p { font-size: .88rem; color: rgba(255,255,255,.82); margin: 0; }
.plan { border-top: 3px solid var(--sage); }

@media (max-width: 1080px) {
  .inspire-grid { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-auto-columns: minmax(240px, 40%); }
}
@media (max-width: 900px) {
  .benefit { grid-template-columns: 1fr; min-height: 0; }
  .benefit.flip .benefit-img { order: 0; }
  .benefit-img img { aspect-ratio: 4/3; }
  .benefit-body { padding: 40px var(--gutter) 56px; }
}
@media (max-width: 600px) {
  .rail { grid-auto-columns: 78%; }
  .inspire-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .inspire-card figcaption { padding: 14px; }
  .inspire-card p { display: none; }
}

/* Brand wall */
.brand-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 36px 0 14px; }
.lang-ar .brand-label { letter-spacing: 0; font-size: .9rem; }
.brand-wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.brand-wall li { display: grid; place-items: center; min-height: 92px; padding: 12px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: var(--white); font: 500 1.15rem/1.2 "Jost", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8A8D87; text-align: center; transition: color .3s var(--ease); }
.brand-wall li:hover { color: var(--ink); }
.platforms .brand-wall:first-of-type { grid-template-columns: repeat(6, 1fr); }
.small { font-size: .82rem; margin-top: 20px; }
@media (max-width: 900px) { .brand-wall, .platforms .brand-wall:first-of-type { grid-template-columns: repeat(3, 1fr); } .brand-wall li { min-height: 72px; font-size: .95rem; } }
@media (max-width: 480px) { .brand-wall, .platforms .brand-wall:first-of-type { grid-template-columns: repeat(2, 1fr); } }

/* Savant-style header */
.site-header { background: rgba(255,255,255,.96); }
.header-inner { min-height: 84px; }
.nav { margin-inline: auto; gap: 34px; }
.nav a { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.lang-ar .nav a { font-size: .95rem; letter-spacing: 0; }
.header-cta { border-radius: 4px; min-height: 42px; padding: 0 22px; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
.lang-ar .header-cta { letter-spacing: 0; font-size: .9rem; }
.lang { font-size: .78rem; letter-spacing: .08em; }
video.hero-img { background: #1a1f1b; }
@media (max-width: 900px) {
  .nav a { font-size: 1.4rem; letter-spacing: .04em; text-transform: none; }
  .lang-ar .nav a { font-size: 1.4rem; }
}
