/* Jersey City Garage Door Co. — shared stylesheet
   Trust & Authority palette (ui-ux-pro-max, locked). Mobile-first. Zero JS dependency. */

:root {
  --color-primary:   #1E40AF;
  --color-secondary: #3B82F6;
  --color-cta:       #EA580C;
  --color-cta-hover: #C2410C;
  --color-bg:        #EFF6FF;
  --color-fg:        #1E3A8A;
  --color-ink:       #172554;   /* darkest body text, AAA on white */
  --color-muted:     #E9EEF6;
  --color-border:    #BFDBFE;
  --color-white:     #FFFFFF;

  --font-heading: 'Lexend', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  --text-sm: .9375rem; --text-base: 1.0625rem; --text-lg: 1.25rem;
  --text-xl: 1.5rem; --text-2xl: 1.875rem; --text-3xl: 2.375rem;

  --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-12: 3rem; --space-16: 4rem;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --shadow-card: 0 2px 8px rgba(30,64,175,.08);
  --shadow-lift: 0 8px 24px rgba(30,64,175,.14);
  --container: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-white);
  padding-bottom: 72px; /* room for sticky mobile call bar */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.15; margin: 0 0 var(--space-4); }
h1 { font-size: clamp(1.9rem, 5vw, var(--text-3xl)); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, var(--text-2xl)); font-weight: 700; margin-top: var(--space-12); }
h3 { font-size: var(--text-lg); font-weight: 600; }
p { margin: 0 0 var(--space-4); }
a { color: var(--color-primary); text-decoration-color: var(--color-border); text-underline-offset: 2px; }
a:hover { color: var(--color-secondary); }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
li { margin-bottom: var(--space-2); }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }

.section { padding: var(--space-12) 0; }
.section--muted { background: var(--color-muted); }
.section--bg { background: var(--color-bg); }
.section--navy { background: var(--color-primary); color: var(--color-white); }
.section--navy h2, .section--navy h3 { color: var(--color-white); }
.section--navy a { color: #DBEAFE; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-heading);
  font-weight: 600; font-size: var(--text-base); text-decoration: none; border-radius: var(--radius-md);
  padding: .8rem 1.4rem; min-height: 48px; cursor: pointer; white-space: nowrap; transition: background .18s ease, transform .18s ease; }
.header-call { flex-shrink: 0; padding: .6rem 1.1rem; }
.btn-cta { background: var(--color-cta); color: var(--color-white); }
.btn-cta:hover { background: var(--color-cta-hover); color: var(--color-white); transform: translateY(-1px); }
.btn-cta svg { fill: currentColor; }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }
.btn-lg { font-size: var(--text-lg); padding: 1rem 1.8rem; min-height: 56px; }

/* ---- Header ---- */
.site-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: .6rem var(--space-4); max-width: var(--container); margin: 0 auto; }
.brand { text-decoration: none; line-height: 1.1; display: flex; align-items: center; gap: .6rem; }
.brand-mark { flex-shrink: 0; display: block; }
.brand-text { display: block; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-primary); display: block; }
.brand-sub { font-size: .72rem; color: var(--color-cta); font-weight: 600; letter-spacing: .01em; }
.nav-toggle, .nav-toggle-label { display: none; }
.main-nav { display: none; }
.main-nav a { font-family: var(--font-heading); font-weight: 500; font-size: var(--text-sm); color: var(--color-primary); text-decoration: none; padding: .4rem .5rem; }
.main-nav a:hover { color: var(--color-cta); }
.header-call { display: none; }

@media (min-width: 992px) {
  .main-nav { display: flex; align-items: center; gap: .6rem; }
  .header-call { display: inline-flex; }
}
@media (max-width: 991px) {
  .nav-toggle-label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; }
  .nav-toggle-label svg { fill: var(--color-primary); }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white);
    border-bottom: 1px solid var(--color-border); flex-direction: column; padding: var(--space-2) var(--space-4); box-shadow: var(--shadow-lift); }
  .main-nav a { padding: .7rem 0; border-bottom: 1px solid var(--color-muted); font-size: var(--text-base); }
  .nav-toggle:checked ~ .header-inner .main-nav { display: flex; }
  .header-mobile-call { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: var(--color-cta); border-radius: var(--radius-sm); }
  .header-mobile-call svg { fill: var(--color-white); }
}
@media (min-width: 992px) { .header-mobile-call { display: none; } }

/* ---- Sticky mobile call bar ---- */
.call-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--color-cta-hover);
  color: var(--color-white); text-align: center; font-family: var(--font-heading); font-weight: 600;
  text-decoration: none; padding: 1rem; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 56px; }
.call-bar svg { fill: var(--color-white); }
@media (min-width: 768px) { .call-bar { display: none; } }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, var(--color-primary) 0%, #1D4ED8 55%, var(--color-secondary) 100%); color: var(--color-white); padding: var(--space-16) 0; }
.hero h1 { color: var(--color-white); }
.hero p { font-size: var(--text-lg); color: #DBEAFE; max-width: 42rem; }
.hero-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; } }
.hero-art { width: 100%; max-width: 480px; height: auto; justify-self: center; border-radius: var(--radius-lg); box-shadow: 0 12px 34px rgba(0,0,0,.22); }
@media (max-width: 899px) { .hero-art { max-width: 360px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.trust-chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); list-style: none; padding: 0; }
.trust-chips li { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .4rem .9rem; font-size: var(--text-sm); font-weight: 600; margin: 0; }
.trust-chips svg { fill: #BFDBFE; }

/* ---- Cards ---- */
.card-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-card); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card { overflow: hidden; }
.card-img { display: block; width: calc(100% + 2 * var(--space-6)); height: auto; margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-4); aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { margin-bottom: var(--space-2); }
.service-lead-img { width: 100%; max-width: 720px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin: 0 0 var(--space-6); display: block; }
.card-link { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); text-decoration: none; color: var(--color-cta); }
.card-link:hover { color: var(--color-cta-hover); }

/* ---- CTA block ---- */
.cta-block { background: var(--color-primary); color: var(--color-white); border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-6); text-align: center; margin: var(--space-12) 0; }
.cta-block h2 { color: var(--color-white); margin-top: 0; }
.cta-block p { color: #DBEAFE; max-width: 38rem; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-6); }
.cta-block .btn-outline { color: var(--color-white); border-color: var(--color-white); }
.cta-block .btn-outline:hover { background: var(--color-white); color: var(--color-primary); }

/* ---- Steps ---- */
.steps { display: grid; gap: var(--space-6); grid-template-columns: 1fr; counter-reset: step; list-style: none; padding: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px; background: var(--color-cta); color: var(--color-white); font-family: var(--font-heading); font-weight: 700; margin-bottom: var(--space-3); }

/* ---- FAQ ---- */
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-3); background: var(--color-white); }
.faq summary { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); cursor: pointer; }
.faq details[open] summary { margin-bottom: var(--space-3); }

/* ---- Breadcrumb ---- */
.breadcrumb { background: var(--color-muted); font-size: var(--text-sm); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem var(--space-4); max-width: var(--container); margin: 0 auto; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--color-secondary); }
.breadcrumb a { text-decoration: none; }

/* ---- Chips row (inline trust, dark on light) ---- */
.why-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.why-list li { display: flex; gap: .6rem; align-items: flex-start; }
.why-list svg { flex-shrink: 0; margin-top: .2rem; fill: var(--color-cta); }

/* ---- Form ---- */
.form-grid { display: grid; gap: var(--space-4); max-width: 34rem; }
.form-grid label { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); color: var(--color-primary); display: block; margin-bottom: .3rem; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; font-family: var(--font-body); font-size: var(--text-base);
  padding: .7rem .8rem; min-height: 48px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white); }
.form-grid textarea { min-height: 120px; }

/* ---- Footer ---- */
.site-footer { background: var(--color-ink); color: #C7D2FE; padding: var(--space-16) 0 var(--space-8); font-size: var(--text-sm); }
.footer-cols { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.site-footer h3 { color: var(--color-white); font-size: var(--text-base); margin-bottom: var(--space-3); }
.site-footer a { color: #C7D2FE; text-decoration: none; }
.site-footer a:hover { color: var(--color-white); }
.site-footer ul { list-style: none; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--space-8); padding-top: var(--space-6); font-size: .8125rem; color: #94A3B8; }

.lead { font-size: var(--text-lg); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
