/* ==========================================================================
   Eastwinds Marine Consultancy — main stylesheet
   Supports LTR (English) and RTL (Arabic) via logical properties.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0C2678;
  --deep: #071645;
  --gold: #C8983F;
  --gold-soft: #E6CF9C;
  --steel: #EDF0F5;
  --ink: #0F1A33;
  --muted: #56627E;
  --line: #D5DAE5;
  --white: #FFFFFF;

  --f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
}
:lang(ar) {
  --f-display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
:lang(ar) body, body:lang(ar) { font-size: 17.5px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: var(--deep); padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--navy); margin: 0 0 .5em; line-height: 1.05; font-weight: 700; letter-spacing: .2px; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { line-height: 1.35; letter-spacing: 0; }
h1 { font-size: clamp(42px, 6.2vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 27px); font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
:lang(ar) h1 { font-size: clamp(34px, 5vw, 64px); }
:lang(ar) h2 { font-size: clamp(27px, 3.4vw, 42px); }
:lang(ar) h3 { font-size: clamp(20px, 2vw, 24px); }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--steel { background: var(--steel); }
.section--deep { background: var(--deep); color: #D7DDEE; }
.section--deep h2, .section--deep h3, .section--deep h4 { color: var(--white); }
.section--deep a { color: var(--gold-soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin: 0; }
.rule { width: 72px; height: 4px; background: var(--gold); margin: 0 0 22px; border: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }

/* Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: .4px; text-decoration: none; padding: 13px 26px 12px; border: 2px solid var(--gold); background: var(--gold); color: var(--deep); transition: background .2s, color .2s; cursor: pointer; }
:lang(ar) .btn { font-size: 17px; padding: 11px 26px; }
.btn:hover { background: transparent; color: var(--gold); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--navy:hover { background: transparent; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand img { height: 38px; width: auto; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav button.sub-toggle { display: block; padding: 10px 12px; font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: .3px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
:lang(ar) .nav a, :lang(ar) .nav button.sub-toggle { font-size: 16px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.has-sub > a::after { content: ""; display: inline-block; width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-inline-start: 8px; position: relative; top: -3px; opacity: .6; }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; inset-inline-start: 0; min-width: 260px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 18px 40px rgba(7,22,69,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-family: var(--f-body); font-weight: 500; font-size: 15px; padding: 9px 20px; }
:lang(ar) .sub a { font-size: 15px; }
.sub a:hover { background: var(--steel); }
.lang { font-family: var(--f-body) !important; font-weight: 600 !important; font-size: 15px !important; border: 1px solid var(--line); margin-inline-start: 8px; }
.lang:lang(en) { font-family: "IBM Plex Sans Arabic", sans-serif !important; }
.nav a.btn { margin-inline-start: 10px; font-size: 17px; padding: 9px 18px 8px; color: var(--deep); background: var(--gold); border: 2px solid var(--gold); }
.nav a.btn:hover { background: transparent; color: var(--navy); border-color: var(--navy); }
.nav-toggle { display: none; margin-inline-start: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--navy); content: ""; transition: transform .2s, top .2s; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Hero (home) ------------------------------------------------------------- */
.hero { position: relative; background: var(--deep); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.hero .container { position: relative; padding-block: clamp(70px, 9vw, 120px) 0; }
.hero h1 { color: var(--white); max-width: 21ch; }
:lang(ar) .hero h1 { max-width: 24ch; }
.hero .lead { color: #D7DDEE; max-width: 56ch; }
.hero-drawing { position: relative; margin-top: clamp(40px, 6vw, 72px); margin-inline: calc(var(--gutter) * -0.5); color: var(--white); }
.hero-drawing svg, .ship-stage svg { direction: ltr; } .hero-drawing svg { width: 100%; height: auto; display: block; }
.hero-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.18); padding-block: 18px 22px; font-size: 14.5px; color: #AFB9D6; }
.hero-caption strong { color: var(--white); font-weight: 600; }

/* line-drawing animation: only on the home hero */
.draw [data-d] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.6,.1,.3,1) forwards; }
.draw [data-g="1"] { animation-delay: .1s; }
.draw [data-g="2"] { animation-delay: .7s; }
.draw [data-g="3"] { animation-delay: 1.2s; }
.draw [data-g="4"] { animation-delay: 1.6s; }
.draw text { opacity: 0; animation: fade .6s 2.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .draw [data-d] { animation: none; stroke-dashoffset: 0; }
  .draw text { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Inner page hero with title block -------------------------------------- */
.page-hero { background: var(--deep); color: #D7DDEE; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.page-hero .container { position: relative; padding-block: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.page-hero h1 { color: var(--white); font-size: clamp(40px, 5.4vw, 72px); margin-bottom: 18px; }
:lang(ar) .page-hero h1 { font-size: clamp(32px, 4.4vw, 56px); }
.page-hero .lead { color: #D7DDEE; margin: 0; }
.crumbs { font-size: 14px; color: #AFB9D6; margin-bottom: 26px; }
.crumbs a { color: #AFB9D6; text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs span { margin-inline: 8px; opacity: .6; }
/* Title block: the box found in the corner of every ship drawing */
.title-block { border: 1.5px solid rgba(230,207,156,.75); min-width: 280px; font-size: 14px; }
.title-block div { display: grid; grid-template-columns: 110px 1fr; border-top: 1px solid rgba(230,207,156,.35); }
.title-block div:first-child { border-top: 0; }
.title-block dt, .title-block dd { margin: 0; padding: 9px 14px; }
.title-block dt { color: var(--gold-soft); border-inline-end: 1px solid rgba(230,207,156,.35); }
.title-block dd { color: var(--white); font-weight: 500; }

/* Facts strip ------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.facts > div { padding: 30px 26px; border-inline-start: 1px solid var(--line); }
.facts > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts b { display: block; font-family: var(--f-display); font-size: clamp(34px, 3.4vw, 46px); color: var(--navy); line-height: 1; margin-bottom: 8px; }
.facts span { color: var(--muted); font-size: 15px; }

/* Service index (rows, not cards) ---------------------------------------- */
.service-list { border-top: 2px solid var(--navy); }
.service-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 40px; gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s, padding .2s; }
.service-row h3 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); }
.service-row p { margin: 0; color: var(--muted); }
.service-row .chev { width: 34px; height: 34px; border: 1.5px solid var(--gold); display: grid; place-items: center; justify-self: end; }
.service-row .chev::before { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--gold); border-inline-end: 2px solid var(--gold); transform: rotate(45deg); margin-inline-start: -3px; }
 [dir="rtl"] .service-row .chev::before { transform: rotate(-45deg); }
.service-row:hover { background: var(--steel); padding-inline: 20px; color: var(--ink); }

/* Feature (image + text) ------------------------------------------------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .feature-media { order: 2; }
.feature-media { position: relative; }
.ship-stage { margin: 0; background: linear-gradient(180deg, #E4E9F2 0%, #F6F8FB 70%); border: 1px solid var(--line); padding: 30px 0 18px; overflow: hidden; }
.ship-stage img { width: 100%; filter: drop-shadow(0 16px 14px rgba(7,22,69,.22)); }
.ship-stage .wl { height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); margin: 14px 24px 0; }
.ship-stage figcaption { padding: 10px 24px 0; font-size: 13.5px; color: var(--muted); }

/* Spec tables ----------------------------------------------------------- */
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec caption { text-align: start; font-family: var(--f-display); font-weight: 600; font-size: 21px; color: var(--white); background: var(--navy); padding: 10px 16px 8px; }
:lang(ar) .spec caption { font-size: 18px; }
.spec th, .spec td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 400; color: var(--muted); width: 45%; }
.spec td { font-weight: 500; }
.spec + .spec { margin-top: 28px; }
.mini-specs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); margin: 24px 0; }
.mini-specs div { padding: 16px 18px; border-inline-start: 1px solid var(--line); }
.mini-specs div:first-child { border-inline-start: 0; }
.mini-specs b { display: block; font-family: var(--f-display); font-size: 28px; color: var(--navy); line-height: 1.1; }
.mini-specs span { font-size: 13.5px; color: var(--muted); }

/* Process steps (a real sequence) -------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); counter-reset: step; border-top: 1px solid rgba(255,255,255,.18); }
.steps li { counter-increment: step; padding: 28px 24px 30px 0; border-bottom: 1px solid rgba(255,255,255,.18); position: relative; }
[dir="rtl"] .steps li { padding: 28px 0 30px 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.steps h4 { color: var(--white); margin-bottom: 8px; }
.steps p { font-size: 15px; margin: 0; }
.section:not(.section--deep) .steps { border-color: var(--line); }
.section:not(.section--deep) .steps li { border-color: var(--line); }
.section:not(.section--deep) .steps h4 { color: var(--navy); }

/* Lists ------------------------------------------------------------------ */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-inline-start: 28px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 14px; height: 2px; background: var(--gold); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pills li { border: 1.5px solid var(--gold); color: var(--navy); padding: 6px 14px; font-size: 15px; font-weight: 500; }
.section--deep .pills li { color: var(--gold-soft); }

/* Panels ----------------------------------------------------------------- */
.panel { border-inline-start: 4px solid var(--gold); padding: 6px 0 6px 28px; }
[dir="rtl"] .panel { padding: 6px 28px 6px 0; }
.panel h3 { margin-bottom: 10px; }
.box { border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); background: var(--white); }
.section--steel .box { border-color: transparent; }
.box h3 { margin-bottom: 12px; }
.box-group { display: grid; gap: 0; border-top: 2px solid var(--navy); }
.box-group > article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.box-group h3 { margin: 0; }

/* Quote ------------------------------------------------------------------ */
.quote { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; color: var(--white); margin: 0 0 28px; max-width: 30ch; }
:lang(ar) .quote { font-weight: 600; line-height: 1.6; font-size: clamp(22px, 2.6vw, 32px); }
.quote-by { color: var(--gold-soft); font-weight: 600; }
.quote-by span { display: block; color: #AFB9D6; font-weight: 400; font-size: 15px; }

/* PERSPECTIVE values ------------------------------------------------------ */
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values > div { background: var(--white); padding: 26px; }
.values b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 54px; line-height: 1; color: var(--gold); margin-bottom: 10px; }
.values h4 { margin-bottom: 6px; }
.values p { margin: 0; font-size: 15px; color: var(--muted); }

/* Comparison table ------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--navy); color: var(--white); font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.cmp thead th.hl { background: var(--gold); color: var(--deep); }
.cmp tbody th { color: var(--navy); font-weight: 600; }
.cmp td.hl { background: #FBF5E8; font-weight: 500; }

/* Photo grid --------------------------------------------------------------- */
.photos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.photos figure { margin: 0; border: 1px solid var(--line); background: var(--white); }
.photos img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--white); }
.photos img.cover { object-fit: cover; }
.photos figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* Market phases -------------------------------------------------------------- */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.phases > div { padding: 32px; }
.phases > div:first-child { background: var(--navy); color: #D7DDEE; }
.phases > div:first-child h3 { color: var(--white); }
.phases > div:last-child { border-inline-start: 2px dashed var(--gold); }
.phases .tag { display: inline-block; font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 8px; }

/* CTA band ------------------------------------------------------------------- */
.cta { background: var(--navy); color: #D7DDEE; }
.cta .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: clamp(48px, 6vw, 72px); }
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { margin: 0; }

/* Contact form ---------------------------------------------------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: 0; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(200,152,63,.35); }
.form .hp { position: absolute; inset-inline-start: -9999px; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; display: none; }
.form-status.ok { display: block; background: #E8F3EC; color: #1E5B36; border-inline-start: 4px solid #2F8A52; }
.form-status.err { display: block; background: #FBECEC; color: #8A1F1F; border-inline-start: 4px solid #C0392B; }
.contact-card { background: var(--deep); color: #D7DDEE; padding: clamp(28px, 3.5vw, 44px); }
.contact-card h3 { color: var(--white); }
.contact-card dl { margin: 24px 0 0; }
.contact-card dt { color: var(--gold-soft); font-size: 14px; font-weight: 600; margin-top: 18px; }
.contact-card dd { margin: 4px 0 0; color: var(--white); }
.contact-card a { color: var(--white); }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--deep); color: #AFB9D6; font-size: 15px; }
.site-footer .container { padding-block: 64px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer img { width: 260px; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: 19px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #D7DDEE; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-top: 22px; font-size: 14px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s, visibility .25s; visibility: hidden; margin: 0; }
  [dir="rtl"] .nav { transform: translateX(-100%); }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; }
  .nav a { font-size: 21px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; min-width: 0; }
  .sub a { font-size: 16px; padding: 8px 18px; border-bottom: 0; }
  .has-sub > a::after { display: none; }
  .lang { margin: 16px 0 0; text-align: center; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .section-head, .feature, .feature--flip, .grid-2, .grid-3, .page-hero .container, .cta .container, .box-group > article { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature-media { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts > div { border-top: 1px solid var(--line); }
  .facts > div:nth-child(-n+2) { border-top: 0; }
  .service-row { grid-template-columns: minmax(0, 1fr) 34px; gap: 8px 16px; }
  .service-row p { grid-column: 1; grid-row: 2; }
  .service-row .chev { grid-row: 1 / span 2; grid-column: 2; }
  .photos { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .phases > div:last-child { border-inline-start: 0; border-top: 2px dashed var(--gold); }
  .mini-specs { grid-template-columns: 1fr 1fr 1fr; }
  .title-block { min-width: 0; width: 100%; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .mini-specs { grid-template-columns: 1fr; }
  .mini-specs div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .mini-specs div:first-child { border-top: 0; }
  .brand img { height: 30px; }
}
@media print {
  .site-header, .cta, .site-footer, .nav-toggle { display: none; }
  .hero, .page-hero, .section--deep { background: #fff; color: #000; }
}

/* ===== v2: photography ===================================================== */
/* Home hero with photograph */
.hero--photo { min-height: min(86vh, 820px); display: flex; align-items: flex-end; }
.hero--photo::before { display: none; }
.hero--photo .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,22,69,.94) 0%, rgba(7,22,69,.78) 38%, rgba(7,22,69,.15) 72%, rgba(7,22,69,0) 100%), linear-gradient(0deg, rgba(7,22,69,.55) 0%, rgba(7,22,69,0) 40%); }
[dir="rtl"] .hero--photo::after { background: linear-gradient(270deg, rgba(7,22,69,.94) 0%, rgba(7,22,69,.78) 38%, rgba(7,22,69,.15) 72%, rgba(7,22,69,0) 100%), linear-gradient(0deg, rgba(7,22,69,.55) 0%, rgba(7,22,69,0) 40%); }
.hero--photo .container { z-index: 1; padding-block: clamp(80px, 12vw, 160px) clamp(56px, 7vw, 96px); }
.hero--photo h1 { max-width: 17ch; }
:lang(ar) .hero--photo h1 { max-width: 20ch; }
.hero--photo .lead { max-width: 52ch; }

/* Photo plate under inner page heroes */
.plate { background: linear-gradient(180deg, var(--deep) 0 50%, var(--white) 50% 100%); }
.plate img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; box-shadow: 0 24px 50px rgba(7,22,69,.18); }
.page-hero + .plate { margin-top: -1px; }
.page-hero:has(+ .plate) .container { padding-bottom: clamp(48px, 5vw, 72px); }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.tile { text-decoration: none; color: var(--ink); display: block; }
.tile figure { margin: 0 0 14px; overflow: hidden; background: var(--steel); }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.04); }
.tile h3 { font-size: clamp(21px, 1.9vw, 25px); margin-bottom: 6px; }
.tile p { margin: 0; font-size: 15.5px; color: var(--muted); }
.tile:hover h3 { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } .tile:hover img { transform: none; } }

/* Photo feature */
.photo-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-feature figcaption { font-size: 13.5px; color: var(--muted); padding-top: 10px; }

/* Wide sub-menu for 10 services */
.sub--wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 540px; }
@media (max-width: 1080px) { .sub--wide { display: block; min-width: 0; } }

/* Related services */
.related { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 820px) { .related { grid-template-columns: 1fr; } }
