﻿:root {
  --ink: #1e252b;
  --muted: #68727c;
  --line: #e7eaee;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --brand: #f3b21b;
  --brand-dark: #c98c00;
  --steel: #25313b;
  --green: #315b4f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.topbar {
  background: var(--steel);
  color: #fff;
  font-size: 14px;
}
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.topbar .wrap, .nav .wrap, .footer-bottom .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar a { color: #fff; }
.topbar span, .topbar a { padding: 10px 0; display: inline-block; }
.topbar .contact-strip { display: flex; gap: 22px; flex-wrap: wrap; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 14px rgba(20,30,40,.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand img { max-height: 54px; width: auto; }
.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.navlinks a {
  padding: 20px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #28313a;
  text-transform: uppercase;
}
.navlinks a:hover, .navlinks a.active { color: var(--brand-dark); }
.quote-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--brand);
  color: #1c2329;
  font-weight: 800;
  text-transform: uppercase;
  padding: 13px 18px;
  border-radius: 4px;
  cursor: pointer;
}
.quote-btn:hover, .btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.76);
}
.btn.secondary:hover { background: #fff; color: var(--ink); }
.hero {
  min-height: 660px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20,28,34,.88), rgba(20,28,34,.58), rgba(20,28,34,.2)),
    url("../images/bigstock-Construction-1173x440.jpg") center/cover no-repeat;
}
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p {
  max-width: 660px;
  margin: 22px 0 30px;
  font-size: 20px;
  color: #eef2f4;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section { padding: 82px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--steel); color: #fff; }
.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}
h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}
h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
p { color: var(--muted); margin: 0 0 16px; }
.dark p { color: #d9e0e6; }
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card-pad { padding: 26px; }
.service-card { min-height: 235px; }
.service-card .icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 4px;
  background: #fff4d7;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 800;
}
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 20px;
}
.tag {
  display: inline-block;
  padding: 5px 9px;
  background: #eef3f1;
  color: var(--green);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat strong {
  display: block;
  color: var(--brand-dark);
  font-size: 34px;
  line-height: 1;
}
.page-hero {
  padding: 118px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20,28,34,.86), rgba(20,28,34,.48)),
    url("../images/bg-page-title.jpg") center/cover no-repeat;
}
.page-hero.projects {
  background:
    linear-gradient(90deg, rgba(20,28,34,.86), rgba(20,28,34,.48)),
    url("../images/bg-portfolio-title.jpg") center/cover no-repeat;
}
.page-hero.contact {
  background:
    linear-gradient(90deg, rgba(20,28,34,.86), rgba(20,28,34,.48)),
    url("../images/bg-blog-title.jpg") center/cover no-repeat;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.05;
}
.page-hero p { max-width: 640px; color: #eef2f4; font-size: 19px; }
.list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
}
.contact-panel {
  padding: 30px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.contact-panel a { color: var(--brand-dark); font-weight: 800; }
.form-grid { display: grid; gap: 14px; }
input, textarea, select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d7dde2;
  border-radius: 4px;
  font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.footer {
  background:
    linear-gradient(rgba(31,39,46,.94), rgba(31,39,46,.94)),
    url("../images/footer.jpg") center/cover no-repeat;
  color: #fff;
  padding-top: 64px;
}
.footer p, .footer li { color: #d9e0e6; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: #fff; }
.footer-bottom {
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 18px 0;
  color: #d9e0e6;
}
.notice {
  padding: 28px;
  background: #fff8e5;
  border: 1px solid #f1d48a;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .topbar .wrap, .nav .wrap, .footer-bottom .wrap { align-items: flex-start; flex-direction: column; }
  .navlinks { padding-bottom: 12px; }
  .navlinks a { padding: 8px 8px 8px 0; }
  .hero { min-height: 560px; }
  .grid.two, .grid.three, .grid.four, .split, .stats { grid-template-columns: 1fr; }
}

.project-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.project-image-button img {
  transition: transform .35s ease, opacity .35s ease;
}
.project-image-button:hover img {
  transform: scale(1.04);
  opacity: .78;
}
.project-zoom {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  border-radius: 4px;
  background: rgba(243,178,27,.94);
  color: #1c2329;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.dark-btn {
  border-color: var(--steel);
  color: var(--steel);
}
.dark-btn:hover {
  background: var(--steel);
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.panorama-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.panorama-card p {
  padding: 18px 20px 22px;
  margin: 0;
}
.panorama-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.panorama-open img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .82;
}
.panorama-open span {
  position: absolute;
  inset: auto 20px 20px 20px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.media-modal.is-open { display: flex; }
.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,18,22,.86);
}
.media-modal-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}
.media-modal-dialog > img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #101418;
}
.media-modal-copy {
  padding: 22px 24px 26px;
}
.media-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #1c2329;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.panorama-dialog {
  width: min(1180px, 100%);
  background: #101418;
  color: #fff;
}
.panorama-dialog .media-modal-copy {
  background: #fff;
  color: var(--ink);
}
.panorama-viewer {
  position: relative;
  height: min(68vh, 620px);
  overflow: hidden;
  background: #101418;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.panorama-viewer.is-dragging { cursor: grabbing; }
.panorama-viewer img {
  height: 100%;
  width: auto;
  max-width: none;
  min-width: 180%;
  object-fit: cover;
  transform: translateX(0);
  will-change: transform;
}
.panorama-help {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  background: rgba(255,255,255,.92);
  color: #1c2329;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
body.modal-open { overflow: hidden; }
@media (max-width: 700px) {
  .media-modal { padding: 12px; }
  .panorama-viewer { height: 58vh; }
  .project-zoom { left: 12px; bottom: 12px; }
}
