/* Al-Qurum Metal Industries
   Layout concept: the page is a curtain wall. Photos and content sit in glass panes
   held by brushed-aluminum mullions; one sun glint crosses the facade on load.
   White is the primary colour; navy and cobalt (from the logo) are for text and accents.
   The site is light-only on purpose: it does not switch to a dark scheme. */
:root {
  color-scheme: light;
  /* palette: white + anodized aluminum + logo cobalt */
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #F4F6F9;
  --surface-2: #E8ECF1;
  --ink: #0D1A33;
  --ink-2: #44526A;
  --line: #D3D9E2;
  --steel: #B7C0CD;
  --steel-hi: #EEF1F5;
  --steel-lo: #8792A4;
  --cobalt: #1747C9;
  --cobalt-ink: #FFFFFF;
  --cobalt-soft: #E5ECFB;
  --night: #071634;
  --night-2: #0F2A5C;
  --wa: #25D366;
  --wa-ink: #04301A;
  --danger: #B42318;
  --danger-soft: #FCEBE9;
  --ok: #0F7B48;
  --ok-soft: #E2F4EA;
  --focus: #2F6BEA;
  --scrim: rgba(4, 13, 32, .74);
  --glass-hi: rgba(255, 255, 255, .16);
  --plate-top: #F7F9FB;
  --plate-bot: #D5DCE5;
  --plate-edge: #A6B0BF;
  --plate-ink: #27344A;
  --plate-ink-2: #56637A;
  --rivet: #9AA5B5;
  --rivet-hi: #FFFFFF;
  --shadow: 0 18px 40px -26px rgba(7, 22, 52, .55);

  /* type */
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", sans-serif;
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-h3: 1.2rem;
  --fs-h2: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem);
  --fs-h1: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  --fs-hero: clamp(2.05rem, 1.15rem + 3.9vw, 3.75rem);
  --lh-body: 1.8;
  --lh-head: 1.38;

  /* space */
  --mullion: 6px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  --radius: 4px;
}
html[lang="en"] {
  --font-display: "Archivo", "Arial Black", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-hero: clamp(1.85rem, 1.05rem + 3.1vw, 3.25rem);
  --fs-h1: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem);
  --fs-h2: clamp(1.4rem, 1.1rem + 1.3vw, 1.95rem);
  --lh-body: 1.65;
  --lh-head: 1.14;
}
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
.page { overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--cobalt); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-head); margin: 0; text-wrap: balance; color: var(--ink); }
html[lang="en"] h1, html[lang="en"] h2 { font-stretch: 125%; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
html[lang="en"] h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--cobalt); color: var(--cobalt-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { padding-block-start: 0; }
.section-head { display: grid; gap: 12px; max-width: 46rem; margin-block-end: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-2); max-width: 44rem; }

/* metallic rule used under page headers and above bands */
.mullion-rule { height: var(--mullion); background: linear-gradient(90deg, var(--steel-lo), var(--steel-hi) 22%, var(--steel) 48%, var(--steel-hi) 74%, var(--steel-lo)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--cobalt); color: var(--cobalt-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--cobalt) 86%, var(--ink)); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: color-mix(in srgb, var(--wa) 88%, #000); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--steel); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface);
  border-block-end: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px) saturate(1.2); }
}
.header-bar { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; padding-block: 4px; border-radius: var(--radius); }
.brand img { height: 52px; width: auto; }
.nav-main { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav-main > a, .nav-main > .menu-wrap > button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  color: var(--ink); text-decoration: none; font: 500 .98rem/1.2 var(--font-body);
  background: none; border: 0; border-radius: var(--radius); cursor: pointer;
}
.nav-main > a:hover, .nav-main > .menu-wrap > button:hover { background: var(--surface-2); }
.nav-main a[aria-current="page"] { color: var(--cobalt); box-shadow: inset 0 -2px 0 var(--cobalt); border-radius: 0; }
.nav-main svg { width: 14px; height: 14px; transition: transform .15s; }
.nav-main [aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-link { font-weight: 600 !important; }
.header-cta { flex: none; }
.menu-wrap { position: relative; }
.mega {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: min(640px, 80vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px;
}
.mega a { display: block; padding: 9px 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: .97rem; }
.mega a:hover { background: var(--surface-2); color: var(--cobalt); }
.mega .mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--cobalt); }
.menu-toggle { display: none; margin-inline-start: auto; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--steel); background: var(--surface); color: var(--ink); border-radius: var(--radius); font: 600 .95rem/1 var(--font-body); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); padding-block: 12px 20px; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-nav ul { list-style: none; padding: 0; display: grid; }
.mobile-nav a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav .sub a { padding-inline-start: 18px; font-weight: 400; font-size: .97rem; color: var(--ink-2); }
.mobile-nav .btn { margin-top: 16px; width: 100%; }
@media (max-width: 1060px) {
  .nav-main, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { height: 40px; }
  .header-bar { min-height: 68px; }
}

/* ---------- hero: the facade ---------- */
.hero { padding-block: clamp(16px, 3vw, 32px) clamp(40px, 6vw, 72px); }
.facade {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: var(--mullion); padding: var(--mullion);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(150px, auto)) 230px;
  background: linear-gradient(90deg, var(--steel-lo), var(--steel-hi) 20%, var(--steel) 46%, var(--steel-hi) 72%, var(--steel-lo));
  border-radius: 3px; box-shadow: var(--shadow);
}
.facade::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 0 40%, rgba(255,255,255,.34) 50%, transparent 60% 100%);
  transform: translateX(-140%); animation: glint 2.4s cubic-bezier(.3,.6,.2,1) .6s 1 both;
}
[dir="rtl"] .facade::after { animation-name: glint-rtl; }
@keyframes glint { from { transform: translateX(-140%); } to { transform: translateX(140%); } }
@keyframes glint-rtl { from { transform: translateX(140%); } to { transform: translateX(-140%); } }
.pane { position: relative; overflow: hidden; background: var(--surface-2); min-height: 0; min-width: 0; }
.pane picture { position: absolute; inset: 0; }
.pane img { width: 100%; height: 100%; object-fit: cover; }
.pane::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, var(--glass-hi), transparent 36%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
a.pane { color: inherit; text-decoration: none; }
a.pane img { transition: transform .5s ease; }
a.pane:hover img { transform: scale(1.04); }
.pane__tag {
  position: absolute; z-index: 2; inset-inline-start: 10px; inset-block-end: 10px; max-width: calc(100% - 20px);
  background: var(--scrim); color: #FFFFFF; font-size: .84rem; line-height: 1.35; padding: 5px 10px; border-radius: 2px;
}
a.pane:hover .pane__tag, a.pane:focus-visible .pane__tag { background: #0B2A7A; }
.pane--lead {
  grid-column: 1 / 8; grid-row: 1 / 4;
  background: radial-gradient(120% 90% at 90% 0%, #FFFFFF 40%, #EDF1F7);
  color: var(--ink); padding: clamp(24px, 4.2vw, 60px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
}
.pane--lead::after { display: none; }
.pane--lead h1 { color: var(--night); font-size: var(--fs-hero); }
.pane--lead p { color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 40rem; }
.pane--lead .hero-note { font-size: .92rem; color: var(--ink-2); }
.p1 { grid-column: 8 / 13; grid-row: 1 / 3; }
.p2 { grid-column: 8 / 10; grid-row: 3 / 4; }
.p3 { grid-column: 10 / 13; grid-row: 3 / 4; }
.p4 { grid-column: 1 / 4; grid-row: 4 / 5; }
.p5 { grid-column: 4 / 6; grid-row: 4 / 5; }
.p6 { grid-column: 6 / 9; grid-row: 4 / 5; }
.p7 { grid-column: 9 / 13; grid-row: 4 / 5; }
@media (max-width: 1000px) {
  .facade { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: 180px; }
  .pane--lead { grid-column: 1 / -1; grid-row: auto; }
  .p1 { grid-column: 1 / 5; grid-row: auto; } .p2 { grid-column: 5 / 7; grid-row: auto; }
  .p3 { grid-column: 1 / 3; grid-row: auto; } .p4 { grid-column: 3 / 5; grid-row: auto; } .p5 { grid-column: 5 / 7; grid-row: auto; }
  .p6 { grid-column: 1 / 4; grid-row: auto; } .p7 { grid-column: 4 / 7; grid-row: auto; }
}
@media (max-width: 640px) {
  .facade { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: 150px; --mullion: 5px; }
  .p1 { grid-column: 1 / -1; }
  .p2, .p3, .p4, .p5 { grid-column: auto; }
  .p6, .p7 { display: none; }
  .pane--lead { min-height: 0; }
}

/* ---------- nameplate ---------- */
.plate {
  position: relative; color: var(--plate-ink);
  background:
    radial-gradient(circle at 16px 16px, var(--rivet-hi) 0 1.5px, var(--rivet) 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 16px) 16px, var(--rivet-hi) 0 1.5px, var(--rivet) 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at 16px calc(100% - 16px), var(--rivet-hi) 0 1.5px, var(--rivet) 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), var(--rivet-hi) 0 1.5px, var(--rivet) 2.5px 4px, transparent 4.5px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 3px, rgba(30,40,60,.035) 3px 4px),
    linear-gradient(180deg, var(--plate-top), var(--plate-bot));
  border: 1px solid var(--plate-edge); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.08), 0 14px 30px -24px rgba(7,22,52,.6);
  padding: clamp(22px, 3vw, 32px) clamp(26px, 4vw, 48px);
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.plate h2 { font-size: 1.05rem; color: var(--plate-ink); margin-block-end: 18px; font-weight: 700; }
html[lang="en"] .plate h2 { font-family: var(--font-body); font-stretch: 100%; font-weight: 600; letter-spacing: 0; }
.plate dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.plate dl > div { display: grid; gap: 2px; align-content: start; min-width: 0; }
.plate dt { font-weight: 600; font-size: .95rem; }
.plate .sub { font-size: .8rem; color: var(--plate-ink-2); line-height: 1.5; }
.plate dd { margin: 6px 0 0; font: 700 1.2rem/1.3 var(--font-body); letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.plate dd small { display: block; font-size: .8rem; font-weight: 500; letter-spacing: 0; color: var(--plate-ink-2); }
@media (max-width: 900px) { .plate dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .plate dl { grid-template-columns: 1fr; } }

/* ---------- services schedule ---------- */
.schedule { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.schedule li { border-bottom: 1px solid var(--line); min-width: 0; }
.svc { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 16px; color: inherit; text-decoration: none; }
.svc__img { width: 92px; aspect-ratio: 1; padding: 3px; background: linear-gradient(135deg, var(--steel-hi), var(--steel-lo)); border-radius: 2px; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc h3 { margin-block-end: 4px; }
.svc p { color: var(--ink-2); font-size: .95rem; line-height: 1.7; }
.svc:hover h3 { color: var(--cobalt); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.after-list { margin-block-start: 24px; }
@media (max-width: 780px) {
  .schedule { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .svc__img { width: 76px; }
}

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block-start: var(--mullion) solid var(--steel); }
.steps li { counter-increment: step; padding: 22px clamp(14px, 1.6vw, 22px) 6px; border-inline-start: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-width: 0; }
.steps li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.steps li::before { content: counter(step); font: 800 2.1rem/1 "Archivo", var(--font-body); font-stretch: 125%; color: var(--cobalt); font-variant-numeric: tabular-nums; margin-block-end: 8px; }
.steps p { color: var(--ink-2); font-size: .95rem; line-height: 1.7; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; border-block-start: 0; border-inline-start: var(--mullion) solid var(--steel); }
  .steps li, .steps li:first-child { border-inline-start: 0; padding: 14px 20px; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; border-block-end: 1px solid var(--line); }
  .steps li::before { grid-row: span 2; margin: 0; font-size: 1.8rem; }
}

/* ---------- spec sheet (materials) ---------- */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.spec { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 0; }
.spec th, .spec td { text-align: start; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { background: var(--surface-2); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec tbody th { font-weight: 600; width: 24%; }
.spec td.w { width: 26%; font-variant-numeric: tabular-nums; color: var(--ink); }
.spec td.w:empty::before { content: "\2014"; color: var(--steel-lo); }
.spec-note { margin-block-start: 12px; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 720px) {
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: auto !important; }
  .spec tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .spec tbody tr:last-child { border-bottom: 0; }
  .spec th, .spec td { padding: 0; border: 0; }
  .spec td { margin-block-start: 4px; color: var(--ink-2); }
  .spec td.w:not(:empty) { margin-block-start: 6px; font-weight: 600; color: var(--ink); }
  .spec td.w:not(:empty)::before { content: attr(data-label) ": "; font-weight: 400; color: var(--ink-2); }
  .spec td.w:empty { display: none; }
}

/* ---------- call-to-action band: a light brushed-steel panel ---------- */
.band { background: linear-gradient(180deg, #F7F9FB, #E9EEF4); color: var(--ink); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px 48px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.band h2 { color: var(--night); }
.band p { color: var(--ink-2); margin-block-start: 10px; max-width: 42rem; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--surface); }
.page-head .wrap { padding-block: clamp(28px, 5vw, 56px) clamp(32px, 5vw, 56px); display: grid; gap: 14px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .9rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--steel-lo); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--cobalt); text-decoration: underline; }
.page-head--split .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 24px clamp(28px, 5vw, 64px); }
.page-head--split .head-text { display: grid; gap: 16px; align-content: center; }
.head-figure { padding: var(--mullion); background: linear-gradient(90deg, var(--steel-lo), var(--steel-hi) 22%, var(--steel) 48%, var(--steel-hi) 74%, var(--steel-lo)); border-radius: 3px; box-shadow: var(--shadow); }
.head-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
@media (max-width: 860px) { .page-head--split .wrap { grid-template-columns: 1fr; } .head-figure { order: -1; } }

/* ---------- service page ---------- */
.systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.system { padding-block: 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.system h3 { margin-block-end: 8px; }
.system ul { padding-inline-start: 1.1em; display: grid; gap: 4px; color: var(--ink-2); }
.system li::marker { color: var(--cobalt); }
@media (max-width: 780px) { .systems { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(28px, 4vw, 64px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.tick-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-inline-start: 28px; }
.tick-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 13px; height: 7px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; direction: ltr; }
.other-services { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.other-services a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.other-services a:hover { color: var(--cobalt); }
@media (max-width: 860px) { .other-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .other-services { grid-template-columns: 1fr; } }

/* gallery: a small curtain wall */
.gallery {
  display: flex; flex-wrap: wrap; gap: 5px; padding: 5px;
  background: linear-gradient(90deg, var(--steel-lo), var(--steel-hi) 22%, var(--steel) 48%, var(--steel-hi) 74%, var(--steel-lo));
  border-radius: 3px; list-style: none;
}
.gallery li { min-width: 0; flex: 1 1 230px; }
@media (max-width: 520px) { .gallery li { flex-basis: 150px; } }
.gallery a, .gallery figure { position: relative; display: block; margin: 0; background: var(--surface-2); overflow: hidden; }
.gallery img { width: 100%; height: clamp(150px, 18vw, 220px); object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset-inline-start: 8px; inset-block-end: 8px; max-width: calc(100% - 16px); background: var(--scrim); color: #FFFFFF; font-size: .82rem; line-height: 1.35; padding: 4px 9px; border-radius: 2px; }
.gallery--sections img { object-fit: cover; }

/* ---------- about ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mullion); padding: var(--mullion); background: linear-gradient(90deg, var(--steel-lo), var(--steel-hi) 22%, var(--steel) 48%, var(--steel-hi) 74%, var(--steel-lo)); border-radius: 3px; }
.duo > div { background: var(--surface); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.duo p { color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.deflist { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.deflist > div { padding-block: 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.deflist dt { font-weight: 700; font-family: var(--font-display); font-size: 1.08rem; }
html[lang="en"] .deflist dt { font-family: var(--font-body); font-weight: 600; }
.deflist dd { margin: 4px 0 0; color: var(--ink-2); }
@media (max-width: 760px) { .deflist { grid-template-columns: 1fr; } }
.certs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block-start: 28px; }
.cert { display: grid; gap: 10px; align-content: start; min-width: 0; }
.cert a.cert__img { display: block; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cert a.cert__img:hover { border-color: var(--cobalt); }
.cert img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #FFFFFF; }
.cert h3 { font-size: 1.02rem; }
html[lang="en"] .cert h3 { font-family: var(--font-body); }
.cert p { color: var(--ink-2); font-size: .92rem; line-height: 1.6; }
@media (max-width: 860px) { .certs { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.card h2 { font-size: 1.25rem; }
.card .muted { color: var(--ink-2); font-size: .93rem; }
.wa-list, .mail-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.wa-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--wa); color: var(--wa-ink); text-decoration: none; font-weight: 700; }
.wa-link:hover { background: color-mix(in srgb, var(--wa) 88%, #000); }
.wa-link svg { width: 22px; height: 22px; flex: none; }
.wa-link .num { font-size: 1.08rem; }
.mail-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.mail-item a { font-weight: 600; overflow-wrap: anywhere; }
.copy-btn { flex: none; font: 500 .85rem/1 var(--font-body); padding: 7px 10px; border-radius: var(--radius); border: 1px solid var(--steel); background: var(--surface); color: var(--ink); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink-2); }
address { font-style: normal; }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background:
  linear-gradient(0deg, var(--surface-2) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, var(--surface-2) 1px, transparent 1px) 0 0 / 28px 28px,
  var(--surface); max-width: 100%; }
.map-card .map-inner { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; padding: 16px; }
.map-card .pin { width: 34px; height: 34px; margin-inline: auto; color: var(--cobalt); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.legal-list { margin: 0; display: grid; gap: 8px; }
.legal-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border-bottom: 1px solid var(--line); padding-block: 8px; }
.legal-list dt { color: var(--ink-2); }
.legal-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr 1fr; } .contact-grid .card--address { grid-column: 1 / -1; } }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- quote form ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { order: 2; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.4vw, 36px); display: grid; gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: .97rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.field .req { color: var(--danger); }
.field .hint { font-size: .85rem; color: var(--ink-2); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--steel); background: var(--surface); color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
}
textarea.input { min-height: 140px; resize: vertical; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.input.ltr-input { direction: ltr; text-align: start; }
[dir="rtl"] .input.ltr-input { text-align: right; }
.field .error { color: var(--danger); font-size: .88rem; font-weight: 500; }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--steel); border-radius: 999px; background: var(--surface); font-size: .95rem; cursor: pointer; user-select: none; }
.chip span::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--steel-lo); flex: none; }
.chip input:checked + span { background: var(--cobalt-soft); border-color: var(--cobalt); color: var(--ink); }
.chip input:checked + span::before { background: var(--cobalt); border-color: var(--cobalt); box-shadow: inset 0 0 0 3px var(--cobalt-soft); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip-set[aria-invalid="true"] .chip span { border-color: var(--danger); }
.drop {
  border: 2px dashed var(--steel); border-radius: var(--radius); padding: 22px 18px; text-align: center; background: var(--tint);
  display: grid; gap: 6px; justify-items: center; transition: border-color .15s, background-color .15s;
}
.drop.is-over { border-color: var(--cobalt); background: var(--cobalt-soft); }
.drop svg { width: 30px; height: 30px; color: var(--steel-lo); }
.drop .browse { background: none; border: 0; padding: 0; color: var(--cobalt); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.drop .hint { max-width: 32rem; }
.file-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); font-size: .93rem; min-width: 0; }
.file-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.file-list .fsize { color: var(--ink-2); font-variant-numeric: tabular-nums; direction: ltr; }
.file-list button { background: none; border: 0; color: var(--danger); font: 500 .88rem/1 var(--font-body); cursor: pointer; padding: 6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: .35em; flex: none; accent-color: var(--cobalt); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; flex: 1 1 160px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--cobalt); transition: width .2s; }
.alert { padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; }
.alert--error { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.alert--info { background: var(--cobalt-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--cobalt) 30%, transparent); }
.success { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 36px); display: grid; gap: 14px; }
.success h2 { color: var(--ok); font-size: 1.5rem; }
.success .ref { font: 800 1.6rem/1.2 "Archivo", var(--font-body); font-stretch: 125%; direction: ltr; unicode-bidi: isolate; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote-aside { display: grid; gap: 20px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.aside-box h2 { font-size: 1.15rem; }
html[lang="en"] .aside-box h2, html[lang="en"] .card h2 { font-family: var(--font-body); font-stretch: 100%; font-weight: 700; letter-spacing: 0; }

/* ---------- prose ---------- */
.prose { max-width: 46rem; display: grid; gap: 28px; }
.prose section { display: grid; gap: 10px; }
.prose h2 { font-size: 1.3rem; }
.prose p { color: var(--ink-2); }
.updated { color: var(--ink-2); font-size: .92rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--tint); color: var(--ink-2); margin-top: auto; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-block: clamp(44px, 6vw, 72px) 36px; }
.site-footer h2 { font: 700 .95rem/1.4 var(--font-body); color: var(--night); margin-block-end: 14px; font-stretch: 100%; letter-spacing: 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--cobalt); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand .foot-logo { justify-self: start; display: inline-block; border-radius: var(--radius); }
.foot-brand .foot-logo img { height: 50px; width: auto; }
.foot-brand p { font-size: .95rem; max-width: 26rem; }
.site-footer .num { color: var(--ink); }
.site-footer dl { margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.site-footer dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px 96px; font-size: .88rem; border-top: 1px solid var(--line); }
.site-footer .bottom-wrap { padding-block: 0; } /* the extra bottom space keeps the last links clear of the floating WhatsApp button */
@media (max-width: 980px) { .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; z-index: 60; inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: end; gap: 10px; }
[dir="rtl"] .wa-float { justify-items: start; }
.wa-fab { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 18px 10px 16px; border-radius: 999px; background: var(--wa); color: var(--wa-ink); border: 0; font: 700 1rem/1 var(--font-body); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); cursor: pointer; text-decoration: none; }
.wa-fab svg { width: 24px; height: 24px; }
.wa-sheet { width: min(320px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; }
.wa-sheet header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wa-sheet h2 { font: 700 1rem/1.3 var(--font-body); letter-spacing: 0; font-stretch: 100%; }
.wa-sheet .x { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 6px; border-radius: var(--radius); }
.wa-sheet .x svg { width: 18px; height: 18px; }
.wa-sheet p { font-size: .86rem; color: var(--ink-2); }
@media print { .wa-float, .site-header, .site-footer, .band { display: none !important; } }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: min(1100px, 94vw); max-height: 92vh; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 9, 22, .86); }
.lightbox figure { margin: 0; display: grid; gap: 10px; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; margin-inline: auto; background: #FFFFFF; border-radius: 3px; }
.lightbox figcaption { color: #FFFFFF; text-align: center; font-size: .95rem; }
.lightbox .lb-close { position: absolute; top: -14px; inset-inline-end: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #FFFFFF; color: #0D1A33; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.lightbox .lb-close svg { width: 18px; height: 18px; }
.lightbox .lb-nav { display: flex; justify-content: center; gap: 10px; }
.lightbox .lb-nav button { min-height: 40px; padding: 6px 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.4); background: transparent; color: #FFFFFF; font: 500 .9rem/1 var(--font-body); cursor: pointer; }

/* ---------- small utilities ---------- */
.section--flush { padding-block-start: 0; }
.h-sm { font-size: 1.2rem; margin-block-end: 14px; }
html[lang="en"] .h-sm { font-family: var(--font-body); font-stretch: 100%; font-weight: 700; letter-spacing: 0; }
.mt-s { margin-block-start: 10px; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.field-label { font-weight: 600; font-size: .97rem; }
.plate .sub { display: block; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.steps--mini { grid-template-columns: 1fr; border: 0; }
.steps--mini li, .steps--mini li:first-child { border: 0; padding: 6px 0; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; }
.steps--mini li::before { grid-row: span 2; margin: 0; font-size: 1.5rem; }
.steps--mini h3 { font-size: 1rem; }

/* ---------- 404 ---------- */
.nf { display: grid; gap: 18px; max-width: 40rem; }
.nf ul { list-style: none; padding: 0; display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .facade::after { display: none; }
}

/* brand chips inside the spec sheet */
.brands { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.brands li { direction: ltr; unicode-bidi: isolate; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint); font-size: .9rem; white-space: nowrap; }
.spec .note { display: block; margin-block-start: 6px; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 720px) { .spec td .brands { margin-block-start: 8px; } }
/* compact WhatsApp button on phones */
@media (max-width: 640px) {
  .wa-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa-fab svg { width: 28px; height: 28px; }
}
