/* Agence d'assurance Sabri Sellami — same tokens as the agency dashboard
   (brand green #296755, Noto Sans, slate borders, rounded-xl cards). */

@font-face { font-family: "Noto Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-semibold.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-bold.woff2") format("woff2"); }

:root {
  --brand: #296755;
  --brand-hover: #1f4f41;
  --brand-solid: #296755;
  --brand-solid-hover: #1f4f41;
  --brand-ring: rgba(41, 103, 85, 0.2);
  --brand-soft: rgba(41, 103, 85, 0.08);
  --background: #FFFFFF;
  --surface: #F9FAFB;
  --foreground: #0C1420;
  --muted-foreground: #64748B;
  --border: #E2E8F0;
  --card: #FFFFFF;
  --on-brand: #FFFFFF;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #438e78;
    --brand-hover: #56a48d;
    --brand-solid: #2f735f;
    --brand-solid-hover: #296755;
    --brand-ring: rgba(67, 142, 120, 0.35);
    --brand-soft: rgba(67, 142, 120, 0.14);
    --background: #0A0A0A;
    --surface: #121212;
    --foreground: #F2F2F2;
    --muted-foreground: #A3A3A3;
    --border: #262626;
    --card: #161616;
    --on-brand: #FFFFFF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.5vw, 30px); }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 8px 12px; border-radius: var(--radius-md);
}
.skip-link:focus { left: 8px; color: var(--on-brand); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--foreground); }
.brand:hover { color: var(--foreground); }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius-lg);
  background: var(--brand-solid); color: var(--on-brand);
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.brand-name { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; }
.brand-sub { display: block; font-size: 13px; color: var(--muted-foreground); line-height: 1.3; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: var(--radius-md);
  color: var(--foreground); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-lg); font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brand-solid); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-solid-hover); color: var(--on-brand); }
.btn-outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted-foreground); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

/* Hero */
.hero { padding: 64px 0 56px; }
@media (min-width: 768px) { .hero { padding: 96px 0 80px; } }
.hero-inner { max-width: 760px; }
.hero .lead { font-size: 18px; color: var(--muted-foreground); max-width: 640px; }
.hero .arabic { font-size: 18px; color: var(--foreground); margin: 16px 0 28px; font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card p { color: var(--muted-foreground); margin: 0; font-size: 15px; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-lg); margin-bottom: 16px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--muted-foreground);
}
.card-icon svg { width: 22px; height: 22px; }

/* About */
.about-text p { color: var(--foreground); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 15px; }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts span:first-child { color: var(--muted-foreground); }
.facts span:last-child { font-weight: 600; text-align: right; }
.notice {
  margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-xl);
  border: 1px solid var(--border); border-left: 4px solid var(--brand); background: var(--card);
}
.notice p { margin: 0; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card-icon { margin: 0; flex: none; }
.contact-label { display: block; font-size: 13px; color: var(--muted-foreground); }
.contact-value { font-weight: 600; word-break: break-word; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hours th { font-weight: 500; color: var(--muted-foreground); }
.hours td { text-align: right; font-weight: 600; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 24px; font-size: 14px; color: var(--muted-foreground); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 15px; color: var(--foreground); margin-bottom: 12px; }
.site-footer p, .site-footer address { margin: 0 0 6px; font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted-foreground); }
.site-footer a:hover { color: var(--brand); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 13px; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal .updated { color: var(--muted-foreground); font-size: 14px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 4px 24px; margin: 0; }
@media (min-width: 640px) { .legal dl { grid-template-columns: 220px 1fr; } }
.legal dt { color: var(--muted-foreground); }
.legal dd { margin: 0 0 8px; font-weight: 600; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
