/* Chaibi Location BTP — colors of the owner app
   (lib/core/theme/tokens/app_colors.dart in chaibi-location-btp). */

@font-face {
  font-family: "Readex Pro";
  src: url("fonts/ReadexPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Readex Pro";
  src: url("fonts/ReadexPro-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy-900: #0b1636;
  --navy-700: #1f3a93;
  --navy-500: #3557d6;
  --navy-50: #e3e9ff;
  --yellow: #ffc21a;
  --orange: #ff9419;
  --on-yellow: #2a1f00;
  --canvas: #f6f4ef;
  --surface: #ffffff;
  --ink: #141a2e;
  --muted: #5a6275;
  --line: #e2e0d8;
  --link: #1f3a93;
  --radius: 22px;
  --shadow: 0 6px 24px rgb(11 22 54 / 8%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #090e1d;
    --surface: #111a33;
    --ink: #eef1fa;
    --muted: #a5adc4;
    --line: #23305a;
    --link: #9db2ff;
    --shadow: none;
  }
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Readex Pro", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--link);
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 600;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

/* Header */

.hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-500));
  color: #fff;
  padding-block-end: 4rem;
}

.hero a {
  color: inherit;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.langs {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.langs a {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
}

.langs a[aria-current="page"] {
  background: rgb(255 255 255 / 18%);
}

.hero-copy {
  max-width: 720px;
  padding-block-start: 3rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  margin-block: 0.4rem 1rem;
}

.eyebrow {
  color: var(--orange);
  font-weight: 600;
  margin: 0;
}

.hero .eyebrow {
  color: var(--yellow);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary,
.hero .btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--on-yellow);
}

.btn-secondary {
  border: 1px solid rgb(255 255 255 / 60%);
}

/* Sections */

section {
  padding-block: 3rem;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-block-start: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card h3 {
  margin: 0;
}

.price {
  font-size: 1.15rem;
  margin-block: 0.5rem 1rem;
}

.card a {
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0;
  margin-block-start: 1.5rem;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-block-end: 0.75rem;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-700);
  font-weight: 600;
}

.contact dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 0 0 1.25rem;
}

.contact dt {
  font-weight: 600;
}

.contact dd {
  margin: 0;
}

/* Long text (privacy policy) */

.prose {
  max-width: 760px;
  padding-block: 2rem 3rem;
}

.prose h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.prose h2 {
  font-size: 1.3rem;
  margin-block-start: 2.25rem;
}

.prose code {
  overflow-wrap: anywhere;
}

.page-head {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-500));
  color: #fff;
}

.page-head a {
  color: inherit;
}

/* Footer */

footer {
  border-block-start: 1px solid var(--line);
  padding-block: 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Phone numbers and URLs keep their left-to-right order in RTL text. */
.ltr {
  unicode-bidi: isolate;
  direction: ltr;
}
