:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #1e2b37;
  --muted: #5a6978;
  --brand: #204f92;
  --brand-dark: #163a6d;
  --accent: #d7463d;
  --border: #d6e0e9;
  --radius: 16px;
  --shadow: 0 16px 36px rgba(30, 43, 55, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: var(--brand-dark);
  color: #d8e5ff;
  font-size: 0.9rem;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: #fff;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
}

.brand span {
  color: var(--brand);
}

nav {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}

nav a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-solid {
  background: var(--brand);
  color: #fff;
}

.btn-solid:hover {
  background: var(--brand-dark);
}

.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(32, 79, 146, 0.08);
}

.btn.light {
  background: #fff;
  color: var(--brand-dark);
}

.hero {
  padding: 3.3rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  stroke: var(--brand);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.draw-path {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: drawIconMagic 5s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

@keyframes drawIconMagic {
  0%,
  10% {
    stroke-dashoffset: 250;
  }
  40%,
  60% {
    stroke-dashoffset: 0;
  }
  90%,
  100% {
    stroke-dashoffset: -250;
  }
}

.hero-actions {
  margin: 1.1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.hero-before-after {
  width: min(420px, 100%);
  margin: 0 auto;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 40px rgba(20, 44, 78, 0.32);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  aspect-ratio: 4 / 5;
}

.hero-image-before,
.hero-image-after {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hero-image-before {
  object-position: left top;
}

.hero-after-layer {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--split);
  overflow: hidden;
}

.hero-image-after {
  width: 420px;
  max-width: 100vw;
  min-width: 100%;
  object-fit: cover;
  object-position: right top;
}

.hero-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(25, 53, 90, 0.18);
  transform: translateX(-1px);
}

.hero-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid rgba(25, 53, 90, 0.2);
  box-shadow: 0 4px 14px rgba(17, 38, 68, 0.25);
  animation: splitHandleHint 2.1s ease-in-out infinite;
}

.hero-split-label {
  position: absolute;
  top: 0.6rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(18, 41, 74, 0.82);
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.split-before {
  left: 0.6rem;
}

.split-after {
  right: 0.6rem;
}

.hero-before-after.is-dragging .hero-divider::after {
  animation: none;
  transform: translate(-50%, -50%) scale(1.07);
}

@keyframes splitHandleHint {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.11);
  }
}

.section {
  padding: 4rem 0;
}

.area-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.area-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.area-layout {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  align-items: start;
}

.area-tags-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0.65rem;
}

.area-tags-panel .area-tags {
  margin-top: 0.15rem;
}

.area-map-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(18, 41, 74, 0.12);
}

.map-label {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #355274;
  border-bottom: 1px solid var(--border);
  background: #f8fbff;
}

.service-area-map {
  width: 100%;
  height: 360px;
  display: block;
}

.service-town-label {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d5deea;
  border-radius: 999px;
  color: #24405d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0.1rem 0.32rem;
  box-shadow: 0 2px 8px rgba(20, 44, 78, 0.12);
}

.service-town-label::before {
  display: none;
}

.alt {
  background: #ebf1f7;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-feature {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.project-feature img {
  border-radius: calc(var(--radius) - 4px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-feature p + p {
  margin-top: 0.7rem;
}

.work-carousel {
  margin-top: 1.1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 66%);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.work-carousel::-webkit-scrollbar {
  display: none;
}

.work-slide {
  scroll-snap-align: start;
  min-width: 0;
}

.work-slide img {
  aspect-ratio: auto;
  height: auto;
  object-fit: unset;
  object-position: initial;
  background: transparent;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-media {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.card-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-badge {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: rgba(22, 58, 109, 0.9);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
}

.highlight {
  border-left: 4px solid var(--accent);
}

.cta {
  padding-top: 0;
}

.cta-inner {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: 2.2rem 1.4rem;
}

.cta-inner p {
  margin: 0.4rem 0 1.2rem;
  color: rgba(255, 255, 255, 0.86);
}

.cta-inner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-inner a {
  color: var(--brand);
}

@media (max-width: 920px) {
  .nav {
    min-height: 62px;
  }

  .hero {
    padding: 0.9rem 0 2.2rem;
  }

  nav {
    display: none;
  }

  .nav .btn {
    display: none;
  }

  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.8rem 0;
  }

  .project-feature {
    grid-template-columns: 1fr;
  }

  .work-carousel {
    grid-auto-columns: minmax(88%, 1fr);
  }

  .area-layout {
    grid-template-columns: 1fr;
  }

  .service-area-map {
    height: 300px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .draw-path {
    animation: none;
  }
}
