:root {
  --ink: #0f1b2d;
  --muted: #5b6b80;
  --bg: #ffffff;
  --alt: #f4f6fa;
  --line: #e3e8ef;
  --brand: #e2572b;        /* terracotta */
  --brand-dark: #c4441c;
  --deep: #0f3d5e;         /* bleu Atlantique */
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ar"] { --font: "Tajawal", "Segoe UI", Tahoma, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.hidden { display: none; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: 5.5rem; }
.section.alt { background: var(--alt); }
.section-head { max-width: 640px; margin-block-end: 3rem; }
.section-head p:last-child { color: var(--muted); }
.eyebrow { color: var(--brand); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-block-end: .6rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 1rem; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin-block-end: .7rem; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; }
h3 { font-size: 1.2rem; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-wa { background: var(--wa); color: #fff; margin-block: 1.5rem; }
.btn-block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: 1.15rem; }
.logo b { color: var(--brand); font-weight: 800; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--deep); color: #fff; font-weight: 800; }
.menu { display: flex; gap: 2rem; font-weight: 500; }
.menu a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: .35rem .8rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--muted); font-family: "Inter", "Tajawal", sans-serif; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { padding-block: 5rem 6rem; background: radial-gradient(circle at 85% 20%, #fde4d9 0, transparent 45%), radial-gradient(circle at 10% 90%, #dcebf6 0, transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); margin-block: 1.3rem 2rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-block-start: 2rem; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--wa); font-weight: 800; margin-inline-end: .4rem; }

.hero-visual { position: relative; }
.mock { background: #fff; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(15,61,94,.18); overflow: hidden; transform: rotate(-2deg); }
html[dir="rtl"] .mock { transform: rotate(2deg); }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--alt); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dbe5; }
.mock-body { padding: 2rem 1.6rem 2.2rem; background: linear-gradient(160deg, var(--deep), #1b5b85); }
.mock-line { height: 14px; border-radius: 8px; background: rgba(255,255,255,.85); margin-block-end: .8rem; }
.mock-line.w70 { width: 70%; height: 20px; } .mock-line.w40 { width: 40%; background: var(--brand); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-block-start: 1.8rem; }
.mock-cards span { height: 80px; border-radius: 10px; background: rgba(255,255,255,.15); }
.float-card { position: absolute; background: #fff; border-radius: 12px; padding: .7rem 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.2; }
.float-card strong { font-size: 1.2rem; }
.float-card small { color: var(--muted); }
.fc1 { inset-inline-start: -24px; bottom: -22px; }
.fc1 strong { color: #f2a10c; }
.fc2 { inset-inline-end: -14px; top: 30%; }
.fc2 strong { color: var(--wa); }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.offer { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; transition: box-shadow .2s, transform .2s; }
.offer:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.offer.featured { border: 2px solid var(--brand); }
.tag { position: absolute; top: -13px; inset-inline-start: 1.5rem; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; }
.price { margin-block: .9rem .2rem; color: var(--muted); font-size: .9rem; }
.price b { font-size: 2.2rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.price .cur { font-weight: 600; color: var(--ink); }
.note { font-size: .85rem; color: var(--brand); font-weight: 600; }
.desc { color: var(--muted); margin-block: .8rem 1.2rem; }
.offer ul { margin-block-end: 1.8rem; display: grid; gap: .55rem; font-size: .95rem; }
.offer li { display: flex; gap: .55rem; }
.offer li::before { content: "✓"; color: var(--brand); font-weight: 800; flex-shrink: 0; }
.offer .btn { margin-block-start: auto; }
.offer-custom { background: var(--deep); color: #fff; border: 0; justify-content: center; }
.offer-custom .desc { color: #c9d8e4; }

/* Portfolio */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.work-img { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; }
.work-img span { background: rgba(255,255,255,.92); padding: .35rem .9rem; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.work-img.g1 { background: repeating-linear-gradient(45deg, #fbd9cb 0 14px, #f8cbb8 14px 28px); }
.work-img.g2 { background: repeating-linear-gradient(45deg, #d6e7f3 0 14px, #c7ddee 14px 28px); }
.work-img.g3 { background: repeating-linear-gradient(45deg, #e5e1f4 0 14px, #d9d3ef 14px 28px); }
.work-body { padding: 1.2rem 1.4rem 1.4rem; }
.work-body p { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; padding: 1.8rem 1.5rem; border-radius: var(--radius); background: var(--alt); }
.step .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem; margin-block-end: 1rem; }
.step h3 { margin-block-end: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-grid > div > p { color: var(--muted); }
.contact-info { display: grid; gap: .7rem; }
.contact-info b { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.form { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; width: 100%; color: var(--ink); }
html[dir="rtl"] .form input[dir="ltr"] { text-align: right; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.small { font-size: .82rem; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--ink); color: #b7c3d2; padding-block: 2rem; }
.footer .logo { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Thank-you page */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.thanks p { color: var(--muted); margin-block: 1rem 2rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .offers, .portfolio { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .burger { display: flex; }
  .menu { position: absolute; top: 70px; inset-inline: 0; flex-direction: column; gap: 0; background: #fff; border-block-end: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 1rem 1.25rem; border-block-start: 1px solid var(--line); }
  .section { padding-block: 4rem; }
  .offers, .portfolio, .steps, .form .row { grid-template-columns: 1fr; }
  .fc1 { inset-inline-start: 0; } .fc2 { inset-inline-end: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
