/**
 * @file
 * Homepage styling for the "Home Page Block Block" view (front page).
 *
 * Scoped entirely under .view-home-page-block-block (the wrapper class
 * Views prints on this view's block_1 display -- see
 * views.view.home_page_block_block.yml) so nothing here can leak onto
 * any other view or content type. Deliberately reuses no selectors from
 * case-studies.css (that file is scoped to .cs-node, a case_studies
 * node, and never appears on the front page) -- instead it mirrors the
 * same hex values and patterns (navy hero gradient, blue-underline
 * section titles, checkmark lists, pill CTA button) under its own
 * "hp-" (home page) prefix, matching the way case-studies.css already
 * keeps itself self-contained rather than leaking global rules.
 *
 * Color values below are copied 1:1 from case-studies.css's
 * --cs-navy / --cs-navy-dark / --cs-success custom properties so the
 * two pages read as one visual system; kept as a separate set of
 * --hp-* custom properties (not shared globals) so a future edit to
 * one page's palette doesn't silently reflow the other.
 */

.view-home-page-block-block {
  --hp-navy: #0c426f;
  --hp-navy-dark: #082d4d;
  --hp-navy-tint: #eef3f7;
  --hp-gold: #b8860b;
  --hp-ink: #1c2b36;
  --hp-muted: #5b6b76;
  --hp-border: rgba(12, 66, 111, 0.14);
  --hp-success: #1e8a5f;
  --hp-radius: 12px;
  --hp-shadow: 0 2px 14px rgba(12, 66, 111, 0.08);
}

/* ---------------------------------------------------------------- *
 * Hero (the view's existing header: "Welcome to HillsEditor
 * Services" h2 + intro paragraph). No markup change needed --
 * restyling the header element Views already prints.
 * ---------------------------------------------------------------- */

.view-home-page-block-block .view-header {
  background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-dark) 100%);
  border-radius: var(--hp-radius);
  padding: 2.75rem 2.5rem;
  margin-bottom: 2.5rem;
  color: #fff;
  box-shadow: var(--hp-shadow);
}

.view-home-page-block-block .view-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.view-home-page-block-block .view-header p {
  margin: 0;
  font-size: 1.15rem;
  color: #e7edf2;
  max-width: 70ch;
}

/* ---------------------------------------------------------------- *
 * Section titles ("Built on Federal IT...", "What We Do",
 * "Why Choose Us?") -- printed as a plain <h3> inside
 * .field--name-field-home-page. Blue-underline pattern matches
 * case-studies.css's .cs-section__title.
 * ---------------------------------------------------------------- */

.view-home-page-block-block .field--name-field-home-page h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin: 0 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--hp-navy);
  display: inline-block;
}

/* ---------------------------------------------------------------- *
 * Row cards -- each views-row (heading + graphic + description) gets
 * the same white card treatment as case-studies.css's .cs-card, so
 * the three rows read as distinct panels rather than a flat list.
 * ---------------------------------------------------------------- */

.view-home-page-block-block .views-row {
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
  padding: 1.75rem 1.75rem 0.5rem;
  margin-bottom: 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.view-home-page-block-block .views-row:hover {
  box-shadow: 0 8px 28px rgba(12, 66, 111, 0.14);
  transform: translateY(-2px);
}

.view-home-page-block-block .field--name-field-home-page-description {
  color: var(--hp-ink);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- *
 * Checkmark bullet lists ("What We Do" / "Why Choose Us?"). The
 * intro row's description is a plain <p>, not a <ul>, so this only
 * ever matches those two rows -- exactly the ones the scope calls
 * out. Same check glyph + green as case-studies.css's .cs-card li.
 * ---------------------------------------------------------------- */

.view-home-page-block-block .field--name-field-home-page-description ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.view-home-page-block-block .field--name-field-home-page-description li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.6rem;
}

.view-home-page-block-block .field--name-field-home-page-description li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hp-success);
  font-weight: 700;
}

/* ---------------------------------------------------------------- *
 * Homepage graphics -- the inline flat SVGs printed by
 * field--block-content--field-home-page-graphics--home-page-block.html.twig.
 * Sizing/centering for the wrapping <section> is already handled by
 * the pre-existing global rule in styles.css
 * (.block-field-blockblock-contenthome-page-blockfield-home-page-graphics);
 * this just caps the SVG itself.
 * ---------------------------------------------------------------- */

.view-home-page-block-block .hp-graphic svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

/* ---------------------------------------------------------------- *
 * Footer CTA ("Let's Partner" + "Contact us today" mailto link) --
 * converts the plain text link into a pill button matching
 * case-studies.css's .cs-download / .cs-card p a pattern. Scoped to
 * the mailto link specifically so no other footer link is affected.
 * ---------------------------------------------------------------- */

.view-home-page-block-block .view-footer {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.view-home-page-block-block .view-footer h2 {
  color: var(--hp-navy);
  font-size: 1.5rem;
  font-weight: 700;
}

.view-home-page-block-block .view-footer a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  background: var(--hp-navy);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  box-shadow: var(--hp-shadow);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.view-home-page-block-block .view-footer a[href^="mailto:"]:hover,
.view-home-page-block-block .view-footer a[href^="mailto:"]:focus {
  background: var(--hp-navy-dark);
  transform: translateY(-1px);
}

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

@media (max-width: 768px) {
  .view-home-page-block-block .view-header {
    padding: 1.75rem 1.5rem;
  }

  .view-home-page-block-block .views-row {
    padding: 1.25rem 1.25rem 0.25rem;
  }
}

@media (max-width: 480px) {
  .view-home-page-block-block .view-header h2 {
    font-size: 1.6rem;
  }

  .view-home-page-block-block .field--name-field-home-page h3 {
    font-size: 1.25rem;
  }
}
