:root {
  --navy: #071f3d;
  --blue: #0a5fd1;
  --blue-soft: #eaf3ff;
  --sky: #d8ebff;
  --white: #ffffff;
  --ink: #152235;
  --muted: #64748b;
  --line: #dbe7f5;
  --card: #f8fbff;
  --shadow: 0 24px 70px rgba(7, 31, 61, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

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

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 231, 245, 0.8);
}

.navbar {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  .brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 25px rgba(10, 95, 209, 0.25);
}

.brand-text {
  font-size: 1.02rem;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #24364c;
  font-weight: 650;
  font-size: 0.94rem;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-links .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding-inline: 18px;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  background: var(--blue);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--blue-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: 180ms ease;
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 84px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  margin-bottom: 24px;
}

h2 {
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
}

h3 {
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-subtitle,
.section-heading p,
.package-tag,
.service-card p,
.process-step p,
.site-footer p {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 670px;
  font-size: 1.18rem;
  margin-bottom: 34px;
}

.hero-actions,
.package-card .button {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(7, 31, 61, 0.12);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.button.secondary {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: transparent;
}

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.property-frame {
  width: 100%;
  aspect-ratio: 1800 / 1200;
  height: auto;
  position: relative;
  overflow: hidden;
  background: #eaf4ff;
}
  .hero-property-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: Cover;
  object-position: center;
}

.property-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.95) 0 42px, transparent 43px),
    linear-gradient(135deg, rgba(10, 95, 209, 0.18), rgba(255, 255, 255, 0));
}

.property-house {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: 260px;
  transform: translateX(-50%);
}

.roof {
  width: 0;
  height: 0;
  border-left: 145px solid transparent;
  border-right: 145px solid transparent;
  border-bottom: 90px solid var(--navy);
  transform: translateX(-15px);
}

.house-body {
  height: 145px;
  border-radius: 8px 8px 20px 20px;
  background: var(--white);
  border: 1px solid rgba(7, 31, 61, 0.12);
  display: flex;
  align-items: end;
  justify-content: space-around;
  padding: 30px 30px 0;
  box-shadow: 0 18px 40px rgba(7, 31, 61, 0.12);
}

.window,
.door {
  display: block;
  background: var(--sky);
  border: 2px solid #b8d8fb;
}

.window {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 44px;
}

.door {
  width: 50px;
  height: 90px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--navy));
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  color: var(--muted);
}

.hero-card-footer strong {
  color: var(--navy);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 96px;
}

.intro-strip div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--card);
}

.stat {
  display: block;
  color: var(--blue);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 10px;
}

.intro-strip p {
  color: var(--muted);
  margin: 0;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
  align-items: start;
}

.section-heading {
  max-width: 680px;
}

.section-heading.centered {
  text-align: center;
  margin: 0 auto 46px;
}

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

.service-card,
.package-card,
.process-step,
.contact-card,
.quote-form {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-md);
}

.service-card {
  padding: 26px;
  min-height: 240px;
  transition: 180ms ease;
}

.service-card:hover,
.package-card:hover,
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(7, 31, 61, 0.1);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 30px;
}

.packages-section,
.process-section,
.quote-section {
  position: relative;
}

.packages-section::before,
.quote-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  z-index: -1;
}

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

.package-card {
  position: relative;
  padding: 30px;
  min-height: 470px;
  display: flex;
  flex-direction: column;
}

.package-card.featured {
  border-color: rgba(10, 95, 209, 0.45);
  box-shadow: 0 24px 70px rgba(10, 95, 209, 0.12);
}

.featured-label {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.package-card h3 {
  margin-top: 28px;
  font-size: 1.55rem;
}

.package-card ul {
  display: grid;
  gap: 13px;
  margin: 24px 0 30px;
}

.package-card li {
  position: relative;
  padding-left: 28px;
  color: #334155;
  font-weight: 650;
}

.package-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 900;
}

.package-button {
  margin-top: auto;
}

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

.process-step {
  padding: 26px;
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.portfolio-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 54px;
  align-items: start;
}
.portfolio-item {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(7, 31, 61, 0.18);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(7, 31, 61, 0.82);
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 1100px;
  width: 100%;
}

.lightbox-content img {
  width: 90vw;
  height: 85vh;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.lightbox-content p {
  margin: 14px 0 0;
  color: white;
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 160ms ease, background 160ms ease;
}

.lightbox-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

@media (max-width: 700px) {
  .lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}

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

.portfolio-item {
  min-height: 210px;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: var(--blue-soft);
}

.portfolio-one {
  background: linear-gradient(135deg, #e7f2ff, #c9e1fb);
}

.portfolio-two {
  background: linear-gradient(135deg, #f6fbff, #bcd8f6);
}

.portfolio-three {
  background: linear-gradient(135deg, #d8ebff, #f7fbff);
}

.portfolio-four {
  background: linear-gradient(135deg, #eef7ff, #ccdff2);
}

.portfolio-five {
  background: linear-gradient(135deg, #c9e1fb, #f5fbff);
}

.portfolio-six {
  background: linear-gradient(135deg, #071f3d, #0a5fd1);
}

.portfolio-item figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: var(--white);
  font-weight: 850;
}

.quote-content {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  margin-top: 28px;
  background: var(--card);
}

.contact-card span,
.footer-contact span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-card a,
.footer-contact a {
  color: var(--blue);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.quote-form {
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.two-columns {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  outline: none;
  transition: 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(10, 95, 209, 0.65);
  box-shadow: 0 0 0 4px rgba(10, 95, 209, 0.12);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.hidden-field {
  display: none;
}

.form-button {
  width: 100%;
  border: 0;
  font-size: 1rem;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 30px;
}

.footer-brand {
  display: inline-block;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  color: #334155;
  font-weight: 750;
}

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

.footer-contact {
  display: grid;
  gap: 7px;
  align-content: start;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .portfolio-section,
  .quote-content {
    grid-template-columns: 1fr;
  }
  @media (max-width: 420px) {
  .brand-logo {
    width: 46px;
    height: 46px;
  }
}

  .hero {
    min-height: auto;
  }

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

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navbar,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .brand-text {
    font-size: 0.93rem;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 54px;
    gap: 38px;
  }

  .hero-card-footer {
    display: grid;
  }

  .intro-strip,
  .service-grid,
  .package-grid,
  .process-grid,
  .portfolio-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .intro-strip {
    padding-bottom: 70px;
  }

  .property-frame {
    height: 320px;
  }

  .property-house {
    width: 220px;
  }

  .roof {
    border-left-width: 125px;
    border-right-width: 125px;
    border-bottom-width: 78px;
  }

  .house-body {
    height: 128px;
  }

  .window {
    width: 36px;
    height: 36px;
  }

  .door {
    width: 44px;
    height: 78px;
  }

  .package-card,
  .service-card,
  .quote-form {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.65rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    max-width: 170px;
    line-height: 1.15;
  }

  .hero-actions .button {
    width: 100%;
  }
}
