:root {
  --ink: #17202a;
  --muted: #65717d;
  --surface: #ffffff;
  --surface-soft: #f4f6f7;
  --line: #dce2e6;
  --brand: #253742;
  --brand-dark: #17252d;
  --accent: #c28a44;
  --accent-dark: #95662e;
  --shadow: 0 18px 45px rgba(21, 33, 41, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #e9edef;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(37, 55, 66, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.container { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
.narrow-container { width: min(760px, calc(100% - 48px)); }

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

.brand { flex: 0 1 292px; }
.brand img { width: 292px; }

.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  padding: 9px 12px;
  color: #33434d;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.main-nav a:hover { color: var(--brand-dark); background: #edf1f3; transform: translateY(-1px); }
.main-nav a.active { color: #fff; background: var(--brand); }

.hero {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(19, 31, 38, 0.18), rgba(19, 31, 38, 0.04)),
    url("images/projects/AJIN-Tunnel.jpg") center 47% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(to top, rgba(16, 27, 34, 0.35), transparent);
}

.page-hero {
  padding: 54px 0 48px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(23, 37, 45, 0.98), rgba(37, 55, 66, 0.86)),
    url("images/i_back_concrete.gif") center / auto repeat;
  border-bottom: 5px solid var(--accent);
}
.page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; color: var(--brand-dark); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.035em; }
.page-hero h1 { margin: 0; color: #fff; }
h2 { color: var(--brand-dark); font-size: 1.3rem; line-height: 1.3; }
p:last-child { margin-bottom: 0; }

.content-section { padding: 62px 0 72px; background: var(--surface-soft); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr); gap: 28px; }

.content-card, .project-card, .reference-card, .contact-card, .image-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 28px rgba(27, 42, 51, 0.07);
}
.content-card { padding: 34px; }
.intro-card { border-top: 5px solid var(--brand); }
.services-summary { border-top: 5px solid var(--accent); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid #e8ecee; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(194, 138, 68, 0.14); }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }

.services-intro { margin-bottom: 30px; }
.service-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.image-card { overflow: hidden; margin: 0; }
.image-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 300ms ease; }
.image-card:hover img { transform: scale(1.025); }
.image-card figcaption { padding: 18px 20px; color: var(--brand-dark); font-weight: 750; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { color: #fff; background: var(--accent-dark); }
.secondary-button { background: transparent; }
.secondary-button:hover { background: rgba(255,255,255,0.12); }

.project-list { display: grid; gap: 28px; }
.project-card { overflow: hidden; }
.project-copy { padding: 30px 32px 20px; }
.project-copy h2 { margin-bottom: 6px; }
.location { margin-bottom: 12px; color: var(--accent-dark); font-style: italic; font-weight: 650; }
.project-images { display: grid; }
.project-images.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-images a { overflow: hidden; background: #dce2e6; }
.project-images img { width: 100%; height: 310px; object-fit: cover; transition: transform 300ms ease; }
.project-images a:hover img { transform: scale(1.025); }
.horizontal-card { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr); }
.horizontal-card .project-copy { align-self: center; }
.horizontal-card .project-images img { height: 100%; min-height: 300px; }

.reference-card { padding: 28px; border-left: 5px solid var(--accent); }
.reference-card h2 { margin-bottom: 5px; }
.reference-card p { margin-bottom: 8px; color: var(--muted); }
.reference-card a { font-weight: 750; }

.contact-card { padding: 38px; border-top: 5px solid var(--accent); }
.contact-card address { margin: 0 0 28px; color: var(--muted); font-style: normal; }
.contact-details { margin: 0; }
.contact-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.contact-details dt { color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-details dd { margin: 0; font-weight: 750; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-grid a { overflow: hidden; background: #dce2e6; border-radius: 14px; box-shadow: 0 8px 24px rgba(27, 42, 51, 0.09); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 300ms ease, filter 300ms ease; }
.gallery-grid a:hover img { transform: scale(1.035); filter: saturate(1.06); }

.sitemap-list { display: grid; gap: 12px; }
.sitemap-list a { display: block; padding: 16px 18px; color: var(--brand-dark); background: #fff; border: 1px solid var(--line); border-radius: 11px; font-weight: 750; text-decoration: none; }
.sitemap-list a:hover { border-color: var(--accent); transform: translateX(3px); }

.site-footer { color: #d9e0e3; background: var(--brand-dark); }
.footer-inner { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0; }
.footer-nav { display: flex; gap: 9px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-nav a { color: #fff; font-size: 0.88rem; text-decoration: none; }
.footer-nav a:hover { color: #f0c084; }
.site-footer p { margin: 0; color: #aeb9bf; font-size: 0.83rem; }

@media (max-width: 860px) {
  .site-shell { width: min(100% - 20px, 1180px); margin: 10px auto; border-radius: 16px; }
  .header-inner { min-height: 0; padding: 22px 0; flex-direction: column; align-items: flex-start; gap: 18px; }
  .brand { flex-basis: auto; }
  .main-nav { justify-content: flex-start; }
  .main-nav a { padding: 8px 10px; }
  .hero { min-height: 290px; }
  .home-grid, .horizontal-card { grid-template-columns: 1fr; }
  .horizontal-card .project-images img { min-height: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .container, .narrow-container, .header-inner, .footer-inner { width: min(100% - 30px, 1040px); }
  .site-shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .header-inner { padding: 18px 0; }
  .brand img { width: min(292px, 82vw); }
  .main-nav { gap: 6px; }
  .main-nav a { font-size: 0.72rem; }
  .hero { min-height: 230px; }
  .page-hero { padding: 40px 0 34px; }
  .page-hero-row { align-items: flex-start; flex-direction: column; }
  .content-section { padding: 40px 0 48px; }
  .content-card, .contact-card { padding: 24px; }
  .two-columns, .service-gallery, .gallery-grid, .project-images.two-up { grid-template-columns: 1fr; }
  .project-copy { padding: 24px 24px 16px; }
  .project-images img { height: 245px; }
  .contact-details > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-nav { flex-direction: column; }
}

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