/* AllServiceMiami - Reusable Components */

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(10,15,30,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(10,15,30,0.99); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.navbar-brand { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 800; color: var(--text-primary); text-decoration: none; }
.navbar-brand span { color: var(--accent-orange); }
.navbar-nav { display: flex; align-items: center; gap: 8px; list-style: none; }
.navbar-nav a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-sm); transition: var(--transition); }
.navbar-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; border-radius: var(--radius-sm); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; text-align: center;
  background: linear-gradient(135deg, #0a0f1e 0%, #0d1526 50%, #0f1a2e 100%);
  position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(249,115,22,0.1) 0%, transparent 60%), radial-gradient(ellipse at 70% 60%, rgba(59,130,246,0.08) 0%, transparent 60%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent-orange); }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--text-secondary); max-width: 620px; margin: 0 auto 40px; }

/* Search bar */
.hero-search { display: flex; gap: 0; max-width: 700px; margin: 0 auto 40px; background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-search select, .hero-search input { flex: 1; padding: 18px 20px; background: transparent; border: none; color: var(--text-primary); font-family: var(--font-family); font-size: 1rem; outline: none; }
.hero-search select option { background: var(--bg-card); }
.hero-search .divider-v { width: 1px; background: var(--border-color); margin: 12px 0; }
.hero-search .btn { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; padding: 18px 28px; font-size: 1rem; }

/* Trust badges */
.trust-badges { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; }
.trust-badge svg, .trust-badge .icon { color: var(--success); width: 18px; height: 18px; flex-shrink: 0; }
.trust-badge span { font-weight: 500; }

/* ===== SECTION: HOW IT WORKS ===== */
.how-it-works { background: var(--bg-secondary); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; position: relative; transition: var(--transition-slow); }
.step-card:hover { border-color: var(--accent-orange); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(249,115,22,0.2); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--accent-orange-light); color: var(--accent-orange); font-size: 1.5rem; font-weight: 800; border-radius: 50%; margin-bottom: 20px; }
.step-icon { font-size: 2.5rem; margin-bottom: 16px; }
.step-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
/* Connector arrows between steps */
.steps-grid { position: relative; }

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.service-card {
  background: var(--bg-card); border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 24px 16px; text-align: center;
  transition: var(--transition-slow); cursor: pointer; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.service-card:hover { border-color: var(--accent-orange); transform: translateY(-4px); box-shadow: var(--shadow-orange); }
.service-card .service-icon { font-size: 2.2rem; display: block; }
.service-card .service-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.service-card .service-cta { font-size: 0.75rem; color: var(--accent-orange); font-weight: 500; opacity: 0; transform: translateY(4px); transition: var(--transition); }
.service-card:hover .service-cta { opacity: 1; transform: translateY(0); }

/* ===== FEATURE CARDS ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; }
.feature-card:hover { border-color: var(--accent-blue); }
.feature-icon { width: 56px; height: 56px; background: var(--accent-blue-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.6rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ===== CITIES GRID ===== */
.cities-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.city-chip { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: 30px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: var(--transition); text-decoration: none; }
.city-chip:hover { border-color: var(--accent-orange); color: var(--accent-orange); background: var(--accent-orange-light); }

/* ===== STATS COUNTER ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-card); }
.stat-item { padding: 48px 32px; text-align: center; border-right: 1px solid var(--border-color); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--accent-orange); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px 28px; }
.testimonial-stars { color: var(--warning); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-quote { color: var(--text-secondary); font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-quote::before { content: '"'; font-size: 1.5rem; color: var(--accent-orange); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; background: var(--accent-orange-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent-orange); font-size: 1rem; }
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-service { font-size: 0.8rem; color: var(--text-muted); }

/* ===== LEAD FORM ===== */
.lead-form-section { background: var(--bg-secondary); }
.lead-form-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 48px; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.form-steps-indicator { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.form-step-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.form-step-dot.active { border-color: var(--accent-orange); background: var(--accent-orange); color: #fff; }
.form-step-dot.completed { border-color: var(--success); background: var(--success); color: #fff; }
.form-step-line { flex: 1; height: 2px; background: var(--border-color); max-width: 60px; }
.form-step-line.completed { background: var(--success); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.form-step-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.form-step-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 28px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.form-actions .btn { min-width: 120px; }

/* SMS code inputs */
.sms-code-inputs { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.sms-digit { width: 52px; height: 60px; text-align: center; font-size: 1.5rem; font-weight: 700; background: var(--bg-primary); border: 2px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-family); transition: var(--transition); }
.sms-digit:focus { outline: none; border-color: var(--accent-orange); box-shadow: 0 0 0 3px var(--accent-orange-light); }

/* Success step */
.success-icon { width: 80px; height: 80px; background: var(--success-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 2.5rem; }
.lead-id-display { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px 20px; font-family: monospace; font-size: 0.9rem; color: var(--accent-orange); text-align: center; margin: 16px 0; letter-spacing: 0.1em; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; background: none; border: none; color: var(--text-primary); font-family: var(--font-family); font-size: 1rem; font-weight: 600; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; text-align: left; }
.faq-question .faq-icon { color: var(--accent-orange); font-size: 1.3rem; flex-shrink: 0; transition: var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer-inner { padding: 0 0 20px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ===== CONTRACTOR CTA ===== */
.contractor-cta { background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(249,115,22,0.08)); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 60px; text-align: center; }
.contractor-cta h2 { margin-bottom: 12px; }
.contractor-cta p { color: var(--text-muted); max-width: 500px; margin: 0 auto 32px; }
.contractor-benefits { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.contractor-benefit { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.95rem; }
.contractor-benefit::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .navbar-brand { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-phone { display: flex; align-items: center; gap: 8px; color: var(--accent-orange); font-weight: 600; font-size: 1.1rem; margin-top: 16px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--accent-orange); }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--text-secondary); }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-orange); }
.breadcrumb-sep { color: var(--border-light); }
.breadcrumb-current { color: var(--text-secondary); }

/* ===== PAGE HEADER ===== */
.page-header { padding: 120px 0 60px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); }
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--text-muted); max-width: 600px; margin: 0; }

/* ===== INTERNAL LINKS SECTION ===== */
.internal-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.internal-link-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; font-size: 0.875rem; color: var(--text-secondary); transition: var(--transition); }
.internal-link-card:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
