/* =========================================================
       PERSONAL MORTGAGE LANDING PAGE
       Responsive starter template. Replace all bracketed details
       and the image placeholders before publishing.
       ========================================================= */

    :root {
      --navy: #073b63;
      --navy-deep: #052d4b;
      --blue: #1684c7;
      --blue-soft: #eaf4fb;
      --blue-pale: #f5f9fc;
      --ink: #153b59;
      --muted: #587187;
      --white: #ffffff;
      --line: #d8e6ef;
      --content-width: 1180px;
      --radius: 16px;
      --shadow: 0 14px 38px rgba(5, 45, 75, 0.08);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--white);
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

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

    a { color: inherit; }

    .container {
      width: min(var(--content-width), calc(100% - 48px));
      margin-inline: auto;
    }

    /* HEADER: This sample header is only here to make the HTML preview complete. */
    .site-header {
      background: var(--white);
      border-bottom: 1px solid #edf2f6;
    }

    .header-inner {
      min-height: 86px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 190px;
      text-decoration: none;
    }

    /* IMAGE INSERT: This is the code for styling and sizing the logo in the header. Use a transparent PNG or SVG and keep the original brand proportions. */
    .brand-logo {
        display: block;
        width: auto;
        max-width: 220px;
        max-height: 65px;
    object-fit: contain;
    }

    .main-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(14px, 2vw, 28px);
    }

    .main-nav a {
      color: #263d4f;
      font-size: 14px;
      text-decoration: none;
      white-space: nowrap;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible { color: var(--blue); }

    .button {
      display: inline-flex;
      min-height: 46px;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 12px 22px;
      border: 1px solid transparent;
      border-radius: 999px;
      background: var(--navy);
      color: var(--white);
      font-size: 14px;
      font-weight: 700;
      text-align: center;
      text-decoration: none;
      transition: background .2s ease, transform .2s ease;
    }

    .button:hover {
      background: var(--navy-deep);
      transform: translateY(-1px);
    }

    .button-light {
      border-color: var(--navy);
      background: transparent;
      color: var(--navy);
    }

    .button-light:hover {
      background: var(--blue-soft);
      color: var(--navy);
    }

    /* HERO */
    .hero {
      overflow: hidden;
      padding: 58px 0 62px;
      background: linear-gradient(115deg, #edf6fc 0%, #e2f0fa 100%);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(320px, .82fr);
      align-items: center;
      gap: clamp(38px, 6vw, 82px);
    }

    .eyebrow {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0 0 20px;
      color: var(--blue);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      width: 36px;
      height: 2px;
      background: var(--blue);
      content: "";
    }

    h1, h2, h3, p { margin-top: 0; }

    h1, h2, h3 {
      color: var(--navy);
      font-family: Georgia, "Times New Roman", serif;
      font-weight: 400;
      letter-spacing: -.035em;
    }

    h1 {
      max-width: 690px;
      margin-bottom: 22px;
      font-size: clamp(44px, 5.1vw, 66px);
      line-height: 1.04;
    }

    /* Keep the hero headline on two deliberate, compact lines. */
    .hero-title {
      max-width: 100%;
      margin-bottom: 18px;
      font-size: clamp(30px, 4.2vw, 56px);
      line-height: 1.02;
      letter-spacing: -0.035em;
    }

    .hero-title span {
      display: block;
      white-space: nowrap;
    }

    .hero-copy {
      max-width: 610px;
      margin-bottom: 28px;
      color: #49657d;
      font-size: 17px;
      line-height: 1.75;
    }

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

    .hero-photo-wrap {
      position: relative;
      width: 100%;
      max-width: 470px;
      justify-self: end;
    }

    .hero-photo {
      width: 100%;
      aspect-ratio: 4 / 4.65;
      border-radius: 18px;
      object-fit: cover;
      object-position: center 30%;
      box-shadow: var(--shadow);
    }

    .photo-accent {
      position: absolute;
      z-index: 0;
      right: -15px;
      bottom: -15px;
      width: 72%;
      height: 72%;
      border: 2px solid rgba(22, 132, 199, .55);
      border-radius: 18px;
      pointer-events: none;
    }

    /* SERVICES */
    .services {
      padding: 78px 0 84px;
      background: var(--white);
    }

    .section-heading {
      max-width: 690px;
      margin: 0 auto 42px;
      text-align: center;
    }

    .section-heading .eyebrow {
      justify-content: center;
      margin-bottom: 14px;
    }

    .section-heading .eyebrow::before { display: none; }

    h2 {
      margin-bottom: 14px;
      font-size: clamp(32px, 3.5vw, 44px);
      line-height: 1.13;
    }

    .section-intro {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 16px;
    }

    .service-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .service-card {
      padding: 30px 32px 32px;
    }

    .service-card + .service-card {
      border-left: 1px solid var(--line);
    }

    .service-icon {
      display: inline-grid;
      width: 48px;
      height: 48px;
      margin-bottom: 20px;
      place-items: center;
      color: var(--blue);
    }

    .service-icon svg {
      width: 42px;
      height: 42px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.6;
    }

    h3 {
      margin-bottom: 10px;
      font-size: 25px;
      line-height: 1.2;
    }

    .service-card p {
      max-width: 290px;
      margin-bottom: 18px;
      color: var(--muted);
      font-size: 15px;
    }

    .text-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--blue);
      font-size: 14px;
      font-weight: 700;
      text-decoration: none;
    }

    .text-link:hover { color: var(--navy); }

    /* PERSONAL CONTACT BAND */
    .contact-band {
      position: relative;
      overflow: hidden;
      padding: 54px 0;
      background: var(--blue-soft);
    }

    /* OPTIONAL IMAGE INSERT: You can add a subtle home/landscape image
       as a background in this section, but keep it low contrast so the
       heading and button remain easy to read. */
    .contact-band-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 50px;
    }

    .contact-band .eyebrow { margin-bottom: 12px; }

    .contact-band h2 {
      max-width: 520px;
      margin-bottom: 0;
      font-size: clamp(30px, 3.5vw, 42px);
    }

    .contact-details {
      max-width: 470px;
    }

    .contact-details p {
      margin-bottom: 20px;
      color: var(--muted);
      font-size: 16px;
    }

    /* FOOTER: Three clear columns as requested.
       Replace sample details and links with your actual branch/contact/social info. */
    .site-footer {
      padding: 44px 0 22px;
      background: var(--navy-deep);
      color: #eaf4fb;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.15fr 1fr .85fr;
      gap: 46px;
      padding-bottom: 34px;
    }

    .footer-intro {
      max-width: 290px;
      margin-bottom: 0;
      color: #c5d9e7;
      font-size: 13px;
      line-height: 1.7;
    }

    .footer-heading {
      margin: 0 0 16px;
      color: var(--white);
      font-family: Arial, Helvetica, sans-serif;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .13em;
      text-transform: uppercase;
    }

    .footer-list {
      display: grid;
      gap: 9px;
      margin: 0;
      padding: 0;
      list-style: none;
      color: #c5d9e7;
      font-size: 13px;
    }

    .footer-list a {
      color: #c5d9e7;
      text-decoration: none;
    }

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

    .social-links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .social-links a {
      display: inline-flex;
      width: 38px;
      height: 38px;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255,255,255,.32);
      border-radius: 50%;
      color: var(--white);
      font-size: 12px;
      font-weight: 700;
      text-decoration: none;
    }

    .social-links a:hover {
      border-color: var(--white);
      background: rgba(255,255,255,.12);
    }

    .footer-bottom {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      padding-top: 18px;
      border-top: 1px solid rgba(255,255,255,.18);
      color: #a9c6d9;
      font-size: 11px;
    }

    .footer-bottom p { margin: 0; }

    .footer-legal {
      max-width: 700px;
      line-height: 1.6;
    }


/* Fix headline on very narrow phones */
@media (max-width: 360px) {
  .hero-content .hero-title {
    width: 100%;
    max-width: 100%;
    font-size: 17px !important;
    line-height: 1.15;
    letter-spacing: -0.04em;
    overflow-wrap: normal;
  }

  .hero-content .hero-title span {
    display: block;
    white-space: nowrap !important;
  }
}

  .hero-title span {
    display: block;
    white-space: nowrap;
  }
}
.hero-title span {
  display: block;
  white-space: nowrap;
}  


      .header-inner {
        min-height: 70px;
        justify-content: space-between;
      }

      .brand { min-width: 0; gap: 7px; }
      .main-nav { display: none; }
      .header-cta { display: none; }

      .hero {
        padding: 36px 0 42px;
      }

      .hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
      }

      .hero-content { order: 1; }
      .hero-photo-wrap {
        order: 2;
        width: 100%;
        max-width: 420px;
        justify-self: center;
        padding-right: 8px;
        padding-bottom: 8px;
      }

      .hero-photo {
        aspect-ratio: 1.12 / 1;
        object-position: center 28%;
        border-radius: 14px;
      }

      .photo-accent {
        right: 0;
        bottom: 0;
        border-radius: 14px;
      }

      .eyebrow {
        margin-bottom: 15px;
        font-size: 10px;
      }

      .hero-title {
        margin-bottom: 16px;
        font-size: clamp(20px, 7.1vw, 42px);
        line-height: 1;
        letter-spacing: -0.04em;
      }
      


      .hero-copy {
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.7;
      }

      .hero-actions { display: grid; }
      .hero-actions .button { width: 100%; }

      .services { padding: 54px 0 56px; }
      .section-heading { margin-bottom: 26px; }
      h2 { font-size: 34px; }
      .section-intro { font-size: 14px; }

      .service-grid {
        grid-template-columns: 1fr;
        border-bottom: 0;
      }

      .service-card {
        display: grid;
        grid-template-columns: 46px 1fr;
        column-gap: 15px;
        padding: 22px 0;
        border-bottom: 1px solid var(--line);
      }

      .service-card + .service-card { border-left: 0; }
      .service-icon { grid-row: 1 / span 3; margin: 2px 0 0; }
      .service-card h3 { margin-bottom: 6px; font-size: 22px; }
      .service-card p { max-width: none; margin-bottom: 10px; font-size: 14px; }
      .text-link { font-size: 13px; }

      .contact-band { padding: 40px 0 44px; }
      .contact-band-inner {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .contact-band h2 { font-size: 32px; }
      .contact-details p { font-size: 14px; }

      .site-footer { padding: 36px 0 20px; }
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 26px;
      }

      .footer-intro { max-width: 360px; }
      .footer-heading { margin-bottom: 11px; }
      .footer-bottom { flex-direction: column; gap: 8px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: .01ms !important; }
    }
