:root {
  --navy: #102033;
  --navy-soft: #1b324d;
  --gray-900: #20242a;
  --gray-700: #4b5563;
  --gray-200: #e5e7eb;
  --gray-100: #f4f6f8;
  --white: #ffffff;
  --gold: #c98922;
  --orange: #e77620;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.14);
  --radius: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease;
}

.site-header.has-shadow {
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  border-radius: 6px;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--orange);
}

.nav-cta {
  padding: 10px 16px;
  color: var(--white) !important;
  background: var(--orange);
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 48px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  min-height: calc(100vh - 74px);
  max-width: 1280px;
  margin: 0 auto;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 650px;
  color: var(--gray-700);
  font-size: 1.12rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 12px 24px rgba(231, 118, 32, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #cf6519;
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: clamp(420px, 52vw, 620px);
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(310px, calc(100% - 36px));
  padding: 18px;
  color: var(--white);
  background: rgba(16, 32, 51, 0.92);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.trust-card strong,
.trust-card span {
  display: block;
}

.trust-card span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.about,
.portfolio {
  background: var(--gray-100);
}

.section-heading {
  max-width: var(--max-width);
  margin: 0 auto 34px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--gray-700);
}

.about-grid,
.service-grid,
.portfolio-grid,
.why-grid,
.estimate {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--gray-700);
  font-size: 1.05rem;
}

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

.service-card,
.why-item {
  min-height: 100%;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card p,
.why-item p,
.project-card p {
  color: var(--gray-700);
}

.icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
}

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

.project-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.08);
}

.project-body {
  padding: 20px;
}

.project-body span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--gray-200);
}

.before-after figure {
  position: relative;
  min-width: 0;
  margin: 0;
  background: var(--navy);
}

.before-after img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.before-after figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  color: var(--white);
  background: rgba(16, 32, 51, 0.86);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.why-us {
  color: var(--white);
  background: var(--navy);
}

.why-us h2,
.why-us h3 {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.why-item {
  background: var(--navy-soft);
  border-color: rgba(255, 255, 255, 0.12);
}

.why-item p {
  color: rgba(255, 255, 255, 0.76);
}

.estimate {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.estimate-copy p:not(.eyebrow) {
  color: var(--gray-700);
  font-size: 1.05rem;
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row-full {
  grid-column: 1 / -1;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid #cfd6df;
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(231, 118, 32, 0.22);
  border-color: var(--orange);
}

.form-note {
  margin-bottom: 0;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.form-note.is-success {
  color: #166534;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px clamp(18px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.78);
  background: #0b1726;
}

.site-footer h2,
.site-footer .brand {
  color: var(--white);
}

.site-footer h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-brand {
  margin-bottom: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  .hero,
  .estimate,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero-media img {
    height: 310px;
    min-height: 310px;
  }

  .service-grid,
  .portfolio-grid,
  .why-grid,
  .estimate-form {
    grid-template-columns: 1fr;
  }

  .form-row-full {
    grid-column: auto;
  }

  .button-row .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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