/* 911 Restoration of Peabody, Brand Stylesheet
   Colors: Brand Orange #F26722 (primary), Navy #0F1B2D, White #FFFFFF
   Font: Inter (Google Fonts)
   NOTE: CSS variables are still named --red-* for internal compatibility,
   but they hold the official 911 Restoration orange values.
*/

:root {
  --red: #F26722;
  --red-dark: #D85613;
  --red-light: #FFF4EE;
  --navy: #0F1B2D;
  --navy-soft: #1B2A44;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 6px 18px rgba(15,27,45,.08);
  --shadow-lg: 0 20px 40px rgba(15,27,45,.15);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--navy); letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { color: var(--gray-700); }
.lead { font-size: 1.15rem; color: var(--gray-700); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============= Buttons ============= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(242,103,34,.35); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242,103,34,.45); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--gray-300); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ============= Top Bar ============= */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .9rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: #ffd7b8; }
.topbar .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); padding: 3px 10px; border-radius: 999px;
  font-weight: 700; font-size: .8rem;
}
.topbar .pulse {
  width: 8px; height: 8px; background: #fff; border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* ============= Header / Nav ============= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.nav-logo img { height: 56px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-menu a { color: var(--navy); font-weight: 600; font-size: .95rem; }
.nav-menu a:hover { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.nav-phone span { font-size: .75rem; color: var(--gray-500); display: block; font-weight: 500; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 12px;
  min-width: 240px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: var(--transition);
  list-style: none;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; }
.dropdown li a:hover { background: var(--red-light); color: var(--red); }

/* ============= Hero ============= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L60 30 30 60 0 30z' fill='none' stroke='%23ffffff' stroke-opacity='.04' stroke-width='1'/%3E%3C/svg%3E");
  opacity: .8;
}
.hero::after {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,103,34,.25) 0%, transparent 70%);
  right: -200px; top: -200px; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(242,103,34,.18); border: 1px solid rgba(242,103,34,.5);
  color: #ffd7b8; padding: 8px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: var(--red); display: block; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.2rem; margin-bottom: 32px; max-width: 600px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 600px; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--red); }
.hero-stat .lbl { font-size: .85rem; color: rgba(255,255,255,.7); font-weight: 500; }

.hero-card {
  background: #fff; color: var(--navy);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { margin-bottom: 8px; }
.hero-card p { font-size: .95rem; margin-bottom: 20px; }
.hero-card .form-row { margin-bottom: 14px; }
.hero-card label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.hero-card input, .hero-card select, .hero-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit;
  transition: var(--transition);
}
.hero-card input:focus, .hero-card select:focus, .hero-card textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(242,103,34,.15);
}
.hero-card .btn { width: 100%; }

/* ============= Section ============= */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,.8); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block; color: var(--red); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: .85rem; margin-bottom: 12px;
}
.section-head p { font-size: 1.1rem; margin-top: 16px; }

/* ============= Services Grid ============= */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: var(--transition); border: 1px solid var(--gray-100);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--red-light); color: var(--red);
  display: grid; place-items: center; margin-bottom: 20px;
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: .95rem; margin-bottom: 16px; }
.service-card .arrow { color: var(--red); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.service-card:hover .arrow { gap: 10px; }

/* ============= Why Us ============= */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.why-item { text-align: center; }
.why-item .ico {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--red);
  display: grid; place-items: center; color: #fff;
}
.why-item .ico svg { width: 36px; height: 36px; }
.why-item h3 { margin-bottom: 8px; font-size: 1.2rem; }
.why-item p { font-size: .95rem; }

/* ============= Process Steps ============= */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.process-step {
  background: #fff; border-radius: var(--radius);
  padding: 32px 24px; text-align: center; position: relative;
  border: 2px solid var(--gray-100); transition: var(--transition);
}
.process-step:hover { border-color: var(--red); transform: translateY(-4px); }
.process-step .step-num {
  width: 48px; height: 48px; margin: 0 auto 16px;
  background: var(--red); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.process-step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.process-step p { font-size: .9rem; }

/* ============= Service Areas ============= */
.areas-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.area-chip {
  padding: 12px 24px; background: #fff; border: 2px solid var(--gray-300);
  border-radius: 999px; color: var(--navy); font-weight: 600;
  transition: var(--transition); text-decoration: none;
}
.area-chip:hover { border-color: var(--red); background: var(--red); color: #fff; transform: translateY(-2px); }
.section-navy .area-chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.section-navy .area-chip:hover { background: var(--red); border-color: var(--red); }

/* ============= Testimonial ============= */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial {
  background: #fff; padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative;
}
.testimonial::before { content: '"'; position: absolute; top: 0; left: 20px; font-size: 5rem; color: var(--red); opacity: .15; font-family: Georgia, serif; line-height: 1; }
.testimonial .stars { color: #f5a623; margin-bottom: 14px; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial p { color: var(--gray-700); font-style: italic; margin-bottom: 16px; }
.testimonial .author { font-weight: 700; color: var(--navy); }
.testimonial .author span { display: block; font-size: .85rem; color: var(--gray-500); font-weight: 500; font-style: normal; }

/* ============= CTA Bar ============= */
.cta-bar {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; padding: 64px 0;
  position: relative; overflow: hidden;
}
.cta-bar::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L60 30 30 60 0 30z' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1'/%3E%3C/svg%3E");
}
.cta-bar .container { position: relative; z-index: 2; }
.cta-content { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-content h2 { color: #fff; margin-bottom: 8px; }
.cta-content p { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.cta-bar .btn-primary { background: #fff; color: var(--red); }
.cta-bar .btn-primary:hover { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.2); }

/* ============= Trust Bar ============= */
.trust-bar { background: var(--gray-50); padding: 32px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; align-items: center; }
.trust-item { text-align: center; }
.trust-item .label { font-size: .8rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.trust-item .value { font-size: 1.5rem; font-weight: 800; color: var(--navy); }

/* ============= Page Hero (inner pages) ============= */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff; padding: 80px 0 64px; position: relative;
}
.page-hero::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,103,34,.2) 0%, transparent 70%);
  right: -100px; top: -100px; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; max-width: 900px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 16px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.9); }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 720px; }

/* ============= Content blocks ============= */
.prose { max-width: 800px; margin: 0 auto; }
.prose p { margin-bottom: 18px; font-size: 1.05rem; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose ul { padding-left: 0; list-style: none; margin-bottom: 24px; }
.prose ul li {
  position: relative; padding-left: 32px; margin-bottom: 10px;
  color: var(--gray-700);
}
.prose ul li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; background: var(--red); color: #fff;
  border-radius: 50%; display: grid; place-items: center; font-size: .75rem;
  font-weight: 800;
}

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.sidebar-card {
  background: var(--gray-50); border-radius: var(--radius); padding: 32px;
  border-left: 4px solid var(--red); position: sticky; top: 100px;
}
.sidebar-card h3 { margin-bottom: 12px; }
.sidebar-card p { font-size: .95rem; margin-bottom: 20px; }

/* ============= Footer ============= */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.75); font-size: .92rem; }
.footer a:hover { color: var(--red); }
.footer-about img { height: 50px; margin-bottom: 16px; }
.footer-about p { color: rgba(255,255,255,.7); font-size: .92rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--red); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ============= Floating call ============= */
.float-call {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  background: var(--red); color: #fff; border-radius: 999px;
  padding: 14px 22px; box-shadow: 0 12px 30px rgba(242,103,34,.4);
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
  transition: var(--transition);
}
.float-call:hover { transform: translateY(-3px) scale(1.03); color: #fff; box-shadow: 0 16px 36px rgba(242,103,34,.55); }
.float-call svg { width: 20px; height: 20px; }

/* ============= Reveal animation ============= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============= Responsive ============= */
@media (max-width: 980px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .sidebar-card { position: static; }
  .cta-content { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu, .nav-cta .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 16px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav-menu.open li { width: 100%; border-bottom: 1px solid var(--gray-100); }
  .nav-menu.open li a { display: block; padding: 14px 8px; }
  .nav-menu.open .dropdown { position: static; box-shadow: none; padding: 0 0 0 16px; opacity: 1; visibility: visible; transform: none; }
  .nav-logo img { height: 44px; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1.05rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stat .num { font-size: 1.5rem; }
  .hero-stat .lbl { font-size: .72rem; }
  .hero-card { padding: 24px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 48px 0 110px; }
  .topbar { font-size: .82rem; padding: 6px 0; }
  .topbar .container { justify-content: center; text-align: center; gap: 8px; }
  .topbar .badge { font-size: .72rem; padding: 2px 8px; }
  .page-hero { padding: 56px 0 40px; }
  .page-hero h1 { font-size: 1.9rem; }
  .container { padding: 0 18px; }
  .btn-lg { padding: 16px 28px; font-size: 1rem; }
  .float-call { padding: 12px 18px; font-size: 0.9rem; bottom: 16px; right: 16px; }
  .cta-bar { padding: 48px 0; }
  .cta-content h2 { font-size: 1.6rem; }
  .testimonial { padding: 24px; }
  .service-card { padding: 24px; }
  .why-grid { gap: 24px; }
  /* iOS Safari prevents zoom on focus if input font-size is at least 16px */
  input, select, textarea { font-size: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.75rem; }
  .hero .lead { font-size: 1rem; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 14px 22px; font-size: .95rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stat .num { font-size: 1.25rem; }
  .hero-stat .lbl { font-size: .68rem; }
  .topbar { font-size: .75rem; }
  .topbar .container > div { line-height: 1.4; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .cta-content h2 { font-size: 1.4rem; }
  .cta-bar .btn-lg { width: 100%; }
  .float-call span { display: none; }
  .nav { padding: 12px 0; gap: 12px; }
  .nav-logo img { height: 40px; }
}

/* ============= Utilities ============= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
