/* ══════════════════════════════════════════════════════════════
   1-DRY v2 — Home Services Directory Style
   Familiar, trusted, professional (HomeAdvisor/Angi/Thumbtack inspired)
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Home Services Directory Palette */
  --bg: #f5f5f5;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e0e0e0;
  --text: #212121;
  --muted: #757575;
  
  /* Primary Orange — energy, urgency, action */
  --accent: #ff6f00;
  --accent-hover: #e65100;
  --accent-light: #fff3e0;
  
  /* Emergency Red-Orange — urgent CTAs */
  --emergency: #d84315;
  --emergency-hover: #bf360c;
  --emergency-light: #fbe9e7;
  
  /* Trust Teal/Green — verification, safety */
  --trust: #00897b;
  --trust-light: #e0f2f1;
  
  /* Secondary Navy — professional, established */
  --navy: #1a237e;
  --navy-light: #e8eaf6;
  
  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-sm: 6px;
  --max-width: 1200px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── Layout ── */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 0.5rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.25rem;
  color: var(--navy); text-decoration: none;
}
.nav-logo img, .nav-logo svg { height: 32px; width: auto; }
.nav-logo span { color: var(--navy); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(255,111,0,0.3);
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
  text-decoration: none;
}
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 4px; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 1px; transition: all 0.3s;
}

/* ── Page Hero (Navy gradient) ── */
.page-hero {
  padding: 7rem 1.5rem 3rem;
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--emergency) 100%);
}
.page-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-accent {
  position: relative;
}
.card-accent::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ── Service Cards ── */
.service-card {
  display: flex; gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: all 0.25s;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: opacity 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(255,111,0,0.12);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy) 0%, #3949ab 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; color: white; }
.service-card h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.service-card .cta-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.service-card .cta-link:hover { color: var(--accent-hover); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(255,111,0,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,111,0,0.4);
  text-decoration: none;
}
.btn-emergency {
  background: var(--emergency);
  color: white;
  box-shadow: 0 4px 14px rgba(216,67,21,0.3);
}
.btn-emergency:hover {
  background: var(--emergency-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: white;
  text-decoration: none;
}
.btn-white {
  background: white;
  color: var(--navy);
}
.btn-white:hover {
  background: #f5f5f5;
  text-decoration: none;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.cta-section h2 {
  color: white;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.5rem;
}
.cta-section p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.cta-section .phone-hero {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--accent);
}
.cta-section .phone-hero a { color: var(--accent); }

/* ── Forms ── */
.form-group {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-bottom: 1rem;
}
.form-group label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,111,0,0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.footer p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.footer-phone {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}
.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.footer-links a {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Emergency Bar ── */
.emergency-bar {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.emergency-bar a { color: white; text-decoration: none; }
.emergency-bar a:hover { text-decoration: underline; }
.em-short { display: none; }

/* ── Trust Badges ── */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-badge svg { width: 20px; height: 20px; color: var(--trust); }

/* ── Content Sections ── */
.content-section {
  padding: 4rem 1.5rem;
}
.content-section.alt { background: var(--surface); }
.content-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.content-wrap h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.content-wrap p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.content-wrap ul {
  color: var(--muted);
  line-height: 2;
  margin-left: 1.5rem;
}
.content-wrap ul li::marker { color: var(--accent); }

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1rem;
    padding: 0.6rem 0;
    display: block;
  }
  .nav-cta {
    text-align: center;
    display: block !important;
    margin-top: 0.5rem;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-brand { justify-content: center; }
  .em-full { display: none; }
  .em-short { display: inline; }
  .trust-badges { gap: 1rem; }
  .service-card { flex-direction: column; }
  .service-icon { margin: 0 auto; }
  .service-card > div:last-child { text-align: center; }
}

/* ── Spacer for fixed elements ── */
.nav-spacer { height: 64px; }
.bar-spacer { height: 44px; }
