/* ChattanoogaTNelectrician.com: breakpoints (mobile-first), reduced motion, print */

@media (max-width: 359px) {
  :root { --gutter: 14px; }
  .btn-call--lg { padding: .8rem 1.1rem; font-size: 1rem; }
  .btn__num { display: none; }
  .callbar__num { font-size: .92rem; }
  .brand img { width: 150px; }
  .header-call-icon, .nav-toggle { width: 42px; height: 42px; }
}

@media (max-width: 639px) {
  .btn-call--lg { white-space: normal; flex-wrap: wrap; text-align: center; row-gap: .15rem; }
  .utility p { display: none; }
  .utility__inner { justify-content: center; }
}

@media (min-width: 480px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; --section: 80px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, auto); justify-content: start; gap: .6rem 2rem; }
  .area-index { grid-template-columns: repeat(2, 1fr); }
  .system { grid-template-columns: 200px 1fr; }
  .system__img { height: 100%; aspect-ratio: auto; }
  .rows--two { grid-template-columns: 1fr; }
  .inline-cta { grid-template-columns: 1fr auto; padding: 1.75rem 2rem; }
  .do-dont { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .link-list { grid-template-columns: repeat(2, 1fr); }
  .hero-home { padding-top: 96px; padding-bottom: 88px; }
  .row { grid-template-columns: auto 1fr auto; align-items: center; }
  .row .pill { grid-column: 3; grid-row: 1; justify-self: end; }
  .row:not(:has(.row__num)) { grid-template-columns: 1fr auto; }
  .row:not(:has(.row__num)) .pill { grid-column: 2; }
}

@media (min-width: 768px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
  .mosaic__item { aspect-ratio: auto; }
  .mosaic__item--0 { grid-column: span 2; grid-row: span 2; }
  .mosaic__item--3, .mosaic__item--4 { grid-column: span 2; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split--media-left > :first-child { order: 0; }
  .group-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cta-final__inner { grid-template-columns: 1fr auto; gap: 3rem; }
  .footer-cta { grid-template-columns: 1fr auto; }
  .systems { grid-template-columns: 1fr; }
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 1024px) {
  :root { --section: 96px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }
  .systems { grid-template-columns: 1fr 1fr; }
  .rows--two { grid-template-columns: 1fr 1fr; }
  .area-index { grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem; }
  .hero-split { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; padding-top: 48px; padding-bottom: 72px; }
  .hero-dark { grid-template-columns: 1.2fr .8fr; gap: 3.5rem; padding-top: 56px; padding-bottom: 80px; }
  .hero-landscape { padding-top: 56px; padding-bottom: 110px; }
  .hero-home { padding-top: 120px; padding-bottom: 120px; }
  .trust-strip { grid-template-columns: repeat(4, auto); }
  .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
  .faq-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 4rem; align-items: start; }
  .faq-layout__head { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); }
  .footer-brand { grid-column: auto; }
  .link-list { grid-template-columns: repeat(3, 1fr); }
  .inline-cta__art { display: flex; width: 56px; height: 56px; border-radius: 50%; background: var(--amber); color: var(--charcoal); align-items: center; justify-content: center; }
  .inline-cta__art svg { width: 26px; height: 26px; }
  .inline-cta { grid-template-columns: auto 1fr auto; }
}

/* Desktop navigation */
@media (min-width: 1200px) {
  :root { --header-h: 80px; }
  .brand img { width: 220px; }
  .nav-toggle, .header-call-icon { display: none; }
  .header-call { display: block; }
  .header-call .btn { min-height: 46px; padding: .6rem 1.2rem; }
  .primary-nav, .no-js .primary-nav {
    display: block; position: static; box-shadow: none; border: 0; padding: 0; max-height: none; overflow: visible; background: none;
  }
  .nav-list { display: flex; align-items: center; gap: .1rem; }
  .nav-item { border: 0; position: relative; }
  .nav-row { gap: 0; }
  .nav-link { padding: .5rem .55rem; font-size: .97rem; white-space: nowrap; border-radius: var(--radius-s); }
  .nav-link:hover { background: var(--teal-50); }
  .sub-toggle { width: 26px; height: 32px; background: none; border-radius: var(--radius-s); }
  .sub-toggle:hover { background: var(--teal-50); }
  .nav-cta { display: none; }
  .drop, .no-js .drop {
    display: block; position: absolute; top: calc(100% + 12px); left: -12px; min-width: 300px; padding: 1rem;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .drop--c2 { min-width: 580px; }
  .drop--c2 .drop__list { grid-template-columns: 1fr 1fr; column-gap: .5rem; }
  .nav-item:nth-last-child(-n+3) .drop { left: auto; right: -12px; }
  .has-mega.is-hover > .drop, .has-mega.is-open > .drop, .no-js .has-mega:hover > .drop, .no-js .has-mega:focus-within > .drop {
    opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  .has-mega.is-closed > .drop { opacity: 0; visibility: hidden; }
  .utility__inner { min-height: 40px; }
}

@media (min-width: 1440px) {
  :root { --maxw: 1320px; }
  .nav-link { padding: .5rem .75rem; font-size: 1rem; }
  .brand img { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .tile:hover, .btn-call:hover { transform: none; }
  .mosaic__item:hover .mosaic__img { transform: none; }
}

@media print {
  .utility, .site-header, .callbar, .cta-final, .inline-cta, .sidebar, .footer-cta, .faq-layout__head .btn, video { display: none !important; }
  body { padding: 0; color: #000; font-size: 11pt; }
  .hero--home, .hero--landscape, .hero--dark, .band--dark, .band--teal, .band--emergency { background: none !important; color: #000; }
  .hero--home::after, .hero--landscape::after, .hero__bg { display: none; }
  h1, h2, h3, .hero--home h1, .hero--landscape h1, .hero--dark h1 { color: #000; }
  .faq__a[hidden] { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
  .site-footer { background: none; color: #000; }
  .footer-disclaimer { color: #000; background: none; }
}
