/* ============================================================
   home.css — Index/Home Page Specific Styles
   Part of the Leo Bercoff modular CSS architecture
   ============================================================ */


/* ── Hero Section ───────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  min-height: 61vh;
  padding: clamp(54px, 8vw, 104px) 0 72px;
}

.hero-copy {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.33rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}


/* ── Hero Note (aside quotation card) ───────────────────── */
.hero-note {
  align-self: stretch;
  display: grid;
  place-items: end;
}

.hero-note-inner {
  max-width: 360px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.hero-note p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.hero-note small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}


/* ── Responsive: Mid-range collapse (≤820px) ──────────── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-note {
    place-items: stretch;
  }

  .hero-note-inner {
    max-width: none;
  }
}


/* ── Responsive: Narrow screens (≤640px) ───────────────── */
@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-block: 20px;
  }

  .header-link {
    font-size: .82rem;
  }
}


/* ── Contact buttons wider layout (≥641px) ─────────────── */
@media (min-width: 641px) {
  .contact-buttons {
    justify-content: space-between;
  }
}


/* ── Page Background Texture ─────────────────────────── */
/*
 * Defined here so the URL resolves relative to css/pages/
 * (not relative to the HTML document), avoiding browser
 * re-resolution bugs with url() inside CSS custom properties.
 */
body {
  --page-bg: url("../images/arpillera-beige.png");
}
