.hero {
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-white);
  background:
    linear-gradient(
      90deg,
      rgba(7, 19, 33, 0.92) 0%,
      rgba(7, 19, 33, 0.76) 52%,
      rgba(7, 19, 33, 0.42) 100%
    ),
    url("images/hero.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(7, 19, 33, 0.22));
}

.hero-content {
  max-width: 820px;
  padding: 120px 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-phone {
  display: inline-flex;
  margin-top: 20px;
  color: #f3f6f8;
  font-size: 16px;
  font-weight: 800;
}

.hero-phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.trust-bar {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.trust-item {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--color-border);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  margin-bottom: 4px;
  color: var(--color-navy);
  font-size: 15px;
}

.trust-item span {
  color: var(--color-muted);
  font-size: 14px;
}

section {
  padding: var(--section-spacing) 0;
  scroll-margin-top: 96px;
}

.section-header {
  max-width: 820px;
  margin-bottom: 44px;
}

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

.card {
  min-height: 220px;
  position: relative;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card::before {
  width: 46px;
  height: 3px;
  display: block;
  margin-bottom: 24px;
  background: var(--color-accent);
  content: "";
}

.card:hover {
  border-color: #c9c1b2;
  box-shadow: var(--shadow-card);
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 14px;
  color: var(--color-navy);
  font-size: 21px;
  line-height: 1.2;
}

.card p {
  color: var(--color-muted);
  font-size: 15px;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--color-blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.split {
  background: var(--color-surface-alt);
}

.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}

.split-copy {
  max-width: 570px;
}

.split p {
  margin-bottom: 28px;
}

.split-media {
  position: relative;
}

.split-media::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38%;
  height: 42%;
  border-top: 3px solid var(--color-accent);
  border-right: 3px solid var(--color-accent);
  pointer-events: none;
}

.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

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

.trust-section .section-header h2,
.trust-section .card h3 {
  color: var(--color-white);
}

.trust-section .section-header p,
.trust-section .card p {
  color: #c8d1dc;
}

.trust-section .card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.trust-section .card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.process {
  background: var(--color-surface);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: start;
}

.process-intro {
  max-width: 540px;
}

.process-steps {
  display: grid;
  gap: 18px;
}

.process-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}

.process-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.process-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 800;
}

.process-step h3 {
  margin-bottom: 6px;
  color: var(--color-navy);
  font-size: 20px;
}

.process-step p {
  color: var(--color-muted);
}

.portfolio {
  background: var(--color-cream);
}

.portfolio-category {
  padding: 54px 0;
  border-top: 1px solid var(--color-border);
}

.portfolio-category:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.category-header {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 24px;
}

.category-header h3 {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

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

.photo-grid figure {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-medium);
  background: #dedbd4;
  box-shadow: 0 10px 24px rgba(11, 23, 38, 0.06);
}

.photo-grid img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-grid figure:hover img {
  transform: scale(1.025);
}

.photo-grid .wide {
  grid-column: span 2;
}

.photo-grid .tall {
  height: 598px;
  grid-row: span 2;
}

.photo-grid .feature {
  grid-column: span 2;
  height: 380px;
}

.portfolio-cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.cta {
  color: var(--color-white);
  text-align: center;
  background:
    linear-gradient(rgba(11, 23, 38, 0.97), rgba(11, 23, 38, 0.97)),
    radial-gradient(circle at top right, rgba(183, 121, 56, 0.25), transparent 42%);
}

.cta h2 {
  color: var(--color-white);
}

.cta > .container > p {
  max-width: 720px;
  margin: 0 auto 14px;
  color: #cbd5e1;
  font-size: 18px;
}

.cta-assurance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #e4e9ef;
  font-size: 14px;
  font-weight: 700;
}

.cta-assurance::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
}

.estimate-form {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 38px auto 30px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

.estimate-form label {
  color: var(--color-white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  border: 1px solid #708095;
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-navy);
  padding: 14px 15px;
}

.estimate-form textarea {
  min-height: 150px;
  resize: vertical;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: 3px solid rgba(183, 121, 56, 0.34);
  border-color: var(--color-accent);
}

.form-submit {
  width: 100%;
  grid-column: 1 / -1;
  border: 0;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-privacy {
  grid-column: 1 / -1;
  color: #b8c3cf;
  font-size: 13px;
  text-align: center;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-small);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.form-status.success {
  display: block;
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.form-status.error {
  display: block;
  border: 1px solid #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-contact-options {
  margin-top: 24px;
}

.cta-email {
  display: block;
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 15px;
}

.cta-email:hover {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .split-inner,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .split-copy,
  .split-media {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .hero-content {
    padding: 88px 0 112px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .trust-bar {
    margin-top: -38px;
  }

  .services-grid,
  .category-header,
  .photo-grid,
  .estimate-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width,
  .form-submit,
  .form-privacy {
    grid-column: 1;
  }

  .category-header {
    gap: 14px;
    align-items: start;
  }

  .photo-grid .wide,
  .photo-grid .feature {
    grid-column: span 1;
  }

  .photo-grid img,
  .photo-grid .feature,
  .photo-grid .tall {
    height: 320px;
    grid-row: span 1;
  }

  .split img {
    height: 380px;
  }

  .split-media::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .trust-bar-inner,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .trust-item:nth-child(3) {
    border-bottom: 1px solid var(--color-border);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .card {
    min-height: auto;
  }

  .photo-grid img,
  .photo-grid .feature,
  .photo-grid .tall {
    height: 270px;
  }

  .split img {
    height: 320px;
  }

  .process-step {
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }
}
