/* Majar Contracting — majarsa.com */
:root {
  --green: #0D3A33;
  --green-2: #134a41;
  --green-deep: #082924;
  --teal: #1FAE9A;
  --teal-ink: #137a6c;
  --silver: #C9D1CF;
  --mist: #EEF3F1;
  --ink: #1B2A27;
  --ink-soft: #4E5F5B;
  --line: #D6E0DD;
  --white: #ffffff;
  --radius: 6px;
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--teal); color: var(--white); padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--teal); color: var(--green-deep); }
.btn-solid:hover { background: #2bc4ae; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-wa { background: var(--white); color: var(--green); }
.btn-wa svg { width: 22px; height: 22px; fill: #1f9d55; }
.btn-wa:hover { background: var(--mist); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 62px; height: auto; flex: none; }
.brand-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.brand-ar { font-weight: 600; font-size: 15px; color: var(--green); }
.brand-en { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .01em; }
html[lang="en"] .brand-name { flex-direction: column-reverse; }
html[lang="en"] .brand-en { font-size: 15px; font-weight: 600; color: var(--green); }
html[lang="en"] .brand-ar { font-size: 12px; font-weight: 400; color: var(--ink-soft); }

.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--teal); }
.nav .nav-contact-link { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  font: 500 14px/1 var(--font); color: var(--green);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 40px; padding: 0 12px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--green); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; background: var(--green); display: block; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: var(--green);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before { /* faint large arc echoing the logo */
  content: ""; position: absolute;
  width: 1100px; height: 1100px; border-radius: 50%;
  border: 1px solid rgba(201,209,207,.12);
  inset-inline-end: -420px; top: 60px;
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end;
  padding-block: 72px 0;
  position: relative;
}
.hero-text { padding-bottom: 72px; }
.hero-kicker { color: var(--silver); font-size: 16px; margin-bottom: 18px; }

/* The five steps: the slogan as a real sequence */
.steps { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; position: relative; padding-inline-start: 30px; font-weight: 600; }
.steps::before { content: ""; position: absolute; inset-inline-start: 6px; top: .62em; bottom: .62em; width: 2px; background: linear-gradient(to bottom, rgba(31,174,154,.35), var(--teal)); }
.step { position: relative; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.18; color: var(--white); }
.step::before { content: ""; position: absolute; inset-inline-start: -30px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--green); border: 2px solid var(--teal); }
.step-last::before { background: var(--teal); box-shadow: 0 0 0 5px rgba(31,174,154,.22); }
.step:nth-child(1) { color: rgba(255,255,255,.62); }
.step:nth-child(2) { color: rgba(255,255,255,.72); }
.step:nth-child(3) { color: rgba(255,255,255,.82); }
.step:nth-child(4) { color: rgba(255,255,255,.92); }
html[lang="en"] .step { letter-spacing: -.01em; }

.hero-lede { font-size: 18px; color: #d9e3e0; max-width: 34em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-arch { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero-arch::before { /* silver dome over the photo, echoing the logo's arc */
  content: ""; position: absolute; top: -18px; left: -18px; right: -18px; aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0; border: 2px solid var(--silver); border-bottom: 0;
  pointer-events: none;
}
.hero-arch img { width: 100%; aspect-ratio: 852 / 1060; object-fit: cover; object-position: center top; border-radius: 999px 999px 0 0; }

/* Sections */
.section { padding-block: 88px; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; color: var(--green); margin-bottom: 28px; }
.section-title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--teal); margin-top: 14px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.about-body { max-width: 44em; }
.about-lead { font-size: 21px; line-height: 1.7; color: var(--green); font-weight: 500; }
html[lang="en"] .about-lead { line-height: 1.55; }
.about-body p { color: var(--ink-soft); }
.about-body .about-lead { color: var(--green); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 16px 0; padding-inline-end: 40px; }
.facts > div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; color: var(--green); }

/* Services */
.services { background: var(--mist); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.service { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.service-icon { width: 44px; height: 44px; fill: none; stroke: var(--teal-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 21px; color: var(--green); margin-bottom: 8px; font-weight: 600; }
.service p { color: var(--ink-soft); margin: 0; font-size: 16.5px; }
.also { margin-top: 36px; padding: 24px 28px; background: var(--white); border-radius: var(--radius); border-inline-start: 4px solid var(--teal); display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; }
.also-title { font-size: 17px; color: var(--green); font-weight: 600; }
.also-list { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ink); font-size: 16px; }
.also-list li { position: relative; }
.also-list li + li::before { content: ""; position: absolute; inset-inline-start: -16px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); margin-top: -2px; }

/* Work gallery */
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0 32px; }
.work-note { color: var(--ink-soft); margin-bottom: 28px; max-width: 32em; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px; grid-auto-flow: dense; gap: 12px;
}
.g { position: relative; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-btn { all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; position: relative; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.g-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-btn:hover img { transform: scale(1.03); }
.g-cap {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 28px 14px 10px; font-size: 14.5px; font-weight: 500; color: var(--white);
  background: linear-gradient(to top, rgba(8,41,36,.85), rgba(8,41,36,0));
}

/* Contact */
.contact { background: var(--green); color: var(--white); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; border: 1px solid rgba(201,209,207,.12); inset-inline-start: -300px; bottom: -420px; pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; position: relative; }
.contact-logo { width: 200px; margin-bottom: 28px; }
.contact .section-title { color: var(--white); }
.contact-intro p { color: #d9e3e0; max-width: 28em; }
.contact-cta { margin-top: 24px; }
.contact-list { border-top: 1px solid rgba(255,255,255,.16); }
.contact-list li { display: grid; grid-template-columns: 150px 1fr; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); align-items: baseline; }
.c-label { color: var(--silver); font-size: 15px; }
.c-value { font-size: 20px; font-weight: 600; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
a.c-value:hover { color: var(--teal); }
html[dir="rtl"] a.c-value[dir="ltr"] { text-align: right; }
.c-map { grid-column: 2; color: var(--teal); font-size: 15px; font-weight: 500; }
.c-map:hover { color: #5fd6c4; }

/* Footer */
.site-footer { background: var(--green-deep); color: var(--silver); font-size: 14.5px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.footer-row p { margin: 0; }
.footer-row a { color: var(--silver); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5,25,22,.88); }
.lightbox img { max-width: min(96vw, 1400px); max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { color: var(--white); text-align: center; margin: 12px 0 0; font-size: 16px; }
.lb-close { position: fixed; top: 14px; inset-inline-end: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--white); color: var(--green); font-size: 28px; line-height: 1; cursor: pointer; }

/* Tablet */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Mobile */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header-row { min-height: 62px; gap: 10px; }
  .brand-mark { width: 50px; }
  .brand-ar { font-size: 14px; }
  .brand-en { font-size: 10.5px; }
  html[lang="en"] .brand-en { font-size: 13.5px; }
  html[lang="en"] .brand-ar { font-size: 11px; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 12px;
    box-shadow: 0 12px 24px rgba(13,58,51,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }
  .nav .nav-contact-link { display: block; color: var(--teal-ink); font-weight: 600; }

  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 44px; }
  .hero-text { padding-bottom: 28px; }
  .step { font-size: clamp(32px, 10vw, 44px); }
  .hero-lede { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-arch { max-width: 300px; margin-top: 24px; }
  .hero-arch img { aspect-ratio: 852 / 900; }

  .section { padding-block: 60px; }
  .about-lead { font-size: 18.5px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { grid-column: 1 / -1; padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .facts > div { padding-inline-end: 16px; }
  .service { grid-template-columns: 40px 1fr; gap: 14px; padding: 22px 0; }
  .service-icon { width: 36px; height: 36px; }
  .service h3 { font-size: 19px; }
  .service p { font-size: 15.5px; }
  .also { padding: 20px; flex-direction: column; }
  .also-list { flex-direction: column; gap: 6px; }
  .also-list li { padding-inline-start: 16px; }
  .also-list li::before, .also-list li + li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); margin-top: 0; }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .g-wide { grid-column: span 2; }
  .g-cap { font-size: 13px; padding: 22px 10px 8px; }

  .contact-logo { width: 150px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .c-map { grid-column: 1; margin-top: 4px; }
  .c-value { font-size: 18px; }
  .contact-cta .btn { width: 100%; }
}
@media (max-width: 370px) {
  .brand-en { display: none; }
  html[lang="en"] .brand-en { display: block; }
  html[lang="en"] .brand-ar { display: none; }
}

/* 404 */
.nf { background: var(--green); color: var(--white); min-height: 100vh; display: grid; place-items: center; text-align: center; }
.nf-main { padding: 40px 16px; max-width: 520px; }
.nf-main img { width: 180px; margin: 0 auto 28px; }
.nf-main h1 { font-size: 30px; margin-bottom: 12px; }
.nf-main p { color: #d9e3e0; margin-bottom: 28px; }
section[id] { scroll-margin-top: 70px; }
