/* =========================================
   123sidewalks.com — Global Stylesheet
   Dark/professional, orange CTAs, mobile-first
   ========================================= */

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fed7aa;
  --bg: #111827;
  --bg2: #1f2937;
  --bg3: #374151;
  --text: #f9fafb;
  --text2: #d1d5db;
  --text3: #9ca3af;
  --white: #ffffff;
  --border: #374151;
  --green: #22c55e;
  --yellow: #fbbf24;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ---- HEADER ---- */
header {
  background: #0d1117;
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span { color: var(--orange); }

.header-phone {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.header-phone:hover { color: var(--orange-dark); }

nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

nav a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

nav a:hover { color: var(--white); background: var(--bg3); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #0d1117 0%, #1f2937 60%, #111827 100%);
  padding: 80px 20px 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.4);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .highlight { color: var(--orange); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text2);
  max-width: 650px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c2410c;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(249,115,22,0.4);
}

.btn-primary:hover {
  background: #9a3412;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover { border-color: var(--orange); background: rgba(249,115,22,0.1); }

.hero-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-size: 0.9rem;
}

.trust-item .icon { color: var(--orange); font-size: 1.1rem; }

/* ---- URGENCY BAR ---- */
.urgency-bar {
  background: linear-gradient(90deg, var(--orange-dark) 0%, var(--orange) 100%);
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.urgency-bar a { color: var(--white); text-decoration: underline; }

/* ---- SECTIONS ---- */
.section {
  padding: 72px 20px;
}

.section-alt { background: var(--bg2); }

.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 680px;
  margin-bottom: 48px;
}

/* ---- STAT ROW ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--orange);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .label {
  color: var(--text2);
  font-size: 0.95rem;
}

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.card p { color: var(--text2); font-size: 0.95rem; line-height: 1.6; }

/* ---- PROCESS STEPS ---- */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 780px; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-content p { color: var(--text2); font-size: 0.95rem; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; }

details {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

details[open] { border-color: var(--orange); }

summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- CTA BLOCK ---- */
.cta-block {
  background: linear-gradient(135deg, #1c1008 0%, #2d1b0a 50%, #1c1008 100%);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 12px;
  padding: 56px 40px;
  text-align: center;
}

.cta-block h2 { margin-bottom: 16px; }

.cta-block p {
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* ---- BOROUGH LINKS ---- */
.borough-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.borough-link {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text2);
  font-weight: 600;
  transition: all 0.2s;
}

.borough-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(249,115,22,0.08);
}

.borough-link .borough-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
}

textarea { resize: vertical; min-height: 120px; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(249,115,22,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-info-item a, .contact-info-item p {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.contact-info-item a:hover { color: var(--orange); }

/* ---- BLOG GRID ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover { border-color: var(--orange); transform: translateY(-3px); }

.blog-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}

.blog-card-body { padding: 24px; flex: 1; }

.blog-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p { color: var(--text3); font-size: 0.88rem; line-height: 1.5; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  font-size: 0.85rem;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text3);
}

.breadcrumb-inner a { color: var(--text3); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--orange); }
.breadcrumb-inner span { color: var(--text3); }
.breadcrumb-inner .current { color: var(--white); font-weight: 600; }

/* ---- FOOTER ---- */
footer {
  background: #0d1117;
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
}


/* Footer heading (h3 replacing h4 for a11y heading order) */
.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo { font-size: 1.3rem; }
.footer-brand p {
  color: var(--text3);
  font-size: 0.9rem;
  margin-top: 12px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-col h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text3);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text3);
  font-size: 0.85rem;
}

/* ---- VIOLATION CHECKER ---- */
.checker-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}

.checker-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.checker-box p { color: var(--text2); margin-bottom: 24px; }

.input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input-row input { flex: 1; min-width: 200px; }

/* ---- PRICING TABLE ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(249,115,22,0.1), var(--bg2));
}

.pricing-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card .price-unit {
  font-size: 0.9rem;
  color: var(--text3);
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card li {
  padding: 6px 0;
  color: var(--text2);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.stars { color: var(--yellow); font-size: 1rem; margin-bottom: 12px; }

.testimonial blockquote {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.testimonial-loc { color: var(--text3); font-size: 0.85rem; }

/* ---- TABLE ---- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th {
  background: var(--bg3);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 14px 16px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}

tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- UTILITIES ---- */
.text-orange { color: var(--orange); }
.text-green { color: var(--green); }
.text-muted { color: var(--text3); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.highlight-box {
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.check-list { list-style: none; }

.check-list li {
  padding: 8px 0;
  color: var(--text2);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .header-inner { height: auto; padding: 14px 16px; flex-wrap: wrap; }
  nav { display: none; }
  .hero { padding: 50px 16px 40px; }
  .section { padding: 48px 16px; }
  .cta-block { padding: 36px 20px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .step-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .checker-box { padding: 24px 20px; }
  table { font-size: 0.85rem; }
  th, td { padding: 10px 12px; }
}

/* ---- MOBILE NAV TOGGLE ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav.open { display: flex; flex-direction: column; width: 100%; padding: 12px 0; }
}

/* ---- INLINE NOTICE ---- */
.notice {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text2);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.notice strong { color: var(--yellow); }
