:root {
  --ink: #172033;
  --navy: #10213f;
  --steel: #4f5a67;
  --mist: #f4f6f8;
  --line: #d9dee5;
  --white: #ffffff;
  --green: #2f6f5e;
  --gold: #b88a44;
  --shadow: 0 18px 50px rgba(16, 33, 63, 0.12);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-180%);
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(220px, 46vw);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  color: var(--steel);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a,
.header-cta,
.button {
  text-decoration: none;
}

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

.header-cta {
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 750;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 17, 31, 0.86), rgba(10, 17, 31, 0.58) 58%, rgba(10, 17, 31, 0.18)),
    url("public/images/portfolio/real-estate-resized/peninsula-and-road-approach.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  min-height: clamp(560px, 78vh, 720px);
  padding: clamp(3rem, 7vw, 5.2rem) 0 clamp(2rem, 5vw, 3.2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 980px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 7vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 930px;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.24);
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 760px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero .eyebrow {
  color: #9be1c8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.button.primary {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}

.button.secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.button.light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

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

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
}

.trust-strip {
  width: 100%;
  margin: clamp(2rem, 6vw, 3.4rem) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip div {
  margin: 0;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.94);
}

.trust-strip dt {
  margin: 0 0 0.15rem;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 850;
}

.trust-strip dd {
  margin: 0;
  color: var(--steel);
  font-size: 0.95rem;
}

.section {
  padding: clamp(3.8rem, 8vw, 6.2rem) 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--steel);
  font-size: 1.05rem;
}

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

.service-card,
.about-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  padding: 1.35rem;
  min-height: 270px;
}

.service-card p,
.about-copy p,
.about-panel li,
.contact-inner p {
  color: var(--steel);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--gold);
  font-weight: 850;
}

.process {
  background: var(--mist);
  border-block: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 96px;
  padding: 1.1rem 1.1rem 1.1rem 4.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--steel);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 850;
}

.steps strong {
  color: var(--navy);
}

.portfolio {
  background: linear-gradient(180deg, var(--white), var(--mist));
}

.portfolio-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.portfolio-feature img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.portfolio-feature-copy {
  padding: clamp(1.35rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.portfolio-feature-copy h3 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.portfolio-feature-copy p:not(.eyebrow) {
  color: var(--steel);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.media-card {
  position: relative;
  min-height: 242px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 33, 63, 0.08);
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(9, 17, 31, 0.76));
  pointer-events: none;
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 242px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease;
}

.media-card span {
  position: absolute;
  inset-inline: 1rem;
  bottom: 0.9rem;
  z-index: 1;
  color: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.media-card:hover img,
.media-card:focus-visible img {
  transform: scale(1.035);
}

.media-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.media-viewer {
  width: min(1020px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
}

.media-viewer::backdrop {
  background: rgba(5, 10, 20, 0.72);
}

.media-viewer img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #0b1322;
}

.viewer-copy {
  padding: 1.1rem 1.25rem 1.25rem;
}

.viewer-copy p {
  margin: 0;
  color: var(--steel);
}

.viewer-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  background: rgba(10, 17, 31, 0.72);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.about-copy p {
  font-size: 1.05rem;
}

.about-panel {
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.panel-logo {
  width: min(340px, 100%);
  margin-bottom: 1.35rem;
}

.about-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.about-panel li + li {
  margin-top: 0.7rem;
}

.contact-band {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--navy);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

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

.contact-inner .eyebrow {
  color: #8fd0bd;
}

.contact-inner p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 1.6rem 0;
  background: #0d1627;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: auto;
    padding: 0.75rem 0;
    align-items: center;
  }

  .site-nav {
    display: none;
  }

  .hero-inner {
    min-height: auto;
  }

  .service-grid,
  .media-grid,
  .portfolio-feature,
  .process-grid,
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand {
    width: min(180px, 58vw);
  }

  .brand img {
    height: 76px;
  }

  .header-cta {
    min-width: 62px;
  }

  h1 {
    font-size: clamp(2rem, 13vw, 3.2rem);
    line-height: 1.02;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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

  .portfolio-feature img {
    min-height: 240px;
  }

  .media-grid {
    gap: 0.8rem;
  }

  .steps li {
    padding-left: 1.1rem;
    padding-top: 4.2rem;
  }
}
