/* Sahlivo — site styles
   Colours and shapes come from the brand kit in /brand/logo. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* brand */
  --teal: #0B3F3D;
  --teal-deep: #072F2D;
  --paper: #F3F7F5;
  --orange: #EE5A32;

  /* supporting */
  --white: #FFFFFF;
  --tint: #E4EEEA;
  --line: #D3E2DD;
  --body: #355856;
  --muted: #557270;
  --mint: #A9C6C0;
  --line-on-teal: rgba(243, 247, 245, 0.18);

  --font: "Outfit", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius-panel: clamp(28px, 4vw, 52px);
  --radius-card: 28px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  color: var(--teal);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 16px; }

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

/* ---------- shared pieces ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.h2 {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.04;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.down:hover svg { transform: translateY(3px); }

.btn-primary { background: var(--teal); color: var(--paper); }
.btn-primary:hover { background: var(--teal-deep); }

.btn-ghost { border-color: var(--line); color: var(--teal); }
.btn-ghost:hover { border-color: var(--teal); }

.btn-light { background: var(--paper); color: var(--teal); }
.btn-light:hover { background: var(--white); }

.btn-small { min-height: 44px; padding: 0 20px; font-size: 16px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 247, 245, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand { display: inline-flex; flex: none; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a:not(.btn) {
  font-size: 16px;
  color: var(--body);
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--teal); }

@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .site-header .wrap { min-height: 68px; }
  .brand img { height: 30px; }
}

/* ---------- hero ---------- */

.hero { padding-top: clamp(40px, 6vw, 76px); }

.kicker {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  color: var(--muted);
}
.kicker b { font-weight: 500; color: var(--teal); }
.kicker [lang="ar"] { font-size: 17px; line-height: 1; color: var(--teal); }
.kicker i { font-style: normal; color: var(--line); }

.hero h1 {
  margin-top: 0;
  max-width: 11ch;
  font-size: clamp(46px, 8.6vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.hero h1 .stop { color: var(--orange); }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px 48px;
  margin-top: clamp(28px, 3.6vw, 44px);
}
.hero-foot p {
  max-width: 33em;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 480px) {
  .actions { gap: 10px; }
  .actions .btn { padding: 0 20px; font-size: 16px; }
}

.hero-line { margin-top: clamp(36px, 5vw, 64px); }
.hero-line svg { width: 100%; height: auto; overflow: visible; }
.hero-line .line-narrow { display: none; }
.hero-line path {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 2.8s cubic-bezier(0.5, 0, 0.2, 1) both;
}
.hero-line circle {
  fill: var(--orange);
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 2.55s both;
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.hero-line-labels {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}
.hero-line-labels span:last-child { color: var(--teal); font-weight: 500; text-align: right; }

@media (max-width: 720px) {
  .hero-line .line-wide { display: none; }
  .hero-line .line-narrow { display: block; }
}

/* ---------- teal panels ---------- */

.panel {
  margin-inline: clamp(8px, 1.6vw, 24px);
  border-radius: var(--radius-panel);
  background: var(--teal);
  color: var(--mint);
}
.panel .wrap { padding-block: var(--section); }
.panel h2, .panel h3 { color: var(--paper); }
.panel .label { color: var(--mint); }

/* ---------- vision ---------- */

.vision { margin-top: var(--section); }

.vision-statement {
  margin-top: 28px;
  max-width: 17em;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.vision-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 6vw, 96px);
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-on-teal);
}
.vision-cols h3 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.vision-cols p { max-width: 30em; }

@media (max-width: 760px) {
  .vision-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- principles ---------- */

.principles { padding-top: var(--section); }

.section-head { max-width: 46rem; }
.section-head .h2 { margin-top: 20px; }
.section-head p:not(.label) { margin-top: 20px; max-width: 34em; font-size: 20px; line-height: 1.5; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}
.card {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}
.card svg { width: 56px; height: 56px; }
.card h3 {
  margin-top: clamp(40px, 6vw, 88px);
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1;
}
.card p { margin-top: 14px; }

.icon { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.icon .dot { fill: var(--orange); stroke: none; }

@media (max-width: 900px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; align-items: center; padding: 28px; }
  .card h3 { margin-top: 0; }
  .card p { grid-column: 1 / -1; margin-top: 18px; max-width: 34em; }
}

/* ---------- any business ---------- */

.anyone {
  margin-top: 20px;
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius-card);
  background: var(--tint);
}
.anyone-list {
  margin-top: 24px;
  max-width: 22em;
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--teal);
  text-wrap: balance;
}
.anyone-list span { color: var(--muted); }
.anyone-list .stop { color: var(--orange); }
.anyone-note { margin-top: 28px; max-width: 34em; }

/* ---------- difference ---------- */

.difference { padding-block: var(--section); }

.compare { margin-top: clamp(40px, 5vw, 64px); }
.compare li {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
  align-items: stretch;
}
.compare li > * { padding: 26px 32px; border-top: 1px solid var(--line); }
.compare li > :first-child { padding-left: 0; }

.compare-head > * {
  border-top: 0 !important;
  padding-block: 0 18px !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-head > :last-child {
  padding-top: 22px !important;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--white);
  color: var(--teal);
}

.compare h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.4; }
.compare .old { color: var(--muted); }
.compare .new {
  position: relative;
  padding-left: 58px;
  background: var(--white);
  color: var(--teal);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
.compare .new::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 37px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}
.compare li:last-child .new {
  padding-bottom: 34px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.compare .tag { display: none; }

@media (max-width: 860px) {
  .compare-head { display: none !important; }
  .compare li {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
  }
  .compare li > * { padding: 0; border: 0; }
  .compare h3 { font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .compare .tag {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
  }
  .compare .old { margin-top: 16px; }
  .compare .new { margin-top: 16px; padding: 16px 0 0 !important; border-top: 1px solid var(--line); border-radius: 0 !important; }
  .compare .new::before { display: none; }
  .compare .new .tag { display: flex; align-items: center; gap: 8px; }
  .compare .new .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px clamp(40px, 7vw, 112px);
  align-items: start;
}
.contact-grid .h2 { margin-top: 20px; }
.contact-grid .lede { margin-top: 24px; max-width: 26em; font-size: 20px; line-height: 1.5; }
.contact-phone { margin-top: 20px; font-size: 18px; color: var(--mint); }
.contact-phone a { color: var(--paper); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; white-space: nowrap; }
.contact-phone a:hover { color: var(--white); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; color: var(--paper); }
.field input,
.field textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--line-on-teal);
  border-radius: 16px;
  background: rgba(243, 247, 245, 0.06);
  color: var(--paper);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(169, 198, 192, 0.7); }
.field input:hover,
.field textarea:hover { border-color: rgba(243, 247, 245, 0.4); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--paper);
  background: rgba(243, 247, 245, 0.1);
}
.form .btn { justify-self: start; margin-top: 4px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- footer ---------- */

.site-footer { padding-block: clamp(48px, 6vw, 80px) 36px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 48px;
}
.footer-top img { height: 34px; width: auto; }
.footer-top p { margin-top: 16px; max-width: 22em; color: var(--muted); font-size: 16px; }
.footer-phone { color: var(--body); text-decoration: none; white-space: nowrap; }
.footer-phone:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-nav a {
  font-size: 16px;
  color: var(--body);
  text-decoration: none;
  padding: 6px 0;
}
.footer-nav a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }
.footer-base {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- small pages (thanks, 404) ---------- */

.simple-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.simple-page header { padding-block: 22px; }
.simple-page header img { height: 34px; width: auto; }
.simple-page main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  padding-block: 48px 96px;
}
.simple-page main svg { width: 72px; height: 72px; }
.simple-page h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1; letter-spacing: -0.04em; max-width: 12ch; }
.simple-page h1 .stop { color: var(--orange); }
.simple-page p { max-width: 30em; font-size: 20px; line-height: 1.5; }

/* ---------- reveal on scroll (only when script.js is running) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-line path, .hero-line circle { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn svg { transition: none; }
}
