:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #14161b;
  --muted: #666c76;
  --blue: #1266c3;
  --blue-dark: #06458e;
  --sky: #9be6ff;
  --red: #f0442e;
  --green: #58b741;
  --green-dark: #216b2f;
  --orange: #ff5a1f;
  --line: rgba(20, 22, 27, 0.12);
  --shadow: 0 24px 90px rgba(25, 30, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(155, 230, 255, 0.42), transparent 21%),
    radial-gradient(circle at 88% 6%, rgba(255, 90, 31, 0.16), transparent 18%),
    linear-gradient(180deg, #fffaf2 0%, #f5efe4 100%);
}

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  position: sticky;
  top: 14px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(30, 32, 43, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-house {
  width: 72px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-house svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.house-front {
  fill: #dff7ff;
  stroke: var(--blue);
  stroke-width: 5;
  stroke-linejoin: round;
}

.house-side {
  fill: #8cdfff;
  stroke: var(--blue-dark);
  stroke-width: 4;
  stroke-linejoin: round;
}

.roof,
.roof-inner {
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roof-inner {
  stroke: #2aa9f4;
  stroke-width: 4;
}

.siding {
  stroke: rgba(18, 102, 195, 0.33);
  stroke-width: 2;
}

.door,
.chimney {
  fill: var(--red);
}

.window {
  fill: #fff7d6;
  stroke: var(--red);
  stroke-width: 4;
}

.grass {
  fill: none;
  stroke: var(--green);
  stroke-width: 9;
  stroke-linecap: round;
}

.smoke {
  fill: none;
  stroke: #aeefff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  display: grid;
}

.brand-text span {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
  background: white;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 44px;
  align-items: center;
  position: relative;
  padding: 42px 0 56px;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blueprint-line {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(18, 102, 195, 0.12);
}

.line-a {
  width: 380px;
  height: 16px;
  right: 26%;
  top: 20%;
  transform: rotate(-12deg);
}

.line-b {
  width: 240px;
  height: 10px;
  left: -4%;
  bottom: 22%;
  transform: rotate(16deg);
}

.blueprint-dot {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(88, 183, 65, 0.14);
}

.dot-a {
  right: 7%;
  top: 16%;
}

.dot-b {
  left: 28%;
  bottom: 12%;
  background: rgba(255, 90, 31, 0.11);
}

.hero-copy,
.hero-photo-card {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 24px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  line-height: 0.93;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 8vw, 6.85rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.hero-photo-card {
  overflow: hidden;
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-photo-card img {
  width: 100%;
  height: min(66vh, 620px);
  min-height: 420px;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.02);
}

.photo-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  color: var(--ink);
}

.photo-caption strong,
.photo-caption span {
  display: block;
}

.photo-caption span {
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 76px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2,
.about-panel h2,
.contact-card h2 {
  max-width: 12ch;
}

.section-heading h2 {
  font-size: clamp(2.15rem, 4.4vw, 3.85rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 305px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 55px rgba(28, 35, 52, 0.06);
}

.service-card.blue {
  border-top: 8px solid var(--blue);
}

.service-card.red {
  border-top: 8px solid var(--red);
}

.service-card.sky {
  border-top: 8px solid var(--sky);
}

.service-card.green {
  border-top: 8px solid var(--green);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.blue .service-icon {
  color: var(--blue);
  background: rgba(18, 102, 195, 0.08);
}

.red .service-icon {
  color: var(--red);
  background: rgba(240, 68, 46, 0.08);
}

.sky .service-icon {
  color: var(--blue-dark);
  background: rgba(155, 230, 255, 0.32);
}

.green .service-icon {
  color: var(--green-dark);
  background: rgba(88, 183, 65, 0.12);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card li,
.about-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.service-card li {
  color: #343944;
  line-height: 1.55;
}

.service-card ul {
  margin: 14px 0 0;
  padding-left: 1.1rem;
}

.service-card li + li {
  margin-top: 0.28rem;
}

.about-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  align-items: center;
  padding: 34px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 88% 22%, rgba(155, 230, 255, 0.35), transparent 28%),
    var(--ink);
  color: white;
}

.about-panel .kicker {
  color: var(--sky);
}

.about-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
}

.about-copy p {
  max-width: 58ch;
}

.about-photo {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 4 / 3;
  min-height: 0;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}

.site-footer {
  background: var(--ink);
  color: white;
  margin-top: 16px;
}

.footer-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .site-header,
  .hero,
  .about-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .site-header,
  main {
    width: min(100% - 18px, 100%);
  }

  .site-header {
    position: static;
    margin-top: 9px;
    border-radius: 22px;
    padding: 10px 12px;
    gap: 10px;
  }

  .brand {
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .brand-house {
    width: 56px;
    height: 50px;
  }

  .brand-text {
    gap: 0;
    padding-top: 2px;
  }

  .brand-text span {
    font-size: 1.16rem;
  }

  .brand-text small {
    font-size: 0.88rem;
    color: #454c57;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .nav-links a {
    min-height: 42px;
    padding: 0 0.7rem;
  }

  .hero {
    min-height: auto;
    gap: 20px;
    padding: 24px 0 30px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.35rem, 17vw, 5.65rem);
  }

  .kicker {
    margin-bottom: 18px;
  }

  .hero-photo-card {
    transform: none;
    border-radius: 28px;
  }

  .hero-photo-card img {
    height: 340px;
    min-height: 0;
  }

  .photo-caption {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    min-height: auto;
  }

  .section {
    padding: 42px 0;
  }

  .services {
    padding-top: 36px;
  }

  .about {
    padding-top: 32px;
  }

  .about-panel {
    padding: 26px;
    border-radius: 28px;
  }

  .about-photo,
  .about-photo img {
    min-height: 0;
  }

}
