/* TMS — The Marketing Station
   Shared stylesheet for every page. Page-specific rules stay in each
   page's own <style> block, which loads after this file. */
:root {
    --gold:       #E9B44C;
    --gold-lt:    #F4CE7A;
    --gold-dp:    #C9942F;
    --up:         #4CAF6D;

    --ink:        #0A0A0A;
    --ink-2:      #101010;
    --card:       #151515;
    --card-line:  #2E2E2E;
    --white:      #FFFFFF;
    --dim:        #A9A49B;

    --lt-bg:      #FAFAF8;
    --lt-band:    #F2F1ED;
    --lt-card:    #FFFFFF;
    --lt-line:    #E6E4DE;
    --lt-text:    #1A1A18;
    --lt-dim:     #5C5952;

    --f: ui-sans-serif, -apple-system, "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  }

  * { box-sizing: border-box; }
  /* Images sit on the text baseline in standards mode, which leaves a ~4px
     gap under every one. Kills it, so adding the doctype changed no layout. */
  img { vertical-align: middle; }

  /* form controls have an intrinsic minimum width that can push a card
     wider than its container on small phones -- never let them */
  input, textarea, select { min-width: 0; max-width: 100%; }

  body {
    margin: 0;
    background: var(--ink);
    color: var(--white);
    font-family: var(--f);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.06; }
  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  .wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: 46px; }

  /* ===================== NAV ===================== */
  .nav {
    display: flex;
    align-items: center;
    gap: 42px;
    padding-block: 20px;
    background: var(--ink);
    position: relative;
    z-index: 20;
  }

  .logo { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

  .logo-mark {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--white);
  }
  .logo-mark em { font-style: normal; color: var(--gold); }

  .logo-stack { display: flex; flex-direction: column; gap: 5px; }

  .logo-top {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1;
    color: var(--white);
  }

  .logo-bot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.3em;
    line-height: 1;
    color: var(--gold);
  }
  .logo-bot i { flex: 1; height: 1px; background: var(--gold); min-width: 16px; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
    font-size: 16.5px;
    color: #D8D4CD;
  }
  .nav-links a { padding-block: 6px; border-bottom: 2px solid transparent; transition: color 140ms ease; }
  .nav-links a:hover { color: var(--gold); }
  .nav-links a.on { color: var(--white); border-bottom-color: var(--gold); }

  /* ===================== BUTTONS ===================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 28px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
  }
  .btn svg { width: 17px; height: 17px; }

  .btn-gold { background: var(--gold); color: #171207; }
  .btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }

  .btn-out { background: transparent; color: var(--white); border-color: #E9E6E0; }
  .btn-out:hover { border-color: var(--gold); color: var(--gold); }

  .btn-sm { padding: 13px 22px; font-size: 13px; }

  /* ===================== HERO ===================== */
  .hero {
    position: relative;
    background: var(--ink);
    overflow: hidden;
    padding-block: 56px 54px;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: -10%;
    right: 6%;
    width: 900px;
    height: 700px;
    background: radial-gradient(closest-side, rgba(233,180,76,0.10), transparent 70%);
    pointer-events: none;
  }

  /* --- full-bleed hero photo --- */
  .hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 72%;
    z-index: 1;
    pointer-events: none;
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
  }
  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(10,10,10,0.85) 4%, rgba(10,10,10,0.30) 16%, rgba(10,10,10,0.04) 34%, transparent 60%),
      linear-gradient(0deg, var(--ink) 0%, rgba(10,10,10,0.55) 6%, rgba(10,10,10,0.12) 16%, transparent 28%),
      linear-gradient(180deg, rgba(10,10,10,0.5) 0%, transparent 20%);
  }

  .hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    gap: 34px;
    align-items: center;
    min-height: 470px;
  }

  .eyebrow {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(38px, 3.9vw, 60px);
    font-weight: 800;
  }
  .hero h1 em { font-style: normal; color: var(--gold); }

  .hero-sub {
    margin-top: 24px;
    max-width: 40ch;
    font-size: 18px;
    color: #CFCAC2;
    line-height: 1.62;
  }

  .hero-cta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 34px; }

  /* four value props */
  .props {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 40px;
    margin-top: 54px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.09);
  }
  .prop { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
  .prop svg { width: 32px; height: 32px; flex-shrink: 0; color: var(--gold); }
  .prop b { display: block; font-size: 15.5px; font-weight: 700; color: var(--white); line-height: 1.3; white-space: nowrap; }
  .prop > span > span { display: block; font-size: 13px; color: #8E8981; line-height: 1.35; white-space: nowrap; }

  /* ===================== HERO STAGE ===================== */
  .stage { position: relative; }

  .screen {
    position: relative;
    z-index: 3;
    margin-inline: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0C0C0C;
    border: 1px solid #33322E;
    box-shadow: 0 40px 90px -26px rgba(0,0,0,0.95), 0 0 70px -20px rgba(233,180,76,0.14);
  }

  /* --- client site inside the monitor --- */
  .cs-top {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.1vw, 18px);
    padding: clamp(12px, 1.1vw, 18px) clamp(14px, 1.4vw, 24px);
    background: #0E0E0E;
    border-bottom: 1px solid #232323;
  }
  .cs-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
  .cs-brand svg { width: clamp(22px, 2vw, 32px); height: clamp(22px, 2vw, 32px); color: var(--gold); }
  .cs-name { font-size: clamp(11px, 1.05vw, 16px); font-weight: 800; letter-spacing: 0.02em; line-height: 1.05; }
  .cs-name span { display: block; font-size: clamp(8px, 0.74vw, 11px); font-weight: 500; letter-spacing: 0.18em; color: #8E8981; }
  .cs-nav { display: flex; gap: clamp(9px, 1vw, 16px); font-size: clamp(7px, 0.72vw, 11px); white-space: nowrap; font-weight: 600; letter-spacing: 0.11em; color: #B9B4AC; }
  .cs-nav .on { color: var(--white); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
  .cs-quote {
    background: var(--gold);
    color: #171207;
    font-size: clamp(7px, 0.72vw, 11px);
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: clamp(6px, 0.62vw, 10px) clamp(9px, 0.95vw, 15px);
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cs-hero { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; }
  .cs-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 58%; display: block; }
  .cs-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,6,6,0.94) 0%, rgba(6,6,6,0.78) 34%, rgba(6,6,6,0.12) 62%, transparent 100%);
  }
  .cs-copy {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 52%;
  }
  .cs-copy h4 {
    font-size: clamp(18px, 2.3vw, 36px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .cs-copy p { margin-top: 11px; font-size: clamp(9px, 1vw, 15px); color: #C3BEB6; line-height: 1.55; }
  .cs-btns { display: flex; gap: 11px; margin-top: 19px; }
  .cs-b1, .cs-b2 {
    font-size: clamp(8px, 0.78vw, 12px);
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: clamp(8px, 0.8vw, 13px) clamp(12px, 1.3vw, 21px);
    border-radius: 4px;
  }
  .cs-b1 { background: var(--gold); color: #171207; }
  .cs-b2 { border: 1px solid #6E6A63; color: #EEEAE3; }

  .cs-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: clamp(14px, 1.4vw, 24px) clamp(16px, 1.6vw, 28px);
    background: #0B0B0B;
    border-top: 1px solid #1E1E1E;
  }
  .cs-t { display: flex; align-items: center; gap: 9px; }
  .cs-t svg { width: clamp(15px, 1.5vw, 24px); height: clamp(15px, 1.5vw, 24px); color: var(--gold); flex-shrink: 0; }
  .cs-t b { font-size: clamp(8px, 0.8vw, 12px); font-weight: 800; letter-spacing: 0.05em; line-height: 1.25; }
  .cs-t span { display: block; font-size: clamp(7px, 0.72vw, 11px); font-weight: 500; color: #8E8981; letter-spacing: 0.04em; }

  /* --- floating metric cards --- */
  .card {
    position: absolute;
    z-index: 6;
    background: linear-gradient(160deg, #1A1A1A, #121212);
    border: 1px solid var(--card-line);
    border-radius: 9px;
    padding: 15px 17px 13px;
    box-shadow: 0 24px 48px -16px rgba(0,0,0,0.9);
    animation: pop 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .card-t { font-size: 12.5px; font-weight: 600; color: #E4E0D9; white-space: nowrap; }
  .card-v {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.16;
    color: var(--white);
    font-variant-numeric: tabular-nums;
  }
  .card-s { font-size: 10.5px; color: #8E8981; line-height: 1.4; white-space: nowrap; }
  .card-up { font-size: 13px; font-weight: 700; color: var(--up); font-variant-numeric: tabular-nums; }
  .card svg.spark { display: block; margin-top: 8px; }

  .c-rank  { top: 1%;     left: -2%;  width: clamp(138px, 20%, 180px); animation-delay: 70ms; }
  .c-lead  { bottom: 8%;  left: 1%;   width: clamp(134px, 19%, 172px); animation-delay: 170ms; }
  .c-traf  { top: 0;      right: -2%; width: clamp(138px, 20%, 180px); animation-delay: 120ms; }
  .c-star  { bottom: 30%; right: 1%;  width: clamp(134px, 19%, 172px); animation-delay: 220ms; }

  .stars { color: var(--gold); font-size: 19px; letter-spacing: 3px; line-height: 1.5; }

  @keyframes pop {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: none; }
  }

  /* --- google review phone --- */
  .phone {
    position: absolute;
    z-index: 7;
    right: 1%;
    bottom: -31%;
    width: 132px;
    border-radius: 18px;
    background: #111;
    border: 3px solid #2B2B2B;
    padding: 7px 6px;
    box-shadow: 0 26px 52px -16px rgba(0,0,0,0.95);
    animation: pop 520ms cubic-bezier(0.22, 1, 0.36, 1) 300ms backwards;
  }
  .ph-in { background: var(--white); border-radius: 12px; padding: 9px 9px 11px; color: #1A1A18; }
  .g-logo { font-size: 13px; font-weight: 700; letter-spacing: -0.04em; text-align: center; }
  .g-logo b:nth-child(1) { color: #4285F4; }
  .g-logo b:nth-child(2) { color: #EA4335; }
  .g-logo b:nth-child(3) { color: #FBBC05; }
  .g-logo b:nth-child(4) { color: #4285F4; }
  .g-logo b:nth-child(5) { color: #34A853; }
  .g-logo b:nth-child(6) { color: #EA4335; }
  .ph-name { margin-top: 8px; font-size: 9.5px; font-weight: 700; line-height: 1.2; }
  .ph-cat { font-size: 7px; color: #6E6A63; }
  .ph-rate { display: flex; align-items: center; gap: 4px; margin-top: 5px; }
  .ph-rate b { font-size: 13px; font-weight: 700; }
  .ph-rate i { color: #FBBC05; font-size: 8px; font-style: normal; letter-spacing: 0.5px; }
  .ph-cnt { font-size: 6.5px; color: #6E6A63; }
  .ph-rev { margin-top: 8px; border-top: 1px solid #E6E4DE; padding-top: 7px; display: flex; gap: 5px; }
  .ph-av { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(140deg, #C9942F, #E9B44C); flex-shrink: 0; }
  .ph-who { font-size: 7.5px; font-weight: 700; line-height: 1.2; }
  .ph-when { font-size: 6px; color: #8E8981; }
  .ph-txt { margin-top: 5px; font-size: 7px; line-height: 1.5; color: #3D3B36; }
  .ph-btn {
    margin-top: 8px;
    text-align: center;
    font-size: 6.5px;
    font-weight: 700;
    color: #4285F4;
    border: 1px solid #DADCE0;
    border-radius: 20px;
    padding: 4px;
  }

  /* ===================== LIGHT: SERVICES ===================== */
  .light { background: var(--lt-bg); color: var(--lt-text); }

  .svc { padding-block: 66px 60px; text-align: center; }
  .svc h2 { font-size: clamp(28px, 2.7vw, 40px); font-weight: 700; }
  .svc h2 em { font-style: normal; color: var(--gold-dp); }
  .svc > .wrap > p {
    margin-top: 14px;
    font-size: 16.5px;
    color: var(--lt-dim);
    max-width: 74ch;
    margin-inline: auto;
  }

  .svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 44px;
    text-align: left;
  }

  .svc-card {
    background: var(--lt-card);
    border: 1px solid var(--lt-line);
    border-radius: 8px;
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
  .svc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(0,0,0,0.3); }

  .svc-head { display: flex; align-items: flex-start; gap: 16px; }
  .svc-ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .svc-ico svg { width: 25px; height: 25px; color: #171207; }

  .svc-art {
    flex: 1;
    min-width: 0;
    height: 96px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: #F4F3F0;
    border: 1px solid var(--lt-line);
  }

  .svc-card h3 { margin-top: 24px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
  .svc-card p { margin-top: 10px; font-size: 14.5px; color: var(--lt-dim); line-height: 1.62; }
  .svc-more {
    margin-top: auto;
    padding-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--gold-dp);
  }
  .svc-more svg { width: 15px; height: 15px; transition: transform 160ms ease; }
  .svc-card:hover .svc-more svg { transform: translateX(4px); }

  /* mini artwork */
  .art-mon {
    position: absolute;
    left: 8%;
    top: 12%;
    width: 66%;
    height: 62%;
    border-radius: 3px;
    background: linear-gradient(140deg, #2C2C2C, #171717);
    border: 2px solid #C9C6BF;
  }
  .art-mon::after {
    content: "";
    position: absolute;
    left: 34%;
    bottom: -14%;
    width: 32%;
    height: 12%;
    background: #C9C6BF;
    border-radius: 0 0 2px 2px;
  }
  .art-ph {
    position: absolute;
    right: 9%;
    top: 26%;
    width: 15%;
    height: 58%;
    border-radius: 3px;
    background: linear-gradient(140deg, #2C2C2C, #171717);
    border: 1.5px solid #C9C6BF;
  }
  .art-serp { position: absolute; inset: 9% 8%; display: flex; flex-direction: column; gap: 5px; }
  .art-line { height: 6px; border-radius: 2px; background: #DDDAD3; }
  .art-line.w1 { width: 62%; background: #B9C7DC; }
  .art-line.w2 { width: 84%; }
  .art-line.w3 { width: 48%; background: #B9C7DC; }
  .art-line.w4 { width: 72%; }
  .art-chart { position: absolute; right: 7%; bottom: 10%; width: 46%; height: 56%; }
  .art-bars { position: absolute; inset: 14% 9%; display: flex; align-items: flex-end; gap: 6px; }
  .art-bars i { flex: 1; background: #4285F4; border-radius: 2px 2px 0 0; opacity: 0.85; }
  .art-donut {
    position: absolute;
    right: 9%;
    top: 20%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(#4285F4 0 62%, #DDDAD3 62% 100%);
  }
  .art-donut::after {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: #F4F3F0;
  }
  .art-feed { position: absolute; inset: 10% 7%; display: flex; gap: 6px; align-items: center; justify-content: center; }
  .art-feed i {
    width: 22%;
    height: 88%;
    border-radius: 3px;
    background: linear-gradient(160deg, #E4E1DA, #CFCBC3);
    border: 1px solid #C2BEB6;
  }
  .art-feed i:nth-child(2) { height: 100%; background: linear-gradient(160deg, #2C2C2C, #191919); }

  /* ===================== LIGHT: STATS ===================== */
  .stats { background: var(--lt-band); border-top: 1px solid var(--lt-line); }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
  .stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 38px 12px;
    border-left: 1px solid var(--lt-line);
  }
  .stat:first-child { border-left: 0; }
  .stat svg { width: 46px; height: 46px; color: var(--gold-dp); flex-shrink: 0; }
  .stat b {
    display: block;
    font-size: clamp(15px, 1.32vw, 20px);
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--gold-dp);
  }
  .stat span { display: block; margin-top: 4px; font-size: 15px; color: var(--lt-text); }

  /* ===================== RESPONSIVE ===================== */
  @media (max-width: 1280px) {
    .nav-links { display: none; }
    .wrap { padding-inline: 30px; }
  }

  @media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 64px; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--lt-line); }
    /* phones: the photo sits below the copy, not behind it, so the
       headline and body text stay fully readable */
    .hero { display: flex; flex-direction: column; }
    .hero > .wrap { order: 1; }
    .hero-photo {
      order: 2;
      position: relative;
      width: 100%;
      opacity: 1;
      margin-top: 34px;
      border-radius: 12px;
      overflow: hidden;
    }
    .hero-photo::after { display: none; }
    .hero-photo img { height: auto; max-height: 300px; object-fit: cover; }
    .hero-grid { min-height: 0; gap: 0; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
    .foot-brand { grid-column: 1 / -1; }
  }

  @media (max-width: 720px) {
    .wrap { padding-inline: 18px; }
    /* phones: nav is just logo + call button, so close the gap,
       push the button to the right edge and let it shrink */
    .nav { gap: 12px; }
    .nav > .btn-sm { margin-left: auto; }
    .btn-sm { padding: 12px 15px; font-size: 12.5px; gap: 8px; }
    .btn-sm svg { width: 15px; height: 15px; }
  }

  /* small phones: the wordmark and the call button have to share 390px */
  @media (max-width: 560px) {
    .wrap { padding-inline: 14px; }
    .nav { gap: 8px; }
    .logo-mark { font-size: 27px; }
    .logo-top { font-size: 11px; letter-spacing: 0.12em; }
    .logo-bot { font-size: 8px; }
    .btn-sm { padding: 11px 11px; font-size: 11.5px; gap: 6px; }
    .btn-sm svg { width: 14px; height: 14px; }
  }

  /* under ~400px the full lockup and the phone number cannot both fit,
     so the header keeps the TMS mark and drops the second line */
  @media (max-width: 400px) {
    .nav .logo-stack { display: none; }
    .logo-mark { font-size: 26px; }
    .logo-mark { font-size: 34px; }
    .logo-top { font-size: 14px; }
    .logo-bot { font-size: 10px; }
    .hero { padding-block: 36px 30px; }
    .props { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .foot-grid { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat { border-left: 0; border-top: 1px solid var(--lt-line); justify-content: flex-start; }
    .stat:first-child { border-top: 0; }
  }

  /* ===================== CLOSING CTA ===================== */
  .cta {
    background: var(--ink-2);
    border-top: 1px solid #1C1C1C;
    padding-block: 74px 78px;
    text-align: center;
  }
  .cta h2 {
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
  }
  .cta h2 em { font-style: normal; color: var(--gold); }
  .cta p { margin-top: 14px; font-size: 18px; color: #B9B4AC; }
  .cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
  }

  /* ===================== FOOTER ===================== */
  .foot { background: var(--ink); padding-block: 62px 34px; }
  .foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.85fr)) minmax(0, 1.3fr);
    gap: 40px;
  }
  .foot .logo-mark { font-size: 38px; }
  .foot .logo-top { font-size: 15px; }
  .foot .logo-bot { font-size: 10.5px; letter-spacing: 0.26em; }
  .foot-brand p {
    margin-top: 20px;
    max-width: 34ch;
    font-size: 14.5px;
    line-height: 1.65;
    color: #8E8981;
  }

  .foot-col { display: flex; flex-direction: column; gap: 12px; }
  .foot-col h4 {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .foot-col a { font-size: 14.5px; color: #B9B4AC; transition: color 140ms ease; }
  .foot-col a:hover { color: var(--gold); }

  .foot-c { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; line-height: 1.5; color: #B9B4AC; }
  .foot-c svg { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); flex-shrink: 0; }
  .foot-c a { color: inherit; }
  /* long addresses must wrap, not widen the page */
  .foot-c, .foot-c a, .foot-col a { overflow-wrap: anywhere; }
  .foot-c a:hover { color: var(--gold); }
  .foot-c b { font-weight: 700; color: var(--white); }

  .foot-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 54px;
    padding-top: 24px;
    border-top: 1px solid #232323;
    font-size: 13px;
    color: #6E6A63;
  }
  .foot-note { color: #565248; }

  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }

/* ══════════════════════════════════════════════════════════════════════
   These rules live at the END of the file on purpose.

   The footer's responsive rules were written earlier in the stylesheet
   than the base `.foot-grid` rule, so on source order the desktop rule
   won at every width -- phones were getting the four-column desktop
   footer squeezed into 390px, which is why the phone number wrapped one
   digit per line. Anything below overrides the base rules as intended.
   ══════════════════════════════════════════════════════════════════════ */

/* ---- Footer, phones and tablets ---- */
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 30px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-col { gap: 10px; }
}

/* `anywhere` breaks mid-word even when the word would fit on the next
   line, which is what turned the phone number into one digit per row.
   `break-word` only breaks a word that cannot fit on a line of its own. */
.foot-c, .foot-c a, .foot-col a { overflow-wrap: break-word; }

/* ---- Mobile menu ----
   Below 1280px `.nav-links` was simply display:none, which left a phone
   visitor with a logo, a call button, and no way to reach any page on the
   site. The same list is now a panel behind a ☰ button. */
.nav-toggle { display: none; }

@media (max-width: 1280px) {
  .nav { position: relative; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    margin-left: auto;
    padding: 0 10px;
    background: transparent;
    /* gold, not a faint white outline: beside a solid gold call button a
       low-contrast box reads as decoration and gets scrolled past */
    border: 1.5px solid var(--gold);
    border-radius: 9px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 180ms ease, opacity 120ms ease, background 140ms ease;
  }
  .nav-toggle:hover { background: rgba(233, 180, 76, 0.10); }
  .nav.open .nav-toggle { background: rgba(233, 180, 76, 0.12); }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* the toggle takes the auto margin, so the call button sits beside it */
  .nav > .btn-sm { margin-left: 10px; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    z-index: 90;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    background: #111110;
    border: 1px solid #2E2E2E;
    border-radius: 12px;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.6);
  }
  .nav.open .nav-links { display: flex; }

  .nav-links a {
    padding: 16px 14px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.on { color: var(--gold); border-bottom-color: rgba(255, 255, 255, 0.07); }
}
