/* =============================================
   Detroit Bath Remodelers — Main Stylesheet
   Clean & Minimal | Blue/Teal + White/Light Gray
   ============================================= */

/* --- Variables --- */
:root {
  --primary: #1a6fb5;
  --primary-dark: #145a96;
  --primary-light: #e8f2fb;
  --teal: #0d9488;
  --teal-dark: #0b7a70;
  --dark: #1e293b;
  --gray-800: #334155;
  --gray-600: #475569;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --font-sans: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(26,111,181,0.10);
  --shadow-lg: 0 8px 32px rgba(26,111,181,0.15);
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--dark); background: var(--white); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-alt { background: var(--gray-100); }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Section Headers --- */
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
.section-title { margin-bottom: 1rem; }
.section-sub { color: var(--gray-600); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2.5rem; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }

/* --- Header / Nav --- */
#site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 1px 8px rgba(0,0,0,0.08); }
.header-top { background: var(--primary); color: var(--white); padding: 0.4rem 0; font-size: 0.88rem; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.header-top a { color: var(--white); }
.header-top a:hover { text-decoration: underline; }
.header-top-badges { display: flex; gap: 1.25rem; align-items: center; }
.badge-small { background: rgba(255,255,255,0.2); padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.78rem; }
nav.main-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.nav-logo { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a { padding: 0.5rem 0.85rem; border-radius: 6px; font-weight: 500; color: var(--gray-800); font-size: 0.95rem; transition: background var(--transition), color var(--transition); }
.nav-links a:hover, .nav-links a.active { background: var(--primary-light); color: var(--primary); }
.nav-cta { margin-left: 0.75rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: all var(--transition); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " ▾"; font-size: 0.7rem; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.5rem 0; z-index: 999; border: 1px solid var(--gray-200); }
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.6rem 1rem; color: var(--gray-800); font-size: 0.92rem; border-radius: 0; }
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, #0f3d6e 0%, #1a6fb5 50%, #0d9488 100%); color: var(--white); padding: 5rem 0 4rem; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 0.75rem; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: #7dd3fc; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 2rem; max-width: 500px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.trust-item i { color: #7dd3fc; }
.hero-card { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-lg); }
.hero-card h3 { color: var(--primary); margin-bottom: 1.25rem; text-align: center; }
.quote-form .form-group { margin-bottom: 1rem; }
.quote-form label { font-size: 0.88rem; font-weight: 600; color: var(--gray-600); display: block; margin-bottom: 0.3rem; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid var(--gray-200); border-radius: 6px; font-size: 0.95rem; font-family: var(--font-sans); background: var(--gray-100); color: var(--dark); transition: border-color var(--transition); }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--primary); background: var(--white); }
.quote-form .btn { width: 100%; justify-content: center; }

/* --- Stats Bar --- */
.stats-bar { background: var(--primary); color: var(--white); padding: 2rem 0; }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item .stat-number { font-size: 2rem; font-weight: 800; display: block; }
.stat-item .stat-label { font-size: 0.88rem; opacity: 0.85; }

/* --- Service Cards --- */
.service-card { background: var(--white); border-radius: 10px; padding: 2rem; border: 1.5px solid var(--gray-200); transition: all var(--transition); }
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.service-icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.service-icon i { font-size: 1.5rem; color: var(--primary); }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 1rem; }
.service-card .learn-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.service-card .learn-more:hover { gap: 0.5rem; }

/* --- Why Choose Us --- */
.why-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.why-icon { width: 44px; height: 44px; background: var(--teal); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-icon i { color: var(--white); font-size: 1.1rem; }
.why-item h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.why-item p { color: var(--gray-600); font-size: 0.92rem; margin: 0; }

/* --- Process Steps --- */
.process-step { text-align: center; padding: 1.5rem; position: relative; }
.step-number { width: 52px; height: 52px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; margin: 0 auto 1rem; }
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--gray-600); font-size: 0.92rem; }

/* --- Testimonials --- */
.testimonial-card { background: var(--white); border-radius: 10px; padding: 1.75rem; box-shadow: var(--shadow); border-left: 4px solid var(--teal); }
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-card p { color: var(--gray-800); font-size: 0.95rem; font-style: italic; margin-bottom: 1rem; }
.reviewer-name { font-weight: 700; color: var(--dark); font-size: 0.9rem; }
.reviewer-city { color: var(--gray-400); font-size: 0.85rem; }

/* --- Service Area Grid --- */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; }
.city-link { display: block; padding: 0.6rem 1rem; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 0.9rem; color: var(--gray-800); text-align: center; transition: all var(--transition); }
.city-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.county-section { margin-bottom: 3rem; }
.county-section h3 { color: var(--primary); margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light); }

/* --- CTA Banner --- */
.cta-banner { background: linear-gradient(135deg, #0f3d6e, #1a6fb5); color: var(--white); padding: 4rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.phone-big { font-size: 2rem; font-weight: 800; color: var(--white); display: block; margin-bottom: 0.5rem; }
.phone-big i { color: #7dd3fc; }

/* --- Blog Cards --- */
.blog-card { background: var(--white); border-radius: 10px; overflow: hidden; border: 1.5px solid var(--gray-200); transition: all var(--transition); }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card-img { background: linear-gradient(135deg, var(--primary-light), var(--gray-100)); height: 160px; display: flex; align-items: center; justify-content: center; }
.blog-card-img i { font-size: 2.5rem; color: var(--primary); }
.blog-card-body { padding: 1.25rem; }
.blog-meta { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0.75rem; }
.read-more { color: var(--primary); font-size: 0.88rem; font-weight: 600; }

/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { color: var(--primary); }
.contact-form-box { background: var(--white); border-radius: 12px; padding: 2.5rem; box-shadow: var(--shadow); }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--gray-600); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 0.7rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 6px; font-family: var(--font-sans); font-size: 0.95rem; background: var(--gray-100); transition: border-color var(--transition); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); background: var(--white); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- Service Area Detail Page --- */
.breadcrumb { font-size: 0.88rem; color: var(--gray-400); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }
.page-hero { background: linear-gradient(135deg, #0f3d6e 0%, #1a6fb5 100%); color: var(--white); padding: 3.5rem 0 2.5rem; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); }
.nearby-cities a { display: inline-block; padding: 0.35rem 0.75rem; margin: 0.25rem; background: var(--primary-light); border-radius: 20px; font-size: 0.85rem; color: var(--primary); }
.nearby-cities a:hover { background: var(--primary); color: var(--white); }
.service-list-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--gray-200); }
.service-list-item:last-child { border-bottom: none; }
.service-list-item i { color: var(--teal); font-size: 1.1rem; margin-top: 0.2rem; flex-shrink: 0; }
.checklist { list-style: none; }
.checklist li { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.95rem; color: var(--gray-800); }
.checklist li::before { content: "✓"; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* --- About Page --- */
.about-img-box { background: linear-gradient(135deg, var(--primary-light), var(--gray-100)); border-radius: 12px; height: 350px; display: flex; align-items: center; justify-content: center; }
.about-img-box i { font-size: 5rem; color: var(--primary); opacity: 0.4; }
.award-badge { background: var(--primary-light); border-radius: 10px; padding: 1.25rem; text-align: center; border: 1.5px solid var(--primary); }
.award-badge i { font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.award-badge h4 { font-size: 0.9rem; color: var(--primary); }

/* --- Footer --- */
footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-main { padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .nav-logo { color: var(--white); font-size: 1.2rem; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.75; }
.footer-brand .social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-links a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); transition: background var(--transition); }
.social-links a:hover { background: var(--primary); }
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.88rem; opacity: 0.75; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0; text-align: center; font-size: 0.83rem; opacity: 0.55; }

/* --- Breadcrumb --- */
.breadcrumbs-bar { background: var(--gray-100); padding: 0.75rem 0; border-bottom: 1px solid var(--gray-200); }
.breadcrumbs-bar .breadcrumb { margin: 0; font-size: 0.85rem; }

/* --- Blog Post / Service Detail --- */
.content-article { max-width: 800px; }
.content-article h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content-article p { color: var(--gray-800); }
.content-article ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.content-article ul li { margin-bottom: 0.4rem; color: var(--gray-800); }

/* --- Accordion / FAQ --- */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question { padding: 1.1rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--dark); }
.faq-question:hover { color: var(--primary); }
.faq-answer { padding: 0 0 1.1rem; color: var(--gray-600); font-size: 0.95rem; display: none; }
.faq-answer.open { display: block; }

/* --- Alert Boxes --- */
.alert-box { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.alert-info { background: var(--primary-light); border-left: 4px solid var(--primary); color: var(--primary-dark); }
.alert-success { background: #ecfdf5; border-left: 4px solid #10b981; color: #065f46; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem; box-shadow: var(--shadow-lg); border-top: 1px solid var(--gray-200); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .has-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .city-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  nav.main-nav { position: relative; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-top .container { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-btns { flex-direction: column; }
  .phone-big { font-size: 1.5rem; }
}
