@font-face { font-family: Tajawal; src: url(/fonts/tajawal-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Tajawal; src: url(/fonts/tajawal-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #f7f5f0; --surface: #ffffff; --surface-2: #efece4; --fg: #13202c; --muted: #5c6873;
  --line: #e2ddd2; --navy: #0b1f33; --navy-2: #12304d; --gold: #c8962e; --gold-2: #e0b45a; --on-gold: #1b1405;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a1522; --surface: #10202f; --surface-2: #142838; --fg: #e9eef3; --muted: #9aa8b5; --line: #203447; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Tajawal, 'IBM Plex Sans Arabic', system-ui, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.75; font-size: 17px; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 28px; }
h3 { font-size: 20px; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .3px; margin: 0 0 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-weight: 700; }
nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--fg); }
nav .nav-cta { color: var(--on-gold); background: var(--gold); padding: 6px 16px; border-radius: 999px; font-weight: 700; }
@media (max-width: 640px) { nav a:not(.nav-cta) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border: 1.5px solid currentColor; }
.btn-sm { padding: 9px 20px; font-size: 15px; }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% -10%, var(--navy-2), var(--navy)); color: #f3f1ea; padding: 84px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin-bottom: 18px; }
.hero h1 span { color: var(--gold-2); }
.hero .lead { color: #c9d3dc; font-size: 19px; max-width: 560px; }
.hero .eyebrow { color: var(--gold-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-line { color: #f3f1ea; }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 22px; display: grid; gap: 14px; transform: rotate(-2deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); position: relative; }
.hc-row { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dot.g { background: #3ecf8e; } .dot.y { background: var(--gold-2); } .dot.r { background: #ef6b6b; }
.hc-line { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.hc-line.gold { background: var(--gold); }
.w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w90 { width: 90%; }
.hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hc-grid div { height: 64px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.hc-badge { position: absolute; bottom: -16px; left: 18px; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { display: none; } .hero { padding: 56px 0 64px; } }

/* Strip */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.strip-row div { display: flex; flex-direction: column; }
.strip-row b { font-size: 17px; }
.strip-row span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .strip-row { grid-template-columns: 1fr 1fr; } }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--surface-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; }

/* Work */
.work { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.project.feature { grid-row: span 2; border-color: var(--gold); }
.project p { margin: 0; }
.p-head { display: flex; align-items: center; gap: 14px; }
.p-head p { margin: 0; font-size: 14px; }
.p-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 24px; color: #fff; flex: none; }
.p-logo.m { background: linear-gradient(135deg, #11806a, #074d40); }
.p-logo.q { background: linear-gradient(135deg, #2f5d8a, #173350); }
.p-logo.s { background: linear-gradient(135deg, #b5852b, #7a5615); }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); direction: ltr; }
.project .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } .project.feature { grid-row: auto; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-weight: 700; margin-bottom: 6px; }
.steps b { font-size: 19px; }
.steps span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--navy); color: #f3f1ea; }
.contact .lead { color: #c9d3dc; margin: 0; }
.contact .eyebrow { color: var(--gold-2); }
.contact h2 { margin-bottom: 12px; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Hero photo */
.hero-photo { margin: 0; position: relative; justify-self: center; max-width: 380px; width: 100%; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 28px; border: 3px solid var(--gold); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); object-fit: cover; aspect-ratio: 4 / 5; }
.hero-photo figcaption { position: absolute; bottom: -18px; right: 50%; transform: translateX(50%); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 8px 20px; display: flex; flex-direction: column; align-items: center; line-height: 1.3; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); white-space: nowrap; }
.hero-photo figcaption span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .hero-photo { max-width: 260px; order: -1; } }

/* Price links in service cards */
.price-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--gold); }
.price-link::after { content: ' ←'; }

/* About */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.about-grid img { width: 100%; height: auto; border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; }
.about .lead { color: var(--muted); font-size: 18px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; }
.facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid img { max-width: 280px; } .facts { grid-template-columns: 1fr; } }

/* Projects */
.work { grid-template-columns: repeat(3, 1fr); }
.project.feature { grid-column: span 2; grid-row: span 1; }
.p-logo.r { background: linear-gradient(135deg, #c0532b, #7d2f12); }
.p-logo.f { background: linear-gradient(135deg, #5b4bb3, #33276e); }
.p-logo.a { background: linear-gradient(135deg, #3d4f63, #1d2a38); }
.link-more { color: var(--gold); font-weight: 700; font-size: 14px; margin-top: auto; }
.more-work { margin-top: 22px; color: var(--muted); }
.more-work a { color: var(--gold); font-weight: 700; }
@media (max-width: 1000px) { .work { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work { grid-template-columns: 1fr; } .project.feature { grid-column: auto; } }

/* Contact */
.btn-wa { background: #25d366; color: #06301a; }
.btn-wa:hover { background: #3ee07a; }
.contact .btn-line { color: #f3f1ea; }
.numbers { flex-basis: 100%; }
.numbers ul { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 6px 24px; }
.numbers li { font-size: 17px; }
.numbers a { color: #f3f1ea; }
.numbers li a + a { color: var(--gold-2); font-size: 14px; }
.contact .muted { color: #9fb0bf; }
@media (max-width: 520px) { .numbers ul { grid-template-columns: 1fr; } }

/* Floating WhatsApp button */
.wa-float { position: fixed; bottom: 18px; left: 18px; z-index: 20; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }

/* ===== Motion: hero background, round photo, rotating word, appear on scroll ===== */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.b1 { width: 420px; height: 420px; background: #c8962e; top: -140px; left: -80px; animation: drift1 16s ease-in-out infinite alternate; }
.b2 { width: 360px; height: 360px; background: #1f8f74; bottom: -160px; right: 10%; opacity: .35; animation: drift2 19s ease-in-out infinite alternate; }
.b3 { width: 260px; height: 260px; background: #3a6ea8; top: 30%; left: 40%; opacity: .25; animation: drift1 23s ease-in-out infinite alternate-reverse; }
.grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 30%, transparent); }
@keyframes drift1 { to { transform: translate(120px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, -50px) scale(1.1); } }

/* The title's changing word */
.rotator { color: var(--gold-2); display: inline-block; }
.rot-word { display: inline-block; transition: opacity .35s, transform .35s, filter .35s; }
.rot-word.out { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
.hero h1 { animation: rise .8s ease-out both; }
.hero .lead { animation: rise .8s .12s ease-out both; }
.hero .actions { animation: rise .8s .24s ease-out both; }
.hero .eyebrow { animation: rise .8s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Round photo inside a turning gold ring, with floating chips */
.hero-photo { max-width: 380px; display: grid; place-items: center; padding: 30px 10px 34px; animation: pop .9s .1s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.ring { position: relative; width: 300px; height: 300px; border-radius: 50%; padding: 6px; isolation: isolate; }
.ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--gold-2), transparent 30%, #1f8f74 50%, transparent 70%, var(--gold-2));
  animation: spin 6s linear infinite; }
.ring::after { content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(224, 180, 90, .35); z-index: -2; animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 4px solid var(--navy); aspect-ratio: 1; box-shadow: none; display: block; }
.hero-photo figcaption { bottom: 0; }
.chip { position: absolute; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(16, 32, 47, .85); color: #f3f1ea; border: 1px solid rgba(224, 180, 90, .45); backdrop-filter: blur(6px); white-space: nowrap; animation: float 4s ease-in-out infinite; direction: ltr; }
.c1 { top: 34px; right: 0; }
.c2 { top: 120px; left: -6px; animation-delay: -1s; }
.c3 { bottom: 96px; right: -10px; animation-delay: -2s; direction: rtl; }
.c4 { bottom: 40px; left: 6px; animation-delay: -3s; direction: rtl; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .ring { width: 230px; height: 230px; } .chip { font-size: 12px; } .c2 { top: 90px; } .c3 { bottom: 80px; } }

/* Buttons: soft shine */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.wa-float { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 10px 26px rgba(0, 0, 0, .3); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 26px rgba(0, 0, 0, .3); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 26px rgba(0, 0, 0, .3); } }

/* Cards lift with a gold glow */
.card:hover, .project:hover { box-shadow: 0 18px 40px rgba(200, 150, 46, .16); transform: translateY(-4px); }
.project { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card svg { transition: transform .3s; }
.card:hover svg { transform: scale(1.15) rotate(-6deg); }

/* Appear on scroll (only when the script runs, so nothing stays hidden without it) */
.js .pre { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .pre.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* FAQ */
.faq { max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.project .p-actions .btn { margin-top: 0; }
.project .btn-line { color: var(--fg); }

/* Story page (marbo3a.html) */
.story-hero { padding: 70px 0 60px; }
.story-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.story-hero .lead { color: #c9d3dc; max-width: 640px; font-size: 18px; }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.shots img { width: 220px; height: auto; border-radius: 22px; flex: none; scroll-snap-align: start; box-shadow: 0 16px 34px rgba(0, 0, 0, .18); }
.story-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.story-cols .card p { margin-top: 6px; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 700; }
.feat-list li span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .story-cols { grid-template-columns: 1fr; } .feat-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .feat-list { grid-template-columns: 1fr; } }

/* Phone held sideways (wide but short): photo and title side by side, smaller ring. */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 28px 0 36px; }
  .hero-grid { grid-template-columns: 1fr auto; gap: 24px; }
  .hero-photo { order: 0; max-width: 240px; padding: 16px 6px 26px; }
  .ring { width: 170px; height: 170px; }
  .chip { display: none; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 15px; }
}
@media (min-width: 1600px) { .wrap { max-width: 1240px; } }
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .wa-float { width: 46px; height: 46px; bottom: 10px; left: 10px; }
  .wa-float svg { width: 24px; height: 24px; }
  .hero-photo { margin-inline-start: 50px; }
}

/* Logo in the header (brand/logo.svg) */
img.mark { display: block; background: none; border-radius: 10px; }

/* Service pages */
.crumbs { display: flex; gap: 8px; font-size: 14px; color: #9fb0bf; margin-bottom: 14px; }
.crumbs a { color: var(--gold-2); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards-2 { grid-template-columns: 1fr; } }
.card-link { display: flex; flex-direction: column; color: inherit; }
.card-link .price-link { margin-top: auto; padding-top: 12px; }
.card h3 a:hover { color: var(--gold); }
.more-link { display: inline-block; margin-top: 12px; margin-inline-start: 16px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.more-link:hover { color: var(--fg); }
.en-name { display: block; font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 2px; margin-top: 6px; }
.contact .btn-line span { direction: ltr; }

/* Footer: links to every page, so search engines and people find them all */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.foot-links a:hover { color: var(--gold); }

/* English page */
.en { font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.en .chip, .en .tags li { direction: ltr; }
.en ~ .wa-float { left: auto; right: 18px; }
.shots figure { margin: 0; flex: none; scroll-snap-align: start; text-align: center; }
.shots figure img { display: block; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.contact .social a { color: var(--gold-2); }
