/* Marion Disaster Restoration - Main Stylesheet */
:root {
  --primary: #1B4F5A;
  --accent: #C45C2E;
  --bg: #F5F9F9;
  --text: #1A1A1A;
  --white: #FFFFFF;
  --light-gray: #E5E5E5;
  --dark-gray: #666666;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header { background: var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-top { background: #143c45; padding: 8px 0; font-size: 14px; color: var(--white); }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.header-top a { color: var(--white); }
.header-top a:hover { color: var(--accent); }
.header-main { padding: 15px 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 55px; width: auto; max-width: 280px; object-fit: contain; }
.footer-col img[alt*="logo" i], .footer-col img[alt*="Logo" i] { height: 45px; width: auto; max-width: 220px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { color: var(--white); font-weight: 500; padding: 8px 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 250px; box-shadow: 0 5px 20px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; border-radius: 4px; overflow: hidden; }
.nav-links .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 12px 20px; color: var(--text); border-bottom: 1px solid var(--light-gray); }
.dropdown-menu a:hover { background: var(--bg); color: var(--accent); }
.dropdown-menu a::after { display: none; }

.cta-phone { background: var(--accent); color: var(--white) !important; padding: 12px 24px; border-radius: 50px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: background 0.3s, transform 0.3s; }
.cta-phone:hover { background: #a34a24; transform: scale(1.05); color: var(--white) !important; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.mobile-toggle span { display: block; width: 25px; height: 3px; background: var(--white); margin: 5px 0; transition: 0.3s; }

.hero { position: relative; min-height: 600px; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,79,90,0.92) 0%, rgba(27,79,90,0.75) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 700px; color: var(--white); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.25rem; margin-bottom: 30px; opacity: 0.95; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #a34a24; transform: translateY(-2px); color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary); }

.trust-bar { background: var(--white); padding: 30px 0; border-bottom: 1px solid var(--light-gray); }
.trust-items { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--primary); }
.trust-item svg { width: 32px; height: 32px; fill: var(--accent); }

.section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--primary); color: var(--white); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--primary); margin-bottom: 15px; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--dark-gray); font-size: 1.1rem; }
.section-dark .section-header p { color: rgba(255,255,255,0.8); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card-content { padding: 25px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary); }
.service-card p { color: var(--dark-gray); margin-bottom: 15px; font-size: 0.95rem; }
.service-card .btn { padding: 10px 20px; font-size: 0.9rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { border-radius: 8px; overflow: hidden; }
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-content h2 { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.about-content p { margin-bottom: 15px; color: var(--dark-gray); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat { text-align: center; padding: 20px; background: var(--bg); border-radius: 8px; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.9rem; color: var(--dark-gray); }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.testimonial-stars { color: #FFC107; margin-bottom: 15px; font-size: 1.25rem; }
.testimonial p { font-style: italic; margin-bottom: 20px; color: var(--dark-gray); }
.testimonial-author { font-weight: 600; color: var(--primary); }

.cta-section { background: linear-gradient(135deg, var(--accent) 0%, #8a3d1a 100%); padding: 80px 0; text-align: center; color: var(--white); }
.cta-section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 15px; }
.cta-section p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.95; }
.cta-section .btn-secondary { border-color: var(--white); color: var(--white); }
.cta-section .btn-secondary:hover { background: var(--white); color: var(--accent); }

.footer { background: var(--primary); color: var(--white); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.8); transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,0.8); }
.footer-contact svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

.page-header { background: var(--primary); padding: 80px 0; text-align: center; color: var(--white); }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 15px; }
.page-header p { font-size: 1.1rem; opacity: 0.9; }
.breadcrumb { margin-top: 20px; font-size: 0.9rem; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.6); }

.content-section { padding: 60px 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.content-main h2 { font-size: 1.75rem; color: var(--primary); margin: 40px 0 20px; }
.content-main h2:first-child { margin-top: 0; }
.content-main p { margin-bottom: 15px; color: var(--dark-gray); }
.content-main ul, .content-main ol { margin: 15px 0 15px 25px; color: var(--dark-gray); }
.content-main li { margin-bottom: 8px; }

.sidebar-card { background: var(--white); padding: 25px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); margin-bottom: 25px; }
.sidebar-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 10px; }
.sidebar-card a { color: var(--dark-gray); }
.sidebar-card a:hover { color: var(--accent); }
.emergency-card { background: var(--accent); color: var(--white); text-align: center; }
.emergency-card h3 { color: var(--white); border-color: rgba(255,255,255,0.3); }
.emergency-card p { margin-bottom: 15px; }
.emergency-card a { color: var(--white); font-size: 1.5rem; font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--light-gray); border-radius: 4px; font-size: 1rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); margin-bottom: 15px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.faq-question { width: 100%; padding: 20px 25px; background: none; border: none; text-align: left; font-size: 1.1rem; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.faq-question:hover { background: var(--bg); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 25px 20px; color: var(--dark-gray); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; counter-reset: step; }
.step { background: var(--white); padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.step::before { counter-increment: step; content: counter(step); width: 50px; height: 50px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 20px; }
.step h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 10px; }
.step p { color: var(--dark-gray); font-size: 0.95rem; }

.map-container { border-radius: 8px; overflow: hidden; height: 400px; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 992px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); padding: 20px; gap: 0; }
  .nav-links.active a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0,0,0,0.1); }
  .dropdown-menu a { color: var(--white); border-color: rgba(255,255,255,0.1); }
  .about-grid, .contact-grid, .content-grid { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .about-img img { height: 300px; }
}

@media (max-width: 768px) {
  .header-top .container { justify-content: center; text-align: center; }
  .hero { min-height: 500px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .trust-items { gap: 25px; }
  .trust-item { font-size: 0.9rem; }
  .section { padding: 60px 0; }
  .about-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .cta-phone { padding: 10px 16px; font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
