/* Mersal site styles. Design source: Figma "Mersal" (1440px frames). */
:root {
  --primary: #b71f69;
  --primary-dark: #510e2e;
  --ink: #070113;
  --muted: #6a6b71;
  --body: #585b6f;
  --red: #ea1b29;
  --line: #e1e6eb;
  --font: "Poppins", system-ui, sans-serif;
  --wrap: 1280px;
}
html[lang="ar"] { --font: "Cairo", system-ui, sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] body { font-size: 17px; }
html[lang="ar"] .ticks li, html[lang="ar"] .feature p, html[lang="ar"] .svc li, html[lang="ar"] .card p, html[lang="ar"] .values li, html[lang="ar"] .vision p { font-size: 17px; }

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6; background: #fff; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible { outline-color: #fff; }
.menu-toggle:focus-visible ~ .head-actions .menu-btn { outline: 3px solid var(--primary); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 34px; border: 0; border-radius: 2px; cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff; font: 600 14px/1 var(--font); text-transform: uppercase; letter-spacing: .02em;
  transition: filter .2s;
}
.btn::after { /* soft circle on the trailing edge, as in the design */
  content: ""; position: absolute; inset-inline-end: -22px; top: 50%; width: 64px; height: 64px;
  border-radius: 50%; background: rgba(255,255,255,.18); transform: translateY(-50%);
}
.btn:hover { filter: brightness(1.12); }
.btn .arr { width: 14px; height: 14px; }
html[dir="rtl"] .arr { transform: scaleX(-1); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; text-transform: uppercase; text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo img { height: 64px; width: auto; }
.nav ul { display: flex; gap: 56px; }
.nav a { font-size: 18px; font-weight: 500; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--primary); }
.p-home .n-home, .p-about .n-about, .p-services .n-services, .p-projects .n-projects, .p-contact .n-contact {
  color: var(--primary); border-color: var(--primary);
}
.head-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-grid; place-content: center; min-height: 44px; min-width: 44px; font-weight: 600; font-size: 15px; color: var(--primary); border: 1px solid var(--primary); border-radius: 2px; padding: 8px 12px; }
.menu-btn { display: none; }
.menu-toggle { display: none; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; min-height: 674px; display: flex; align-items: center; color: #fff;
  background: linear-gradient(90deg, rgba(7,1,19,.75), rgba(7,1,19,.1) 70%), url(img/hero-home.jpg) center/cover; }
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 421px; background: url(img/lines.png) left top/contain no-repeat; opacity: .6; pointer-events: none; }
html[dir="rtl"] .hero::before, html[dir="rtl"] .page-hero::after { left: auto; right: 0; transform: scaleX(-1); }
html[dir="rtl"] .hero { background: linear-gradient(-90deg, rgba(7,1,19,.85), rgba(7,1,19,.55) 45%, rgba(7,1,19,.1) 80%), url(img/hero-home-rtl.jpg) center/cover; }
.hero .wrap { position: relative; }
.hero .eyebrow { font-size: 20px; font-weight: 500; color: #f3dde8; }
.hero h1 { margin-top: 40px; font-weight: 700; line-height: 1; }
.hero h1 span { display: block; font-size: 56px; letter-spacing: -.9px; }
.hero h1 strong { display: block; font-size: 92px; letter-spacing: -.9px; margin-top: 10px; }
.hero .tag { font-size: 30px; font-weight: 600; margin: 34px 0 30px; }

/* Feature cards under the hero */
.features { position: relative; z-index: 2; margin-top: -16px; }
.features .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(1328px, 100% - 40px); margin-inline: auto; }
.feature { display: flex; gap: 14px; background: #fff; border-radius: 6px; padding: 28px 22px; box-shadow: 0 10px 40px rgba(7,1,19,.08); transition: box-shadow .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1); }
.feature:hover { box-shadow: 0 16px 44px rgba(183,31,105,.16); transform: translateY(-2px); }
.feature:hover h2 { color: var(--primary); }
.feature svg { flex: none; width: 40px; height: 40px; color: var(--primary); margin-top: 22px; }
.feature h2 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.feature p { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; height: 300px; display: grid; place-content: center; text-align: center; color: #fff; background-size: cover; background-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(7,1,19,.35); }
.page-hero::after { content: ""; position: absolute; inset: 0 auto 0 0; pointer-events: none; width: 421px; background: url(img/lines.png) left top/contain no-repeat; opacity: .5; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: 48px; font-weight: 700; letter-spacing: -.01em; }
.page-hero p { font-size: 16px; font-weight: 500; margin-top: 12px; color: #f3dde8; }
.page-hero p a:hover { text-decoration: underline; }
.page-hero.tint::before { background: rgba(120, 40, 90, .45); }

/* Section heading */
.section { padding: 100px 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 20px; font-weight: 600; }
.kicker::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") center/contain no-repeat; }
.kicker span { border-bottom: 2px solid currentColor; padding-inline-end: 18px; }
.title { font-size: 36px; font-weight: 700; line-height: 1.35; margin-top: 12px; }
.center { text-align: center; }
.lead { font-size: 20px; max-width: 1000px; margin: 14px auto 0; }

/* About split */
.about { display: grid; grid-template-columns: 680px 1fr; gap: 40px; align-items: center; }
.about-media { position: relative; height: 470px; }
.about-media .a1 { position: absolute; inset-inline-start: 0; top: 0; width: 354px; height: 298px; object-fit: cover; border: 8px solid #fff; border-radius: 6px; z-index: 2; }
.about-media .a2 { position: absolute; inset-inline-start: 270px; top: 24px; width: 400px; height: 446px; object-fit: cover; }
.about-media .stat { position: absolute; inset-inline-start: 0; bottom: 0; width: 230px; padding: 22px 24px; background: var(--ink); color: #fff; font-size: 32px; font-weight: 600; line-height: 1.2; border-radius: 4px; z-index: 2; }
.ticks { margin: 22px 0 34px; display: grid; gap: 18px; font-size: 14px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); box-shadow: inset 0 0 0 5px var(--primary), inset 0 0 0 7px #fff; }
.ticks b, .hl { color: var(--primary); }
.about-copy .btn { margin-inline-start: 28px; }

/* Vision */
.vision { background: linear-gradient(90deg, rgba(255,255,255,.96) 55%, rgba(255,255,255,.7)), url(img/vision-bg.jpg) center/cover; padding: 30px 0; }
.vision .grid { display: grid; grid-template-columns: 1fr 480px; gap: 60px; align-items: center; }
.vision h2 { font-size: 36px; font-weight: 700; margin: 10px 0 20px; }
.vision p { font-size: 16px; line-height: 1.85; max-width: 62ch; }
.vision .kicker + p { margin-top: 18px; }
.vision p + .kicker { margin-top: 26px; }
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 44px -12px 44px auto; width: 60%; background: var(--primary); border-radius: 12px; }
html[dir="rtl"] .framed::before { inset: 44px auto 44px -12px; }
.framed img { position: relative; border-radius: 12px; width: 100%; aspect-ratio: 478 / 446; object-fit: cover; }

/* Cards (projects) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 24px rgba(7,1,19,.07); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 418 / 250; object-fit: cover; }
.card .body { padding: 20px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { color: var(--primary); font-size: 24px; font-weight: 700; text-align: center; }
.card p { font-size: 16px; line-height: 1.8; margin: 10px 0 18px; flex: 1; }
.card .btn { align-self: center; padding-inline: 74px; }
.card .read { align-self: center; font-weight: 600; font-size: 14px; text-decoration: underline; }

/* CTA band (replaces the design's video banner until a real video exists) */
.cta-band { position: relative; padding: 110px 0; text-align: center; color: #fff;
  background: linear-gradient(160deg, rgba(122,12,58,.78), rgba(7,1,19,.82) 45%, rgba(7,1,19,.82) 60%, rgba(122,12,58,.75)), url(img/video-bg.jpg) center/cover; }
.cta-band h2 { font-size: 36px; font-weight: 700; line-height: 1.3; max-width: 30ch; margin-inline: auto; text-wrap: balance; }
.cta-band p { font-size: 18px; max-width: 56ch; margin: 18px auto 32px; color: #f3dde8; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light::after { background: rgba(183,31,105,.12); }

/* Services */
.kicker-wrap { font-size: inherit; font-weight: inherit; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 42px; margin-top: 40px; }
.svc { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.svc > img { width: 100%; height: 221px; object-fit: cover; }
.svc .badge { width: 100px; height: 100px; margin: -50px auto 0; position: relative; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-content: center; }
.svc .badge svg { width: 44px; height: 44px; }
.svc .body { padding: 18px 30px 34px; }
.svc h3 { color: var(--primary); text-align: center; font-size: 20px; font-weight: 700; }
.svc .sub { font-size: 18px; font-weight: 500; margin: 14px 0 18px; }
.svc li { position: relative; padding-inline-start: 14px; font-size: 15px; margin-bottom: 12px; }
.svc li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* Core values */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.values-media { position: relative; padding: 30px 30px 30px 30px; }
.values-media::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 350px; height: 100px; background: var(--primary); border-radius: 4px; }
.values-media::after { content: ""; position: absolute; inset-inline-start: 285px; bottom: 0; width: 350px; height: 60px; background: var(--ink); border-radius: 4px; }
.values-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 636 / 421; object-fit: cover; }
.values-title { font-size: 24px; font-weight: 700; margin: 14px 0 18px; }
.values li b { font-weight: 700; color: var(--ink); }
.values li { font-size: 16px; line-height: 1.8; padding-inline-start: 24px; margin-bottom: 8px; }

/* Contact */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.info { display: flex; align-items: center; gap: 12px; padding: 34px 16px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; font-size: 16px; }
.info .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: grid; place-content: center; flex: none; }
.info .ic img { width: 20px; height: 20px; object-fit: contain; }
.contact-box { display: grid; grid-template-columns: 540px 1fr; gap: 40px; margin-top: 90px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.contact-box > img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.contact-box form { padding: 10px 40px 30px 0; }
html[dir="rtl"] .contact-box form { padding: 10px 0 30px 40px; }
.contact-box h2 { font-size: 40px; font-weight: 700; }
.contact-box .intro { font-size: 16px; font-weight: 500; margin: 8px 0 30px; max-width: 520px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px; max-width: 560px; }
.fields input, .fields textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 14px 12px; font: 16px var(--font); color: var(--ink); }
.fields textarea { grid-column: 1 / -1; min-height: 150px; resize: vertical; }
.contact-box .btn { margin-top: 18px; padding-inline: 100px; }
.form-note { font-size: 14px; margin-top: 12px; color: var(--muted); }

/* Project details */
.pd { display: grid; grid-template-columns: 1fr 450px; gap: 60px; }
.pd h2 { color: var(--primary); font-size: 40px; font-weight: 800; }
.pd .desc { color: var(--body); font-size: 16px; font-weight: 500; line-height: 1.7; margin: 18px 0 20px; max-width: 760px; white-space: pre-line; }
.pd-row { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.pd-row .thumb { position: relative; border-radius: 16px; overflow: hidden; }
.pd-row .thumb img { width: 100%; aspect-ratio: 300 / 275; object-fit: cover; }
.pd-row .thumb span { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: #fff; display: grid; place-content: center; color: var(--primary); }
.pd-feats li, .goals li { display: flex; gap: 14px; margin-bottom: 22px; }
.pd-feats .ic, .goals .ic { flex: none; width: 60px; height: 60px; border-radius: 10px; background: #eef1ff; color: var(--primary); display: grid; place-content: center; }
.pd-feats .ic svg, .goals .ic svg { width: 28px; height: 28px; }
.pd-feats h3 { font-size: 20px; font-weight: 800; }
.pd-feats p, .goals p { color: var(--body); font-size: 16px; font-weight: 500; }
.pd-media { position: relative; border-radius: 24px; overflow: hidden; align-self: start; }
.pd-media img { width: 100%; aspect-ratio: 455 / 553; object-fit: cover; }
.pd-media .years { position: absolute; inset-inline-start: 0; bottom: 0; background: var(--primary); color: #fff; padding: 20px 14px; border-start-end-radius: 16px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 18px; font-weight: 500; line-height: 1.2; }
.pd-media .years b { font-size: 50px; font-weight: 800; }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 24px; }
.goals h3 { font-size: 22px; font-weight: 700; }

/* Footer */
.site-footer { color: #fff; background: radial-gradient(ellipse at 30% 0%, #7a0c3a, transparent 60%), linear-gradient(180deg, #4a0b2a, #7a0c3a); }
.site-footer .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 36px 0 30px; }
.f-brand { display: flex; gap: 30px; align-items: flex-start; }
.f-brand img { width: 50px; flex: none; }
.f-brand p { font-size: 17px; line-height: 1.8; max-width: 420px; color: #f3dde8; }
.site-footer h4 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.f-links li { margin-bottom: 6px; }
.f-links a { display: flex; align-items: center; gap: 12px; font-size: 16px; min-height: 44px; }
.f-links a::before { content: ""; width: 32px; height: 20px; background: url(img/i-check.png) center/contain no-repeat; }
.f-links a:hover { text-decoration: underline; }
.f-contact li { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 16px; }
.f-contact img { width: 20px; height: 20px; object-fit: contain; }
.copy { background: var(--ink); text-align: center; padding: 12px; font-size: 14px; color: #c9bfd0; }
.copy b { font-weight: 600; margin-inline-start: 8px; }

/* Responsive */
@media (max-width: 1100px) {
  .nav ul { gap: 28px; }
  .features .grid, .cards { grid-template-columns: 1fr 1fr; }
  .about, .vision .grid, .values, .pd, .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { max-width: 680px; }
  .contact-box { grid-template-columns: minmax(0, 1fr); }
  .contact-box form, html[dir="rtl"] .contact-box form { padding: 20px; }
  .contact-box > img { min-height: 300px; }
  .pd-media { max-width: 450px; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; place-content: center; width: 44px; height: 44px; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; }
  .menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
  .nav { display: none; position: absolute; top: 80px; inset-inline: 0; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 20px; }
  .nav a { display: block; padding: 12px 0; border: 0; }
  .menu-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .menu-toggle:checked ~ .nav { display: block; }
  .head-actions .btn { display: none; }
  .hero { min-height: 560px; }
  .hero .eyebrow { font-size: 16px; } .hero .tag { font-size: 20px; }
  .hero h1 span { font-size: 38px; } .hero h1 strong { font-size: 60px; }
  .page-hero { height: 200px; } .page-hero h1 { font-size: 32px; } .page-hero p { font-size: 15px; }
  .hero::before, .page-hero::after { opacity: .18; width: 60%; }
  .section { padding: 64px 0; }
  .title, .vision h2 { font-size: 28px; }
  .features .grid, .cards, .info-cards, .goals, .fields, .site-footer .grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { height: auto; display: grid; gap: 12px; }
  .about-media .a1, .about-media .a2, .about-media .stat { position: static; width: 100%; height: auto; border: 0; }
  .about-media .a2 { display: none; }
  .about-media .a1 { aspect-ratio: 4 / 3; }
  .card img { aspect-ratio: 16 / 9; }
  .about-copy .btn { margin-inline-start: 0; }
  .pd-row { grid-template-columns: minmax(0, 1fr); }
  .values-media::after { display: none; }
  .cta-band { padding: 72px 0; }
  .cta-band h2 { font-size: 28px; }
  .copy b { display: block; margin: 4px 0 0; }
}

.svc { scroll-margin-top: 110px; }
.p-about .about-copy .btn { display: none; }
