/* =========================================================
   AZ Homes Rock
   ========================================================= */

@font-face { font-family: "Syne"; src: url("fonts/syne-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syne"; src: url("fonts/syne-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Syne"; src: url("fonts/syne-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Syne"; src: url("fonts/syne-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Syne"; src: url("fonts/syne-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #15172b;
  --ink-2: #2b2e45;
  --gray: #74768a;
  --gray-2: #a5a7b6;
  --line: #dcdde3;
  --mist: #f3f3f5;
  --white: #ffffff;
  --accent: #d98a4e;          /* desert copper, used sparingly */
  --night: #0f1120;
  --display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}

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

/* small all-caps label with a slim rule */
.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray);
}
.label::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.label.light { color: rgba(255,255,255,.8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 56px; padding: 0 30px;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink); border-radius: 0;
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:hover { background: var(--ink-2); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.link-arrow:hover .arrow { transform: translateX(4px); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
}
.logo {
  display: inline-flex; align-items: center;
  height: 52px; padding: 0 20px;
  background: var(--ink); color: var(--white);
  text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 17px;
  letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
}
.header-left { display: flex; align-items: center; gap: 28px; }
.tagline {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  color: var(--white); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta {
  border: 1px solid rgba(255,255,255,.6); padding: 12px 20px;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--white); color: var(--ink); }

.site-header.solid { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header.solid .nav a { color: var(--ink); }
.site-header.solid .nav .nav-cta { border-color: var(--ink); }
.site-header.solid .nav .nav-cta:hover { background: var(--ink); color: var(--white); }
.site-header.solid .tagline { color: var(--gray); }

.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.site-header.solid .menu-btn span { background: var(--ink); }
.menu-open .menu-btn span { background: var(--ink); }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) { .tagline { display: none; } }
@media (max-width: 860px) {
  .site-header .wrap { height: 72px; }
  .logo { height: 44px; padding: 0 16px; font-size: 15px; }
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 0 var(--gutter);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .nav a { color: var(--ink) !important; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; padding: 10px 0; }
  .nav .nav-cta { border: 0; padding: 10px 0; }
  .nav .nav-cta:hover { background: none; color: var(--ink); }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .logo { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); overflow: hidden;
  background: #2a3a2c url("images/hero.jpg") center 40% / cover no-repeat;
}
@media (max-width: 1400px) { .hero { background-image: url("images/hero-1400.jpg"); } }
@media (max-width: 700px)  { .hero { background-image: url("images/hero-mobile.jpg"); background-position: center; } }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,14,28,.82) 0%, rgba(12,14,28,.55) 42%, rgba(12,14,28,.12) 78%),
    linear-gradient(0deg, rgba(12,14,28,.75) 0%, rgba(12,14,28,0) 45%),
    linear-gradient(180deg, rgba(12,14,28,.45) 0%, rgba(12,14,28,0) 22%);
}
.hero .wrap { position: relative; width: 100%; padding-top: 140px; }
.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 5.6rem);
  font-weight: 700;
  margin: 24px 0 26px;
}
.hero .intro {
  max-width: 470px; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.82);
  margin-bottom: 34px;
}

.quick {
  display: flex; align-items: stretch; max-width: 620px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(12,14,28,.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.quick input {
  flex: 1; min-width: 0; height: 58px; padding: 0 20px;
  background: transparent; border: 0; color: var(--white);
  font-family: var(--display); font-size: 15px; letter-spacing: 0.02em;
}
.quick input::placeholder { color: rgba(255,255,255,.65); }
.quick input:focus { outline: none; }
.quick:focus-within { border-color: var(--white); }
.quick .btn { height: auto; min-height: 58px; border: 0; background: var(--white); color: var(--ink); }
.quick .btn:hover { background: var(--accent); color: var(--white); }

.hero-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 64px; padding-bottom: 40px;
}
.hero-steps div {
  border-top: 1px solid rgba(255,255,255,.55);
  padding-top: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.hero-steps b { color: var(--accent); font-weight: 700; margin-right: 10px; }

@media (max-width: 700px) {
  .hero .wrap { padding-top: 120px; }
  .hero h1 { margin: 20px 0 20px; }
  .quick { flex-direction: column; }
  .quick input { flex: none; height: 56px; }
  .quick .btn { min-height: 56px; }
  .hero-steps { grid-template-columns: 1fr; gap: 0; margin-top: 48px; padding-bottom: 28px; }
  .hero-steps div { padding: 14px 0; }
  .hero-steps div:last-child { border-bottom: 1px solid rgba(255,255,255,.35); }
}

/* ---------- Sections ---------- */
section { padding: clamp(80px, 11vw, 150px) 0; }
.section-top {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end;
  margin-bottom: clamp(48px, 7vw, 90px);
}
.section-top h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); margin-top: 22px; }
.section-top p { color: var(--gray); max-width: 440px; font-size: 16px; }
@media (max-width: 860px) { .section-top { grid-template-columns: 1fr; gap: 24px; } }

/* options */
.options-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.opt { padding: 40px 40px 10px 0; }
.opt + .opt { padding-left: 40px; border-left: 1px solid var(--line); }
.opt .num { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--gray); }
.opt h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 26px 0 18px; }
.opt p { color: var(--gray); font-size: 15.5px; }
.opt ul { list-style: none; padding: 0; margin: 22px 0 0; }
.opt li {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2);
}
@media (max-width: 900px) {
  .options-grid { grid-template-columns: 1fr; }
  .opt, .opt + .opt { padding: 36px 0 24px; border-left: 0; }
  .opt + .opt { border-top: 1px solid var(--line); }
}

/* numbers band */
.numbers { background: var(--mist); padding: clamp(64px, 8vw, 100px) 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers-grid div { padding: 0 32px; border-left: 1px solid #cfd0d8; }
.numbers-grid div:first-child { border-left: 0; padding-left: 0; }
.numbers-grid strong {
  display: block; font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
}
.numbers-grid span {
  display: block; margin-top: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray);
}
@media (max-width: 860px) {
  .numbers-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .numbers-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-img { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-img:hover img { transform: scale(1.03); }
.split-img .badge {
  position: absolute; left: 0; bottom: 0;
  background: var(--white); padding: 22px 28px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.split h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin: 22px 0 28px; }
.split p { color: var(--gray); }
.checks { list-style: none; padding: 0; margin: 34px 0 40px; }
.checks li {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-weight: 600; font-size: 15.5px;
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks i {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mist); font-style: normal; font-size: 13px;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-img { aspect-ratio: 4 / 3; } }

/* city marquee */
.cities { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: slide 45s linear infinite; }
.marquee span {
  font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em;
  padding: 0 28px; white-space: nowrap; color: var(--ink);
}
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee em { font-style: normal; color: var(--accent); align-self: center; font-size: 1.4rem; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.faq-wrap h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin-top: 22px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-weight: 400; font-size: 18px; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--gray); padding: 0 60px 26px 0; margin: 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Lead form section ---------- */
.contact { background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 8vw, 120px); }
.contact h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 22px 0 28px; }
.contact .lede { color: rgba(255,255,255,.7); max-width: 420px; }
.contact-list { list-style: none; padding: 0; margin: 44px 0 0; max-width: 440px; }
.contact-list li { border-top: 1px solid rgba(255,255,255,.18); padding: 18px 0; }
.contact-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-list small {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 4px;
}
.contact-list a { color: var(--white); text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; margin-bottom: 30px; }
.field label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 4px;
}
.field input, .field select {
  width: 100%; height: 46px; padding: 0;
  background: transparent; color: var(--white);
  border: 0; border-bottom: 1px solid rgba(255,255,255,.3); border-radius: 0;
  font-family: var(--display); font-size: 17px; font-weight: 500;
  transition: border-color .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field select option { color: var(--ink); }
.field input::placeholder { color: rgba(255,255,255,.3); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--white); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.consent {
  display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start;
  font-family: var(--text); font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.62);
  margin: 0 0 16px; cursor: pointer;
}
.consent input {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin: 1px 0 0;
  border: 1px solid rgba(255,255,255,.55); background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.consent input:checked { background: var(--white); border-color: var(--white); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px,-1px); }
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent a { color: rgba(255,255,255,.85); }
.form-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.form-actions .btn[disabled] { opacity: .6; cursor: wait; }
.form-note { font-family: var(--text); font-size: 12px; color: rgba(255,255,255,.5); margin: 0; max-width: 280px; line-height: 1.5; }
.form-note a { color: rgba(255,255,255,.75); }
.form-status { display: none; margin-top: 24px; padding: 16px 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.form-status.ok  { display: block; border: 1px solid rgba(255,255,255,.4); color: var(--white); }
.form-status.err { display: block; border: 1px solid var(--accent); color: #f3c2a0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.6); padding: 90px 0 36px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top .logo { background: var(--white); color: var(--ink); margin-bottom: 26px; }
.footer-top p { max-width: 340px; }
.site-footer h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: var(--white); margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 28px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 170px 0 70px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-top: 22px; }
.legal-hero .updated { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); }
.legal { padding: 70px 0 120px; }
.legal .wrap { max-width: 860px; }
.legal-body { font-family: var(--text); font-size: 16px; color: #3d4052; }
.legal-body h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 56px 0 18px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--ink); }
.legal-body .callout { border-left: 2px solid var(--ink); background: var(--mist); padding: 22px 26px; margin: 28px 0; }
.legal-body .callout p:last-child { margin-bottom: 0; }

/* hero service-area label: wraps cleanly on small screens */
@media (max-width: 700px) {
  .hero-label { align-items: flex-start; font-size: 11px; letter-spacing: 0.16em; line-height: 1.9; }
  .hero-label::before { flex: none; width: 24px; margin-top: 10px; }
}
