/* ============================================================
   drbillmorgan.com — homepage
============================================================ */

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  padding: 100px 0 120px;
}
.hero .inner {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 560px);
  justify-content: space-between;
  align-items: center;
  column-gap: 80px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero__content .eyebrow { margin-bottom: -20px; } /* 20px heading gap vs 40px block gap */

.hero__headline {
  font-size: clamp(34px, 1.6rem + 2vw, 51px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--navy);
  text-wrap: balance;
}
.hero__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
}
.hero__backplate {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 480 / 560;
  padding: 16px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 40px;
  filter: drop-shadow(0 30px 30px rgba(34, 50, 74, .07));
}
.hero__backplate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

@media (max-width: 1280px) {
  .hero .inner { column-gap: 56px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hero__headline { font-size: clamp(34px, 1rem + 2.6vw, 51px); }
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero .inner {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
  .hero__content { gap: 32px; }
  .hero__content .eyebrow { margin-bottom: -16px; }
  .hero__body { font-size: 17px; }
  .hero__visual { min-height: 0; }
  .hero__backplate { max-width: 400px; border-radius: 32px; padding: 12px; }
  .hero__backplate img { border-radius: 24px; }
}

@media (max-width: 480px) {
  .hero__content .eyebrow { font-size: 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Services ---------- */
.services {
  background: var(--bg-alt);
  padding: var(--section) 0;
}

.services__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.services__headline {
  font-size: clamp(32px, 1.4rem + 2vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

.services__stack {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
}
.services__stack > li + li { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 600px) 44px;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 40px 32px;
  transition: background-color .2s;
}
.service-row:hover { background: var(--bg); }

.service-row__title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 450px;
}
.service-row__title {
  font-size: clamp(24px, 1rem + 1.2vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.service-row__desc {
  font-size: 17px;
  line-height: 1.6;
}

.service-row__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: border-color .2s, transform .2s;
}
.service-row:hover .service-row__arrow {
  border-color: var(--orange);
  transform: translateX(3px);
}

@media (max-width: 1080px) {
  .service-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 16px 24px;
    padding: 32px 28px;
  }
  .service-row__title-block { grid-column: 1; grid-row: 1; max-width: none; }
  .service-row__arrow       { grid-column: 2; grid-row: 1; align-self: start; }
  .service-row__desc        { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 767px) {
  .services__header { margin-bottom: 32px; }
  .services__stack { border-radius: 24px; }
  .service-row { padding: 28px 20px; }
  .service-row__desc { font-size: 16px; }
}

/* ---------- Locations ---------- */
.locations {
  /* Cap content at 1800px on wide screens (rest of site is 1600px); navy stays full-bleed */
  --bleed: max(0px, calc((100% - 1800px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-left: var(--bleed);
  padding-right: calc(var(--bleed) + var(--gutter));
  background: var(--navy);
  border-block: 1px solid var(--line);
}

.locations__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 80px;
  max-width: 760px;
}
.locations .eyebrow { color: var(--orange-bright); }

.locations__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.locations__headline {
  font-size: clamp(32px, 1.4rem + 2vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
}
.locations__intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--line);
}

.locations__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.office-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
}
.office-card__name {
  font-size: clamp(22px, 1rem + .8vw, 28px);
  font-weight: 600;
  line-height: normal;
  color: var(--white);
}
.office-card__address {
  font-size: 15px;
  line-height: 1.4;
  color: var(--line);
}
.office-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
}
.office-card__phone { color: var(--white); }
.office-card__directions {
  color: var(--orange-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.locations__visual { position: relative; min-height: 400px; }
.locations__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .locations {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }
  .locations__info {
    max-width: none;
    gap: 36px;
    padding: 64px var(--gutter);
  }
  .locations__visual { min-height: 0; height: clamp(280px, 60vw, 480px); }
}

@media (min-width: 600px) and (max-width: 1080px) {
  .locations__cards { flex-direction: row; }
  .office-card { flex: 1; }
}

@media (max-width: 480px) {
  .locations__info { padding-block: 56px; }
  .office-card { padding: 20px; }
  .office-card__address { font-size: 14px; }
  .office-card__actions { font-size: 14px; }
}
