/* ==========================================================================
   إشراقة العمارة — Eshraqat Al-Emara
   Shared stylesheet for the Arabic (RTL) and English (LTR) pages.

   Brand colours are provisional until the official logo arrives:
   change the values in :root and the whole site follows.
   ========================================================================== */

:root {
  /* Brand — taken from the official logo */
  --ink: #1C2F63;          /* logo navy, deepened: text, lines, dark sections */
  --ink-2: #243C78;        /* logo navy */
  --ink-3: #3F58A0;
  --ink-deep: #131F42;     /* footer */
  --sun: #C0A86C;          /* logo gold: primary action + accents */
  --sun-2: #D6C08A;
  --sun-text: #8A6F2E;     /* gold that passes contrast on light backgrounds */

  /* Surfaces */
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --concrete: #E7E9EF;
  --line: #CBD2E0;

  /* Text */
  --text: #17223D;
  --muted: #55607A;
  --danger: #B42318;

  /* Contact buttons */
  --wa: #25D366;
  --wa-ink: #0A7A3D;
  --call: #1D6FE0;

  --font-display: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --header-h: 76px;
  --shadow: 0 24px 48px -28px rgba(14, 29, 42, .45);
}

html[lang="en"] {
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.65; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
html[lang="en"] :is(h1, h2, h3, h4) { line-height: 1.15; letter-spacing: -.01em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  padding: .6em 1em; background: var(--sun); color: var(--ink);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.icon { width: 1.2em; height: 1.2em; flex: none; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }

.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: .65em 1.45em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 1.05rem; line-height: 1.3;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-primary:hover { background: var(--sun-2); }
.btn-wa { background: var(--wa-ink); color: #fff; }
.btn-wa:hover { background: #07632F; }
.btn-outline { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn-outline { color: #fff; }
.on-dark .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .icon { width: 1.25em; height: 1.25em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--sun); padding-bottom: 2px;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

.eyebrow {
  display: flex; align-items: center; gap: .75em;
  font-size: .95rem; font-weight: 600; color: var(--sun-text); line-height: 1.5;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--sun); flex: none; }

.tick-list { list-style: none; display: grid; gap: .5em; }
.tick-list li { display: flex; gap: .7em; align-items: flex-start; }
.tick-list li::before {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: .72em;
  background: var(--sun); transform: rotate(45deg);
}
html[lang="en"] .tick-list li::before { margin-top: .6em; }

/* ---------- Top bar ---------- */

.topbar { background: var(--ink); color: #C3D0DA; font-size: .92rem; line-height: 1.4; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--sun-2); }
.topbar .icon { width: 1.05em; height: 1.05em; color: var(--sun); }
.topbar-areas { display: flex; align-items: center; gap: .5em; }
.topbar-end { display: flex; align-items: center; gap: 22px; }
.lang-switch { font-weight: 600; }

@media (max-width: 640px) {
  .topbar-areas { display: none; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(14, 29, 42, .55); }
.site-header > .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark-img { width: auto; height: 52px; }
.brand-logo-light { width: 172px; height: auto; }
.brand-footer { display: block; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; line-height: 1.15; }
.brand-tag { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.3; color: var(--muted); }
html[lang="en"] .brand-name { font-size: 1.2rem; letter-spacing: .01em; }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav a:not(.btn) {
  position: relative; display: block; padding: .45em .9em;
  color: var(--ink); font-weight: 500; text-decoration: none; border-radius: 4px;
}
.nav a:not(.btn):hover { background: var(--concrete); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: .9em; bottom: .1em; height: 2px; background: var(--sun);
}
.nav-extra { display: none; }
.header-cta { flex: none; min-height: 48px; padding-inline: 1.2em; }

.nav-toggle {
  display: none; place-items: center; width: 50px; height: 50px; margin-inline-start: auto;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset-inline: 0; bottom: 0; top: var(--nav-top, 118px);
    margin: 0; padding: 20px var(--gutter) 32px;
    background: #fff; border-top: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { padding: .8em .2em; font-size: 1.25rem; border-bottom: 1px solid var(--concrete); border-radius: 0; }
  .nav a:not(.btn):hover { background: none; color: var(--sun-text); }
  .nav a[aria-current="page"] { color: var(--sun-text); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-extra { display: grid; gap: 12px; margin-top: 28px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 420px) {
  .brand-mark-img { height: 42px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tag { font-size: .68rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 8vw, 112px); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: #CFD9E1; }
.section-ink :is(h2, h3) { color: #fff; }
.section-ink .eyebrow { color: var(--sun); }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head h2 { margin-top: .35em; font-size: clamp(1.85rem, 3.3vw, 2.7rem); }
.section-head > p { margin-top: .8em; font-size: 1.15rem; color: var(--muted); }
.section-ink .section-head > p { color: #A9BAC7; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; }
.section-head-row > div { max-width: 780px; }

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(36px, 5.5vw, 80px) clamp(56px, 7vw, 100px); background: linear-gradient(#fff 0%, #fff 55%, var(--paper) 100%); }
.hero > .container {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 76px); align-items: center;
}
.hero h1 { margin-top: .45em; font-size: clamp(2.15rem, 4.3vw, 3.55rem); line-height: 1.32; }
html[lang="en"] .hero h1 { line-height: 1.1; }
.hero h1 em { font-style: normal; color: var(--sun-text); }
.hero-lead { margin-top: 1.1em; max-width: 34em; font-size: clamp(1.1rem, 1.45vw, 1.24rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.9em; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2.1em; padding-top: 1.4em;
  border-top: 1px solid var(--line); list-style: none; font-size: 1rem; font-weight: 500; color: var(--ink);
}
.hero-facts li { display: inline-flex; align-items: center; gap: .5em; }
.hero-facts .icon { color: var(--wa-ink); width: 1.15em; height: 1.15em; }

@media (max-width: 980px) {
  .hero > .container { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- The drawing sheet (signature) ----------
   A real site photo framed like an engineering drawing: grid axes
   along the top and side, and a title block that carries the facts. */

.sheet { --axis: 40px; --bubble: 28px; position: relative; background: #fff; border: 1.5px solid var(--ink); padding: 12px; box-shadow: var(--shadow); }
.sheet-frame { position: relative; direction: ltr; padding: var(--axis) 0 0 var(--axis); }
.sheet-axes-x { position: absolute; top: 0; left: var(--axis); right: 0; height: var(--axis); }
.sheet-axes-y { position: absolute; left: 0; top: var(--axis); bottom: 0; width: var(--axis); }
.sheet-axes-x span, .sheet-axes-y span {
  position: absolute; display: grid; place-items: center;
  width: var(--bubble); height: var(--bubble); border: 1.5px solid var(--ink); border-radius: 50%;
  background: #fff; font: 500 .74rem/1 var(--font-mono); color: var(--ink);
}
.sheet-axes-x span { top: 0; transform: translateX(-50%); }
.sheet-axes-x span::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1px; height: calc(var(--axis) - var(--bubble)); background: var(--ink); }
.sheet-axes-y span { left: 0; transform: translateY(-50%); }
.sheet-axes-y span::after { content: ""; position: absolute; left: 100%; top: 50%; height: 1px; width: calc(var(--axis) - var(--bubble)); background: var(--ink); }
.sheet-axes-x span:nth-child(1) { left: 12.5%; } .sheet-axes-x span:nth-child(2) { left: 37.5%; }
.sheet-axes-x span:nth-child(3) { left: 62.5%; } .sheet-axes-x span:nth-child(4) { left: 87.5%; }
.sheet-axes-y span:nth-child(1) { top: 16.66%; } .sheet-axes-y span:nth-child(2) { top: 50%; }
.sheet-axes-y span:nth-child(3) { top: 83.33%; }

.sheet-view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.sheet-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.sheet-view img.is-active { opacity: 1; }
.sheet-view.is-portrait { aspect-ratio: 4 / 5; }
.sheet-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sheet-grid line { stroke: #fff; stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 10 5 2 5; vector-effect: non-scaling-stroke; }

.tb { display: grid; grid-template-columns: 1.25fr 1.25fr .7fr; margin-top: 12px; border: 1.5px solid var(--ink); line-height: 1.45; }
.tb > div { padding: .55em .85em .6em; min-width: 0; }
.tb > div + div { border-inline-start: 1px solid var(--ink); }
.tb > .tb-wide { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--ink); }
.tb-label { display: block; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .tb-label { font-family: var(--font-body); font-size: .76rem; letter-spacing: 0; text-transform: none; }
.tb-label .ltr { font-family: var(--font-mono); font-size: .88em; letter-spacing: .05em; opacity: .8; }
.tb-value { display: block; margin-top: 2px; font-weight: 600; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.tb-num { font-family: var(--font-mono); font-weight: 500; }
.tb.tb-2 { grid-template-columns: 1fr 1fr; }
.tb.tb-2 > div:nth-child(n) { display: block; }

.sheet-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; margin-top: 14px; }
.sheet-tab {
  position: relative; padding: .7em .6em .6em; border: 0; border-top: 2px solid var(--line);
  background: none; cursor: pointer; text-align: start; font-size: .92rem; line-height: 1.35; color: var(--muted);
}
.sheet-tab b { display: block; font: 500 .72rem/1 var(--font-mono); color: var(--muted); margin-bottom: .45em; }
.sheet-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.sheet-tab[aria-selected="true"] b { color: var(--sun-text); }
.sheet-tab::before { content: ""; position: absolute; inset-inline-start: 0; top: -2px; height: 2px; width: 0; background: var(--sun); }
.sheet-tab[aria-selected="true"]::before { width: 100%; }
.sheet-tabs.is-playing .sheet-tab[aria-selected="true"]::before { animation: tab-progress var(--slide-ms, 6000ms) linear forwards; }
.sheet-tabs.is-paused .sheet-tab[aria-selected="true"]::before { animation-play-state: paused; }
@keyframes tab-progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 560px) {
  .sheet { --axis: 30px; --bubble: 22px; padding: 8px; }
  .sheet-axes-x span, .sheet-axes-y span { font-size: .64rem; }
  .tb { grid-template-columns: 1fr 1fr; }
  .tb > div:nth-child(3) { display: none; }
  .tb-value { font-size: .95rem; }
  .sheet-tabs { grid-template-columns: repeat(2, 1fr); }
}

/* Load sequence: the drawing is set up before the photo settles in. */
.js .hero .sheet-axes-x span, .js .hero .sheet-axes-y span { animation: bubble-in .45s cubic-bezier(.2, .8, .2, 1.2) both; }
.js .hero .sheet-axes-x span:nth-child(2) { animation-delay: .08s; }
.js .hero .sheet-axes-x span:nth-child(3) { animation-delay: .16s; }
.js .hero .sheet-axes-x span:nth-child(4) { animation-delay: .24s; }
.js .hero .sheet-axes-y span:nth-child(1) { animation-delay: .3s; }
.js .hero .sheet-axes-y span:nth-child(2) { animation-delay: .38s; }
.js .hero .sheet-axes-y span:nth-child(3) { animation-delay: .46s; }
.js .hero .sheet-grid { animation: grid-in 1s .35s ease both; }
.js .hero .sheet-view { animation: view-in 1s .15s ease both; }
.js .hero .tb { animation: fade-up .6s .7s ease both; }
@keyframes bubble-in { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes grid-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes view-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--concrete); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc:hover .svc-media img { transform: scale(1.03); }
.svc-body { display: flex; flex-direction: column; gap: 1em; flex: 1; padding: clamp(22px, 2.6vw, 32px); }
.svc-body h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
.svc-body > p { color: var(--muted); }
.svc-body .tick-list { font-size: 1.02rem; }
.svc-body .link-arrow { align-self: flex-start; margin-top: auto; }

@media (max-width: 820px) {
  .services { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Site visit: steps + booking ---------- */

.visit > .container { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.visit .section-head { margin-bottom: 36px; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li { position: relative; counter-increment: step; padding-inline-start: 64px; padding-bottom: 28px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid currentColor; border-radius: 50%;
  font: 500 .88rem/1 var(--font-mono);
}
.steps li::after { content: ""; position: absolute; inset-inline-start: 21.5px; top: 50px; bottom: 6px; width: 1px; background: currentColor; opacity: .3; }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.22rem; line-height: 1.5; padding-top: 4px; }
.steps p { margin-top: .3em; font-size: 1.02rem; }
.section-ink .steps li::before { color: var(--sun); }
.section-ink .steps p { color: #A9BAC7; }
.steps-light li::before { color: var(--ink); }
.steps-light p { color: var(--muted); }

@media (max-width: 980px) {
  .visit > .container { grid-template-columns: minmax(0, 1fr); }
}

/* Booking form — laid out like a drawing's title block */
.booking { background: #fff; color: var(--text); border: 1.5px solid var(--ink); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow); }
.booking-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; }
.booking-head h2, .booking-head h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); color: var(--ink); }
.booking-head p { font-size: 1rem; color: var(--muted); margin-top: .25em; }
.booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--ink); }
.field { position: relative; display: flex; flex-direction: column; padding: .55em .9em .5em; border-bottom: 1px solid var(--ink); min-width: 0; transition: background-color .15s; }
.field:nth-child(odd):not(.field-wide) { border-inline-end: 1px solid var(--ink); }
.field-wide { grid-column: 1 / -1; }
.field:last-child { border-bottom: 0; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); line-height: 1.5; }
.field .opt { font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: .2em 0; border: 0; border-radius: 0;
  background: transparent; font-size: 1.08rem; color: var(--ink); outline: none;
}
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1D2A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 20px; background-position: left 0 center; padding-inline-end: 28px;
}
html[dir="ltr"] .field select { background-position: right 0 center; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #8795A0; }
.field:focus-within { background: #FAF7EF; box-shadow: inset 0 -3px 0 var(--sun); }
.field.has-error { background: #FEF3F2; box-shadow: inset 0 -3px 0 var(--danger); }
.field-error { font-size: .88rem; color: var(--danger); font-weight: 500; line-height: 1.5; }
.field-error:empty { display: none; }
.booking-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.booking-foot .btn { flex: none; }
.form-note { flex: 1 1 240px; font-size: .95rem; color: var(--muted); line-height: 1.6; }
.form-status { margin-top: 14px; padding: .8em 1em; border-inline-start: 4px solid var(--wa-ink); background: #EEF8F2; font-size: 1rem; }
.form-status a { font-weight: 600; }

@media (max-width: 560px) {
  .booking-grid { grid-template-columns: minmax(0, 1fr); }
  .field:nth-child(odd):not(.field-wide) { border-inline-end: 0; }
  .booking-foot .btn { width: 100%; }
}

/* ---------- Old houses ---------- */

.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.split-rev > :first-child { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-body > * + * { margin-top: 1.1em; }
.split-body h2 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); margin-top: .35em; }
.split-body > p { color: var(--muted); font-size: 1.12rem; }

.symptoms { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.symptoms li { padding: .9em 0; border-bottom: 1px solid var(--line); }
.symptoms li:nth-child(odd) { padding-inline-end: 1.2em; }
.symptoms li:nth-child(even) { padding-inline-start: 1.2em; border-inline-start: 1px solid var(--line); }
.symptoms b { display: block; color: var(--ink); font-weight: 600; }
.symptoms span { display: block; font-size: .98rem; color: var(--muted); margin-top: .15em; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-rev > :first-child { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .symptoms { grid-template-columns: minmax(0, 1fr); }
  .symptoms li:nth-child(n) { padding-inline: 0; border-inline-start: 0; }
}

/* ---------- Why us ---------- */

.why { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.why li { padding-block: 1.5em 1.9em; border-top: 1.5px solid var(--ink); }
.why h3 { font-size: 1.28rem; line-height: 1.45; }
.why p { margin-top: .5em; color: var(--muted); font-size: 1.02rem; }
.why li.is-key h3 { color: var(--sun-text); }
.why li.is-key { border-top-color: var(--sun); border-top-width: 3px; }

.why.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) { .why, .why.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .why, .why.cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Project cards ---------- */

.project-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--ink); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); margin: 8px 8px 0; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard .tb { margin: 8px; border-width: 1px; grid-template-columns: 1fr; flex: 1; }
.pcard .tb > div + div { border-inline-start: 0; border-top: 1px solid var(--ink); }
.pcard .tb-value { font-size: .98rem; }
.pcard-name { font-family: var(--font-display); font-size: 1.15rem !important; }

@media (max-width: 1080px) { .project-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .project-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Service areas ---------- */

.areas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.areas-map { background: #fff; border: 1.5px solid var(--ink); padding: 10px; }
.areas-map svg { width: 100%; height: auto; }
.map-sea { fill: #D9E6EE; }
.map-land { fill: #F8F7F4; }
.map-coast { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.map-road { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 5 4; opacity: .7; }
.map-dim { stroke: var(--sun-text); stroke-width: 1.2; }
.map-dim-text { font: 500 11px var(--font-mono); fill: var(--sun-text); }
.map-city { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.map-city-home { fill: var(--ink); stroke: var(--sun); stroke-width: 3; }
.map-label { font: 700 15px var(--font-body); fill: var(--ink); }
.map-sea-label { font: 500 13px var(--font-body); fill: #5C7A8E; }
.map-north { font: 500 11px var(--font-mono); fill: var(--ink); }
.cities { list-style: none; display: grid; gap: 0; margin-top: 1.4em; border-top: 1px solid var(--line); }
.cities li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: .85em 0; border-bottom: 1px solid var(--line); }
.cities b { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 700; }
.cities span { color: var(--muted); font-size: 1rem; }

@media (max-width: 900px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA band (the sunrise) ---------- */

.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(72px, 9vw, 128px);
  background:
    radial-gradient(70% 120% at 50% 135%, rgba(192, 168, 108, .8) 0%, rgba(192, 168, 108, .24) 42%, transparent 70%),
    var(--ink);
  color: #CFD9E1;
}
.cta-band::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--sun), transparent); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); max-width: 18em; margin-inline: auto; }
.cta-band p { max-width: 38em; margin: 1em auto 0; font-size: 1.15rem; color: #B7C6D2; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Inner page hero ---------- */

.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 84px) clamp(40px, 5vw, 68px); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; font-size: .95rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero h1 { margin-top: .5em; font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 20em; }
.page-hero .lead { margin-top: .9em; max-width: 42em; font-size: clamp(1.1rem, 1.45vw, 1.24rem); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8em; list-style: none; }
.chips a {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .4em 1em;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
}
.chips a:hover { border-color: var(--ink); }

/* ---------- About ---------- */

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.panel { padding: clamp(24px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2 { margin-top: .4em; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.panel p:not(.eyebrow) { margin-top: .7em; color: var(--muted); font-size: 1.08rem; }
.panel-ink { background: var(--ink); border-color: var(--ink); }
.panel-ink h2 { color: #fff; }
.panel-ink p { color: #B7C6D2; }
.panel-ink .eyebrow { color: var(--sun); }
@media (max-width: 760px) { .pair { grid-template-columns: minmax(0, 1fr); } }

.prose > * + * { margin-top: 1em; }
.prose p { font-size: 1.12rem; color: var(--text); }

/* ---------- Services page ---------- */

.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.svc-detail:first-child { border-top: 0; }
.svc-detail:nth-child(even) > .svc-detail-media { order: 2; }
.svc-detail-media { position: sticky; top: calc(var(--header-h) + 24px); }
.svc-detail-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.svc-detail-body > * + * { margin-top: 1.1em; }
.svc-detail-body h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); margin-top: .3em; }
.svc-detail-body > p { color: var(--muted); font-size: 1.12rem; }
.svc-detail-body h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; margin-top: 1.6em; }
.svc-detail-body .btn { margin-top: 1.6em; }
@media (max-width: 900px) {
  .svc-detail { grid-template-columns: minmax(0, 1fr); }
  .svc-detail:nth-child(even) > .svc-detail-media { order: 0; }
  .svc-detail-media { position: static; }
}

.focus-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.focus-cards li { display: flex; flex-direction: column; gap: .8em; padding: clamp(24px, 2.6vw, 34px); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); }
.focus-cards h3 { font-size: 1.35rem; }
.focus-cards p { color: #A9BAC7; font-size: 1.02rem; }
.focus-cards .link-arrow { color: #fff; margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .focus-cards { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 860px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 1.1em 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--font-mono); color: var(--sun-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.3em; color: var(--muted); max-width: 46em; }

/* ---------- Projects page ---------- */

.project { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; }
.project-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
.project-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: .3em; }
.project-intro { margin-top: .7em; color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.project-head .tb { margin-top: 0; background: #fff; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-head .tb > div:nth-child(3) { display: block; }
@media (max-width: 900px) { .project-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .project-head .tb { grid-template-columns: minmax(0, 1fr); } .project-head .tb > div + div { border-inline-start: 0; border-top: 1px solid var(--ink); } }

.gallery { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--concrete); border-radius: 4px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-video::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(14, 29, 42, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat;
}
.gallery-video video { width: 100%; height: 100%; object-fit: cover; }
.gallery-video span { position: absolute; inset-inline-start: 10px; bottom: 10px; padding: .15em .6em; background: rgba(14, 29, 42, .8); color: #fff; font-size: .85rem; border-radius: 3px; }
.gallery-more { margin-top: 18px; }
.gallery li.is-hidden { display: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 13, 19, .96); color: #fff; }
.lightbox::backdrop { background: rgba(6, 13, 19, .9); }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: 64px minmax(0, 1fr) auto; }
.lb-stage { grid-column: 2; grid-row: 2; display: grid; place-items: center; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-caption { grid-column: 1 / -1; grid-row: 3; padding: 14px 20px 22px; text-align: center; font-size: 1rem; color: #D5DEE5; }
.lb-caption b { font-family: var(--font-mono); font-weight: 500; color: var(--sun); margin-inline-end: .6em; }
.lb-btn { display: grid; place-items: center; width: 52px; height: 52px; margin: auto; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn .icon { width: 26px; height: 26px; }
.lb-close { grid-column: 3; grid-row: 1; }
.lb-prev { grid-column: 1; grid-row: 2; }
.lb-next { grid-column: 3; grid-row: 2; }
[dir="rtl"] .lb-prev .icon, [dir="rtl"] .lb-next .icon { transform: scaleX(-1); }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-prev, .lb-next { display: none; }
  .lb-close { grid-column: 2; justify-self: end; margin: 8px; }
}

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .2s; }
a.ccard:hover { border-color: var(--ink); }
.ccard-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--radius); color: #fff; }
.ccard-icon .icon { width: 24px; height: 24px; }
.ccard-wa .ccard-icon { background: var(--wa-ink); }
.ccard-call .ccard-icon { background: var(--call); }
.ccard-area .ccard-icon { background: var(--ink); color: var(--sun); }
.ccard small { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.ccard b { display: block; font-size: 1.12rem; color: var(--ink); line-height: 1.5; }
.ccard-social { flex-direction: column; align-items: stretch; }
.ccard-social small { margin-bottom: 10px; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Social ---------- */

.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; color: inherit; transition: background-color .2s, color .2s; }
.social a:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.social .icon { width: 20px; height: 20px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-deep); color: #A9BAC7; padding-block: clamp(48px, 6vw, 80px) 28px; font-size: 1rem; }
.footer-sheet { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; border: 1px solid rgba(255, 255, 255, .18); }
.fc { padding: clamp(20px, 2.4vw, 30px); border-inline-start: 1px solid rgba(255, 255, 255, .18); min-width: 0; }
.fc:first-child { border-inline-start: 0; }
.fc-title { font-family: var(--font-body); font-size: .82rem; font-weight: 600; color: var(--sun); margin-bottom: 1em; letter-spacing: .02em; }
html[lang="en"] .fc-title { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.fc ul { list-style: none; display: grid; gap: .45em; }
.fc a { color: #DCE4EA; text-decoration: none; }
.fc a:hover { color: var(--sun-2); text-decoration: underline; }
.fc-brand .brand { color: #fff; }
.fc-brand p { margin-top: 1.1em; font-size: .98rem; line-height: 1.75; }
.fc-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding-block: 16px; font-size: .92rem; }
.fc-bottom .social a { width: 40px; height: 40px; color: #DCE4EA; }
.fc-contact li { display: flex; gap: .55em; align-items: center; }
.fc-contact .icon { color: var(--sun); width: 1.1em; height: 1.1em; }

@media (max-width: 960px) {
  .footer-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
  .fc-brand { grid-column: 1 / -1; border-top: 0; }
  .fc-brand + .fc + .fc { border-inline-start: 1px solid rgba(255, 255, 255, .18); }
  .fc-contact { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-sheet { grid-template-columns: minmax(0, 1fr); }
  .fc-brand + .fc + .fc { border-inline-start: 0; }
}

/* ---------- Floating contact diamonds ---------- */

.fab { position: fixed; inset-inline-end: 18px; bottom: max(24px, 16vh); z-index: 40; display: flex; flex-direction: column; gap: 22px; }
.fab-btn { position: relative; display: grid; place-items: center; width: 60px; height: 60px; text-decoration: none; }
.fab-diamond {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 9px; transform: rotate(45deg);
  box-shadow: 0 10px 22px -8px rgba(9, 20, 29, .55); transition: transform .2s;
}
.fab-diamond .icon { width: 25px; height: 25px; color: #fff; transform: rotate(-45deg); }
.fab-call .fab-diamond { background: var(--call); }
.fab-wa .fab-diamond { background: var(--wa); }
.fab-btn:hover .fab-diamond { transform: rotate(45deg) scale(1.08); }
.fab-tip {
  position: absolute; inset-inline-end: calc(100% + 6px); top: 50%; translate: 0 -50%;
  padding: .3em .8em; background: var(--ink); color: #fff; border-radius: 4px;
  font-size: .9rem; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.fab-btn:hover .fab-tip, .fab-btn:focus-visible .fab-tip { opacity: 1; }
.fab-wa::before {
  content: ""; position: absolute; width: 46px; height: 46px; border-radius: 9px; rotate: 45deg;
  border: 2px solid var(--wa); animation: fab-pulse 2.8s ease-out infinite;
}
@keyframes fab-pulse { 0% { opacity: .8; scale: 1; } 70%, 100% { opacity: 0; scale: 1.45; } }
@media (max-width: 640px) {
  .fab { inset-inline-end: 10px; bottom: 22px; gap: 16px; }
  .fab-tip { display: none; }
}
@media print { .fab, .topbar, .nav-toggle { display: none; } }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .fab-wa::before { display: none; }
}
