/* Arizona Best Real Estate topic pages
   Designed, hosted and maintained by Interactive Marketing Technologies, Inc. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #1c1b50;
  --navy-deep: #141340;
  --blue: #5b85c1;        /* brand accent: large text and decoration only */
  --blue-link: #2f5d9a;   /* passes AA for body text on white and light gray */
  --blue-pale: #a9c3ea;   /* on navy */
  --ink: #26263a;
  --muted: #4a4a5e;
  --paper: #ffffff;
  --mist: #f4f6fb;
  --line: #d9e1ee;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: var(--gutter); top: -60px; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 10; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand img { width: 236px; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 0.9375rem; }
.header-actions a { color: #fff; text-decoration: none; font-weight: 500; letter-spacing: 0.02em; }
.header-actions a:hover { text-decoration: underline; }
.header-actions .phone { color: var(--blue-pale); }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, var(--navy) 0%, #2a3a78 70%, #3d5a99 100%); color: #fff; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 150px; }
.hero.has-photo { background: var(--navy); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,19,64,var(--shade-a,.90)) 0%, rgba(20,19,64,var(--shade-b,.72)) 45%, rgba(20,19,64,var(--shade-c,.18)) 100%); }
.hero.has-photo .hero-bg + .wrap, .hero.has-photo .wrap { z-index: 2; }
.hero.has-photo .ridges { z-index: 1; }
.hero.has-photo .ridges path:not(:last-child) { display: none; }
@media (max-width: 760px) { .hero.has-photo::before { background: rgba(20,19,64,var(--shade-m,.74)); } }
.eyebrow { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-pale); margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.1; margin: 0 0 20px; max-width: 16ch; }
.hero .lead { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); line-height: 1.65; max-width: 58ch; margin: 0 0 30px; color: #eef2fa; }
.ridges { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 130px; z-index: 0; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.03em; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mist); }
.btn-outline { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--mist); }

/* Sections */
main section { padding: 64px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
h2 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: clamp(1.75rem, 3.6vw, 2.375rem); line-height: 1.2; margin: 0 0 12px; }
h2 em { font-style: italic; color: var(--blue); }
h3 { font-family: var(--sans); font-weight: 600; color: var(--navy); font-size: 1.125rem; line-height: 1.4; margin: 0 0 8px; }
p { margin: 0 0 1em; }
.intro { color: var(--muted); font-size: 1.0625rem; margin: 0; }

/* Service cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 26px; height: 26px; }
.card p { margin: 0; color: var(--muted); font-size: 0.9875rem; }
@media (max-width: 639px) { .card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 20px; } .card .icon { grid-row: span 2; margin: 0; } }

/* Q and A */
.qa { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .qa { grid-template-columns: 280px 1fr; gap: 56px; } .qa-aside { position: sticky; top: 24px; align-self: start; } }
.qa-aside p { color: var(--muted); font-size: 0.9875rem; }
.qa-item { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.qa-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.qa-item h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; margin-bottom: 10px; }
.qa-item ul { padding-left: 1.2em; margin: 0 0 1em; }
.qa-item li { margin-bottom: 0.5em; }
.qa-item li::marker { color: var(--blue); }

/* Things to consider */
.consider { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .consider { grid-template-columns: 1fr 1fr; } }
.consider li { border-left: 3px solid var(--blue); padding: 2px 0 2px 18px; }
.consider h3 { font-family: var(--serif); font-size: 1.1875rem; margin-bottom: 6px; }
.consider p { margin: 0; color: var(--muted); }

/* Person / feature panel */
.feature { display: grid; gap: 28px; grid-template-columns: 1fr; background: var(--navy); color: #fff; border-radius: 20px; padding: 36px 28px; }
@media (min-width: 860px) { .feature { grid-template-columns: 1.3fr 1fr; padding: 48px; align-items: center; } }
.feature h2 { color: #fff; }
.feature h2 em { color: var(--blue-pale); }
.feature p { color: #e6ebf6; }
.feature .role { font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-pale); font-weight: 600; margin-bottom: 18px; }
.feature a:not(.btn) { color: #fff; }
.feature-photo img { border-radius: 16px; }
.recognition { border-left: 3px solid var(--blue); padding-left: 18px; color: #e6ebf6; font-size: 0.9875rem; }

/* Offices */
.offices { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .offices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .offices { grid-template-columns: repeat(3, 1fr); } }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: 0.9875rem; line-height: 1.6; }
.office h3 { font-size: 1rem; margin-bottom: 6px; }
.office address { font-style: normal; color: var(--muted); margin-bottom: 8px; }
.office .links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 500; }

/* Closing call to action */
.cta { text-align: center; }
.cta .section-head { margin-left: auto; margin-right: auto; }
.cta .button-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--mist); color: var(--muted); font-size: 0.9375rem; border-top: 1px solid var(--line); }
.footer-main { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 32px; }
@media (min-width: 860px) { .footer-main { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-main h2 { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.footer-main p { margin: 0 0 8px; }
.brokerage { color: var(--ink); font-weight: 600; }
.social { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.social a:hover { background: var(--blue-link); }
.social svg { width: 18px; height: 18px; }
.marks { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; color: var(--navy); }
.marks .realtor { width: 44px; height: 44px; display: block; }
.marks .eho-logo { width: auto; height: 44px; }
.marks .realtor svg { width: 44px; height: 44px; }
.small { font-size: 0.8125rem; line-height: 1.6; }
.footer-base { background: #fff; border-top: 1px solid var(--line); }
.footer-base .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; font-size: 0.8125rem; }
.credit { display: flex; align-items: center; gap: 12px; color: var(--muted); text-decoration: none; }
.credit img { width: 150px; }
.credit span { max-width: 30ch; }
.credit:hover span { text-decoration: underline; }

@media (max-width: 560px) {
  .brand img { width: 170px; }
  .header-actions .site-link { display: none; }
  .hero .wrap { padding-top: 40px; padding-bottom: 120px; }
  main section { padding: 48px 0; }
  .btn { width: 100%; }
}

@media print {
  .site-header, .hero { background: #fff !important; color: #000; }
  .ridges, .skip-link, .social, .button-row { display: none; }
  .feature { background: #fff; color: #000; border: 1px solid #999; }
  .feature *, .hero * { color: #000 !important; }
}
