/* MAC Property Solutions — Shared design system (tokens, reset, header/nav, footer, buttons, forms, FAQ, CTA banner, utilities) */

    /* ═══════════════════════════════════════════════════════
       DESIGN TOKENS — Blueprint § 10 canonical palette
       ═══════════════════════════════════════════════════ */
    :root {
      /* Core palette */
      --navy:        #0B1B2B;
      --navy-mid:    #142233;
      --charcoal:    #1E2D3D;
      --gold:        #C8973A;
      --gold-light:  #dba84e;
      --gold-muted:  #8A6627;
      --cream:       #F5F0E8;
      --off-white:   #FDFCFA;
      --white:       #FFFFFF;
      --steel:       #2E6DA4;
      --success:     #437A22;
      --alert:       #964219;
      --text:        #1A1F2E;
      --muted:       #5A6475;
      --border:      #D9D3C4;

      /* Radii */
      --r:    8px;
      --r-md: 12px;
      --r-lg: 16px;

      /* Shadows */
      --shadow-sm:  0 2px 8px  rgba(11,27,43,.08);
      --shadow-md:  0 8px 32px rgba(11,27,43,.14);
      --shadow-lg:  0 20px 60px rgba(11,27,43,.22);
    }

    /* ═══ RESET ══════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html  { scroll-behavior: smooth; }
    body  {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: var(--off-white);
      color: var(--text);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    img { display: block; max-width: 100%; }
    a   { color: inherit; text-decoration: none; }
    ul  { list-style: none; }
    button { cursor: pointer; font-family: inherit; border: none; }

    /* ═══ SKIP LINK ════════════════════════════════════ */
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      white-space: nowrap;
      border: 0;
    }
    .skip-link {
      position: absolute;
      left: -9999px;
      top: 8px;
      padding: 8px 16px;
      background: var(--gold);
      color: var(--navy);
      font-weight: 700;
      border-radius: var(--r);
      z-index: 9999;
    }
    .skip-link:focus { left: 8px; }

    /* ═══ UTILITY ═══════════════════════════════════════ */
    .container {
      width: 100%;
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 24px;
    }
    .section-tag {
      display: inline-block;
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 12px;
    }
    /* Blueprint: desktop H1/H2 left-aligned, mobile centered */
    h1, h2 {
      font-family: 'DM Sans', sans-serif;
      font-weight: 800;
      line-height: 1.15;
    }
    h3, h4 { font-family: 'DM Sans', sans-serif; font-weight: 700; line-height: 1.3; }
    .section-heading {
      font-size: clamp(28px, 4vw, 42px);
      color: var(--navy);
      margin-bottom: 12px;
    }
    .section-sub {
      font-size: 17px;
      color: var(--muted);
      max-width: 560px;
      margin-bottom: 48px;
    }

    /* ═══ BUTTONS ═══════════════════════════════════════ */
    /* Primary: navy bg, gold text */
    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      background: var(--navy);
      color: var(--gold);
      font-family: 'Inter', sans-serif;
      font-size: 15px;
      font-weight: 600;
      border-radius: var(--r);
      transition: background .15s, transform .1s, box-shadow .15s;
      min-height: 44px;
      border: 2px solid transparent;
    }
    .btn-primary:hover { background: var(--charcoal); transform: translateY(-1px); box-shadow: var(--shadow-md); }
    .btn-primary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
    .btn-primary:active { transform: translateY(0); }

    /* Secondary: gold outline */
    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      background: transparent;
      color: var(--gold);
      font-family: 'Inter', sans-serif;
      font-size: 15px;
      font-weight: 600;
      border: 2px solid var(--gold);
      border-radius: var(--r);
      transition: background .15s, color .15s, transform .1s;
      min-height: 44px;
    }
    .btn-secondary:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
    .btn-secondary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

    /* Tertiary: charcoal */
    .btn-tertiary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      background: var(--charcoal);
      color: var(--white);
      font-family: 'Inter', sans-serif;
      font-size: 15px;
      font-weight: 600;
      border-radius: var(--r);
      transition: background .15s, transform .1s;
      min-height: 44px;
    }
    .btn-tertiary:hover { background: #263749; transform: translateY(-1px); }
    .btn-tertiary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

    /* ═══ ANNOUNCEMENT BAR ══════════════════════════════ */
    .announce-bar {
      background: var(--navy-mid);
      color: var(--cream);
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      text-align: center;
      padding: 10px 24px;
    }
    .announce-bar strong { color: var(--gold); }

    /* ═══ STICKY HEADER ═════════════════════════════════ */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--navy);
      border-bottom: 1px solid rgba(200,151,58,.2);
      padding: 0 24px;
    }
    .header-inner {
      max-width: 1140px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
      gap: 16px;
    }
    /* Logo: preserve intrinsic ratio, no forced square */
    .site-logo {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }
    .site-logo img {
      height: 44px;
      width: auto;
      object-fit: contain;
    }
    .header-nav {
      display: flex;
      gap: 24px;
      align-items: center;
    }
    .header-nav a {
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      font-weight: 500;
      color: rgba(255,255,255,.8);
      transition: color .15s;
      white-space: nowrap;
      padding: 4px 0;
    }
    .header-nav a:hover { color: var(--gold); }
    .header-nav a[aria-current="page"] { color: var(--gold); font-weight: 700; }
    .header-nav a:focus-visible, .mobile-nav a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
    .header-phone {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: 'Inter', sans-serif;
      font-size: 15px;
      font-weight: 600;
      color: var(--gold);
      white-space: nowrap;
      padding: 8px 0;
      min-height: 44px;
    }
    .header-phone:hover { color: var(--gold-light); }
    .header-cta {
      display: none;
    }
    @media (min-width: 900px) {
      .header-cta {
        display: inline-flex;
        padding: 10px 20px;
        font-size: 14px;
      }
    }
    .nav-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      background: transparent;
      color: var(--white);
      border-radius: var(--r);
      flex-shrink: 0;
    }
    .nav-toggle:hover { color: var(--gold); }
    .nav-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
    .nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
    .nav-toggle[aria-expanded="false"] .icon-close { display: none; }

    .mobile-nav {
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-width: 1140px;
      margin: 0 auto;
      padding: 8px 0 20px;
      border-top: 1px solid rgba(200,151,58,.15);
    }
    .mobile-nav a {
      font-family: 'Inter', sans-serif;
      font-size: 16px;
      font-weight: 500;
      color: rgba(255,255,255,.85);
      padding: 12px 4px;
      min-height: 44px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .mobile-nav a[aria-current="page"] { color: var(--gold); font-weight: 700; }
    .mobile-nav a.btn-primary {
      justify-content: center;
      margin-top: 12px;
      border-bottom: none;
    }
    .mobile-nav-phone { color: var(--gold) !important; font-weight: 600 !important; }
    .mobile-nav[hidden] { display: none; }

    @media (max-width: 900px) {
      .header-nav { display: none; }
      .nav-toggle { display: flex; }
    }
    @media (max-width: 768px) {
      .header-inner { height: 56px; }
    }
    @media (min-width: 901px) {
      .mobile-nav { display: none !important; }
    }

    /* ═══ SECTION GENERIC ═══════════════════════════════ */
    .section { padding: 80px 0; }
    .section-alt { background: var(--cream); }
    .section-dark { background: var(--navy); color: var(--white); }

    /* ═══ VALUE PROP / HOW IT WORKS ═════════════════════ */
    .steps-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 32px;
      margin-top: 48px;
    }
    .step-card {
      background: var(--white);
      border-radius: var(--r-md);
      border: 1px solid var(--border);
      padding: 28px 24px;
      box-shadow: var(--shadow-sm);
    }
    .step-num {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--navy);
      color: var(--gold);
      font-family: 'DM Sans', sans-serif;
      font-size: 18px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
    }
    .step-card h3 { font-size: 17px; margin-bottom: 8px; }
    .step-card p  { font-size: 14px; color: var(--muted); }

    /* ═══ ASSESSMENT / BOOKING FORM ═════════════════════ */
    .assessment-section {
      background: var(--navy);
      padding: 80px 0;
      color: var(--white);
    }
    .booking-form {
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(200,151,58,.2);
      border-radius: var(--r-lg);
      padding: 40px 36px;
      margin-top: 40px;
    }
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 20px;
    }
    .form-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .form-field label {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: rgba(255,255,255,.8);
      letter-spacing: .03em;
    }
    .form-field input,
    .form-field select {
      padding: 12px 14px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.18);
      border-radius: var(--r);
      color: var(--white);
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      transition: border-color .2s, background .2s;
      min-height: 44px;
    }
    .form-field input::placeholder { color: rgba(255,255,255,.35); }
    .form-field input:focus,
    .form-field select:focus {
      outline: none;
      border-color: var(--gold);
      background: rgba(255,255,255,.12);
    }
    .form-field select option { background: var(--navy); color: var(--white); }
    .form-field .field-error {
      font-size: 12px;
      color: #f87171;
      font-family: 'Inter', sans-serif;
      display: none;
    }
    .form-field.invalid .field-error { display: block; }
    .form-field.invalid input,
    .form-field.invalid select { border-color: #f87171; }
    /* Consent checkbox (TCPA) */
    .form-consent {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 4px 0 4px;
      padding: 12px 14px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: var(--r);
    }
    .form-consent input[type="checkbox"] {
      margin-top: 3px;
      width: 18px;
      height: 18px;
      min-width: 18px;
      accent-color: var(--gold);
      cursor: pointer;
    }
    .form-consent label {
      font-family: 'Inter', sans-serif;
      font-size: 12.5px;
      line-height: 1.6;
      color: rgba(255,255,255,.65);
      cursor: pointer;
    }
    .form-consent.invalid { border-color: #f87171; background: rgba(185,28,28,.08); }
    #err-consent {
      font-size: 12px;
      color: #f87171;
      font-family: 'Inter', sans-serif;
      display: none;
      margin: -2px 0 12px 2px;
    }
    #field-consent.invalid ~ #err-consent { display: block; }
    .form-submit-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 16px 28px;
      background: var(--gold);
      color: var(--navy);
      font-family: 'Inter', sans-serif;
      font-size: 16px;
      font-weight: 700;
      border-radius: var(--r);
      transition: background .15s, transform .1s, box-shadow .15s;
      min-height: 52px;
      margin-top: 8px;
    }
    .form-submit-btn:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
    .form-submit-btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
    .form-submit-btn:disabled { opacity: .6; pointer-events: none; }
    .form-disclaimer {
      font-size: 12px;
      color: rgba(255,255,255,.45);
      line-height: 1.6;
      margin-top: 14px;
      text-align: center;
    }
    .form-disclaimer a { color: rgba(255,255,255,.65); text-decoration: underline; }
    /* Success state */
    #form-success {
      display: none;
      text-align: center;
      padding: 48px 24px;
    }
    #form-success h3 {
      color: var(--white);
      font-size: 24px;
      margin-bottom: 12px;
    }
    #form-success p { color: rgba(255,255,255,.75); margin-bottom: 20px; }
    /* Error state */
    #form-error {
      display: none;
      background: rgba(185,28,28,.15);
      border: 1px solid rgba(185,28,28,.4);
      border-radius: var(--r);
      padding: 14px 18px;
      font-size: 14px;
      color: #fca5a5;
      line-height: 1.6;
      margin-top: 12px;
    }
    @media (max-width: 640px) {
      .form-row { grid-template-columns: 1fr; }
      .booking-form { padding: 28px 20px; }
    }

    /* ═══ FAQ ═══════════════════════════════════════════ */
    .faq-list { margin-top: 40px; max-width: 760px; }
    .faq-item {
      border-bottom: 1px solid var(--border);
    }
    .faq-btn {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 18px 0;
      background: none;
      text-align: left;
      font-family: 'DM Sans', sans-serif;
      font-size: 16px;
      font-weight: 700;
      color: var(--navy);
      gap: 12px;
      min-height: 44px;
    }
    .faq-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
    .faq-icon {
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--cream);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .15s, transform .2s;
      color: var(--navy);
    }
    .faq-btn[aria-expanded="true"] .faq-icon { background: var(--gold); color: var(--navy); transform: rotate(45deg); }
    .faq-body {
      overflow: hidden;
      max-height: 0;
      transition: max-height .3s ease, padding .2s;
    }
    .faq-body.open { max-height: 400px; }
    .faq-body p {
      padding-bottom: 18px;
      font-size: 15px;
      color: var(--muted);
      line-height: 1.7;
    }

    /* ═══ FINAL CTA BANNER ══════════════════════════════ */
    .cta-banner {
      background: var(--navy);
      padding: 72px 0;
      text-align: center;
    }
    .cta-banner h2 { color: var(--white); font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
    .cta-banner p  { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 36px; font-size: 17px; }
    .cta-banner-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

    /* ═══ FOOTER ════════════════════════════════════════ */
    footer {
      background: var(--charcoal);
      color: var(--cream);
      padding: 56px 0 32px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1.5fr;
      gap: 40px;
      margin-bottom: 48px;
    }
    .footer-logo { margin-bottom: 16px; }
    .footer-logo img { height: 48px; width: auto; object-fit: contain; }
    .footer-tagline {
      font-size: 14px;
      color: rgba(253,252,250,.6);
      line-height: 1.6;
      max-width: 260px;
      margin-bottom: 16px;
    }
    .footer-nap {
      font-size: 13px;
      color: rgba(253,252,250,.7);
      line-height: 1.8;
      font-family: 'Inter', sans-serif;
    }
    .footer-nap a { color: var(--gold); }
    .footer-col h4 {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 14px;
      font-family: 'Inter', sans-serif;
    }
    .footer-col ul { display: flex; flex-direction: column; gap: 8px; }
    .footer-col ul li a {
      font-size: 14px;
      color: rgba(253,252,250,.65);
      transition: color .15s;
    }
    .footer-col ul li a:hover { color: var(--gold); }
    .footer-phone-link {
      display: inline-block;
      font-size: 18px;
      font-weight: 700;
      color: var(--gold);
      margin-top: 8px;
      min-height: 44px;
      line-height: 44px;
    }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,.1);
      padding-top: 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .footer-copy {
      font-size: 12px;
      color: rgba(253,252,250,.4);
      font-family: 'Inter', sans-serif;
      line-height: 1.6;
    }
    .footer-legal-links {
      display: flex;
      gap: 16px;
    }
    .footer-legal-links a {
      font-size: 12px;
      color: rgba(253,252,250,.4);
      font-family: 'Inter', sans-serif;
      text-decoration: underline;
    }
    .footer-legal-links a:hover { color: var(--gold); }
    @media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
    /* Keep legal links clear of the floating call button on mobile */
    @media (max-width: 640px) { .footer-bottom { padding-bottom: 88px; } }

    /* ═══ SERVICE PATHWAY CARDS ══════════════════════════ */
    .pathways-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .pathway-card {
      display: flex;
      align-items: center;
      gap: 14px;
      background: var(--off-white);
      border: 1px solid var(--border);
      border-radius: var(--r-md);
      padding: 18px 20px;
      transition: border-color .15s, transform .15s, box-shadow .15s;
    }
    .pathway-card:hover, .pathway-card:focus-visible {
      border-color: var(--gold);
      box-shadow: 0 4px 16px rgba(200,151,58,.15);
      transform: translateY(-1px);
    }
    .pathway-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
    .pathway-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      flex-shrink: 0;
      border-radius: 50%;
      background: var(--navy);
      color: var(--gold);
    }
    .pathway-text { display: flex; flex-direction: column; gap: 2px; }
    .pathway-text strong {
      font-family: 'DM Sans', sans-serif;
      font-weight: 700;
      font-size: 15px;
      color: var(--text);
    }
    .pathway-text span {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: var(--muted);
    }
    @media (max-width: 640px) {
      .pathways-grid { grid-template-columns: 1fr; }
    }

    /* ═══ FLOATING MOBILE CALL ══════════════════════════ */
    .floating-call {
      display: none;
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 200;
    }
    @media (max-width: 640px) { .floating-call { display: block; } }
    .floating-call a {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--gold);
      color: var(--navy);
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      font-weight: 700;
      padding: 13px 20px;
      border-radius: 40px;
      box-shadow: 0 4px 20px rgba(200,151,58,.5);
      min-height: 52px;
    }

    /* ═══ FADE-UP ANIMATION ════════════════════════════ */
    .fade-up {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity .5s ease, transform .5s ease;
    }
    .fade-up.visible { opacity: 1; transform: translateY(0); }

    /* ═══ MOBILE HEADINGS CENTERED ═════════════════════ */
    @media (max-width: 640px) {
      .section-heading, .section-sub, .section-tag { text-align: center; }
      .section-sub { margin-left: auto; margin-right: auto; }
    }

