/* ============================================================
   Unit Cabin — unitcabin.com
   Single stylesheet for all pages
   Palette: deep gray + warm off-white + steel blue accent
   ============================================================ */

:root {
  --ink: #16191c;
  --ink-2: #22272b;
  --ink-3: #2e3438;
  --paper: #f7f6f3;
  --white: #ffffff;
  --muted: #66707a;
  --muted-2: #8a929b;
  --line: #e5e3dd;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #2b6cb0;
  --accent-deep: #1f5691;
  --accent-soft: #e8f0f9;
  --ok: #2e8b57;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(22, 25, 28, 0.06);
  --shadow-md: 0 14px 40px rgba(22, 25, 28, 0.12);
  --shadow-lg: 0 24px 70px rgba(22, 25, 28, 0.22);
  --font: "Inter", "Helvetica Neue", "Segoe UI", Arial, "PingFang SC", sans-serif;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

ul, ol { list-style: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- layout utilities ---------- */

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #e9e7e2; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--ink .eyebrow { color: #7fb0e2; }
.section--ink .eyebrow::before { background: #7fb0e2; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p.lead { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.section--ink .section-head p.lead { color: #b8bec5; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(43, 108, 176, 0.32); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43, 108, 176, 0.4); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.08); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: translateY(-2px); }

.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); color: #fff; transform: translateY(-2px); }

.btn-sm { padding: 11px 20px; font-size: 0.9rem; }
.btn-lg { padding: 17px 32px; font-size: 1.04rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}
.site-header .header-in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header:not(.is-solid) { background: transparent; color: #fff; }
.site-header:not(.is-solid) .brand-name,
.site-header:not(.is-solid) .nav-list > li > a { color: #fff; }
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.brand-name b { color: var(--accent); font-weight: 800; }

.primary-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-block;
  padding: 10px 13px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
}
.nav-list > li > a:hover { color: var(--accent); }
.nav-list > li > a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.site-header:not(.is-solid) .nav-list > li > a:hover { color: #cfe2f6; }
.site-header:not(.is-solid) .nav-list > li > a[aria-current="page"] { color: #cfe2f6; }

.has-sub > a .caret { width: 10px; height: 10px; margin-left: 4px; transition: transform 0.2s ease; }
.has-sub:hover > a .caret, .has-sub:focus-within > a .caret { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
}
.sub-menu a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.sub-menu a span { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; margin-top: 1px; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.site-header:not(.is-solid) .btn-primary { box-shadow: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: all 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  min-height: min(100dvh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.42) 0%, rgba(10, 14, 18, 0.12) 34%, rgba(10, 14, 18, 0.72) 82%, rgba(10, 14, 18, 0.88) 100%);
}
.hero-in { width: 100%; padding: 150px 0 0; }
.hero-copy { max-width: 780px; padding-bottom: clamp(36px, 5vw, 60px); }
.hero-copy .eyebrow { color: #bcd6f0; }
.hero-copy .eyebrow::before { background: #bcd6f0; }
.hero-copy h1 { color: #fff; text-wrap: balance; }
.hero-copy .hero-sub {
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: #dfe4e9;
  max-width: 640px;
}
.hero-copy .btn-row { margin-top: 30px; }

.hero-usp {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-usp li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #e6eaee;
}
.hero-usp svg { width: 17px; height: 17px; color: #8ec1f0; flex: none; }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 6vw, 84px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.page-hero .page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}
.page-hero .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 15, 18, 0.9) 20%, rgba(12, 15, 18, 0.45) 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .page-lead { margin-top: 18px; max-width: 660px; color: #ccd2d8; font-size: 1.06rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #9aa3ac;
  margin-bottom: 20px;
}
.breadcrumb a { color: #c8cfd6; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #5c646c; }

/* ---------- stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.stat {
  background: var(--white);
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.5vw, 34px);
}
.stat b {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat b i { font-style: normal; color: var(--accent); }
.stat span { color: var(--muted); font-size: 0.92rem; }
.section--ink .stat-band, .section--ink .stat { background: transparent; }
.section--ink .stat-band { border-color: var(--line-dark); }
.section--ink .stat { border-right: 1px solid var(--line-dark); }
.section--ink .stat:last-child { border-right: 0; }
.section--ink .stat b { color: #fff; }
.section--ink .stat span { color: #a7aeb5; }

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

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card figure { position: relative; aspect-ratio: 16 / 10.2; overflow: hidden; }
.product-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover figure img { transform: scale(1.05); }
.product-card .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(22, 25, 28, 0.78);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.product-card .pc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.pc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}
.pc-specs li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}
.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--accent);
}
.pc-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.product-card:hover .pc-link svg { transform: translateX(4px); }

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #d3dbe4; }
.feature-card .fc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-card .fc-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.93rem; }

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.project-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 15, 18, 0) 40%, rgba(12, 15, 18, 0.82) 100%);
}
.project-card .pj-body { padding: 28px; }
.project-card .pj-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8cdee;
  margin-bottom: 8px;
}
.project-card h3 { color: #fff; font-size: 1.3rem; }
.project-card p { color: #d4d9de; font-size: 0.92rem; margin-top: 6px; }

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card figure { aspect-ratio: 16 / 8.5; overflow: hidden; }
.post-card figure img { width: 100%; height: 100%; object-fit: cover; }
.post-card .po-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .po-meta { font-size: 0.78rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 10px; }
.post-card h3 { font-size: 1.12rem; line-height: 1.35; flex: 1; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card p { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

/* ---------- split section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy p { color: var(--muted); margin-bottom: 16px; }
.check-list { margin: 8px 0 26px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 0.98rem; }
.check-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.section--ink .check-list li { color: #d5dade; }
.section--ink .check-list svg { color: #8ec1f0; }

/* ---------- process steps ---------- */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step h3 { font-size: 1.02rem; margin: 10px 0 8px; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* ---------- spec table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.spec-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.93rem; }
.spec-table th, .spec-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--ink); color: #fff; font-size: 0.86rem; letter-spacing: 0.04em; font-weight: 600; }
.spec-table tbody th { width: 30%; font-weight: 600; color: var(--ink-2); background: #fbfaf8; }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table td { color: var(--ink-3); }

/* ---------- gallery & lightbox ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery button { padding: 0; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.5s ease; }
.gallery button:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 12, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88dvh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }

/* ---------- accordion (FAQ) ---------- */

.accordion { display: grid; gap: 12px; max-width: 860px; }
.acc-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.acc-q:hover { color: var(--accent); }
.acc-q .acc-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.acc-item.is-open .acc-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.acc-a > div { padding: 0 24px 22px; color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  padding: clamp(44px, 6vw, 80px) clamp(26px, 5vw, 72px);
  isolation: isolate;
}
.cta-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(15, 19, 23, 0.92) 30%, rgba(15, 19, 23, 0.55)); }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { color: #cfd5da; max-width: 560px; margin-top: 12px; }
.cta-band .btn-row { margin-top: 28px; }

/* ---------- forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.form-field label em { color: #c0392b; font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  padding: 13px 15px;
  border: 1px solid #d8d5cf;
  border-radius: 10px;
  background: #fcfbfa;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.16);
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #c0392b; }
.field-error { font-size: 0.8rem; color: #c0392b; display: none; }
.form-field.has-error .field-error { display: block; }
.form-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 14px; }
.form-status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-size: 0.93rem; }
.form-status.is-ok { display: block; background: #e9f6ee; color: #20623c; border: 1px solid #bfe4cd; }
.form-status.is-err { display: block; background: #fdeceb; color: #96281b; border: 1px solid #f3c1bc; }

.contact-info-list { display: grid; gap: 20px; margin-top: 28px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ci-icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid; place-items: center;
}
.contact-info-list .ci-icon svg { width: 20px; height: 20px; }
.contact-info-list b { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-info-list span { color: var(--muted); font-size: 0.93rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #a9b0b7; padding: clamp(56px, 7vw, 84px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 52px; }
.site-footer h4 { color: #fff; font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; font-size: 0.93rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 16px 0 20px; font-size: 0.92rem; max-width: 320px; }
.footer-cert-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-cert-badges span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #c4cad0;
  border: 1px solid var(--line-dark);
  padding: 6px 11px;
  border-radius: 999px;
}
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: #7fb0e2; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #7d858d;
}
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- misc ---------- */

.float-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s ease;
}
.float-whatsapp:hover { transform: scale(1.08); color: #fff; }
.float-whatsapp svg { width: 27px; height: 27px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.tag-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag-strip span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
}

.quote-panel {
  background: var(--ink);
  color: #d5dade;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.quote-panel h3 { color: #fff; margin-bottom: 10px; }
.quote-panel p { font-size: 0.95rem; margin-bottom: 22px; }
.quote-panel .btn-row { flex-direction: column; align-items: stretch; }

.certificate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.certificate-card .cc-seal {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.certificate-card h3 { font-size: 1.05rem; }
.certificate-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.certificate-card a { font-size: 0.88rem; font-weight: 600; color: var(--accent); }

.article-body { max-width: 780px; }
.article-body > p, .article-body li { color: #3a4148; font-size: 1.02rem; margin-bottom: 18px; }
.article-body h2 { font-size: 1.5rem; margin: 38px 0 16px; }
.article-body h3 { font-size: 1.18rem; margin: 30px 0 12px; }
.article-body ul { list-style: none; margin: 0 0 18px; display: grid; gap: 10px; }
.article-body ul li { padding-left: 26px; position: relative; margin-bottom: 0; }
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.86rem; color: var(--muted-2); margin-bottom: 26px; }
.article-figure { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 30px; }
.article-figure img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; }

/* ---------- responsive ---------- */

/* 桌面端只显示 header 右上角的 CTA，导航内的按钮留给移动端抽屉菜单 */
.nav-cta { display: none; }

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .site-header.is-solid { background: rgba(255, 255, 255, 0.96); }
  .site-header:not(.is-solid) { background: rgba(10, 13, 16, 0.4); backdrop-filter: blur(10px); }

  .nav-toggle { display: flex; }
  .header-quote { display: none; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: var(--white);
    color: var(--ink);
    padding: calc(var(--header-h) + 20px) 26px 30px;
    transform: translateX(105%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .primary-nav.is-open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-header:not(.is-solid) .nav-list > li > a { color: var(--ink); }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 14px;
    display: none;
  }
  .has-sub.is-open .sub-menu { display: block; }
  .has-sub > a .caret { transition: transform 0.2s ease; }
  .has-sub.is-open > a .caret { transform: rotate(180deg); }
  .nav-cta { margin-top: 22px; display: block; }
  .nav-cta .btn { width: 100%; }

  body.nav-open { overflow: hidden; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 14, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split-media { order: -1; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .float-whatsapp { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .hero-copy .btn-row .btn { width: 100%; }
}

/* ---------- language switcher ---------- */
.lang-switch { position: relative; margin-right: 10px; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.72); user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch .ls-code { color: var(--accent); font-weight: 800; letter-spacing: 0.04em; }
.lang-switch[open] summary { border-color: var(--accent); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 184px; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); z-index: 60;
}
.lang-switch li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 0.9rem; }
.lang-switch li a:hover { background: var(--paper); }
.lang-switch li a.is-current { background: var(--accent); color: #fff; font-weight: 600; }

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .split-media { order: 2; }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .check-list li::before { margin-right: 0; margin-left: 12px; }
[dir="rtl"] .lang-switch ul { right: auto; left: 0; }
