/* NYC Best Appliance Repair -- sitewide stylesheet
   Mobile-first. Edit freely -- this file is never overwritten by the build. */

:root {
  --color-primary: #123b6d;
  --color-primary-dark: #0b2a4f;
  --color-primary-light: #e7edf5;
  --color-accent: #e8590c;
  --color-accent-dark: #c94e0b;
  --color-trust: #1b8a5a;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-text: #1a1f27;
  --color-text-muted: #55606b;
  --color-border: #e2e6ea;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(11,42,79,0.06);
  --shadow-md: 0 10px 28px rgba(11,42,79,0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--color-primary-dark); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary);
  color: #fff; padding: 0.75em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.site-header__bar {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6em 1em; gap: 1em;
}
.brand { display: flex; align-items: center; gap: 0.5em; color: #fff; }
.brand:hover { text-decoration: none; }
.brand__mark {
  background: var(--color-accent); color: #fff; font-weight: 800; font-size: 0.75rem;
  padding: 0.3em 0.5em; border-radius: 6px; letter-spacing: 0.05em;
}
.brand__name { font-weight: 700; font-size: 1rem; color: #fff; }

.site-nav { display: none; }
.site-nav__list { display: flex; gap: 1.4em; align-items: center; }
.site-nav__list > li > a { color: #fff; font-weight: 600; font-size: 0.95rem; }
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); min-width: 220px; padding: 0.4em;
  z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
  display: block; padding: 0.5em 0.7em; border-radius: 6px; color: var(--color-text);
  font-size: 0.92rem;
}
.dropdown li a:hover { background: var(--color-bg-alt); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 0.6em; }

/* Mobile menu: pure CSS checkbox toggle, no JavaScript. The checkbox is
   visually hidden; the label next to the phone button acts as the button
   the visitor taps, and CSS reveals .mobile-nav when it's checked. */
.nav-toggle-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  width: 40px; height: 36px; background: rgba(255,255,255,0.12); border: none;
  border-radius: 8px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; cursor: pointer;
}
.nav-toggle-label span { width: 20px; height: 2px; background: #fff; display: block; }
.nav-toggle-checkbox:focus-visible ~ .site-header__bar .nav-toggle-label,
.nav-toggle-label:focus-within { outline: 2px solid #fff; outline-offset: 2px; }

.mobile-nav {
  background: var(--color-primary-dark); padding: 1em; display: none;
  flex-direction: column; gap: 1em;
}
.nav-toggle-checkbox:checked ~ .mobile-nav { display: flex; }
.mobile-nav .site-nav { display: block; }
.mobile-nav .site-nav__list { flex-direction: column; align-items: flex-start; gap: 0.2em; }
.mobile-nav .has-dropdown .dropdown {
  display: block; position: static; box-shadow: none; border: none; background: transparent;
  padding-left: 0.8em;
}
.mobile-nav .dropdown li a { color: #d7e0ee; }

@media (min-width: 900px) {
  .site-header__bar > .site-nav { display: block; }
  .nav-toggle-label { display: none; }
  .mobile-nav { display: none !important; }
}

/* Below 900px the sticky bottom call bar (below) is the primary phone CTA,
   so the small header button is hidden to keep the mobile header uncluttered. */
@media (max-width: 899px) {
  .header-cta .phone-cta { display: none; }
}

/* ------------------------------------------------------------- phone CTA */
.phone-cta {
  display: inline-flex; align-items: center; gap: 0.6em; background: var(--color-accent);
  color: #fff; padding: 0.55em 1em; border-radius: 999px; font-weight: 700;
  white-space: nowrap; box-shadow: 0 3px 10px rgba(232,89,12,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.phone-cta:hover {
  background: var(--color-accent-dark); text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232,89,12,0.45);
}
.phone-cta__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.22);
}
.phone-cta svg.icon-phone { width: 16px; height: 16px; fill: #fff; flex: none; }
.phone-cta__text { display: flex; flex-direction: column; line-height: 1.15; }
.phone-cta__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.95; }
.phone-cta__number { font-size: 1rem; letter-spacing: 0.01em; }
.phone-cta--sm { padding: 0.4em 0.8em 0.4em 0.4em; }
.phone-cta--sm .phone-cta__label { display: none; }
.phone-cta--sm .phone-cta__icon { width: 26px; height: 26px; }
.phone-cta--sm svg.icon-phone { width: 14px; height: 14px; }
.phone-cta--md .phone-cta__icon { width: 34px; height: 34px; }
.phone-cta--lg {
  padding: 0.7em 1.6em 0.7em 0.6em; font-size: 1.05rem;
  animation: phone-cta-pulse 2.4s ease-out infinite;
}
.phone-cta--lg .phone-cta__icon { width: 42px; height: 42px; }
.phone-cta--lg svg.icon-phone { width: 19px; height: 19px; }
.phone-cta--lg .phone-cta__number { font-size: 1.35rem; }
.phone-cta--lg:hover { animation-play-state: paused; }

@keyframes phone-cta-pulse {
  0%   { box-shadow: 0 3px 10px rgba(232,89,12,0.35), 0 0 0 0 rgba(232,89,12,0.45); }
  70%  { box-shadow: 0 3px 10px rgba(232,89,12,0.35), 0 0 0 14px rgba(232,89,12,0); }
  100% { box-shadow: 0 3px 10px rgba(232,89,12,0.35), 0 0 0 0 rgba(232,89,12,0); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-cta--lg { animation: none; }
}

/* --------------------------------------------------------- sticky call bar */
/* Persistent, always-visible mobile call-to-action -- proven to lift phone
   conversions on local-service sites. Pure CSS position:fixed, no JS. */
.sticky-call-bar { display: none; }
@media (max-width: 899px) {
  .sticky-call-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--color-accent); box-shadow: 0 -6px 20px rgba(0,0,0,0.22);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .sticky-call-bar__link {
    display: flex; align-items: center; justify-content: center; gap: 0.6em;
    padding: 0.95em 1em; color: #fff; font-weight: 700; font-size: 1rem;
  }
  .sticky-call-bar__link:hover { text-decoration: none; }
  .sticky-call-bar svg.icon-phone { width: 20px; height: 20px; fill: #fff; flex: none; }
  .sticky-call-bar strong { font-size: 1.08rem; letter-spacing: 0.01em; }
  body { padding-bottom: 64px; }
}

/* --------------------------------------------------------------- trust */
.header-trust {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5em 1.6em;
  padding: 0; margin: 1.1em 0 0;
}
.trust-strip--compact {
  max-width: var(--max-width); margin: 0 auto; padding: 0.55em 1em;
  flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 0;
  scrollbar-width: none;
}
.trust-strip--compact::-webkit-scrollbar { display: none; }
.trust-item {
  display: flex; align-items: center; gap: 0.45em; font-size: 0.82rem; color: #eaf0fa;
  font-weight: 600;
}
.section .trust-item, .site-footer .trust-item { color: var(--color-text); }
.site-footer .trust-item { font-weight: 700; }
.trust-strip--compact .trust-item {
  font-size: 0.72rem; color: #d3deee; white-space: nowrap; padding: 0 1em;
  border-right: 1px solid rgba(255,255,255,0.14);
}
.trust-strip--compact .trust-item:last-child { border-right: none; padding-right: 0.2em; }
.trust-strip--compact .trust-item:first-child { padding-left: 0.2em; }
.trust-icon { width: 18px; height: 18px; flex: none; display: inline-flex; }
.trust-icon svg { width: 100%; height: 100%; fill: var(--color-trust); }
.trust-strip--compact .trust-icon svg { fill: #7fd6ac; }
.trust-strip--compact .trust-icon { width: 14px; height: 14px; }

/* -------------------------------------------------------------- layout */
main { display: block; }
.section, .hero, .cta-banner { max-width: var(--max-width); margin: 0 auto; padding: 2.4em 1em; }
.section--alt { background: var(--color-bg-alt); max-width: none; }
.section--alt > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.section--alt { padding: 2.4em 0; }
.section--alt > .grid, .section--alt > h2, .section--alt > p, .section--alt > ul,
.section--alt > .faq, .section--alt > .two-col { padding-left: 1em; padding-right: 1em; }

.breadcrumbs {
  max-width: var(--max-width); margin: 0 auto; padding: 0.8em 1em 0; font-size: 0.82rem;
  color: var(--color-text-muted);
}
.breadcrumbs a { color: var(--color-text-muted); }
.crumb-sep { margin: 0 0.4em; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(650px 320px at 85% -10%, rgba(232,89,12,0.10), transparent 60%),
    radial-gradient(500px 260px at -5% 0%, rgba(18,59,109,0.08), transparent 55%),
    linear-gradient(180deg, var(--color-primary-light), #fff 75%);
  padding-top: 2.8em; padding-bottom: 2.8em;
}
.hero__sub { font-size: 1.08rem; color: var(--color-text-muted); max-width: 62ch; }
.hero .phone-cta { margin-bottom: 0.9em; }

.lede { font-size: 1.05rem; color: var(--color-text-muted); max-width: 72ch; }

.grid { display: grid; gap: 1em; margin-top: 1em; }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: block; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 1.3em; color: var(--color-text); box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  border-color: var(--color-primary); text-decoration: none; box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 0.35em; }
.card p { margin-bottom: 0.6em; color: var(--color-text-muted); font-size: 0.92rem; }
.card__link { color: var(--color-accent); font-weight: 700; font-size: 0.88rem; }
.card__meta { display: block; font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.4em; }

.brand-pills { display: flex; flex-wrap: wrap; gap: 0.55em; margin-top: 1em; }
.brand-pill {
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 999px;
  padding: 0.45em 1.1em; font-size: 0.85rem; font-weight: 700; color: var(--color-primary-dark);
}

.two-col { display: grid; gap: 1.6em; margin-top: 1em; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }

.check-list li {
  position: relative; padding-left: 1.4em; margin-bottom: 0.5em; color: var(--color-text-muted);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--color-accent);
}

.link-list li { margin-bottom: 0.5em; }
.link-list--multi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.3em 1.2em; }
@media (min-width: 640px) { .link-list--multi { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .link-list--multi { grid-template-columns: repeat(4, 1fr); } }

.directory-group {
  border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 0.7em;
  background: #fff; padding: 0.2em 1em; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease;
}
.directory-group[open] { box-shadow: var(--shadow-md); }
.directory-group summary {
  cursor: pointer; font-weight: 700; padding: 0.8em 0; color: var(--color-primary-dark);
  list-style: none;
}
.directory-group summary::-webkit-details-marker { display: none; }
.directory-group summary::after { content: "+"; float: right; color: var(--color-accent); font-weight: 800; }
.directory-group[open] summary::after { content: "\2212"; }
.directory-group .link-list--multi { padding-bottom: 0.8em; }

.faq {
  display: flex; flex-direction: column; gap: 0.7em; margin-top: 1em;
}
.faq-item {
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1em 1.2em;
  background: var(--color-bg-alt); transition: box-shadow 0.18s ease, background 0.18s ease;
}
.faq-item[open] { background: #fff; box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 1.8em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 0; color: #fff; font-weight: 800;
  background: var(--color-accent); width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 0.7em; margin-bottom: 0; color: var(--color-text-muted); }

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  text-align: center; margin-top: 1em; margin-bottom: 2em; padding: 2.6em 1.4em;
}
.cta-banner h2, .cta-banner__heading { color: #fff; }
.cta-banner__heading {
  font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; margin: 0 0 0.5em; line-height: 1.2;
}
.cta-banner p { color: #dbe6f5; }

/* Top announcement bar version -- full-bleed, sits directly under the header
   so it's the very first thing a visitor sees, before the H1. */
.cta-banner--top {
  max-width: none; margin: 0; border-radius: 0; padding: 1.1em 1em;
  border-bottom: 3px solid var(--color-accent);
  display: flex; flex-direction: column; align-items: center; gap: 0.6em;
}
.cta-banner--top .cta-banner__heading { margin: 0; }
.cta-banner--top p:not(.cta-banner__heading) { margin: 0; font-size: 0.92rem; }
@media (min-width: 760px) {
  .cta-banner--top {
    flex-direction: row; justify-content: center; align-items: center; gap: 2em;
    text-align: left; padding: 0.9em 1.5em;
  }
  .cta-banner--top .cta-banner__group { display: flex; flex-direction: column; gap: 0.2em; }
}

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--color-primary-dark); color: #d7e0ee; margin-top: 2em; }
.site-footer a { color: #fff; }
.site-footer__cta {
  max-width: var(--max-width); margin: 0 auto; padding: 2em 1em 1em;
  display: flex; flex-wrap: wrap; gap: 1em; justify-content: space-between; align-items: center;
}
.site-footer__tagline { font-weight: 700; color: #fff; margin-bottom: 0.2em; }
.site-footer__hours { color: #b9c8e0; margin: 0; font-size: 0.9rem; }
.site-footer .trust-strip { max-width: var(--max-width); margin: 0 auto; padding: 0 1em 1em; }
.site-footer .trust-item { color: #cddaee; }
.site-footer .trust-icon svg { fill: #7fd6ac; }

.site-footer__grid {
  max-width: var(--max-width); margin: 0 auto; padding: 1.4em 1em;
  display: grid; gap: 1.6em; grid-template-columns: 1fr; border-top: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer__grid h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer__grid li { margin-bottom: 0.4em; font-size: 0.9rem; }
.footer-sitemap-link { display: inline-block; margin-top: 0.6em; font-size: 0.85rem; color: #9fb4d6; }

.site-footer__legal {
  max-width: var(--max-width); margin: 0 auto; padding: 1em; font-size: 0.78rem; color: #8fa3c2;
  border-top: 1px solid rgba(255,255,255,0.1);
}
