/* AluWin Nizwa — Quality Elevated. Luxury Defined. */

/* ---------- tokens ---------- */
:root {
  --surface: #ffffff;
  --surface-alt: #f7fafd;
  --surface-sunk: #edf3f9;
  --surface-deep: #14171a;
  --on-deep: #f2f6fa;
  --on-deep-muted: #9aa6b3;
  --ink: #000000;
  --ink-body: #1f2124;
  --ink-muted: #55595e;
  --brand: #2b5baa;
  --brand-strong: #1f4480;
  --brand-tint: #e4edf9;
  --brand-wash: #f2f6fc;
  --glass: #85d8f7;
  --glass-tint: #d6e8f8;
  --line: #dbe4ee;
  --line-strong: #7d8c9e;
  --on-brand: #ffffff;
  --shadow-md: 0 6px 16px rgba(0, 0, 0, .10);
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #14171a;
    --surface-alt: #1a1e22;
    --surface-sunk: #20252a;
    --surface-deep: #0d0f11;
    --on-deep: #f2f6fa;
    --on-deep-muted: #9aa6b3;
    --ink: #f4f8fc;
    --ink-body: #dde4ec;
    --ink-muted: #9aa6b3;
    --brand: #6ea3e6;
    --brand-strong: #8fbaf0;
    --brand-tint: #1d2836;
    --brand-wash: #181d24;
    --glass: #85d8f7;
    --glass-tint: #243441;
    --line: #2a3036;
    --line-strong: #5d6771;
    --on-brand: #0d0f11;
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --surface: #14171a;
  --surface-alt: #1a1e22;
  --surface-sunk: #20252a;
  --surface-deep: #0d0f11;
  --on-deep: #f2f6fa;
  --on-deep-muted: #9aa6b3;
  --ink: #f4f8fc;
  --ink-body: #dde4ec;
  --ink-muted: #9aa6b3;
  --brand: #6ea3e6;
  --brand-strong: #8fbaf0;
  --brand-tint: #1d2836;
  --brand-wash: #181d24;
  --glass: #85d8f7;
  --glass-tint: #243441;
  --line: #2a3036;
  --line-strong: #5d6771;
  --on-brand: #0d0f11;
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .5);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-body);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }

h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.1; font-weight: 800; }
h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.3; font-weight: 700; }
h4 { font-size: 17px; line-height: 1.4; font-weight: 700; }
p { margin: 0; }

.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--brand);
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

section { border-top: 1px solid var(--line); }
section > .wrap { padding-block: clamp(56px, 8vw, 96px); }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; max-width: 62ch; color: var(--ink-body); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: 12px 18px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.bar img { height: 46px; width: auto; }
nav.main { margin-left: auto; display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 26px); align-items: center; }
nav.main a {
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-body); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--brand); border-bottom-color: var(--brand); }
nav.main a.btn:hover { color: var(--on-brand); border-bottom-color: var(--brand-strong); }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 2px solid var(--line-strong); border-radius: var(--r-md);
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 700;
  padding: 9px 14px; cursor: pointer; align-items: center; gap: 9px;
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle .bars { display: grid; gap: 3px; }
.nav-toggle .bars i { display: block; width: 16px; height: 2px; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; text-decoration: none;
  padding: 12px 20px; border-radius: var(--r-md); border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-tint); border-color: var(--brand-strong); color: var(--brand-strong); }
.btn.small { padding: 9px 16px; font-size: 13px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--r-sm); }

/* ---------- hero ---------- */
.hero { border-top: 0; }
.hero > .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 span { color: var(--brand); display: block; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.fact strong { display: block; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.fact span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }

.frame { position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(50% - 1px), rgba(255,255,255,.65) calc(50% - 1px), rgba(255,255,255,.65) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 2px, transparent 2px 25%);
}

/* ---------- generic grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-0 { gap: 0; }
.mb-block { margin-bottom: clamp(32px, 4vw, 48px); }
.mb-22 { margin-bottom: 22px; }
.mb-18 { margin-bottom: 18px; }
.stack { display: flex; flex-direction: column; }

.value { border-top: 2px solid var(--brand); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.value h4 { letter-spacing: .01em; }
.value p { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.value.spaced { padding-bottom: 18px; }

.panel { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.panel p { font-size: 15px; line-height: 25px; }

.strength { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.strength:last-child { border-bottom: 0; }
.strength .k { flex: 0 0 38%; font-weight: 700; color: var(--ink); font-size: 15px; line-height: 23px; }
.strength .v { font-size: 15px; line-height: 23px; color: var(--ink-muted); }

/* ---------- CEO ---------- */
.ceo { background: var(--surface-deep); color: var(--on-deep); }
.ceo h2, .ceo h3 { color: var(--on-deep); }
.ceo .eyebrow { color: var(--glass); }
.ceo > .wrap { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.ceo blockquote { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.ceo blockquote p { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; color: var(--on-deep); }
.ceo .sig { border-left: 2px solid var(--glass); padding-left: 16px; }
.ceo .sig strong { display: block; color: var(--on-deep); font-size: 16px; }
.ceo .sig span { font-size: 13px; color: var(--on-deep-muted); letter-spacing: .04em; }
.pull { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 800; color: var(--on-deep); margin-top: 16px; }
.pull em { font-style: normal; color: var(--glass); }

/* ---------- partnership ---------- */
.pact { background: var(--surface-alt); }
.pact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.pact-col { display: flex; flex-direction: column; gap: 24px; }
.pact-col .lede { max-width: none; }
ol.mou { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; gap: 2px; }
ol.mou li { counter-increment: m; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
ol.mou li::before {
  content: counter(m, decimal-leading-zero);
  font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .06em;
  padding-top: 4px; flex: 0 0 24px;
}
ol.mou strong { color: var(--ink); font-size: 15px; display: block; }
ol.mou span { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
figure { margin: 0; }
figure img { border-radius: var(--r-sm); }
figcaption { font-size: 12px; line-height: 18px; color: var(--ink-muted); margin-top: 10px; }

/* ---------- products ---------- */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
ul.products li { background: var(--surface); padding: 18px 16px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-body); display: flex; align-items: center; min-height: 64px; }
ul.products li::before { content: ""; width: 8px; height: 8px; margin-right: 12px; flex: none; background: var(--glass); border: 1px solid var(--brand); }

/* ---------- process ---------- */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); margin-bottom: clamp(40px, 5vw, 64px); }
ol.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
ol.steps li::before { content: "Step " counter(s); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
ol.steps h4 { font-size: 18px; }
ol.steps p { font-size: 14px; line-height: 22px; color: var(--ink-muted); }

.spec { border-collapse: collapse; width: 100%; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--ink); font-weight: 700; }
.spec td { color: var(--ink-muted); line-height: 23px; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 20px); }
.work figure { display: flex; flex-direction: column; gap: 0; }
.work img { aspect-ratio: 3 / 4; height: auto; object-fit: cover; width: 100%; border-radius: var(--r-sm); }
.work figcaption { font-weight: 600; color: var(--ink); font-size: 14px; margin-top: 12px; }
.work figcaption small { display: block; font-weight: 500; color: var(--ink-muted); font-size: 12px; letter-spacing: .02em; margin-top: 2px; }

/* ---------- contact ---------- */
.contact { background: var(--brand); color: var(--on-brand); border-top: 0; }
.contact h2, .contact a { color: var(--on-brand); }
.contact .eyebrow { color: var(--on-brand); opacity: .85; }
.contact > .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.contact-copy { display: flex; flex-direction: column; gap: 18px; }
.contact-copy p.intro { max-width: 46ch; font-size: 17px; line-height: 1.65; }
.contact-list { display: grid; gap: 2px; }
.contact-row { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.28); align-items: baseline; }
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { flex: 0 0 88px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.contact-row .v { font-size: clamp(16px, 1.8vw, 19px); font-weight: 600; }
.contact-row a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.contact-row a:hover { border-bottom-color: var(--on-brand); }
.contact .btn { background: var(--on-brand); border-color: var(--on-brand); color: var(--brand); }
.contact .btn:hover { background: var(--glass-tint); border-color: var(--glass-tint); color: var(--brand-strong); }
:root[data-theme="dark"] .contact .btn,
:root:not([data-theme="light"]) .contact .btn { color: var(--brand); }

/* ---------- footer ---------- */
footer.site { background: var(--surface-deep); color: var(--on-deep); }
footer.site > .wrap { padding-block: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); }
footer.site h3 { color: var(--on-deep); }
footer .col { display: flex; flex-direction: column; gap: 14px; }
footer .col h4 { color: var(--on-deep); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
footer .tagline { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--glass); font-weight: 600; }
footer p { color: var(--on-deep-muted); font-size: 15px; line-height: 25px; }
footer p.blurb { max-width: 52ch; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--on-deep); text-decoration: none; border-bottom: 1px solid rgba(242,246,250,.25); }
footer a:hover { border-bottom-color: var(--glass); }
.legal { border-top: 1px solid rgba(242,246,250,.15); margin-top: 8px; padding-top: 20px; font-size: 12px; color: var(--on-deep-muted); grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero > .wrap { grid-template-columns: 1fr; }
  .ceo > .wrap, .pact-grid, .contact > .wrap, footer.site > .wrap { grid-template-columns: 1fr; }
  .g4, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, ol.steps, .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav-toggle { display: inline-flex; }
  nav.main {
    display: none; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    width: 100%; order: 3;
    border-top: 1px solid var(--line);
    padding-block: 8px 14px;
  }
  nav.main.open { display: flex; }
  nav.main a { font-size: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.main a:hover { border-bottom-color: var(--line); }
  nav.main a.btn { margin-top: 12px; justify-content: center; font-size: 15px; padding: 12px 20px; }
  .bar { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .g2, .g3, .g4, ul.products, ol.steps, .work { grid-template-columns: 1fr; }
  .strength { flex-direction: column; gap: 4px; }
  .spec th { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  header.site, .nav-toggle, .hero .cta, .skip-link { display: none !important; }
  body { font-size: 12px; line-height: 18px; }
  section > .wrap { padding-block: 24px; }
}
