/*
 * Dawson Services v7 — page-specific stylesheet.
 *
 * Additive to homepage-v7.css. Loaded only on the
 * page-templates/services-v7.php template via the
 * enqueue rule in hello-elementor-child/functions.php.
 *
 * Source of truth: Website/Rewrite_Apr2026/services_mockup_v7.html
 *   (the additive CSS block inside the mockup's <style> element).
 *
 * Updated: 2026-11-05
 */

  /* ==========================================================
     services-v7 -- additive
     ========================================================== */

  /* 4-column services grid */
  .services-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  @media (max-width: 1280px) {
    .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .services-grid-4 { grid-template-columns: 1fr; }
  }

  /* Five-card services grid (05-11-2026). The page moved to five cards and this class name, but the
     stylesheet only had the four-card rules, so on computers each card filled the whole page width. */
  .services-grid-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem 2rem;
  }
  @media (max-width: 1023px) {
    .services-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  }
  @media (max-width: 640px) {
    .services-grid-5 { grid-template-columns: 1fr; }
  }

  /* Due diligence feature tile */
  .dd-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #FFFFFF;
    border-left: 3px solid #E8420A;
    overflow: hidden;
  }
  @media (max-width: 900px) {
    .dd-feature { grid-template-columns: 1fr; }
    .dd-feature-photo { order: -1; }
  }
  .dd-feature-photo {
    overflow: hidden;
  }
  .dd-feature-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
    display: block;
  }
  .dd-feature-copy {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  @media (max-width: 900px) {
    .dd-feature-copy { padding: 36px 28px; }
  }
  .dd-feature-headline {
    font-family: 'Libre Bodoni', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    color: #0A1424;
    margin: 1rem 0 1.5rem;
  }
  .dd-feature-headline em { font-style: italic; font-weight: 400; color: #1B3C6B; }
  .dd-feature-body { font-size: 1.05rem; line-height: 1.65; color: rgba(10,20,36,0.75); max-width: 52ch; }
  .dd-feature-cta { display: inline-block; margin-top: 2rem; font-weight: 600; color: #E8420A; font-size: 0.95rem; letter-spacing: 0.01em; }
  .dd-feature-cta:hover { color: #C73506; }

  /* How we engage -- 3 steps */
  .engagement-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
  }
  @media (max-width: 900px) {
    .engagement-steps { grid-template-columns: 1fr; gap: 2rem; }
  }
  .engagement-step {
    border-top: 1px solid rgba(245,242,236,0.15);
    padding-top: 2rem;
  }
  .engagement-step-num {
    font-family: 'Libre Bodoni', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: #E8420A;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
  }
  .engagement-step h3 {
    font-family: 'Libre Bodoni', Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #F5F2EC;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .engagement-step p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(245,242,236,0.65);
  }

  /* Independence pull-quote (abbreviated) */
  .independence-pullquote {
    max-width: 900px;
  }
  .independence-pullquote .pull-out-type {
    font-family: 'Libre Bodoni', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #0A1424;
    margin: 1.5rem 0;
  }
  .independence-pullquote .pull-out-type .display-italic {
    font-style: italic;
    font-weight: 400;
    color: #E8420A;
  }
  .independence-pullquote-body {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(10,20,36,0.75);
    max-width: 58ch;
    margin-top: 1.5rem;
  }
  .independence-pullquote-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: #E8420A;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
  }
  .independence-pullquote-link:hover { color: #C73506; }

  /* Header logo and button. body.v7 img { height: auto } in v7-base.css outranks
     the logo's h-7 md:h-8 classes, so it drew at its natural size (758px wide on
     desktop) and squashed "Talk to us" into a circle. Fixed 19-10-2026. */
  body.v7 #site-header img { height: 1.5rem; width: auto; object-fit: contain; }
  @media (min-width: 1280px) {
    body.v7 #site-header img { height: 2rem; }
  }
  body.v7 #site-header .btn-primary { white-space: nowrap; flex-shrink: 0; }

  /* Header menu (05-11-2026). The row of links needs about 1024px. Below that they sit
     behind a menu button in a white panel like the rest of the site's phone menu, so phones
     get a menu at all and on iPads the links no longer run into the logo and button. */
  body.v7 .site-header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
  body.v7 #site-header #site-nav { display: none; }
  body.v7 #site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    color: var(--v7-paper);
    background: none;
    border: 0;
    cursor: pointer;
  }
  body.v7 #site-nav-toggle .site-nav-icon-close { display: none; }
  body.v7 #site-nav-toggle[aria-expanded="true"] .site-nav-icon-open { display: none; }
  body.v7 #site-nav-toggle[aria-expanded="true"] .site-nav-icon-close { display: block; }
  @media (max-width: 1023px) {
    body.v7 #site-header #site-nav.is-open {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      padding: 0.5rem 1.5rem;
      background: #fff;
      color: var(--v7-ink);
      font-size: 1.0625rem;
      font-weight: 600;
      box-shadow: 0 12px 24px -12px rgba(4, 16, 31, 0.5);
    }
    body.v7 #site-header #site-nav.is-open a { padding: 0.8rem 0; }
    body.v7 #site-header #site-nav.is-open a:hover { color: var(--v7-orange); }
  }
  @media (min-width: 1024px) {
    body.v7 #site-header #site-nav { display: flex; }
    body.v7 #site-nav-toggle { display: none; }
  }
  /* Room for the logo, button and menu button on a phone. */
  @media (max-width: 480px) {
    body.v7 #site-header > div { padding-left: 1rem; padding-right: 1rem; }
    body.v7 .site-header-actions { gap: 0.5rem; }
    body.v7 #site-header img { height: 1.25rem; }
    body.v7 #site-header .btn-primary { padding: 0.6rem 1rem; font-size: 0.8125rem; }
  }
  /* The very narrowest phones: Contact in the menu does the button's job. */
  @media (max-width: 339px) {
    body.v7 #site-header .btn-primary { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .services-grid-4 .service-card,
    .services-grid-4 .offset-up,
    .services-grid-4 .offset-down,
    .services-grid-5 .service-card,
    .services-grid-5 .offset-up,
    .services-grid-5 .offset-down {
      transform: none !important;
    }
  }
