* {
  box-sizing: border-box;
}

:root {
  --navy: #071526;
  --navy-2: #0d223a;
  --blue: #2d7dff;
  --cyan: #62d7ff;
  --text: #132238;
  --muted: #637083;
  --line: #dfe7f0;
  --soft: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(7, 21, 38, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

.site-header {
  height: 82px;
  padding: 0 clamp(22px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 231, 240, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 20px rgba(45, 125, 255, 0.25);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  padding: 11px 18px;
  color: white !important;
  background: var(--navy);
  border-radius: 10px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 25px;
}

.hero {
  min-height: 690px;
  padding: 90px clamp(22px, 7vw, 110px);
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 125, 255, 0.20), transparent 33%),
    linear-gradient(145deg, #061323, #0b223b 72%, #10355b);
  color: white;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero .eyebrow,
.project-section .eyebrow,
.contact-section .eyebrow {
  color: var(--cyan);
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(45px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: #c9d8e8;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  padding: 0 23px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), #4da3ff);
  box-shadow: 0 14px 30px rgba(45, 125, 255, .28);
}

.button.secondary {
  color: white;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: #bcd0e4;
  font-size: 13px;
  font-weight: 600;
}

.hero-card {
  min-height: 460px;
  padding: 35px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 40px 100px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
}

.house-visual {
  height: 325px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(#132d4c 0 58%, #0a1727 58%);
}

.roof-line {
  width: 68%;
  height: 130px;
  position: absolute;
  left: 16%;
  top: 42px;
  background: #172131;
  clip-path: polygon(50% 0, 100% 72%, 88% 72%, 88% 100%, 12% 100%, 12% 72%, 0 72%);
}

.house-body {
  width: 59%;
  height: 150px;
  position: absolute;
  left: 20.5%;
  bottom: 38px;
  background: #d8e2ec;
}

.window {
  width: 54px;
  height: 58px;
  position: absolute;
  top: 33px;
  left: 34px;
  border: 5px solid #607187;
  background: #17304f;
}

.window:nth-child(2) {
  left: auto;
  right: 34px;
}

.window.lit {
  background: #ffd671;
  box-shadow: 0 0 34px rgba(255,214,113,.8);
}

.door {
  width: 48px;
  height: 77px;
  position: absolute;
  left: calc(50% - 24px);
  bottom: 0;
  background: #3c526b;
}

.light-string {
  width: 54%;
  position: absolute;
  left: 23%;
  top: 130px;
  display: flex;
  justify-content: space-between;
}

.light-string i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #72e4ff;
  box-shadow: 0 0 14px #72e4ff;
}

.control-panel {
  margin-top: 20px;
  padding: 17px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-panel small,
.control-panel strong {
  display: block;
}

.control-panel small {
  color: #afc3d8;
}

.toggle {
  width: 48px;
  height: 27px;
  padding: 3px;
  border-radius: 30px;
  background: #31485f;
}

.toggle::after {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  margin-left: 21px;
  border-radius: 50%;
  background: white;
}

.toggle.on {
  background: var(--blue);
}

.intro-strip {
  padding: 18px 24px;
  text-align: center;
  color: #415169;
  background: #eef5fb;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.intro-strip p {
  margin: 0;
}

.section {
  padding: 100px clamp(22px, 7vw, 110px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 45px;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 14px 36px rgba(17, 35, 56, .06);
}

.service-card.featured {
  border-color: rgba(45, 125, 255, .35);
  background: linear-gradient(160deg, #fafdff, #eef7ff);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
  font-size: 21px;
}

.service-card.featured .icon {
  background: var(--blue);
}

.service-card h3 {
  margin: 22px 0 10px;
  color: var(--navy);
  font-size: 22px;
}

.service-card p,
.service-card li {
  color: var(--muted);
}

.service-card ul {
  margin: 20px 0 0;
  padding: 18px 0 0 19px;
  border-top: 1px solid var(--line);
}

.service-card li {
  margin-bottom: 8px;
  font-size: 14px;
}

.project-section {
  color: white;
  background: var(--navy);
}

.section-heading.light h2 {
  color: white;
}

.section-heading.light > p:last-child {
  color: #b4c5d7;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 20px;
}

.photo-placeholder {
  min-height: 420px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(45,125,255,.15), rgba(98,215,255,.06)),
    #112842;
  border: 1px solid rgba(255,255,255,.12);
}

.photo-placeholder.large {
  min-height: 520px;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.photo-placeholder.missing-image::before {
  content: "PROJECT PHOTO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.25);
  font-weight: 800;
  letter-spacing: .18em;
}

.photo-placeholder figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(4,14,26,.72);
  backdrop-filter: blur(9px);
}

.photo-placeholder figcaption span,
.photo-placeholder figcaption small {
  display: block;
}

.photo-placeholder figcaption span {
  font-weight: 800;
}

.photo-placeholder figcaption small {
  color: #afc3d8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.steps article {
  padding-top: 23px;
  border-top: 2px solid var(--line);
}

.steps span {
  color: var(--blue);
  font-weight: 800;
}

.steps h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 19px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: clamp(45px, 8vw, 110px);
  color: white;
  background: linear-gradient(145deg, #071526, #0f3151);
}

.contact-copy h2 {
  color: white;
}

.contact-copy > p {
  max-width: 610px;
  color: #b8c9da;
}

.contact-details {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.contact-details a {
  width: fit-content;
}

.contact-details small,
.contact-details strong {
  display: block;
}

.contact-details small {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.contact-details strong {
  font-size: 18px;
}

.edit-note,
.form-note {
  color: #96acc2 !important;
  font-size: 11px;
}

.quote-form {
  padding: 28px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.quote-form label {
  margin-bottom: 15px;
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #d6e0ea;
  border-radius: 10px;
  background: #f9fbfd;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(45, 125, 255, .20);
  border-color: var(--blue);
}

.full {
  width: 100%;
}

footer {
  padding: 35px clamp(22px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 35px;
  color: var(--muted);
  background: #f6f9fc;
  font-size: 12px;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

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

  .hero-card {
    max-width: 620px;
    width: 100%;
  }

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

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

  .photo-placeholder,
  .photo-placeholder.large {
    min-height: 420px;
  }

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

  .contact-section {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding: 70px 22px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-card {
    min-height: 365px;
    padding: 18px;
  }

  .house-visual {
    height: 265px;
  }

  .section {
    padding: 75px 22px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .photo-placeholder,
  .photo-placeholder.large {
    min-height: 340px;
  }

  .contact-details strong {
    font-size: 15px;
    word-break: break-word;
  }
}


/* Motion and interaction */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-12px) rotate(0.3deg); }
}

@keyframes lightPulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.9);
    box-shadow: 0 0 10px #72e4ff;
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 24px #72e4ff, 0 0 42px rgba(45, 125, 255, 0.65);
  }
}

@keyframes windowGlow {
  0%, 100% {
    box-shadow: 0 0 22px rgba(255, 214, 113, 0.55);
  }
  50% {
    box-shadow: 0 0 48px rgba(255, 214, 113, 0.95);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes softGlow {
  0%, 100% {
    opacity: 0.25;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.48;
    transform: translate3d(18px, -12px, 0) scale(1.12);
  }
}

@keyframes togglePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 125, 255, 0.3); }
  50% { box-shadow: 0 0 0 9px rgba(45, 125, 255, 0); }
}

.hero-content {
  animation: fadeUp 0.9s cubic-bezier(.2,.8,.2,1) both;
}

.hero-card {
  animation:
    fadeIn 0.9s ease 0.18s both,
    floatCard 5.5s ease-in-out 1.1s infinite;
  transform-origin: center;
}

.hero {
  background-size: 180% 180%;
  animation: gradientShift 14s ease infinite;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: softGlow 8s ease-in-out infinite;
}

.hero::before {
  top: -180px;
  right: 5%;
  background: rgba(45, 125, 255, 0.32);
}

.hero::after {
  left: -180px;
  bottom: -220px;
  background: rgba(98, 215, 255, 0.18);
  animation-delay: -4s;
}

.light-string i {
  animation: lightPulse 1.8s ease-in-out infinite;
}

.light-string i:nth-child(2) { animation-delay: .15s; }
.light-string i:nth-child(3) { animation-delay: .3s; }
.light-string i:nth-child(4) { animation-delay: .45s; }
.light-string i:nth-child(5) { animation-delay: .6s; }
.light-string i:nth-child(6) { animation-delay: .75s; }
.light-string i:nth-child(7) { animation-delay: .9s; }

.window.lit {
  animation: windowGlow 2.6s ease-in-out infinite;
}

.toggle.on {
  animation: togglePulse 2.2s ease-out infinite;
}

.brand-mark {
  transition: transform .25s ease, box-shadow .25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 12px 28px rgba(45, 125, 255, 0.38);
}

.service-card,
.steps article,
.photo-placeholder,
.quote-form {
  transition:
    transform .3s cubic-bezier(.2,.8,.2,1),
    box-shadow .3s ease,
    border-color .3s ease;
}

.service-card:hover {
  transform: translateY(-9px);
  border-color: rgba(45, 125, 255, 0.42);
  box-shadow: 0 24px 55px rgba(17, 35, 56, .13);
}

.service-card:hover .icon {
  transform: rotate(-5deg) scale(1.08);
}

.icon {
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.photo-placeholder:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.3);
}

.photo-placeholder img {
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}

.photo-placeholder:hover img {
  transform: scale(1.045);
  filter: brightness(1.08);
}

.steps article:hover {
  transform: translateY(-6px);
  border-top-color: var(--blue);
}

.quote-form:hover {
  transform: translateY(-4px);
}

.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 55%;
  height: 200%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.35),
    transparent
  );
  transition: left .6s ease;
}

.button:hover::after {
  left: 130%;
}

/* Elements become visible as they enter the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .75s cubic-bezier(.2,.8,.2,1),
    transform .75s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
