/* Global reset. Was previously supplied by whatsapp.css; kept here so every
   page that loads the shared header/footer keeps identical base spacing. */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Fallback until menu.js measures the injected fixed header. The header
     now carries two promo rows, so allow extra room before JS syncs it. */
  --header-height: 176px;
  /* Brand palette */
  --brand: #5d5dff;
  --brand-dark: #3a3aff;
  --brand-light: #7a7aff;
  --white: #fff;
  --theme-color: var(--brand);
  --accent-color: #f59e0b;
  --bg-color: #151719;
  --card-bg: #1e2023;
  --text-color: var(--white);
  --light-text: #e0e0e0;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', 'Poppins', sans-serif;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body {
  font-family: var(--font-body);
  /* Reserve space for the fixed header; menu.js keeps the value in sync. */
  padding-top: var(--header-height);
}
@media (max-width: 767px) {
  :root {
    --header-height: 238px;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}
input,
button,
select,
textarea {
  font-family: inherit;
}
html {
  scroll-behavior: smooth;
}
header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

/* Mobile/tablet navigation backdrop. It lives inside <header>, so raising the
   header during an open drawer keeps both the backdrop and the drawer above
   the floating chatbot launcher (z-index 9999). */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 22, 0.64);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9990;
}
.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
header.menu-open {
  z-index: 10001;
}

/* Never let the floating chat launcher cover the drawer, the teaser or an
   input the visitor is typing into. */
body.nav-open {
  overflow: hidden;
}
body.nav-open #cfr-bubble-wrap,
body.nav-open #cfr-teaser,
body.cfr-input-focus #cfr-bubble-wrap,
body.cfr-input-focus #cfr-teaser {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.nav-open #cfr-win {
  opacity: 0;
  pointer-events: none;
}
.discount-banner {
  background: linear-gradient(45deg, #fcd34d, var(--accent-color));
  color: var(--bg-color);
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1010;
}
.discount-banner .close-btn {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.2rem;
}
@media (max-width: 767px) {
  .discount-banner {
    font-size: 1rem;
    padding: 10px 30px;
    text-align: center;
    flex-direction: column;
    height: auto;
  }
}
/* Promo banner styles live in the "Header banner styles" block at the end. */
.promo-canada-day {
  background-color: #d62828;
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

#contactlist {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--theme-color);
  padding: 10px 5%;
  transition: var(--transition);
}
.links {
  display: flex;
  list-style: none;
  gap: 1rem;
  flex-wrap: wrap;
}
.links a {
  color: var(--bg-color);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}
.leftheaderlinks ul.links li a {
  /* The contact bar is always --theme-color, so its text must stay white
     even on light pages where --text-color is dark. */
  color: var(--white);
}
.leftheaderlinks ul.links li a:hover {
  color: var(--white);
  text-decoration: underline;
  transform: scale(1.05);
}
.rightheaderlinks ul.links li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--theme-color);
}
.rightheaderlinks ul.links li a:hover {
  background-color: var(--theme-color);
  color: var(--white);
  transform: scale(1.15);
}
#navbottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: relative;
  background-color: var(--bg-color);
  border-bottom: 1px solid rgba(155, 169, 180, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
#navlogo {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tagline {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-style: italic;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition);
  margin-left: 15px;
}
.hamburger:hover {
  color: var(--theme-color);
}
.nav-close {
  display: none;
}
.navbar {
  display: flex;
  flex: 2;
}
.navbarList {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}
.navbarList a {
  text-decoration: none;
  color: var(--text-color);
  padding: 10px 15px;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.navbarList a:hover {
  background-color: rgba(93, 93, 255, 0.2);
}
.dropdown {
  position: relative;
}
.dropdown-toggle-icon i {
  transition: transform 0.3s ease;
}
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--theme-color);
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
  z-index: 1000;
  padding: 0;
}
.dropdown-content li {
  padding: 0;
}
.dropdown-content li a {
  padding: 12px 20px;
  width: 100%;
  display: block;
  /* Sits on --theme-color in the desktop dropdown. */
  color: var(--white);
  text-decoration: none;
  border-radius: 0;
}
.dropdown-content li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.dropdown:hover .dropdown-content {
  max-height: 500px;
  padding: 10px 0;
}
.dropdown:hover .dropdown-toggle-icon i {
  transform: rotate(180deg);
}
.dropdown:hover .dropdown-content {
  max-height: 80vh; /* Use viewport height instead of fixed pixel value */
  overflow-y: auto; /* Add scrollbar if needed */
  padding: 10px 0;
}
.c-button {
  appearance: none;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.057em;
  text-transform: uppercase;
  background-color: var(--theme-color);
  border: 2px solid var(--theme-color);
  border-radius: 50px;
  padding: 0.9375rem 1.875rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  /* Buttons sit on --theme-color; white stays readable on light pages too. */
  color: var(--white);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.c-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--accent-color);
  transition: var(--transition);
  z-index: -1;
}
.c-button:hover {
  color: var(--text-color);
  border: 2px solid var(--theme-color);
}
.c-button:hover::before {
  width: 100%;
}
.c-button-nav {
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  border-radius: 50px;
}
/* Header "Book Repair" pill — kept identical on every page */
#quote .c-button-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand, #5d5dff);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50px;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  gap: 0.4rem;
  white-space: nowrap;
  vertical-align: middle;
  box-shadow:
    0 6px 18px rgba(93, 93, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
#quote .c-button-nav:hover,
#quote .c-button-nav:focus-visible {
  background-color: var(--brand-dark, #3a3aff);
  color: var(--text-color);
  border-color: var(--amber-500, #f59e0b);
  box-shadow:
    0 10px 24px rgba(93, 93, 255, 0.45),
    0 0 0 2px rgba(245, 158, 11, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
#quote .c-button-nav:active {
  background-color: var(--amber-500, #f59e0b);
  color: #151719;
  border-color: var(--amber-500, #f59e0b);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transform: translateY(0);
}
#quote .c-button-nav i {
  font-size: 1rem;
  line-height: 1;
}
#quote .quotetext {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}
/* Keep the CTA label locked to the button size. A legacy 380px rule
   shrank .quotetext to 0.5rem, which made the mobile pill look tiny. */
#quote .c-button-nav .quotetext {
  font-size: 1em;
  font-weight: inherit;
}
/* ==========================================================================
   Site footer
   Desktop: 4 columns · Tablet: 2 columns · Mobile: single column.
   Everything inside is scoped to .site-footer so page-level `footer` rules
   from legacy pages cannot disturb the shared footer.
   ========================================================================== */
.site-footer {
  --footer-bg: var(--ink-950, #0b1020);
  --footer-text: #c9d1de;
  --footer-muted: #9aa5b5;
  --footer-line: rgba(255, 255, 255, 0.1);
  --footer-line-soft: rgba(255, 255, 255, 0.07);
  --footer-accent: var(--amber-500, #f59e0b);
  width: 100%;
  margin-top: auto;
  padding: 0;
  color: var(--footer-text);
  background-color: var(--footer-bg);
  background-image: radial-gradient(
    1100px 380px at 8% -12%,
    rgba(245, 158, 11, 0.1),
    transparent 62%
  );
  border-top: 1px solid rgba(245, 158, 11, 0.28);
  font-family: var(--font-body);
  text-align: left;
}

.footer-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Keyboard focus must stay visible on the dark surface. */
.site-footer a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 3px;
}

/* ---- Main grid ---------------------------------------------------------- */
.footertop {
  display: grid;
  grid-template-columns:
    minmax(235px, 1.4fr)
    minmax(158px, 0.8fr)
    minmax(262px, 1.35fr)
    minmax(258px, 1.2fr);
  gap: 56px 40px;
  align-items: start;
  padding: 64px 0 56px;
}

.footer-brand {
  min-width: 0;
}

.footer-company-name {
  font-family: var(--font-heading, 'Montserrat', 'Poppins', sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.footer-tagline {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--footer-accent);
  margin-bottom: 1.1rem;
}

.footer-brand p {
  color: var(--footer-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
  max-width: 46ch;
}

/* ---- Column headings ---------------------------------------------------- */
.site-footer .footer-heading,
.site-footer .footer-contact h2 {
  font-family: 'Poppins', var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--footer-accent);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.05rem;
  line-height: 1.4;
}

.site-footer .footer-heading i,
.site-footer .footer-contact h2 i {
  font-size: 1.05rem;
  color: var(--footer-accent);
  flex-shrink: 0;
}

/* Short amber rule under the two link columns, matching the site's accents. */
.site-footer .footer-heading {
  position: relative;
  padding-bottom: 0.65rem;
  margin-bottom: 0.8rem;
}
.site-footer .footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--footer-accent);
  opacity: 0.85;
}

.footer-col {
  min-width: 0;
}

/* ---- Link lists --------------------------------------------------------- */
.footer-cities,
.neighborhood-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.footer-cities a,
.neighborhood-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-cities a:hover,
.neighborhood-links a:hover,
.footer-cities a:focus-visible,
.neighborhood-links a:focus-visible {
  color: var(--footer-accent);
  transform: translateX(3px);
}

/* ---- Contact blocks ----------------------------------------------------- */
.footertop-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.footer-contact {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--footer-line-soft);
  background: none;
  border-radius: 0;
}

.footer-contact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.footer-contact p {
  margin: 0 0 0.35rem;
  color: var(--footer-text);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

.site-footer .footer-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-contact a:hover,
.site-footer .footer-contact a:focus-visible {
  color: var(--footer-accent);
}

.site-footer .gbp-link p {
  margin: 0;
}

/* ---- Bottom bar --------------------------------------------------------- */
.footerbottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--footer-line);
}

.footer-legal {
  min-width: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.55rem;
  margin-bottom: 0.6rem;
  color: var(--footer-muted);
  font-size: 0.86rem;
}

/* Keep each "link •" pair on one line so a wrapped row never starts with a
   stray bullet. */
.legal-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--footer-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  color: var(--footer-muted);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.copyright p {
  margin: 0;
}

/* ---- Social links ------------------------------------------------------- */
.footerlinks {
  display: flex;
  justify-content: flex-end;
  width: auto;
}

.footerlinks ul.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.6rem;
  list-style: none;
}

.footerlinks ul.links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8ecf4;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.footerlinks ul.links li a:hover,
.footerlinks ul.links li a:focus-visible {
  background-color: var(--footer-accent);
  border-color: var(--footer-accent);
  color: var(--ink-950, #0b1020);
  transform: translateY(-3px);
}

/* ---- SEO copy ----------------------------------------------------------- */
.seo-hidden {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 900px;
  margin: 10px auto 0;
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
  color: #93a0b4;
  user-select: text;
}

.seo-hidden a {
  color: #b7c6ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-hidden a:hover {
  color: var(--footer-accent);
}

.blog-link {
  font-weight: bold;
  margin-top: 10px;
  display: block;
  grid-column: 1 / -1;
}

/* ---- Tablet: balanced two-column grid ---------------------------------- */
@media (max-width: 1099px) {
  .footer-inner {
    padding: 0 26px;
  }

  .footertop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 40px;
    padding: 48px 0 42px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 640px;
  }

  .footertop-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 40px;
  }

  .footer-contact {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .footerbottom {
    padding: 22px 0 28px;
  }
}

/* ---- Mobile: single column, thumb-friendly ----------------------------- */
@media (max-width: 767px) {
  .footer-inner {
    padding: 0 20px;
  }

  .site-footer {
    border-top-width: 1px;
  }

  .footertop {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0 32px;
  }

  .footer-brand {
    grid-column: auto;
    max-width: none;
  }

  .footer-company-name {
    font-size: 1.35rem;
  }

  .footer-brand p {
    font-size: 0.91rem;
    line-height: 1.7;
  }

  .footertop-right {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-cities a,
  .neighborhood-links a {
    min-height: 44px;
    padding: 0.6rem 0;
    font-size: 0.97rem;
  }

  .legal-links {
    gap: 0.25rem 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
  }

  .legal-links a {
    min-height: 44px;
    font-size: 0.88rem;
  }

  .footerbottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0 30px;
  }

  .footerlinks {
    justify-content: flex-start;
  }

  .footerlinks ul.links {
    justify-content: flex-start;
    gap: 0.55rem;
  }

  .footerlinks ul.links li a {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1rem;
  }

  .seo-hidden {
    margin-top: 4px;
    text-align: left;
    font-size: 0.7rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .navbarList {
    font-size: 65%;
  }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  .logo-text {
    font-size: 1.3rem;
  }
  .tagline {
    font-size: 0.9rem;
  }
  .navbarList {
    font-size: 80%;
    gap: 0rem;
  }
  #navlogo {
    min-width: auto;
  }
  #quote {
    margin-left: auto;
  }
  .c-button-nav {
    padding: 0.6rem 0.6rem;
    font-size: 0.9rem;
  }
}
@media (max-width: 1024px) {
  .logo-text {
    font-size: 1rem;
  }
  .tagline {
    font-size: 0.7rem;
  }
  .navbarList {
    gap: 0rem;
  }
  #navlogo {
    min-width: auto;
  }
  #quote {
    margin-left: auto;
  }
  .c-button-nav {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }
}
/* Tablets and phones: the hamburger drawer replaces the inline nav.
   Keeping 1024 in this breakpoint means iPad landscape no longer gets the
   full desktop row squeezed into 1024px. */
@media (max-width: 1024px) {
  #navbottom {
    flex-wrap: nowrap;
    min-height: 60px;
    gap: 15px;
  }
  #navlogo {
    min-width: auto;
    overflow: hidden;
  }
  .hamburger {
    display: block;
    flex-shrink: 0;
  }
  .navbar {
    display: flex;
  }
  #quote {
    flex-shrink: 0;
    margin-left: auto;
  }
  .c-button-nav {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  /* Tap-to-open replaces hover while the drawer is in use. */
  .dropdown:hover .dropdown-content {
    max-height: 0;
    padding: 0;
  }
  .navbarList {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 380px);
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color, #151719);
    /* Full-height app-style panel: leave room for the floating close button,
       then keep the links tight and scrollable. */
    padding: calc(env(safe-area-inset-top, 0px) + 72px) 14px
      calc(env(safe-area-inset-bottom, 0px) + 24px);
    gap: 2px;
    font-size: 0.95rem;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    z-index: 10000;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.32s ease;
  }
  .navbarList.open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  .navbarList > li {
    flex: 0 0 auto;
  }
  .navbarList > li > a {
    padding: 11px 12px;
    border-radius: 8px;
    font-weight: 600;
    gap: 10px;
  }
  .navbarList > li > a:hover,
  .navbarList > li > a:focus-visible {
    background-color: rgba(93, 93, 255, 0.18);
  }
  .hamburger .close-icon {
    display: none;
  }
  .hamburger .menu-icon {
    display: block;
  }
  .hamburger.open .menu-icon {
    display: none;
  }
  /* A dedicated close button sits above the drawer. Keeping it outside the
     hamburger avoids the hamburger's own stacking context, which otherwise
     lets scrolled drawer links cover the X. */
  header.menu-open .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-color);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10003;
  }
  header.menu-open .nav-close:hover,
  header.menu-open .nav-close:focus-visible {
    background: rgba(255, 255, 255, 0.16);
  }
  .dropdown-content {
    position: static;
    min-width: 100%;
    box-shadow: none;
    background-color: rgba(93, 93, 255, 0.12);
    border-radius: 8px;
    margin-top: 2px;
  }
  .dropdown-content li a {
    /* Drawer panel is a translucent tint of the page background, so it
       follows --text-color instead of the solid --theme-color above. */
    color: var(--text-color);
    padding: 9px 14px;
    border-radius: 0;
    font-size: 0.9rem;
  }
  .dropdown.active .dropdown-content {
    padding: 4px 0;
  }
  .mobile-admin-item {
    margin-top: 8px;
    padding-top: 12px;
  }
  .mobile-admin-link {
    margin-top: 2px;
    padding: 11px 14px;
    border-radius: 8px;
  }
}

/* Tablets get a slightly roomier panel than phones, but stay compact. */
@media (min-width: 768px) and (max-width: 1024px) {
  .navbarList {
    width: 380px;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 1rem;
  }
  .navbarList > li > a {
    padding: 12px 14px;
  }
  .dropdown-content li a {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

/* Keep form fields clear of the floating chat launcher on phones/tablets. */
@media (max-width: 768px) {
  .quote-form,
  .form-container,
  #contactForm,
  #equipmentRemovalForm {
    padding-bottom: 112px;
  }
  .quote-section {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 112px);
  }
  form,
  input,
  select,
  textarea,
  button[type="submit"] {
    scroll-margin-bottom: 120px;
  }
}

@media (max-width: 767px) {
  #contactlist {
    flex-direction: column;
    gap: 0.5rem;
    padding: 6px 5%;
  }
  .leftheaderlinks ul.links,
  .rightheaderlinks ul.links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .tagline {
    font-size: 0.7rem;
  }
}
@media (max-width: 410px) {
  .logo-text {
    font-size: 0.7rem;
  }
  .tagline {
    font-size: 0.5rem;
  }
  #navbottom {
    padding-left: 2%;
    padding-right: 2%;
  }
}
@media (max-width: 480px) {
  .logo-text {
    font-size: 1rem;
  }
  .tagline {
    font-size: 0.7rem;
  }
  .leftheaderlinks ul.links {
    gap: 50%;
    padding-top: 0;
    padding-bottom: 0;
  }
  .navbarList {
    width: min(88vw, 330px);
    padding-left: 12px;
    padding-right: 12px;
  }
  .c-button-nav {
    padding: 0.6rem 0.6rem;
    font-size: 0.75rem;
  }
}
@media (min-width: 768px) {
  .dropdown:hover .dropdown-toggle-icon i {
    transform: rotate(180deg);
  }
}
@media (max-width: 1024px) {
  .dropdown.active .dropdown-toggle-icon i {
    transform: rotate(180deg);
  }
}
.scrolled #contactlist {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}
.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 380px) {
  .quotetext {
    font-size: inherit;
  }
  .c-button {
  padding: 0.6rem 0.3rem;
}
}
@media (max-width: 767px) {
  .navbarList {
    padding-bottom: 20px; /* Add space at bottom */
  }
}
/* Admin Portal Styles */
.admin-button {
  position: absolute;
  top: 3px;
  right: 20px;
  background: none;
  color: var(--theme-color) !important;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1001; /* Increased z-index */
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-button:hover {
  background: #1a252f;
  transform: translateY(-2px);
}

/* Mobile Admin Link */
.mobile-admin-item {
  display: none; /* Hidden by default */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 10px;
  padding-top: 10px;
}

.mobile-admin-link {
  display: block;
  background: #2c3e50;
  color: white !important;
  padding: 10px 15px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  /* The drawer covers the header's right side, so the absolutely positioned
     admin link lives in the drawer on tablets too. */
  .admin-button {
    display: none;
  }
  
  .mobile-admin-item {
    display: block;
  }
}

@media (min-width: 1025px) {
  .mobile-admin-item {
    display: none !important;
  }
}
/* Ensure mobile menu has space at bottom */
@media (max-width: 767px) {
  .navbarList {
    padding-bottom: 20px;
  }
}
/* ===== Professional Logo Styles ===== */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 70px; /* Fixed container height */
}

.header-logo {
    height: 65px; /* Optimal height */
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Logo scaling on hover */
.logo-wrapper:hover .header-logo {
    transform: scale(1.03);
}

.tagline {
    display: block;
    width: fit-content;
    max-width: 100%;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-style: italic;
    margin-top: 2px;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
    align-self: center;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (min-width: 1025px) {
    .logo-container {
        height: 75px;
    }
    .header-logo {
        height: 70px;
    }
}

@media (max-width: 1024px) {
    .logo-container {
        height: 60px;
    }
    .header-logo {
        height: 55px;
    }
    .tagline {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .logo-container {
        height: 55px;
    }
    .header-logo {
        height: 50px;
    }
    .tagline {
        font-size: 0.7rem;
        padding: 2px 5px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        height: 50px;
    }
    .header-logo {
        height: 45px;
    }
    .tagline {
        font-size: 0.65rem;
    }
}

@media (max-width: 380px) {
    .logo-container {
        height: 45px;
    }
    .header-logo {
        height: 40px;
    }
    .tagline {
        font-size: 0.6rem;
    }
}

/* Header layout adjustments */
#navlogo {
    flex: 0 0 auto;
    min-width: unset;
    margin-right: 20px;
}

/* Both logo lines live inside one link. Make the link a flex column so the
   tagline badge sizes to its text (instead of stretching to the nav width)
   and kill the browser's default underline on the logo. */
#navlogo > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

#navlogo > a:hover,
#navlogo > a:focus,
#navlogo > a:visited {
    text-decoration: none;
    color: inherit;
}

#navbottom {
    align-items: center;
    padding: 10px 2% 10px 2%;
}
/* Tablet/mobile dropdown fix */
@media (max-width: 1024px) {
  .dropdown.active .dropdown-content {
    max-height: 60vh; /* More space for the drawer */
    position: static; /* Proper positioning */
    overflow-y: auto; /* Scrollable on small screens */
  }
  
  /* Drawer dropdown arrow rotation */
  .dropdown.active .dropdown-toggle-icon i {
    transform: rotate(180deg);
  }
}
/* ===== Promo banner (single source of truth) ===== */
.promo-line {
    background: var(--brand-700, #4338ca);
    color: #ffffff;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(11, 16, 32, 0.35);
    font-weight: 600;
    font-size: 0.75rem;
}

/* Each marquee row is its own clipping track so the two rows can scroll
   in opposite directions without interfering with one another. */
.promo-row {
    overflow: hidden;
    position: relative;
}

.promo-row + .promo-row {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Promo Track (auto-scrolling marquee) */
.promo-track {
    overflow: hidden;
    position: relative;
}

.promo-content {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: scroll-promo 35s linear infinite;
    padding: 8px 20px;
    gap: 20px;
    align-items: center;
}

/* Services row scrolls the other way for a bit of visual depth. */
.promo-row--services .promo-content {
    animation-direction: reverse;
    animation-duration: 48s;
}

.promo-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.promo-service i {
    font-size: 15px;
    color: var(--amber-300, #fcd34d);
}

.promo-service:hover,
.promo-service:focus-visible {
    color: var(--amber-300, #fcd34d);
}

.promo-sep {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    line-height: 1;
}

.promo-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.promo-item:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.promo-item i {
    margin-right: 8px;
    font-size: 16px;
    color: var(--amber-300, #fcd34d);
}

/* Animations */
@keyframes scroll-promo {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.promo-track:hover .promo-content {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .promo-content {
        padding: 6px 15px;
        gap: 15px;
        animation-duration: 30s; /* Slightly faster on mobile */
    }

    .promo-row--services .promo-content {
        animation-duration: 40s;
    }

    .promo-service {
        font-size: 12px;
        gap: 6px;
    }

    .promo-service i {
        font-size: 13px;
    }
    
    .promo-item {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .promo-item i {
        font-size: 14px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .promo-content {
        padding: 5px 10px;
        gap: 12px;
        animation-duration: 25s; /* Even faster on very small screens */
    }

    .promo-row--services .promo-content {
        animation-duration: 34s;
    }

    .promo-service {
        font-size: 11px;
        gap: 5px;
    }

    .promo-service i {
        font-size: 12px;
    }
    
    .promo-item {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .promo-item i {
        font-size: 12px;
        margin-right: 4px;
    }
}

/* Mobile promo banner sizing (base rule is defined above). */
@media (max-width: 767px) {
    .promo-line {
        font-size: 0.9rem;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .promo-line {
        font-size: 0.7rem;
    }
}

/* Some pages still scope their own local --bg-color override. The footer is
   intentionally dark on every page, so only the header tagline needs the
   page-aware accent. */
body.theme-light .tagline {
  color: var(--theme-color);
}

/* ============================================================
   GLOBAL CYLINDER / PILL BUTTON SYSTEM
   Matches the Contact / About "Book Repair" button:
   border-radius 50px, 15px 30px padding, 600 weight, #5d5dff.
   Page-level button styles live in individual HTML files, so the
   radius is enforced here to keep every primary CTA identical.
   ============================================================ */
body .c-button,
body .c-button-nav,
body .c-button-secondary,
body .submit-btn,
body .submit-btn button,
body .cta-button,
body .cta-primary,
body .cta-secondary,
body .hero-btn,
body .btn,
body .btn-primary,
body .btn-secondary,
body .c1-button,
body .c1-button-secondary,
body .service-button,
body .pricing-cta,
body .plan-cta,
body .process-cta,
body .step-button {
  border-radius: 50px !important;
}

body .c-button,
body .submit-btn,
body .hero-btn,
body .btn,
body .c1-button {
  font-weight: 600;
}

/* Keep the header CTA on one line at every width. */
#quote .c-button-nav,
#quote .c-button-nav .quotetext {
  white-space: nowrap;
}

/* ============================================================
   MOBILE HEADER — phones only (<= 767px)
   The "Book Repair" pill stays in the top bar on every device.
   The logo shrinks/truncates so the hamburger and CTA always fit.
   ============================================================ */
@media (max-width: 767px) {
  #navbottom {
    padding: 10px 4%;
    gap: 8px;
    flex-wrap: nowrap;
  }
  /* Logo takes the leftover space and can shrink below its text width. */
  #navlogo {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    overflow: hidden;
  }
  .logo-text {
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tagline {
    font-size: 0.66rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* The drawer container is out of flow on phones; don't let it take width. */
  .navbar {
    flex: 0 0 auto;
    width: 0;
  }
  /* Hamburger and CTA keep their intrinsic size at all times. */
  .hamburger {
    flex: 0 0 auto;
    margin-left: 6px;
    font-size: 1.75rem;
    line-height: 1;
  }
  #quote {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 0;
  }
  #quote .c-button-nav {
    padding: 0.62rem 1.05rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    gap: 0;
    white-space: nowrap;
  }
  /* Drop the calendar icon on phones so the pill stays compact. */
  #quote .c-button-nav i {
    display: none;
  }
}

/* Very small phones (320px): trim the logo and gaps, never the CTA. */
@media (max-width: 360px) {
  #navbottom {
    padding: 8px 3%;
    gap: 5px;
  }
  .logo-text {
    font-size: 0.85rem;
  }
  .tagline {
    font-size: 0.58rem;
  }
  .hamburger {
    margin-left: 2px;
    font-size: 1.55rem;
  }
  #quote .c-button-nav {
    padding: 0.58rem 0.85rem;
    letter-spacing: 0;
  }
}
