/* Site-wide header + footer - loaded on every page via quote/assets/php/header.php.
   Fully self-contained: own custom properties, scoped resets, no
   dependency on any other stylesheet that may or may not be present on
   whichever page includes it. */

.tth-header, .tth-header *, .tth-footer, .tth-footer * {
  box-sizing: border-box;
}

.tth-header, .tth-footer {
  --tth-blue: #1b75bc;
  --tth-blue-deep: #125a94;
  --tth-sky: #6fb3e4;
  --tth-green: #39b54a;
  --tth-orange: #f7941e;
  --tth-ink: #232a33;
  --tth-slate: #2a323c;
  --tth-muted: #64707e;
  --tth-border: #e3e8ef;
  --tth-radius: 10px;
  --tth-shadow: 0 2px 4px rgba(35,42,51,0.06), 0 10px 26px rgba(35,42,51,0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tth-header a, .tth-footer a { text-decoration: none; color: inherit; }
.tth-header ul, .tth-footer ul { list-style: none; margin: 0; padding: 0; }

/* ---- Top utility bar ---- */
.tth-topbar { background: linear-gradient(90deg, var(--tth-blue-deep), var(--tth-blue)); color: #fff; font-size: 13px; }
.tth-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tth-topbar-contact, .tth-topbar-links { display: flex; align-items: center; gap: 20px; }
.tth-topbar a { opacity: 0.92; transition: opacity 0.15s ease; white-space: nowrap; }
.tth-topbar a:hover { opacity: 1; text-decoration: underline; }
.tth-topbar i { margin-right: 5px; }

/* ---- Main header ---- */
.tth-main { background: #fff; box-shadow: var(--tth-shadow); position: sticky; top: 0; z-index: 500; }
.tth-main-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.tth-logo { flex-shrink: 0; display: flex; align-items: center; }
.tth-logo img { height: 46px; width: auto; display: block; }

.tth-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 20px; }
.tth-nav-list { display: flex; align-items: center; gap: 4px; }
.tth-nav-list > li { position: relative; }
.tth-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--tth-radius);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--tth-ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.tth-nav-list > li > a:hover { background: #eef4fb; color: var(--tth-blue); }
.tth-nav-list > li > a i { font-size: 11px; transition: transform 0.15s ease; }

.tth-has-dropdown:hover > a i,
.tth-has-dropdown:focus-within > a i { transform: rotate(180deg); }

.tth-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--tth-border);
  border-radius: var(--tth-radius);
  box-shadow: var(--tth-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 20;
}
.tth-dropdown-right { left: auto; right: 0; }
.tth-has-dropdown:hover > .tth-dropdown,
.tth-has-dropdown:focus-within > .tth-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.tth-dropdown li a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tth-ink);
  white-space: nowrap;
}
.tth-dropdown li a:hover { background: #eef4fb; color: var(--tth-blue); }
.tth-dropdown-viewall a { color: var(--tth-blue) !important; font-weight: 700; border-top: 1px solid var(--tth-border); margin-top: 4px; padding-top: 12px; border-radius: 0; }

.tth-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tth-login-link, .tth-account-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--tth-radius);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--tth-ink);
  border: 1.5px solid var(--tth-border);
  white-space: nowrap;
}
.tth-login-link:hover, .tth-account-trigger:hover { border-color: var(--tth-blue); color: var(--tth-blue); }
.tth-account-trigger i:last-child { font-size: 10px; }
.tth-cta {
  padding: 10px 20px;
  border-radius: var(--tth-radius);
  background: linear-gradient(135deg, var(--tth-orange), #d9780a);
  color: #fff !important;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(247,148,30,0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tth-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(247,148,30,0.38); }

.tth-nav-toggle-input { display: none; }
.tth-nav-toggle-btn { display: none; font-size: 22px; color: var(--tth-ink); cursor: pointer; padding: 8px; }

/* ---- Footer ---- */
.tth-footer { background: var(--tth-slate); color: #c9d0d8; border-top: 3px solid var(--tth-blue); }
.tth-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 20px 36px;
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) 2.6fr;
  gap: 40px;
}
.tth-footer-brand img { height: 42px; width: auto; margin-bottom: 16px; }
.tth-footer-brand p { font-size: 13.5px; line-height: 1.65; color: #a7b0ba; margin: 0 0 20px; max-width: 300px; }
.tth-footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.tth-footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tth-footer-social a:hover { background: var(--tth-blue); border-color: var(--tth-blue); transform: translateY(-2px); }

.tth-footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.tth-footer-col h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tth-footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.tth-footer-col li { display: flex; align-items: flex-start; gap: 8px; }
.tth-footer-col a { font-size: 13.5px; color: #a7b0ba; transition: color 0.15s ease; line-height: 1.4; }
.tth-footer-col a:hover { color: #fff; }
.tth-footer-col li i { width: 14px; margin-top: 2px; color: var(--tth-sky); flex-shrink: 0; }

.tth-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 20px; }
.tth-footer-bottom p { max-width: 1240px; margin: 0 auto; font-size: 12.5px; color: #8b95a1; text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .tth-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .tth-footer-brand p { max-width: 480px; }
  .tth-footer-cols { grid-template-columns: repeat(3, 1fr); }
}
/* Single column from here down through every phone size (matches the
   860px breakpoint where the header itself switches to mobile nav) -
   no intermediate 2-column step that only fits a narrow band of
   tablet-ish widths and looks cramped everywhere else. */
@media (max-width: 860px) {
  .tth-footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .tth-footer-brand img { width: 100%; height: 90px; object-fit: contain; }
}

@media (max-width: 960px) {
  .tth-topbar-links { display: none; }
}

@media (max-width: 860px) {
  /* Phone/email row hidden on mobile - .tth-topbar-links is already gone
     by this width (960px rule above), so nothing worth keeping the bar
     for remains; drop the whole topbar rather than leave an empty strip. */
  .tth-topbar { display: none; }

  /* Logo grows to fill its own space instead of the fixed 46px desktop
     size - same treatment as the footer logo below, so the brand mark
     reads at a consistent, more prominent size everywhere on mobile. */
  .tth-logo { width: 45%; max-width: 200px; }
  .tth-logo img { width: 100%; height: 90px; object-fit: contain; }

  .tth-nav-toggle-btn { display: block; margin-left: auto; }
  .tth-main-inner { flex-wrap: wrap; }
  .tth-nav {
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 75vh;
    overflow-y: auto;
    border-top: 1px solid var(--tth-border);
    margin-top: 12px;
    padding-top: 12px;
  }
  .tth-nav-toggle-input:checked ~ .tth-nav { display: flex; }
  .tth-nav-list { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .tth-nav-list > li > a { width: 100%; justify-content: space-between; }
  .tth-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    display: block;
    margin: 2px 0 6px;
    border-radius: 8px;
  }
  .tth-nav-actions { flex-direction: column; align-items: stretch; width: 100%; margin-top: 12px; gap: 8px; }
  .tth-login-link, .tth-account-trigger, .tth-cta { justify-content: center; }
  .tth-account .tth-dropdown { position: static; }
}

@media (max-width: 560px) {
  .tth-topbar-contact { gap: 12px; }
  .tth-topbar-contact a span { display: none; }
}
