/* =====================================================
   Arizona Local Living Guide — Romando Harrison
   Styled to match the original Gamma doc design:
   graphite bg, Cormorant Garamond headings, PPMori-style
   sans body (Figtree), steel-blue accents, slate cards.
   ===================================================== */

:root {
  --bg: #1d1f22;            /* page graphite */
  --panel: #1b282f;         /* deep blue-slate panel */
  --card: #3a474e;          /* slate card */
  --card-border: #4d5a61;
  --accent: #548aa9;        /* steel blue */
  --accent-soft: #9dbdd2;
  --info-bg: #022349;       /* info callout (navy) */
  --warn-bg: #4b3f02;       /* warning callout (olive) */
  --warn-icon: #d8c64a;
  --heading: #ffffff;
  --body-text: #e8eaec;
  --muted: #b3bac0;
  --hairline: rgba(255, 255, 255, 0.14);
  --radius: 4px;            /* Gamma cards are near-square */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", "Inter", -apple-system, sans-serif;

  /* motion tokens (consumed by motion.css / motion.js) */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 0.9s;
  --stagger: 0.09s;
  --reveal-shift: 32px;
  --pin-min-width: 768px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(29, 31, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }

.brand img {
  height: 42px;
  width: auto;
  /* the RH logo art is dark-on-transparent; render it white for the dark chrome */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.section-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.section-nav::-webkit-scrollbar { display: none; }

.section-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.section-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.section-nav a.active { color: #fff; background: rgba(84, 138, 169, 0.3); }

.section-nav .nav-cta { color: #fff; background: var(--accent); font-weight: 600; }
.section-nav .nav-cta:hover { background: #6699b5; color: #fff; }

.site-header { transition: padding 0.35s var(--ease-out-soft), box-shadow 0.35s ease; }
.site-header.is-condensed {
  padding-top: 7px;
  padding-bottom: 7px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(84, 138, 169, 0.3);
}
.btn-primary:hover { background: #6699b5; transform: translateY(-2px); }

.btn-ghost { color: var(--body-text); border: 1px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Typography ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.12;
}

.section h2 { font-size: clamp(2.1rem, 4.5vw, 2.85rem); margin-bottom: 16px; }

.section-lede { color: var(--muted); margin-bottom: 36px; max-width: 640px; }
.section-lede.em { font-style: italic; }

.subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--heading);
  margin: 36px 0 20px;
}

.prose p { margin-bottom: 16px; max-width: 72ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #fff; }

/* per-section contact signature (mirrors the original's per-card footer) */
.sig {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.sig strong { color: var(--body-text); }
.sig a { color: inherit; text-decoration: none; }
.sig a:hover { color: var(--accent-soft); }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section + .section { border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* ---------- Hero (split: text left, photo right) ---------- */

.hero { padding: 72px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { font-size: clamp(2.6rem, 6vw, 3.4rem); margin-bottom: 22px; }

.hero-sub { font-size: 1.12rem; color: var(--body-text); margin-bottom: 22px; }

.hero-intro p { color: var(--body-text); margin-bottom: 16px; max-width: 60ch; }

.hero-welcome { font-weight: 600; color: #fff; }

.hero-contact { margin: 22px 0 26px; font-size: 0.95rem; color: var(--muted); }
.hero-contact strong { color: #fff; }
.hero-contact a { color: inherit; text-decoration: none; }

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ---------- Banner image (Let's Explore / Gilbert) ---------- */

.banner { margin-bottom: 44px; }
.banner img {
  width: 100%;
  height: clamp(200px, 30vw, 320px);
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* ---------- Split layout (photo + content) ---------- */

.split-media {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 56px;
  align-items: stretch;
}

.split-media > figure { position: relative; min-height: 420px; }

.split-media > figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* ---------- Slate cards (Quick Snapshot / Chandler / credentials) ---------- */

.card-grid { display: grid; gap: 20px; margin-top: 8px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }

.card h3, .card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--heading);
}
.card p { font-size: 0.93rem; color: var(--body-text); }

/* ---------- Steel-blue bar list (cost of living, dining, builders) ---------- */

.bar-list { display: grid; gap: 18px; }

.bar-item {
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  background: rgba(27, 40, 47, 0.55);
}

.bar-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  margin-bottom: 6px;
}
.bar-item p { font-size: 0.95rem; }
.bar-item em { color: var(--accent-soft); font-style: normal; font-weight: 600; }

/* ---------- Icon area list (Scottsdale) ---------- */

.icon-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 56px;
  margin-top: 8px;
}

.icon-item { display: grid; grid-template-columns: 44px 1fr; gap: 20px; }

.icon-item .glyph {
  width: 44px;
  height: 44px;
  color: var(--accent-soft);
}
.icon-item .glyph svg { width: 100%; height: 100%; }

.icon-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 8px;
}
.icon-item p { font-size: 0.95rem; }

/* ---------- Bordered panel list (Gilbert / Queen Creek) ---------- */

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.panel-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(27, 40, 47, 0.55);
}

.panel-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  margin-bottom: 8px;
}
.panel-item p { font-size: 0.93rem; }

/* ---------- Callouts (info navy / warning olive) ---------- */

.callout {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 26px 0;
}
.callout .callout-icon { width: 22px; height: 22px; margin-top: 3px; }
.callout p { max-width: none; color: var(--body-text); }

.callout-info { background: var(--info-bg); }
.callout-info .callout-icon { color: var(--accent-soft); }

.callout-warn { background: var(--warn-bg); }
.callout-warn .callout-icon { color: var(--warn-icon); }

/* ---------- Checklist / numbered ---------- */

.checklist { list-style: disc; margin: 0 0 24px 22px; }
.checklist li { padding: 5px 0; color: var(--body-text); }

.numbered { list-style: none; counter-reset: item; margin: 0 0 32px; display: grid; gap: 20px; }
.numbered li {
  counter-increment: item;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 24px 24px 78px;
  position: relative;
}
.numbered li::before {
  content: counter(item);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numbered h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}
.numbered p { font-size: 0.95rem; }

/* ---------- Contact (Let's Talk) ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-grid > figure img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

.contact .card-grid { margin-top: 32px; }

.contact-actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.contact-details p { color: var(--muted); font-size: 0.95rem; }
.contact-details strong { color: #fff; }
.contact-details a { color: var(--accent-soft); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  text-align: center;
}
.site-footer img {
  height: 54px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 18px;
}
.site-footer p { color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split-media, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 12px; }
  .split-media > figure img { min-height: 0; max-height: 420px; }
  .hero-photo { order: -1; }
  .hero-photo img { max-height: 460px; object-fit: cover; object-position: top; }
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 8px; padding: 10px 16px; }
  html { scroll-padding-top: 122px; }
  .section { padding: 60px 0; }
  .card-grid.two, .card-grid.three, .icon-list, .panel-grid { grid-template-columns: 1fr; }
}
