/* ============================================
   SUN STAR ELECTROMECHANICAL CO. LLC — styles
   ============================================ */

:root {
  --orange: #F3821F;
  --orange-deep: #C85F12;
  --orange-tint: #FCEADA;
  --orange-tint-2: #FDF3E9;
  --ink: #33343A;
  --ink-soft: #62636B;
  --white: #FFFFFF;
  --cream: #FFFCF8;
  --line: #EBE2D6;

  --font-head: "Roboto Slab", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, Helvetica, Arial, sans-serif;

  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--orange);
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--orange);
  transition: background .18s ease, color .18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--orange-deep);
  border-color: #fff;
}
.btn-white:hover { background: var(--orange-tint); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 248, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  letter-spacing: .01em;
}
.brand-text span {
  display: block;
  font-size: .68rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--orange);
  color: var(--orange-deep);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: .88rem; }

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-deep);
  flex-shrink: 0;
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--orange-tint); }
.icon-btn svg { width: 19px; height: 19px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--ink);
}

/* ---------- Hero (photo, fading into page) ---------- */
.hero { position: relative; background: #0e0e0e; padding: 0; margin: 0; }
.hero-bg {
  position: relative;
  background-color: #0e0e0e;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.78) 100%),
    url('../images/hero-dubai.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0 70px;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  margin-bottom: 20px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink:0; }
.hero h1 { max-width: 20ch; color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead {
  color: #EFE9E1;
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 auto;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.hero .btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- Inner page hero (About / Services / Projects / Contact) ---------- */
.inner-hero {
  position: relative;
  background-color: #0e0e0e;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.78) 100%),
    url('../images/hero-dubai.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 72px 0 54px;
  text-align: center;
}
.inner-hero .wrap { max-width: 820px; margin: 0 auto; }
.inner-hero .kicker { color: var(--orange); font-weight: 700; font-size: .82rem; letter-spacing: .06em; margin-bottom: 12px; }
.inner-hero h1 { color: #fff; margin-bottom: 12px; max-width: 34ch; margin-left: auto; margin-right: auto; }
.inner-hero p { color: #E9E2D8; max-width: 58ch; margin: 0 auto; }

/* ---------- Spec card (graphic hero visual — no photo) ---------- */
.spec-card {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.spec-card::before {
  content: "";
  position: absolute; top: -70px; right: -70px;
  width: 200px; height: 200px;
  background: var(--orange);
  opacity: .16;
  border-radius: 50%;
}
.spec-card::after {
  content: "";
  position: absolute; bottom: -50px; left: -50px;
  width: 140px; height: 140px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.spec-card .sc-label {
  font-size: .74rem; letter-spacing: .08em; font-weight: 700;
  color: var(--orange); margin-bottom: 16px;
  position: relative; z-index: 1;
}
.spec-card .sc-big {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 700;
  margin-bottom: 6px; position: relative; z-index: 1;
}
.spec-card .sc-sub { color: #C9C6C0; font-size: .9rem; margin-bottom: 24px; position: relative; z-index: 1; }
.spec-card .sc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; position: relative; z-index: 1; }
.spec-card .sc-chips span {
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 6px 13px; font-size: .78rem; color: #EFEAE3;
}
.spec-card .sc-stats {
  display: flex; gap: 20px; border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 20px; position: relative; z-index: 1;
}
.spec-card .sc-stats div { flex: 1; }
.spec-card .sc-stats .n { font-family: var(--font-head); font-size: 1.5rem; color: #fff; font-weight: 700; }
.spec-card .sc-stats .l { font-size: .72rem; color: #B9B6B0; margin-top: 3px; }

/* ---------- Badge panel (graphic about visual — no photo) ---------- */
.badge-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}
.badge-panel .bp-label {
  font-size: .74rem; letter-spacing: .06em; font-weight: 700;
  color: var(--orange-deep); margin-bottom: 14px;
}
.badge-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge-grid span {
  background: var(--orange-tint); color: var(--orange-deep);
  padding: 9px 15px; border-radius: 6px; font-weight: 600; font-size: .87rem;
}
.badge-panel .bp-iso { display: flex; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.badge-panel .bp-iso div { flex: 1; min-width: 140px; }
.badge-panel .bp-iso strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.badge-panel .bp-iso span { font-size: .78rem; color: var(--ink-soft); }

/* ---------- Brand grid (interactive) ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.brand-item {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-radius: 8px;
  padding: 22px 10px;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.brand-item:hover {
  transform: translateY(-4px);
  border-top-color: var(--orange);
  box-shadow: 0 14px 28px -18px rgba(30,20,10,.35);
}
.brand-item span { font-weight: 600; font-size: .9rem; color: var(--ink); }

/* ---------- Value grid (About page) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 18px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(30,20,10,.35); }
.value-card .vc-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
}
.value-card .vc-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1rem; margin-bottom: 6px; }
.value-card p { font-size: .84rem; margin: 0; }

/* ---------- Services pipeline (connected flow, click to expand) ---------- */
.pipeline-section { background: var(--ink); padding: 90px 0; }
.pipeline-section .section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.pipeline-section .kicker { color: var(--orange); }
.pipeline-section h2 { color: #fff; }
.pipeline-section .section-head p { color: #C9C6C0; margin: 10px auto 0; }
.pipeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 58px; }
.pipe-line {
  position: absolute; left: 27px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(180deg, var(--orange) 0%, rgba(243,130,31,.15) 100%);
  border-radius: 3px;
}
.pipe-node { position: relative; padding-bottom: 34px; cursor: pointer; }
.pipe-node:last-child { padding-bottom: 0; }
.pipe-dot {
  position: absolute; left: -58px; top: 0;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  border: 4px solid var(--ink);
  z-index: 2;
  transition: transform .2s ease;
}
.pipe-node:hover .pipe-dot { transform: scale(1.1); }
.pipe-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 20px 24px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.pipe-node:hover .pipe-card { background: rgba(255,255,255,.09); border-color: rgba(243,130,31,.45); transform: translateX(4px); }
.pipe-card .pc-kick { color: var(--orange); font-size: .72rem; font-weight: 700; letter-spacing: .05em; display: block; margin-bottom: 4px; }
.pipe-card h3 { color: #fff; margin-bottom: 6px; font-size: 1.05rem; }
.pipe-card p { color: #C9C6C0; font-size: .88rem; margin: 0; }
.pipe-card .tap-hint { color: var(--orange); font-size: .74rem; font-weight: 600; margin-top: 10px; display: inline-block; }

/* Services detail modal (text-only variant) */
.modal-box.text-only { grid-template-columns: 1fr; max-width: 560px; }
.m-bullets { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .93rem; }
.m-bullets li { margin-bottom: 7px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--ink);
  color: #fff;
  padding: 34px 0;
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-strip .num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--orange);
  font-weight: 700;
}
.stat-strip .label {
  font-size: .82rem;
  color: #D9D6D0;
  letter-spacing: .02em;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
section { padding: 78px 0; }
section.alt { background: var(--orange-tint-2); }
.section-head { margin-bottom: 42px; max-width: 62ch; }
.section-head .kicker {
  color: var(--orange-deep);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

/* ---------- About preview / two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.two-col img { border-radius: 4px; }
.two-col.rev { grid-template-columns: .95fr 1.05fr; }
.two-col.rev .media { order: 2; }

.pill-list { list-style: none; margin: 22px 0 0; padding: 0; }
.pill-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  color: var(--ink);
  font-size: .96rem;
}
.pill-list li:first-child { border-top: none; }
.pill-list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ---------- Services grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  padding: 28px 24px;
  border-radius: 4px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--orange);
  box-shadow: 0 18px 34px -20px rgba(30,20,10,.3);
}
.service-card .num {
  font-family: var(--font-head);
  color: var(--orange);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: .93rem; margin-bottom: 0; }

/* ---------- Project gallery ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 22px;
}
.proj-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
  height: 100%;
}
.proj-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.proj-card:hover img { transform: scale(1.06); }
.proj-card .tag {
  position: absolute; inset: auto 0 0 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, transparent, rgba(20,13,7,.88));
  color: #fff;
}
.proj-card .tag strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.proj-card .tag span { font-size: .78rem; color: #E9C89C; }

.proj-card.wide { grid-column: span 2; }

/* ---------- Process strip (icon-only, no photos) ---------- */
.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.process-step {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-step .pn {
  font-family: var(--font-head);
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { font-size: .87rem; margin: 0; }

/* ---------- Accordion (services) ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); background: #fff; transition: background .15s ease; }
.acc-item:hover { background: var(--orange-tint-2); }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 10px;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  flex-shrink: 0;
}
.acc-item[open] .acc-icon { background: var(--orange); color: #fff; }
.acc-item summary .titlewrap { flex: 1; }
.acc-item summary .kick { font-size: .74rem; font-weight: 700; letter-spacing: .05em; color: var(--orange-deep); display: block; margin-bottom: 2px; }
.acc-item summary h3 { margin: 0; font-size: 1.12rem; }
.acc-item .toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.acc-item .toggle::before, .acc-item .toggle::after {
  content: "";
  position: absolute;
  background: var(--orange-deep);
}
.acc-item .toggle::before { width: 12px; height: 2px; }
.acc-item .toggle::after { width: 2px; height: 12px; transition: transform .2s ease; }
.acc-item[open] .toggle::after { transform: rotate(90deg); opacity: 0; }
.acc-item .acc-body {
  padding: 0 10px 30px 90px;
  margin-top: -6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.acc-item .acc-body.with-photo { grid-template-columns: 1.4fr 1fr; align-items: start; }
.acc-item .acc-body p { margin-bottom: 14px; }
.acc-item .acc-body ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .93rem; }
.acc-item .acc-body li { margin-bottom: 6px; }
.acc-photo {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.acc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-photo .cap { padding: 8px 12px; font-size: .76rem; color: var(--ink-soft); background: var(--orange-tint-2); }

/* ---------- Lightbox modal (projects) ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(25,17,9,.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 8px;
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-box .m-img { background: var(--ink); }
.modal-box .m-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.modal-box .m-body { padding: 34px 32px; position: relative; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.modal-box .m-kicker { color: var(--orange-deep); font-weight: 700; font-size: .78rem; letter-spacing: .04em; margin-bottom: 8px; }
.modal-box h3 { font-size: 1.4rem; margin-bottom: 14px; }
.modal-box dl { margin: 0 0 18px; }
.modal-box dl div { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.modal-box dl div:first-child { border-top: none; }
.modal-box dl dt { color: var(--ink-soft); min-width: 90px; flex-shrink: 0; }
.modal-box dl dd { margin: 0; font-weight: 600; }
.proj-card { cursor: pointer; border: none; padding: 0; text-align: left; font: inherit; }

/* ---------- Clients strip ---------- */
.client-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 28px;
}
.client-strip div {
  padding: 16px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--orange-tint); margin-left: 6px; padding-left: 30px; }
.timeline-item { position: relative; padding-bottom: 38px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -37px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--cream);
}
.timeline-item .yr {
  font-family: var(--font-head);
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: #fff;
  padding: 56px 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #FCE6CD; margin: 6px 0 0; }

/* ---------- Table (project reference list) ---------- */
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .89rem;
  background: #fff;
}
.ref-table th, .ref-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.ref-table th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
}
.ref-table tr:nth-child(even) td { background: var(--orange-tint-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
}
.info-row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: none; }
.info-row .ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 700;
}
.info-row h4 { margin: 0 0 4px; font-size: .95rem; }
.info-row p { margin: 0; font-size: .93rem; }

form.contact-form { display: grid; gap: 16px; }
form.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form label { font-size: .85rem; font-weight: 600; margin-bottom: 6px; display: block; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
form.contact-form input:focus,
form.contact-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }

.map-frame {
  border: 0; width: 100%; height: 320px; border-radius: 4px; margin-top: 26px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #D9D6D0;
  padding: 56px 0 26px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #4A4B52;
}
footer .brand { align-items: center; }
footer .brand img {
  /* logo-light.png is a white + orange logo made for this dark footer,
     so no white box behind it (the white box hid the white half of the logo) */
  background: none;
  padding: 0;
}
footer .brand-text strong { color: #fff; }
footer h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; letter-spacing: .02em; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 9px; font-size: .89rem; }
footer a:hover { color: var(--orange); }
footer p { color: #B9B6B0; font-size: .89rem; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; font-size: .82rem; color: #A9A6A0; flex-wrap: wrap; gap: 10px;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-header .kicker { color: var(--orange); font-weight: 700; font-size: .82rem; letter-spacing: .06em; margin-bottom: 10px;}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: #D9D6D0; max-width: 56ch; margin: 0; }

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
}
.filter-tabs button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-tabs button.active,
.filter-tabs button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ---------- Scroll reveal (flowing, Apple-style entrance) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  nav.main-nav, .nav-cta .btn-outline { display: none; }
  .menu-toggle { display: flex; }
  .two-col, .two-col.rev { grid-template-columns: 1fr; }
  .two-col.rev .media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .proj-card.wide { grid-column: span 2; }
  .client-strip { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-bg { min-height: 520px; padding: 100px 0 70px; }
  .process-strip { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-bottom: 1px solid var(--line); }
  .modal-box { grid-template-columns: 1fr; }
  .modal-box .m-img img { min-height: 200px; }
  .acc-item .acc-body.with-photo { grid-template-columns: 1fr; }
  .pipeline { padding-left: 46px; }
  .pipe-line { left: 21px; }
  .pipe-dot { left: -46px; width: 44px; height: 44px; font-size: .82rem; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .proj-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-auto-rows: 240px; }
  .proj-card.wide { grid-column: span 1; }
  form.contact-form .row2 { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .process-strip { grid-template-columns: 1fr; }
  .acc-item .acc-body { padding-left: 10px; }
  .acc-item .acc-body.with-photo { grid-template-columns: 1fr; }
  .acc-item summary { gap: 12px; }
}

/* Mobile nav drawer */
nav.main-nav.open {
  display: block;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 28px 20px;
}
nav.main-nav.open ul { flex-direction: column; gap: 4px; }
nav.main-nav.open a { display: block; padding: 10px 0; }

/* Small phones: keep the header logo from overlapping the call / quote buttons */
@media (max-width: 480px) {
  .site-header .brand img { height: 44px; }
  .site-header .brand-text span { display: none; }
  .site-header .brand { gap: 8px; }
}
