/* Florida Restoration Specialists - SEO Optimized Website
   Keywords focus: Water Damage Lakeland, Water Extraction, Leak Detection, Restoration */

:root {
  /* Logo-matched theme: Blue / Red / Yellow / Fire */
  --primary: #0055cc;          /* Florida blue */
  --primary-dark: #003399;     /* deeper blue */
  --secondary: #ffcc00;        /* Specialists yellow/gold */
  --accent: #e30613;           /* Restoration red */
  --accent-hover: #b80510;
  --light: #f8fafc;
  --dark: #111111;
  --gray: #4a5568;
  --white: #ffffff;
  --success: #16a34a;
  --fire: #ff6b00;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--secondary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

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

.btn-large {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

.btn-call {
  background: var(--success);
  color: white;
  font-size: 1.25rem;
  padding: 1rem 2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

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

.header-top {
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.header-top a {
  color: var(--white);
  font-weight: 600;
}

.header-top a:hover {
  color: var(--secondary);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 60px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo img {
    height: 48px;
    max-width: 200px;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--dark);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #003399 0%, #0055cc 45%, #e30613 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-content .highlight {
  color: #7dd3fc;
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-feature svg {
  width: 20px;
  height: 20px;
  fill: var(--success);
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.hero-card h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.hero-card .phone {
  font-size: 1.75rem;
  font-weight: 800;
  color: #7dd3fc;
  margin: 1rem 0;
}

.hero-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

/* Trust Bar */
.trust-bar {
  background: var(--light);
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.trust-items {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trust-item strong {
  font-size: 1.5rem;
  color: var(--primary);
}

.trust-item span {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  font-size: 1.1rem;
}

.section-alt {
  background: var(--light);
}

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

.service-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.service-card h3 {
  color: var(--primary-dark);
}

.service-card p {
  flex-grow: 1;
  font-size: 0.95rem;
}

.service-card a {
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card a:hover {
  color: var(--accent);
}

/* Why Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-item {
  text-align: center;
  padding: 1.5rem;
}

.why-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  background: white;
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  position: relative;
  border-top: 4px solid var(--secondary);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -1.25rem;
  left: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), #c0392b);
  color: white;
  padding: 3.5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.95);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Service Areas */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.area-tag {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  transition: all 0.2s;
}

.area-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer p, .footer a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--secondary);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: white;
}

/* Content */
.content-section {
  padding: 3.5rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.content-main h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-main ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
  color: var(--gray);
}

.content-main ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.sidebar-card {
  background: var(--light);
  border-radius: 1rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.sidebar-card h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.sidebar-card .phone-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin: 0.75rem 0;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
  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(30, 144, 255, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-card {
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 1rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-cta {
    display: inline-flex;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .header-top .container {
    justify-content: center;
    text-align: center;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Sticky Call Button - always visible */
.sticky-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #e30613;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 3px solid #ffcc00;
  transition: all 0.2s ease;
  animation: pulse-call 2s infinite;
}

.sticky-call:hover {
  background: #b80510;
  transform: scale(1.05);
  color: #fff;
}

@keyframes pulse-call {
  0%, 100% { box-shadow: 0 6px 20px rgba(227, 6, 19, 0.45); }
  50% { box-shadow: 0 6px 30px rgba(227, 6, 19, 0.7), 0 0 0 10px rgba(255, 204, 0, 0.2); }
}

@media (max-width: 600px) {
  .sticky-call {
    bottom: 12px;
    right: 12px;
    left: 12px;
    justify-content: center;
    font-size: 1.15rem;
    padding: 16px;
  }
}

/* ===== Flame Mascot AI Chat ===== */
.mascot-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 80px;
  height: 80px;
  z-index: 9998;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  transition: transform 0.2s;
  animation: mascot-bounce 3s ease-in-out infinite;
}
.mascot-btn:hover {
  transform: scale(1.1);
}
.mascot-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}
@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.chat-panel {
  position: fixed;
  bottom: 180px;
  right: 20px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 420px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid #ffcc00;
}
.chat-panel.open {
  display: flex;
}
.chat-header {
  background: linear-gradient(135deg, #e30613, #ff6b00);
  color: white;
  padding: 12px 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
  font-size: 0.95rem;
}
.chat-msg {
  margin-bottom: 12px;
  max-width: 85%;
}
.chat-msg.bot {
  background: white;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.chat-msg.user {
  background: #0055cc;
  color: white;
  padding: 10px 14px;
  border-radius: 12px 12px 4px 12px;
  margin-left: auto;
}
.chat-input-area {
  display: flex;
  border-top: 1px solid #e2e8f0;
  padding: 10px;
  background: white;
}
.chat-input-area input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.95rem;
  outline: none;
}
.chat-input-area button {
  background: #e30613;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 600px) {
  .mascot-btn {
    bottom: 80px;
    right: 12px;
    width: 70px;
    height: 70px;
  }
  .chat-panel {
    bottom: 160px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
