/* Tradecall Pro shared styles: tokens, base, buttons, nav, footer. Used by every page. */
  /* ---------- Tokens (brand kit palette, plus tints of navy) ---------- */
  :root {
    --navy: #0B1530;
    --navy-2: #16224A;      /* hover / raised navy, from the brand sheet */
    --navy-deep: #070E21;   /* footer floor */
    --charcoal: #505256;
    --white: #FBFBFC;
    --logo-bg: #FDFDFD;     /* matches the primary logo file's own background */
    --mist: #EEF0F5;        /* light section tint */
    --line: #E1E4EB;
    --sky: #A9B6D8;         /* soft navy tint for secondary text on dark */
    --red: #FA2C05;         /* CTA red */
    --red-dark: #D42500;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(11,21,48,.06), 0 8px 24px rgba(11,21,48,.08);
    --font: "Montserrat", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
    --wrap: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 84px; }
  body {
    margin: 0; font-family: var(--font); color: var(--charcoal); background: var(--white);
    line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
  p { margin: 0; }
  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  :focus-visible { outline: 3px solid #7C93D6; outline-offset: 3px; border-radius: 6px; }

  .eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--charcoal); display: inline-flex; align-items: center; gap: 10px;
  }
  .eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
  .on-dark .eyebrow, .eyebrow.on-dark { color: var(--sky); }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 700 1rem/1 var(--font); text-decoration: none; padding: 16px 26px; border-radius: 12px;
    border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-red { background: var(--red); color: #fff; font-weight: 800; box-shadow: 0 6px 18px rgba(250,44,5,.32); }
  .btn-red:hover { background: var(--red-dark); }
  .btn-ghost { color: var(--white); border-color: rgba(251,251,252,.35); }
  .btn-ghost:hover { border-color: var(--white); background: rgba(251,251,252,.06); }
  .btn-sm { padding: 12px 20px; font-size: .92rem; border-radius: 10px; }

  /* ---------- Nav ---------- */
  .nav { position: sticky; top: 0; z-index: 50; background: var(--logo-bg); border-bottom: 1px solid var(--line); }
  .nav .bar { display: flex; align-items: center; gap: 12px; height: 72px; }
  .nav .logo { flex: none; display: block; }
  .nav .logo img { height: 34px; width: auto; max-width: none; }
  .nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .nav-login { font: 700 .95rem/1 var(--font); color: var(--navy); text-decoration: none; padding: 12px 14px; border-radius: 10px; transition: background .15s ease; }
  .nav-login:hover { background: var(--mist); }
  .burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--navy); cursor: pointer; }
  .burger .x { display: none; }
  .nav.menu-open .burger .x { display: block; }
  .nav.menu-open .burger .m { display: none; }

  .ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .chev { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
  .open > .trigger .chev { transform: rotate(180deg); }

  /* mobile first: the menu is a drawer, panels are accordions */
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(11,21,48,.14); max-height: calc(100vh - 72px); overflow-y: auto; padding: 4px var(--gutter) 24px; }
  .nav.menu-open .menu { display: block; }
  .menu > ul { list-style: none; margin: 0; padding: 0; }
  .menu > ul > li { border-bottom: 1px solid var(--line); }
  .trigger, .plain { font: 700 1.05rem/1.2 var(--font); color: var(--navy); background: none; border: 0; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 18px 0; text-align: left; }
  .panel { display: none; padding: 0 0 14px; }
  .open > .panel { display: block; }
  .panel-in { display: grid; gap: 20px; }
  .panel-card, .panel-banner { display: none; }
  .col h4 { margin: 0 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); }
  .links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .links a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 1rem; padding: 10px 0; }
  .links a .ico { color: var(--navy); }
  .links a:hover { color: var(--charcoal); }
  .trade-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .trade-links a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 8px; margin: 0 -8px; border-radius: 12px; }
  .trade-links a:hover { background: var(--mist); }
  .trade-links img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
  .trade-links b { display: block; color: var(--navy); font-size: 1.02rem; line-height: 1.2; }
  .trade-links small { display: block; color: var(--charcoal); font-size: .85rem; line-height: 1.35; margin-top: 2px; }
  .menu-cta { padding: 20px 0 0; border: 0 !important; }
  .menu-cta .btn { width: 100%; }
  .nav-cta { display: inline-flex; }

  .panel-card { margin: 0; border-radius: 18px; overflow: hidden; background: var(--mist); }
  .panel-card .img { position: relative; aspect-ratio: 4 / 3.1; display: grid; place-items: center; color: var(--sky);
    background: repeating-linear-gradient(135deg, var(--navy) 0 14px, #101c40 14px 28px); }
  .panel-card .img .ico { width: 44px; height: 44px; opacity: .7; }
  .panel-card .img .ph-tag { position: absolute; left: 12px; top: 12px; background: rgba(251,251,252,.12); color: var(--sky); border-color: rgba(169,182,216,.6); }
  .panel-card figcaption { padding: 16px 18px 18px; color: var(--navy); }
  .panel-card figcaption strong { display: block; font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; }
  .panel-card figcaption span { display: block; margin-top: 8px; font-size: .85rem; color: var(--charcoal); }
  .panel-card figcaption span b { color: var(--navy); }
  /* Customer testimonial card in the Services menu (links to the Kern Painting story) */
  .panel-card.review { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
  .panel-card.review:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,21,48,.06), 0 16px 34px rgba(11,21,48,.14); }
  .panel-card.review a { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 18px; text-decoration: none; }
  .panel-card.review a:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; border-radius: 18px; }
  .panel-card.review .tag { font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--charcoal); }
  .panel-card.review .stars { color: #F5B400; letter-spacing: 3px; font-size: 1.15rem; line-height: 1; }
  .panel-card.review blockquote { margin: 0; color: var(--navy); font-weight: 600; font-size: .98rem; line-height: 1.5; }
  .panel-card.review .who { display: flex; align-items: center; gap: 10px; }
  .panel-card.review .av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .04em; display: grid; place-items: center; flex: none; }
  .panel-card.review .who b { display: block; color: var(--navy); font-size: .9rem; }
  .panel-card.review .who small { display: block; font-size: .8rem; color: var(--charcoal); }
  .panel-card.review .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .88rem; color: var(--navy); padding-top: 12px; border-top: 1px solid var(--line); }
  .panel-card.review .more .ico { width: 15px; height: 15px; stroke-width: 2.4; transition: transform .2s ease; }
  .panel-card.review:hover .more .ico { transform: translateX(4px); }
  .panel-banner { align-items: center; justify-content: space-between; gap: 20px; background: var(--navy); color: #fff; border-radius: 16px; padding: 16px 20px 16px 26px; }
  .panel-banner p { font-weight: 700; font-size: 1.02rem; }
  .panel-banner p small { display: block; font-weight: 500; font-size: .86rem; color: var(--sky); margin-top: 2px; }

  @media (min-width: 901px) {
    .nav .logo img { height: 40px; }
    .burger, .menu > ul > li.menu-cta { display: none; }
    .nav-cta { display: inline-flex; }
    .nav .bar { gap: 28px; }
    .menu { display: flex; position: static; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; padding: 0; align-self: stretch; }
    .menu > ul { display: flex; gap: 2px; }
    .menu > ul > li { display: flex; border: 0; }
    .menu > ul > li.rel { position: relative; }
    .trigger, .plain { width: auto; justify-content: flex-start; padding: 0 16px; font-size: .98rem; font-weight: 600; position: relative; gap: 7px; }
    .trigger::after, .plain::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 17px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
    .menu li:hover > .trigger::after, .open > .trigger::after, .plain:hover::after { transform: scaleX(1); }

    .panel { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
      box-shadow: 0 28px 48px rgba(11,21,48,.14); padding: 0;
      visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
    .open > .panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .18s ease, transform .18s ease; }
    .panel-in { max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gutter) 34px; grid-template-columns: repeat(3, minmax(0, 1fr)) 300px; gap: 8px 40px; align-items: start; }
    .panel-card { display: block; grid-column: 4; grid-row: 1 / span 2; }
    .panel-banner { display: flex; grid-column: 1 / span 3; margin-top: 18px; }
    .col h4 { display: inline-block; font-size: 1.05rem; letter-spacing: -0.01em; text-transform: none; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 2px; margin-bottom: 14px; }
    .links { gap: 6px; }
    .links a { padding: 9px 0; font-size: 1.02rem; }
    .trade-links { grid-column: 1 / span 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 36px; align-content: start; }

    .panel.small { left: 0; right: auto; width: 264px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; }
    .panel.small .panel-in { display: block; padding: 10px; max-width: none; }
    .panel.small .links a { padding: 11px 12px; border-radius: 10px; }
    .panel.small .links a:hover { background: var(--mist); }
  }

  .skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 2147483001; }
  .skip:focus { left: 8px; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* ---------- Footer ---------- */
  footer { background: var(--navy-deep); color: #B9C2D9; padding: 64px 0 34px; }
  .foot { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr) minmax(0, .5fr); gap: 48px; }
  .foot img { height: 44px; width: auto; max-width: none; }
  .foot .one { margin-top: 22px; max-width: 34em; font-size: .98rem; color: #D5DBEA; }
  .foot h4 { margin: 0 0 14px; color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
  .foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
  .foot a { text-decoration: none; }
  .foot a:hover { color: #fff; text-decoration: underline; }
  .copy .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .copy a { color: inherit; text-decoration: none; }
  .copy a:hover { color: #fff; text-decoration: underline; }
  .copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(251,251,252,.12); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

  /* veteran owned badge in the footer */
  .vet { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
  .vet img { height: 84px; width: auto; max-width: none; flex: none; }
  .vet p { margin: 0; font-size: .92rem; color: #D5DBEA; line-height: 1.4; }
  .vet strong { color: #fff; }
  /* "We service all trades" row in the Industries menu */
  .trade-links .all-trades a { background: var(--mist); }
  .trade-links .all-trades .ico { width: 52px; height: 52px; padding: 15px; border-radius: 12px; background: var(--navy); color: #fff; stroke-width: 2.4; }

  /* ---------- Shared responsive rules ---------- */
  @media (max-width: 960px) {
    .foot { grid-template-columns: 1fr 1fr; }
    .foot > :first-child { grid-column: 1 / -1; }
  }
  @media (max-width: 480px) {
    .nav-cta { display: none; }
    .nav .logo img { height: 28px; }
    .foot { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
  }
