/* ============================================================
   South Arkansas Storm Restoration — Main Stylesheet
   Primary:  #0A1628  (deep navy)
   Accent:   #E08C00  (amber/gold)
   BG:       #F5F7FA  (light gray-white)
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #0A1628;
  --primary-dark: #060e1a;
  --accent:       #E08C00;
  --accent-dark:  #b87200;
  --bg:           #F5F7FA;
  --bg-white:     #ffffff;
  --text:         #1a1a2e;
  --text-light:   #4a5568;
  --border:       #d1d9e0;
  --shadow:       0 2px 8px rgba(10,22,40,0.10);
  --shadow-lg:    0 8px 32px rgba(10,22,40,0.14);
  --radius:       6px;
  --radius-lg:    12px;
  --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w:        1200px;
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; color: var(--text-light); }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* ---- Emergency Bar ---- */
.emergency-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.emergency-bar a { color: #fff; text-decoration: underline; }
.emergency-bar a:hover { color: var(--primary); }

/* ---- Header ---- */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo-link { flex-shrink: 0; }
.logo { height: 52px; width: auto; }

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(224,140,0,0.18);
  color: var(--accent);
}

.header-phone {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone:hover { color: #fff; }
.header-phone span { margin-right: 0.25rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--primary);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* ---- Hero (Homepage) ---- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 700px;
}
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.hero-content p   { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: var(--primary);
  padding: 3.5rem 0;
  position: relative;
}
.page-hero h1 { color: #fff; }
.page-hero p  { color: rgba(255,255,255,0.82); max-width: 700px; margin-top: 0.75rem; margin-bottom: 0; }

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.service-card h3 a { color: var(--primary); }
.service-card h3 a:hover { color: var(--accent); }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* ---- Services Detail Grid (services page) ---- */
.services-detail-grid { display: flex; flex-direction: column; gap: 3rem; }

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-detail-card img { width: 100%; height: 260px; object-fit: cover; }
.service-detail-body { padding: 1.75rem 1.75rem 1.75rem 0; }
.service-detail-body h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }

/* ---- Check List ---- */
.check-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}
.check-list li {
  padding: 0.35rem 0 0.35rem 1.75rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- Numbered List ---- */
.numbered-list {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}
.numbered-list li {
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--primary);
  padding: 3.5rem 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-banner p  { color: rgba(255,255,255,0.82); margin: 0; }
.cta-banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

/* ---- Why Us / Stats ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ---- Values Grid (About) ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.value-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.value-card h3 { color: var(--primary); font-size: 1.1rem; }
.value-card p  { font-size: 0.92rem; margin: 0; }

/* ---- Before/After ---- */
.before-after-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* ---- Service Page Layout ---- */
.service-page-body,
.about-page-body,
.faq-page-body,
.contact-page-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.service-page-main h2,
.about-page-main h2,
.faq-page-main h2 {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.service-page-main h2:first-child,
.about-page-main h2:first-child,
.faq-page-main h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ---- Sidebar ---- */
.service-sidebar { position: sticky; top: 100px; }

.sidebar-cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-cta h3 { color: #fff; margin-bottom: 0.75rem; }
.sidebar-cta p  { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin-bottom: 1.25rem; }

.sidebar-services {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.sidebar-services h4 { color: var(--primary); margin-bottom: 1rem; font-size: 1rem; }
.sidebar-services ul { list-style: none; }
.sidebar-services li { border-bottom: 1px solid var(--border); }
.sidebar-services li:last-child { border-bottom: none; }
.sidebar-services a {
  display: block;
  padding: 0.6rem 0;
  color: var(--text-light);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.sidebar-services a:hover { color: var(--accent); }

/* ---- FAQ ---- */
.faq-list { margin: 1.5rem 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--transition);
}
.faq-question.open::after { transform: translateY(-50%) rotate(45deg); }
.faq-question:hover { color: var(--accent); }

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
}
.faq-answer p { margin: 0; font-size: 0.95rem; }
.faq-answer.open { display: block; }

/* ---- Service Area Grid ---- */
.service-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.county-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.county-block h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.area-list { list-style: none; }
.area-list li {
  padding: 0.3rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.area-list li:last-child { border-bottom: none; }

/* ---- Contact Page ---- */
.contact-page-body {
  grid-template-columns: 1fr 1.2fr;
}
.contact-info-col h2,
.contact-form-col h2 { margin-bottom: 1.25rem; }

.contact-detail {
  margin-bottom: 1.25rem;
}
.contact-detail strong {
  display: block;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.contact-detail a,
.contact-detail span,
.contact-detail address {
  color: var(--text-light);
  font-style: normal;
  font-size: 1rem;
}
.contact-detail a:hover { color: var(--accent); }

/* ---- Form ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,140,0,0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ---- Process Steps ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.step-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}
.step-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step-card p  { font-size: 0.88rem; margin: 0; }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}
.testimonial-location {
  color: var(--text-light);
  font-size: 0.82rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 1rem; }
.footer-brand p {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-nap {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.footer-nap a { color: var(--accent); }
.footer-nap a:hover { color: #fff; }

.footer-nav h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
}
.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  text-align: center;
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ---- BG Alternating ---- */
.bg-light { background: var(--bg); }

/* ---- Image Break ---- */
.image-break { margin: 2.5rem 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .service-detail-card {
    grid-template-columns: 1fr;
  }
  .service-detail-card img { height: 220px; }
  .service-detail-body { padding: 1.5rem; }

  .service-page-body,
  .about-page-body,
  .faq-page-body,
  .contact-page-body {
    grid-template-columns: 1fr;
  }
  .service-sidebar { position: static; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-phone { display: none; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-dark);
    z-index: 1001;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .nav-overlay.open { display: block; }

  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }

  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { justify-content: center; }

  .hero { min-height: 420px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .service-area-grid { grid-template-columns: 1fr; }
}
