/* ═══════════════════════════════════════════
   Desert Living Contractors — update_2
   Aesthetic: White-dominant luxury editorial
   Logo always on white for maximum readability
   ═══════════════════════════════════════════ */

:root {
  /* Palette built around logo gold #d5a42e */
  --gold: #d5a42e;
  --gold-dark: #b58b26;
  --gold-light: #e0b84a;
  --gold-glow: rgba(213, 164, 46, 0.10);
  --black: #141210;
  --dark: #1c1a17;
  --dark-2: #252320;
  --dark-3: #2e2b27;
  --white: #fff;
  --off-white: #faf9f6;
  --cream: #f3f0ea;
  --border: #ddd8ce;
  --text: #1c1a17;
  --text-med: #605a50;
  --text-light: #968e82;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 10000;
  padding: 12px 24px; background: var(--gold); color: var(--black);
  font-weight: 600; border-radius: var(--radius); transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em; border-radius: var(--radius);
  transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(213,164,46,0.3); }
.btn--white { background: var(--white); color: var(--text); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn--outline { border: 1.5px solid var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-2px); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,0.35); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); transform: translateY(-2px); }
.btn--full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   NAV — logo left, links center, CTA right
   ═══════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--gold);
  transition: box-shadow 0.3s;
}
.nav--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav__inner {
  display: flex; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; height: 90px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo-img { height: 68px; width: auto; }
.nav__links {
  display: flex; gap: 28px;
  margin: 0 auto;
}
.nav__links a {
  font-size: 12px; font-weight: 600; color: var(--text-med);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.3s; position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__right {
  display: flex; align-items: center; gap: 20px; flex-shrink: 0;
}
.nav__phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-med);
  transition: color 0.3s;
}
.nav__phone:hover { color: var(--gold); }
.nav__cta {
  font-size: 12px; font-weight: 700; color: var(--white);
  background: var(--gold); padding: 9px 22px;
  border-radius: var(--radius); letter-spacing: 0.04em;
  text-transform: uppercase; transition: all 0.3s;
}
.nav__cta:hover { background: var(--gold-dark); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: all 0.3s; }

.mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999;
}
.mobile-overlay--visible { display: block; }

/* ═══════════════════════════════════════════
   HERO — full-bleed photo, clean
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
}
.hero__bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.3) 45%,
    rgba(0,0,0,0.12) 100%
  );
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px clamp(48px, 8vw, 80px);
  width: 100%;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500; line-height: 1.12;
  color: var(--white); margin-bottom: 16px;
}
.hero__title em { color: var(--gold-light); font-style: italic; }
.hero__subtitle { font-size: 17px; color: rgba(255,255,255,0.7); margin-bottom: 32px; line-height: 1.7; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto clamp(48px, 6vw, 72px); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 500; line-height: 1.15; margin-bottom: 16px;
}
.section-desc { font-size: clamp(16px, 1.8vw, 18px); color: var(--text-med); }

/* ── About split ── */
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
.split--reverse { direction: ltr; }
.split__text p { color: var(--text-med); margin-bottom: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.badge-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.badge-item svg { color: var(--gold); }
.split__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.stat {
  background: var(--cream); border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center;
}
.stat__num {
  display: block; font-family: var(--font-display);
  font-size: 48px; font-weight: 600; color: var(--gold); line-height: 1;
}
.stat__label { font-size: 13px; color: var(--text-med); margin-top: 6px; display: block; }

/* ── Services grid ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.svc {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--border); transition: all 0.3s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); border-color: var(--gold); }
.svc__icon { color: var(--gold); margin-bottom: 16px; }
.svc h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.svc p { font-size: 14px; color: var(--text-med); line-height: 1.7; }

/* ── Portfolio grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.port {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
}
.port--tall { grid-row: span 2; }
.port__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.5s var(--ease);
}
.port:hover .port__bg { transform: scale(1.05); }
.port__info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
}
.port__cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}
.port__info h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-top: 4px; }

/* ── Process ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  text-align: center; padding: 32px 20px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.step__num {
  display: inline-block; font-family: var(--font-display);
  font-size: 36px; font-weight: 600; color: var(--gold);
  margin-bottom: 12px; line-height: 1;
}
.step h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-med); }

/* ── Reviews ── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: var(--cream); border-radius: var(--radius-lg); padding: 32px;
}
.review__stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.review blockquote { font-size: 15px; color: var(--text-med); line-height: 1.7; margin-bottom: 20px; }
.review cite {
  display: block; font-style: normal;
}
.review cite strong { display: block; font-size: 15px; color: var(--text); }
.review cite span { font-size: 13px; color: var(--text-light); }

/* ── CTA ── */
.cta {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 400px;
}
.cta__photo { background-size: cover; background-position: center; }
.cta__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 48px; background: var(--dark); color: var(--white);
}
.cta__content h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px);
  font-weight: 500; line-height: 1.2; margin-bottom: 16px;
}
.cta__content p { color: rgba(255,255,255,0.7); margin-bottom: 28px; font-size: 16px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.contact-detail {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text-med); transition: color 0.3s;
}
.contact-detail svg { color: var(--gold); flex-shrink: 0; }
a.contact-detail:hover { color: var(--gold); }

.contact-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-med); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 15px; background: var(--off-white); transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 12px; }

/* ═══════════════════════════════════════════
   FOOTER — dark, logo on white pill
   ═══════════════════════════════════════════ */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 64px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand p { font-size: 14px; margin-top: 16px; line-height: 1.6; }
.footer__logo-img {
  height: 56px; width: auto;
  background: var(--white); padding: 12px 20px;
  border-radius: var(--radius); object-fit: contain;
}
.footer__col h4 {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  color: var(--white); margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { font-size: 14px; transition: color 0.3s; }
.footer__col a:hover { color: var(--gold); }
.footer__portal { font-size: 12px !important; opacity: 0.5; }
.footer__bottom {
  display: flex; justify-content: space-between; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px;
}

/* ═══════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--text); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { min-height: calc(100vh - 90px); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta__photo { min-height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__right { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav__inner { height: 72px; }
  .nav__logo-img { height: 52px; }
  .nav__links--open {
    display: flex; flex-direction: column; align-items: center;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 32px 24px; gap: 24px; z-index: 1001;
  }
  .nav__links--open a { font-size: 16px; text-transform: none; letter-spacing: 0; }
  .hero { min-height: calc(100vh - 72px); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .port--tall { grid-row: span 1; }
  .process-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 4px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
