/* Jarra marketing site. Palette, type scale, and ratios per
   docs/brand/Jarra-Brand-Guidelines-v1.docx v1.0.
   Shared by the English (/) and Arabic (/ar/) pages; RTL is handled with
   logical properties plus a small [dir="rtl"] block at the bottom. */

:root {
  --forest: #2e7d32;
  --accent: #66bb6a;
  --charcoal: #1a1a2e;
  --green-light: #a5d6a7;
  --green-pale: #e8f5e9;
  --slate: #64748b;
  --offwhite: #f8fafc;
  --text: #1e293b;
  --border: #e2e8f0;

  --display: 'Montserrat', 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Segoe UI', Calibri, -apple-system, Roboto, Arial, sans-serif;

  --shell: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-weight: 900;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}

h3 {
  font-weight: 700;
  font-size: 1.1875rem;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--charcoal);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

.skip {
  position: absolute;
  inset-inline-start: -9999px;
}

.skip:focus {
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 20;
  background: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(26 26 46 / 18%);
}

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.masthead .shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  color: var(--charcoal);
  text-decoration: none;
}

.nav a:hover {
  color: var(--forest);
}

.lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 600;
}

.lang:hover {
  border-color: var(--forest);
  background: var(--green-pale);
}

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

.hero {
  background:
    radial-gradient(1000px 420px at 82% -12%, var(--green-pale), transparent 70%),
    var(--offwhite);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.hero .shell {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .shell {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--forest);
  background: #fff;
  border: 1px solid var(--green-light);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--slate);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
}

.btn-primary:hover {
  background: #256428;
  color: #fff;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--charcoal);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--forest);
  background: var(--green-pale);
  color: var(--charcoal);
}

/* Phone mock: pure CSS/SVG, no external images. */

.mock {
  justify-self: center;
  width: min(280px, 78vw);
  aspect-ratio: 9 / 17.5;
  border-radius: 34px;
  background: var(--charcoal);
  padding: 11px;
  box-shadow: 0 26px 60px rgb(26 26 46 / 26%);
}

.mock-screen {
  height: 100%;
  border-radius: 25px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-bar {
  background: var(--forest);
  color: #fff;
  padding: 1.6rem 1rem 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9375rem;
}

.mock-bar span {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.85;
}

.mock-body {
  padding: 0.9rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.mock-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--slate);
}

.mock-card strong {
  display: block;
  color: var(--charcoal);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mock-card.is-live {
  background: var(--green-pale);
  border-color: var(--green-light);
}

.mock-cta {
  margin-top: 0.2rem;
  background: var(--accent);
  color: #14351a;
  text-align: center;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 10px;
  padding: 0.7rem;
}

/* ---------- generic sections ---------- */

.section {
  padding-block: clamp(3.25rem, 8vw, 5.5rem);
}

.section-alt {
  background: var(--offwhite);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 46em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  color: var(--slate);
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 1.9rem);
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--slate);
  font-size: 0.9875rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--forest);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.pillars {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.pillar h3 {
  margin-bottom: 0.35rem;
  color: var(--forest);
}

.pillar p {
  color: var(--slate);
  margin-bottom: 0;
  font-size: 0.9875rem;
}

/* ---------- availability strip ---------- */

.strip {
  background: var(--charcoal);
  color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.strip h2 {
  color: #fff;
}

.strip p {
  color: rgb(255 255 255 / 78%);
  max-width: 40em;
}

.strip .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgb(255 255 255 / 88%);
}

.strip .cta-row {
  margin-top: 1.75rem;
}

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

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.contact-list dt {
  font-weight: 600;
  color: var(--charcoal);
}

.contact-list dd {
  margin: 0 0 1rem;
  color: var(--slate);
}

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

.footer {
  background: var(--offwhite);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: start;
}

.footer h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer a {
  color: var(--charcoal);
  text-decoration: none;
}

.footer a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.footer .entity {
  color: var(--slate);
  margin: 0;
}

.footer .entity strong {
  color: var(--charcoal);
  font-weight: 600;
}

.footer-base {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--slate);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.footer-base p {
  margin: 0;
}

/* ---------- legal document pages ---------- */

.doc {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.doc-shell {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  margin-bottom: 0.4em;
}

.doc .meta {
  color: var(--slate);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.doc h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  margin-top: 2.75rem;
}

.doc h3 {
  font-size: 1.0625rem;
  margin-top: 1.75rem;
  color: var(--forest);
}

.doc ul,
.doc ol {
  padding-inline-start: 1.35rem;
  margin: 0 0 1.1em;
}

.doc li {
  margin-bottom: 0.5rem;
}

.doc .callout {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  margin: 0 0 2rem;
}

.doc .callout p:last-child {
  margin-bottom: 0;
}

.toc {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.6rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding-inline-start: 1.35rem;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

.toc li {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.9375rem;
}

th,
td {
  text-align: start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--offwhite);
  font-weight: 600;
  color: var(--charcoal);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Placeholders the client must replace before store submission. */

.fill {
  background: #fff4d6;
  border-bottom: 1px dashed #c79a11;
  padding: 0 0.2em;
  font-style: normal;
  white-space: nowrap;
}

/* ---------- Arabic / RTL ---------- */

[dir='rtl'] body,
[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3 {
  font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif;
}

[dir='rtl'] h1,
[dir='rtl'] h2 {
  letter-spacing: 0;
  line-height: 1.3;
}

[dir='rtl'] .eyebrow {
  letter-spacing: 0;
}

[dir='rtl'] .footer h3,
[dir='rtl'] .toc h2 {
  letter-spacing: 0;
}

[dir='rtl'] .mock-bar {
  font-family: 'Cairo', 'Noto Sans Arabic', Arial, sans-serif;
}

@media print {
  .masthead,
  .footer ul,
  .strip {
    display: none;
  }

  body {
    font-size: 11pt;
  }
}
