/* KALON — landing page. Palette and type follow the brand documents. */

:root {
  --navy: #0B1830;
  --navy-2: #13244A;
  --gold: #A69D65;
  --gold-soft: #C9C08A;
  --slate: #47627F;
  --sage: #5A9D7F;
  --ink: #1a1a1a;
  --muted: #5b6270;
  --ivory: #FBF9F4;
  --cream: #f5f1e6;
  --line: #e3ddcd;
  --on-navy: #ece7d9;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 4px;
}

/* Arabic: Naskh for display, Plex Sans Arabic for text */
:lang(ar) {
  --serif: 'Noto Naskh Arabic', 'Cormorant Garamond', Georgia, serif;
  --sans: 'IBM Plex Sans Arabic', 'Manrope', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--navy); }
h1, h2 { font-family: var(--serif); letter-spacing: -0.005em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -48px; z-index: 100;
  background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Brand ---------- */
.brandrow { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 36px; height: 36px; flex: none; }
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem; font-weight: 500; letter-spacing: 0.18em; color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--gold); color: var(--navy);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid var(--gold); border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: rgba(236, 231, 217, .35); }
.btn-ghost:hover { background: rgba(236, 231, 217, .08); border-color: var(--on-navy); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { text-decoration: none; font-size: 0.925rem; font-weight: 500; color: var(--navy); position: relative; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.lang { display: flex; align-items: center; gap: 2px; padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.lang a {
  text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); padding: 6px 8px; border-radius: var(--radius);
}
.lang a:lang(ar) { font-family: 'IBM Plex Sans Arabic', var(--sans); letter-spacing: 0; font-size: 0.9rem; }
.lang a:hover { color: var(--navy); }
.lang a[aria-current] { color: var(--navy); background: var(--cream); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.nav-toggle .bar { display: block; width: 24px; height: 1.5px; background: var(--navy); transition: transform .25s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 520px at 85% 20%, rgba(71, 98, 127, .35), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-navy);
  overflow: hidden;
}
[dir="rtl"] .hero {
  background:
    radial-gradient(1000px 520px at 15% 20%, rgba(71, 98, 127, .35), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: 48px;
  padding-block: clamp(72px, 12vw, 136px);
}
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; margin-bottom: 26px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
:lang(ar) .hero h1 { line-height: 1.35; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
:lang(ar) .hero h1 em { font-style: normal; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; max-width: 36em; color: rgba(236, 231, 217, .82); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-art { display: flex; justify-content: center; }
.hero-mark { width: min(100%, 400px); height: auto; overflow: visible; }
.hero-mark .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.65, 0, .35, 1) forwards; }
.hero-mark .d1 { animation-delay: .1s; }
.hero-mark .d2 { animation-delay: .45s; }
.hero-mark .d3 { animation-delay: .8s; animation-duration: 1.1s; }
.hero-mark .d4 { animation-delay: 1.35s; animation-duration: 1.3s; }
.hero-mark .pop { transform-origin: 99.6px 145.8px; transform: scale(0); animation: pop .6s 1.7s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 120px); }
.section-tint { background: var(--cream); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; }
:lang(ar) .section-head h2 { line-height: 1.45; }
.section-lead { margin-top: 18px; font-size: 1.075rem; color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  padding: clamp(28px, 4vw, 40px);
}
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.product .icon {
  width: 40px; height: 40px;
  fill: none; stroke: var(--slate); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
:lang(ar) .tag { letter-spacing: 0; font-size: 0.85rem; }
.tag-live { background: rgba(90, 157, 127, .14); color: #2f6b52; }
.tag-soon { background: var(--cream); color: #7a7243; }
.product h3 { font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
:lang(ar) .product h3 { font-size: 1.6rem; line-height: 1.5; }
.product-for { margin-top: 6px; font-weight: 500; color: var(--slate); }
.product-desc { margin-block: 18px 22px; color: var(--muted); }
.product .ticks { margin-bottom: 28px; }
.product-facts {
  margin: auto 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.product-facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #8a8f9e; }
:lang(ar) .product-facts dt { letter-spacing: 0; font-size: 0.85rem; }
.product-facts dd { margin: 4px 0 0; font-weight: 500; color: var(--navy); }
.product .btn { align-self: flex-start; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.78em;
  width: 12px; height: 1.5px; background: var(--sage);
}

/* Custom development */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 32px; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(11, 24, 48, .35); }
.card .icon {
  width: 30px; height: 30px; margin-bottom: 22px;
  fill: none; stroke: var(--slate); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--muted); }

/* Commitments */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.principle {
  display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; row-gap: 6px;
  padding-block: 30px; border-top: 1px solid var(--gold);
}
.principle .num {
  grid-row: span 2; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; color: var(--gold);
}
.principle h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.25; }
:lang(ar) .principle h3 { font-size: 1.35rem; line-height: 1.5; }
.principle p { color: var(--muted); }

/* Process */
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.two-col .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 22px;
  padding-block: 26px; border-bottom: 1px solid var(--line);
}
.steps li:first-child { padding-top: 0; }
.steps .n {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-size: 1.35rem; font-variant-numeric: lining-nums;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 9px 0 6px; }
.steps p { color: var(--muted); }

/* Contact */
.contact { background: var(--navy); color: var(--on-navy); padding-block: clamp(72px, 10vw, 120px); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.contact h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.1; margin-bottom: 20px; }
:lang(ar) .contact h2 { line-height: 1.45; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding-block: 20px; border-top: 1px solid rgba(166, 157, 101, .45); }
.contact-list li:last-child { border-bottom: 1px solid rgba(166, 157, 101, .45); }
.contact-list .k { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
:lang(ar) .contact-list .k { letter-spacing: 0; font-size: 0.85rem; }
.contact-list a { font-size: 1.15rem; font-weight: 500; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-soft); }
[dir="rtl"] .contact-list a[dir="ltr"] { display: inline-block; }

/* Footer */
.site-footer { background: #081226; color: rgba(236, 231, 217, .6); font-size: 0.875rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.site-footer .brand { color: var(--on-navy); font-size: 1.2rem; }
.site-footer .mark { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards:not(.cards-3) { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col .section-head { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 20px 30px -20px rgba(11, 24, 48, .25);
  }
  .nav[hidden] { display: none; }
  .nav > a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; }
  .lang { justify-content: center; border: 0; padding: 16px 0 0; gap: 8px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .hero-mark { width: min(56vw, 240px); }

  .principles { grid-template-columns: 1fr; }
  .products, .cards-3 { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .product .btn { align-self: stretch; }
  .actions .btn { flex: 1 1 100%; }
  .principle { grid-template-columns: 36px 1fr; column-gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark .draw { animation: none; stroke-dashoffset: 0; }
  .hero-mark .pop { animation: none; transform: none; }
  .card, .card:hover { transition: none; transform: none; }
}
