/* ============================================
   Deltona Water Restoration — Site Styles
   Template: Alpha | Scheme: Emergency Blue
   ============================================ */

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f0f9ff;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --cta: #dc2626;
  --cta-hover: #b91c1c;
  --success: #16a34a;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 16px; }
a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section__subtitle { color: var(--text-muted); font-size: 1.1rem; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 1rem; cursor: pointer; transition: all 0.2s; border: 2px solid transparent;
  text-decoration: none; font-family: inherit;
}
.btn--primary { background: var(--cta); color: #fff; border-color: var(--cta); }
.btn--primary:hover { background: var(--cta-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--secondary { background: var(--primary); color: #fff; }
.btn--secondary:hover { background: var(--primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--white { background: #fff; color: var(--cta); }
.btn--white:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.btn--lg { padding: 18px 40px; font-size: 1.15rem; }
.btn--full { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }

/* ==================== NAV ==================== */
.nav {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--border); padding: 0 20px;
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; height: 72px;
}
.nav__brand { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
.nav__brand span { color: var(--cta); }
.nav__links { display: flex; gap: 28px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav__links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--primary); }
.nav__cta { background: var(--cta); color: #fff !important; padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 700; }
.nav__cta:hover { background: var(--cta-hover); color: #fff; }
.nav__mobile { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a365d 100%);
  padding: 80px 0 100px; color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom right, transparent 49.5%, var(--bg) 50%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero__badge {
  display: inline-block; background: var(--cta); color: #fff;
  padding: 6px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
  margin-bottom: 20px; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; line-height: 1.6; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px; }
.hero__trust span { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.hero__image { position: relative; z-index: 1; }
.hero__image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ==================== TRUST BAR ==================== */
.trust-bar { background: var(--primary); padding: 20px 0; position: relative; z-index: 2; }
.trust-bar__grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; }
.trust-bar__item { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 0.95rem; }
.trust-bar__icon { font-size: 1.6rem; }

/* ==================== SERVICES ==================== */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }
.service-card__icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }
.service-card__link { font-weight: 600; color: var(--secondary); display: inline-flex; align-items: center; gap: 4px; }

/* ==================== VIDEO ==================== */
.video__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.video__embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.video__embed img { width: 100%; height: 100%; object-fit: cover; }
.video__placeholder { color: #fff; font-size: 1.2rem; text-align: center; padding: 40px; }
.video__content h3 { margin-bottom: 16px; }
.video__content p { color: var(--text-muted); }

/* ==================== PROCESS ==================== */
.process__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; counter-reset: step; }
.process__step { text-align: center; padding: 24px 16px; }
.process__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 20px;
}
.process__step h3 { margin-bottom: 10px; }
.process__step p { color: var(--text-muted); font-size: 0.95rem; }

/* ==================== AREAS ==================== */
.areas__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.area-card {
  display: block; padding: 24px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all 0.2s; color: var(--text);
}
.area-card:hover { border-color: var(--secondary); box-shadow: var(--shadow); color: var(--text); transform: translateY(-2px); }
.area-card h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--primary); }
.area-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ==================== FAQ ==================== */
.faq__list { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question {
  width: 100%; padding: 20px 0; background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 1.05rem; color: var(--text);
  text-align: left; display: flex; justify-content: space-between; align-items: center;
}
.faq__question::after { content: '+'; font-size: 1.5rem; color: var(--secondary); transition: transform 0.2s; }
.faq__item.active .faq__question::after { transform: rotate(45deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__answer-inner { padding: 0 0 20px; color: var(--text-muted); line-height: 1.8; }
.faq__item.active .faq__answer { max-height: 500px; }

/* ==================== TESTIMONIALS ==================== */
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative;
}
.testimonial__stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 16px; }
.testimonial__text { font-style: italic; margin-bottom: 20px; font-size: 1.05rem; line-height: 1.7; }
.testimonial__author { font-weight: 700; }
.testimonial__location { color: var(--text-muted); font-size: 0.9rem; }

/* ==================== CONTACT ==================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact__phone { font-size: 1.8rem; font-weight: 800; color: var(--cta); display: block; margin: 24px 0; }
.contact__phone:hover { color: var(--cta-hover); }
.contact__details { margin-top: 24px; }
.contact__details p { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--text-muted); }

.contact__form {
  background: var(--bg-alt); padding: 36px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.form__group { margin-bottom: 18px; }
.form__group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form__group input, .form__group select, .form__group textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #d1d5db; border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; transition: border-color 0.2s;
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form__note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ==================== EMERGENCY CTA ==================== */
.emergency-cta {
  background: linear-gradient(135deg, var(--cta) 0%, #991b1b 100%);
  color: #fff; text-align: center; padding: 60px 0;
}
.emergency-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.emergency-cta p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 28px; }

/* ==================== FOOTER ==================== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.1rem; }
.footer__brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer__links { list-style: none; padding: 0; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: rgba(255,255,255,0.7); }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* ==================== FLOATING CTA (mobile) ==================== */
.floating-cta {
  position: fixed; bottom: 0; left: 0; right: 0; display: none;
  z-index: 1000; box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.floating-cta a {
  flex: 1; padding: 16px; text-align: center; font-weight: 700;
  font-size: 1rem; color: #fff; text-decoration: none;
}
.floating-cta__call { background: var(--cta); }
.floating-cta__form { background: var(--primary); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
  .hero__grid, .video__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .nav__links { display: none; }
  .nav__mobile { display: block; }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .floating-cta { display: flex; }
  body { padding-bottom: 56px; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .trust-bar__grid { gap: 20px; }
}
@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .process__steps { grid-template-columns: 1fr; }
}

/* ==================== MOBILE NAV SHOW ==================== */
@media (max-width: 968px) {
  .nav__links.show {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: #fff;
    padding: 20px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); gap: 16px;
  }
}

/* ==================== SUB-PAGE STYLES ==================== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a365d 100%);
  padding: 120px 0 60px; color: #fff; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 700px; margin: 0 auto; }
.page-hero .breadcrumb { margin-bottom: 16px; font-size: 0.9rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.5); margin: 0 8px; }

.content { max-width: 800px; margin: 0 auto; }
.content h2 { margin-top: 40px; }
.content h3 { margin-top: 32px; margin-bottom: 12px; }
.content p { line-height: 1.8; }
.content ul, .content ol { margin-bottom: 20px; }
.content li { line-height: 1.7; }
.content blockquote {
  border-left: 4px solid var(--primary); padding: 16px 24px;
  background: var(--bg-alt); margin: 24px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-cta {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; margin: 40px 0;
}
.content-cta h3 { margin-top: 0; margin-bottom: 12px; }
.content-cta p { margin-bottom: 20px; }

.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin-top: 24px;
}

/* Blog meta */
.blog-meta { display: flex; gap: 20px; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 12px; }

/* Table of Contents */
.toc {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 32px; margin: 32px 0;
}
.toc h3 { margin-top: 0; font-size: 1rem; margin-bottom: 12px; }
.toc ol { margin-bottom: 0; }
.toc a { font-size: 0.95rem; }
