/* Truetech Care — site styles */
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; font-family: Montserrat, Helvetica, Arial, sans-serif; color: #596579; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: #066A75; }
a:hover { color: #087F8C; }
:focus-visible { outline: 3px solid #087F8C; outline-offset: 2px; border-radius: 4px; }
input, select, textarea { font-family: Montserrat, Helvetica, Arial, sans-serif; }
img { max-width: 100%; }
[hidden] { display: none !important; }
* { min-width: 0; }

/* ---------- active navigation ---------- */
.nav-link.is-active { position: relative; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 2px; background: #08A0B4;
}
#ttc-mobile-menu .nav-link.is-active::after { display: none; }
#ttc-mobile-menu .nav-link.is-active { border-left: 3px solid #08A0B4; padding-left: 12px; }

/* ---------- mobile menu ---------- */
#ttc-mobile-menu { display: none; flex-direction: column; }
#ttc-mobile-menu.is-open { display: flex; }

/* ---------- issue cards ---------- */
.issue-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px,1.8vw,24px); }
@media (min-width: 640px) { .issue-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .issue-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- tap targets ----------
   Standalone telephone links get a 44px touch height. Links sitting inside a
   paragraph stay inline so they do not break the line box. */
a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
p a[href^="tel:"], li a[href^="tel:"] { display: inline; min-height: 0; }

/* ---------- form fields ---------- */
.x-field:focus { border-color: #087F8C; outline: none; box-shadow: 0 0 0 3px rgba(8,127,140,0.14); }

/* ---------- sticky call bar ----------
   Two equal CTAs. Height is published as a custom property so the spacer
   can keep page content clear of it. */
:root { --sticky-h: 64px; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: #0A6F7B; border-top: 1px solid #0A6F7B;
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-bar a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--sticky-h); padding: 12px 10px; box-sizing: border-box;
  text-decoration: none; text-align: center; line-height: 1.2;
  font-size: 16px; font-weight: 700;
}
.sticky-call { background: #087F8C; color: #FFFFFF; }
.sticky-call:hover { background: #066A75; color: #FFFFFF; }
.sticky-form { background: #FFFFFF; color: #066A75; }
.sticky-form:hover { background: #EEF9F8; color: #066A75; }
.sticky-spacer { height: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }


/* The keyboard would push the bar over the field being typed into. */
body.keyboard-open .sticky-bar { display: none; }
body.keyboard-open .sticky-spacer { height: 0; }

@media (min-width: 900px) {
  .only-mobile { display: none !important; }
  #ttc-mobile-menu { display: none !important; }
  .sticky-spacer, .sticky-bar { display: none !important; }
}
@media (max-width: 899px) {
  .only-desktop { display: none !important; }
}

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

/* hover states (one rule per generated class, matching its usage) */
.x1:hover { background: #066A75; color: #FFFFFF; }          /* solid teal buttons */
.x2:hover { text-decoration: underline; }                    /* teal text links */
.x3:hover { background: #F6F9FC; }                           /* menu toggle */
.x4:hover { color: #6FDCE9; text-decoration: underline; }    /* teal links on navy */
.x5:hover { color: #FFFFFF; text-decoration: underline; }    /* pale links on navy */
.x6:hover { color: #066A75; text-decoration: underline; }    /* navy links to teal */
.x7:hover { color: #066A75; text-decoration: underline; }    /* navy contact details */
.x8:hover { color: #FFFFFF; text-decoration: underline; }    /* pale link on navy band */
.x9:hover { background: #EEF9F8; color: #066A75; }           /* outlined teal button */
