:root {
  --navy: #001b48;
  --deep-navy: #001537;
  --gold: #c78308;
  --cream: #fbf8f1;
  --white: #ffffff;
  --ink: #0b1d42;
  --line: #e5d4b5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  min-height: 145px;
  padding: 14px clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  background: var(--cream);
  border-bottom: 1px solid #ddd4c5;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mk-badge {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-name {
  display: grid;
  gap: 3px;
  letter-spacing: 4px;
  white-space: nowrap;
}

.brand-name strong {
  font-size: 20px;
}

.brand-name span {
  font-size: 15px;
}

.phone {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: clamp(20px, 2vw, 28px);
  white-space: nowrap;
}

.phone-icon {
  color: var(--gold);
  font-size: 28px;
}

.broker-logo {
  justify-self: end;
  width: min(255px, 100%);
}

.choices {
  padding: 38px clamp(20px, 5vw, 76px) 36px;
  background:
    linear-gradient(90deg, rgba(199, 131, 8, 0.035), transparent 20%, transparent 80%, rgba(199, 131, 8, 0.035)),
    var(--white);
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  max-width: 1310px;
  margin: 0 auto 28px;
}

.section-title span {
  height: 1px;
  background: var(--gold);
}

.section-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 41px);
  line-height: 1.1;
  text-align: center;
  color: var(--deep-navy);
}

.action-grid {
  max-width: 1310px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.action-card {
  min-height: 343px;
  padding: 24px 36px 30px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #fff, #fbf8f2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 27, 72, 0.035);
}

.featured {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.card-heading {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 17px;
}

.action-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(199, 131, 8, 0.24);
}

.action-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: #f2a20a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-icon .icon-fill {
  fill: #f2a20a;
  stroke: none;
}

.action-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.04;
  color: var(--deep-navy);
}

.action-card p {
  min-height: 76px;
  margin: 24px 0 22px;
  font-size: 19px;
  line-height: 1.35;
  text-align: center;
}

.action-button {
  min-height: 72px;
  margin-top: auto;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  border: 2px solid var(--gold);
  border-radius: 9px;
  color: var(--deep-navy);
  background: var(--white);
  text-decoration: none;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.featured .action-button {
  color: var(--white);
  background: var(--navy);
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 27, 72, 0.18);
}

.action-button:focus-visible,
.phone:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.guidance {
  position: relative;
  min-height: 292px;
  padding: 28px clamp(24px, 12.5vw, 196px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: 40px;
  align-items: end;
  overflow: hidden;
  background-color: #fff;
  background-image: url("/assets/arizona-home-watermark.png");
  background-repeat: no-repeat;
  background-position: 79% 54%;
  background-size: min(800px, 63vw) auto;
  border-top: 1px solid #eee3d3;
}

.guidance::before,
.guidance::after {
  content: "";
  position: absolute;
  top: 49px;
  width: 106px;
  height: 176px;
  opacity: 0.72;
  pointer-events: none;
}

.guidance::before {
  left: -60px;
  border-top: 1px solid #d99a2a;
  border-right: 1px solid #d99a2a;
  transform: rotate(45deg);
}

.guidance::after {
  right: -60px;
  border-bottom: 1px solid #d99a2a;
  border-left: 1px solid #d99a2a;
  transform: rotate(45deg);
}

.guidance-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 820px;
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
}

.guidance h2 {
  margin: 0 0 12px;
  color: var(--deep-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.04;
}

.guidance-text {
  margin: 0;
  max-width: 780px;
  font-size: 18px;
  line-height: 1.45;
}

.portrait-wrap {
  position: relative;
  z-index: 3;
  height: 292px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.portrait-wrap img {
  display: block;
  width: 318px;
  max-width: none;
  height: auto;
  transform: translateY(-13px);
}

footer {
  min-height: 103px;
  padding: 18px clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 34px;
  color: #fff;
  background: var(--deep-navy);
}

.credentials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
}

.credentials span,
.credentials strong {
  padding: 0 20px;
  border-right: 2px solid var(--gold);
}

.credentials strong {
  padding-left: 0;
}

footer > a {
  color: #f4a817;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.compliance {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.compliance img {
  display: block;
  width: 92px;
  height: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .phone {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .action-grid {
    gap: 14px;
  }

  .action-card {
    padding-inline: 18px;
  }

  .card-heading {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  .action-icon {
    width: 52px;
    height: 52px;
    font-size: 31px;
  }

  .action-icon svg {
    width: 34px;
    height: 34px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  .compliance {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    padding: 10px 18px 12px;
    gap: 8px 18px;
  }

  .mk-badge {
    width: 66px;
    height: 66px;
  }

  .brand-name {
    letter-spacing: 2px;
  }

  .brand-name strong {
    font-size: 15px;
  }

  .brand-name span {
    font-size: 11px;
  }

  .broker-logo {
    width: 150px;
  }

  .phone {
    font-size: 19px;
  }

  .choices {
    padding: 20px 15px 28px;
  }

  .section-title {
    grid-template-columns: 24px 1fr 24px;
    gap: 10px;
    margin-bottom: 17px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 0;
    padding: 20px;
  }

  .action-card p {
    min-height: 0;
    margin: 14px 0 17px;
    text-align: left;
    font-size: 16px;
  }

  .action-button {
    min-height: 53px;
  }

  .guidance {
    min-height: 205px;
    padding: 24px 20px 0;
    grid-template-columns: 1fr 145px;
    gap: 10px;
    background-position: 85% 58%;
    background-size: 580px auto;
  }

  .guidance-copy {
    padding-bottom: 25px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.7px;
  }

  .guidance h2 {
    font-size: 28px;
  }

  .guidance-text {
    font-size: 15px;
  }

  .portrait-wrap {
    height: 180px;
  }

  .portrait-wrap img {
    width: 200px;
    transform: translateY(-8px);
  }

  .guidance::before,
  .guidance::after {
    display: none;
  }

  footer {
    padding: 18px 20px;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .credentials {
    justify-content: center;
    font-size: 11px;
    line-height: 1.4;
  }

  footer > a {
    font-size: 17px;
  }
}

@media (max-width: 500px) {
  .broker-logo {
    width: 120px;
  }

  .brand-name {
    display: none;
  }

  .guidance {
    grid-template-columns: 1fr 105px;
  }

  .guidance h2 {
    font-size: 23px;
  }

  .guidance-text {
    font-size: 14px;
  }

  .portrait-wrap {
    height: 148px;
  }

  .portrait-wrap img {
    width: 166px;
    transform: translateY(-7px);
  }
}
