/* ============================================
   Valley Home Buyers — Landing Page Styles
   ============================================ */

:root {
  --primary: #2892d7;
  --primary-dark: #1b4f91;
  --navy: #0e2a4d;
  --navy-light: #1e3a6e;
  --ink: #161721;
  --ink-soft: #1d1f2c;
  --gray: #4a4c56;
  --gray-light: #eaeaea;
  --blue-pale: #eaf4fb;
  --amber: #f2a93b;
  --white: #ffffff;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1240px;

  --shadow-card: 0 20px 45px -25px rgba(14, 42, 77, 0.35);
  --shadow-soft: 0 10px 30px -15px rgba(14, 42, 77, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-soft);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Section spacing + shared type
   ============================================ */

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow--blue {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.eyebrow--light {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 16px 0 14px;
  line-height: 1.2;
}

.section-head p {
  color: var(--gray);
  font-size: 1.05rem;
}

.section-head--light p {
  color: rgba(255, 255, 255, 0.78);
}

.text-accent {
  color: var(--primary);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2183c3, #2892d7);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(40, 146, 215, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(40, 146, 215, 0.75);
}

.btn-amber {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(242, 169, 59, 0.6);
}

.btn-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(242, 169, 59, 0.7);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-block {
  width: 100%;
}

.btn-phone {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.05rem;
}

.btn-phone:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ============================================
   Header / Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  transition: color 0.15s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-phone svg {
  color: var(--primary);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--navy);
}

.nav-toggle:hover {
  background: var(--blue-pale);
}

.nav-extra {
  display: none;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 32, 64, 0.92) 0%, rgba(8, 32, 64, 0.8) 38%, rgba(14, 42, 77, 0.45) 68%, rgba(14, 42, 77, 0.22) 100%),
    url('hero-bg.jpg') center / cover no-repeat;
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero h1 span {
  color: #9fd2f2;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-bullet {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-bullet .check {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Offer form card */
.offer-card {
  background: linear-gradient(151deg, rgba(255, 255, 255, 0.18) 4%, rgba(20, 30, 50, 0.35) 110%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 25px 60px -20px rgba(5, 18, 38, 0.55);
}

.offer-card h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  padding: 8px 2px;
  transition: border-color 0.15s ease;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field input:focus {
  border-color: var(--white);
  outline: none;
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 14px;
  text-align: center;
}

.form-success {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  font-weight: 500;
  margin-top: 18px;
}

.form-success.show {
  display: block;
}

/* ============================================
   Highlights / trust strip
   ============================================ */

.highlights {
  background: var(--blue-pale);
  border-bottom: 1px solid var(--gray-light);
  padding: 24px 0;
}

.highlights-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 36px;
}

.highlights-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  white-space: nowrap;
}

.highlights-grid svg {
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .highlights-grid {
    justify-content: flex-start;
    gap: 12px 24px;
  }

  .highlights-grid li {
    white-space: normal;
    font-size: 0.9rem;
  }
}

/* ============================================
   Situations grid ("Any Reason. Any Condition.")
   ============================================ */

.situations {
  background: var(--gray-light);
}

.situations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.situation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.situation-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-pale);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.situation-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.situation-card p {
  color: var(--gray);
  font-size: 0.98rem;
}

/* ============================================
   How It Works
   ============================================ */

.how {
  background: var(--navy-light);
  color: var(--white);
}

.how .section-head h2 {
  color: var(--white);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  color: var(--ink-soft);
}

.how-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.how-step h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.how-step p {
  color: var(--gray);
}

/* ============================================
   Comparison
   ============================================ */

.compare-table {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.compare-row + .compare-row {
  border-top: 1px solid var(--gray-light);
}

.compare-row > div {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  font-size: 0.98rem;
}

.compare-row.head {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.compare-row.head > div:first-child {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.compare-label {
  font-weight: 500;
  color: var(--ink);
}

.compare-row:not(.head) > div:not(.compare-label) {
  color: var(--gray);
  gap: 10px;
}

.compare-row.highlight:not(.head) {
  background: var(--blue-pale);
}

.compare-row.highlight:not(.head) > div:not(.compare-label) {
  color: var(--ink);
  font-weight: 500;
}

.icon-yes {
  color: var(--primary);
  flex-shrink: 0;
}

.icon-no {
  color: #b6b9c2;
  flex-shrink: 0;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
}

.faq-question .plus {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--gray);
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Areas We Serve
   ============================================ */

.areas {
  background: var(--blue-pale);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 32px;
}

.area-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.area-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
  padding: 72px 0 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.footer-tagline {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-col ul a {
  transition: color 0.15s ease;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .offer-card {
    max-width: 480px;
  }

  .situations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  /* The phone link and CTA button move into the dropdown menu on mobile,
     so the top bar only ever shows the logo + hamburger. */
  .nav-actions > .nav-phone,
  .nav-actions > a.btn-primary {
    display: none;
  }

  .nav-extra {
    display: flex !important;
    width: 100%;
  }

  .nav-extra .nav-phone {
    font-size: 1.05rem;
  }

  .nav-extra .btn {
    width: 100%;
  }

  .compare-row {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .compare-row > div {
    padding: 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

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

  .areas-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .offer-card {
    max-width: 100%;
    padding: 28px 22px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 56px 0 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Mobile hero photo: constrain to a top band so
   "cover" doesn't zoom into an unrecognizable crop
   on tall, narrow viewports.
   ============================================ */
@media (max-width: 768px) {
  .hero-bg {
    bottom: auto;
    height: 440px;
    background:
      linear-gradient(180deg, rgba(8, 32, 64, 0.35) 0%, rgba(8, 32, 64, 0.55) 55%, var(--navy) 100%),
      url('hero-bg.jpg') center / cover no-repeat;
  }
}
