/* Michigan Diagnostics Center — Site Styles */
/* Brand Colors: Blue #0693e3 | Green #2ecc71 | Dark #2c3e50 */

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

:root {
  --blue: #0693e3;
  --blue-dark: #0576c0;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --dark: #2c3e50;
  --text: #333;
  --light-bg: #f8f9fa;
  --border: #e0e0e0;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.14);
  --radius: 8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
h1,h2,h3,h4 { font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; color: var(--dark); line-height: 1.25; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: #666; max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: all var(--transition); border: none; text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* Top Bar */
.top-bar {
  background: var(--dark); color: var(--white); padding: 8px 0;
  font-size: 0.88rem; font-weight: 600;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--white); }
.top-bar a:hover { color: var(--green); }
.top-bar-left { display: flex; align-items: center; gap: 20px; }

/* Header */
.site-header {
  background: var(--white); padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; }
.logo img { height: 54px; width: auto; }

/* Navigation */
nav { display: flex; align-items: center; gap: 4px; }
.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-menu li a { padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; color: var(--dark); display: block; transition: all var(--transition); }
.nav-menu li a:hover { background: var(--light-bg); color: var(--blue); }
.nav-menu li.active a { color: var(--blue); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: 0.75rem; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 220px; padding: 8px 0; z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { padding: 10px 20px; display: block; color: var(--dark); font-size: 0.9rem; border-radius: 0; }
.dropdown a:hover { background: var(--light-bg); color: var(--blue); }
.nav-cta { margin-left: 12px; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: all var(--transition); border-radius: 2px; }

/* Hero Slider */
.hero { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform 0.6s ease; }
.slide {
  min-width: 100%; height: 560px; position: relative;
  background: var(--dark) center/cover no-repeat;
  display: flex; align-items: center;
}
.slide::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.slide-content { position: relative; z-index: 2; padding: 0 24px; max-width: 1140px; margin: 0 auto; width: 100%; }
.slide-content h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.slide-content p { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin-bottom: 28px; max-width: 560px; }
.slider-nav { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: background var(--transition); }
.slider-dot.active { background: var(--green); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.5); color: var(--white); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; font-size: 1.1rem; transition: all var(--transition); }
.slider-arrow:hover { background: var(--blue); border-color: var(--blue); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow);
  transition: all var(--transition); border-top: 3px solid var(--blue);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-top-color: var(--green); }
.service-card .icon { font-size: 2.4rem; margin-bottom: 16px; }
.service-card h3 { color: var(--dark); margin-bottom: 12px; }
.service-card p { color: #666; font-size: 0.92rem; margin-bottom: 20px; }
.service-card a { color: var(--blue); font-weight: 700; font-size: 0.9rem; }

/* Why Choose Us */
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.reason-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.reason-icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.2rem; }
.reason-item h4 { color: var(--dark); margin-bottom: 4px; font-size: 0.95rem; }
.reason-item p { color: #666; font-size: 0.88rem; margin: 0; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); padding: 72px 0; text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.9); max-width: 540px; margin: 0 auto 32px; }
.cta-phone { font-size: 2rem; font-weight: 800; color: var(--white); display: block; margin-bottom: 24px; }
.cta-phone:hover { color: var(--green); }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-image img { width: 100%; height: 380px; object-fit: cover; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: #555; }

/* Page Header */
.page-header { background: linear-gradient(135deg, var(--dark) 0%, #34495e 100%); color: var(--white); padding: 60px 0; }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.breadcrumb a { color: var(--green); }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { margin-bottom: 20px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail .ci-icon { width: 42px; height: 42px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.contact-detail h4 { margin-bottom: 2px; font-size: 0.95rem; color: var(--dark); }
.contact-detail p, .contact-detail a { color: #555; font-size: 0.95rem; margin: 0; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.9rem; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit; transition: border-color var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6,147,227,0.1); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 14px; border-radius: var(--radius); margin-top: 16px; display: none; }
.form-error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 14px; border-radius: var(--radius); margin-top: 16px; display: none; }

/* Content Page (articles/FAQ/location) */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.content-body h2 { margin-top: 32px; margin-bottom: 14px; }
.content-body h3 { margin-top: 24px; margin-bottom: 10px; color: var(--blue); }
.content-body ul, .content-body ol { padding-left: 24px; margin-bottom: 1rem; }
.content-body li { margin-bottom: 8px; }
.sidebar .sidebar-box { background: var(--light-bg); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; border-left: 4px solid var(--green); }
.sidebar .sidebar-box h4 { margin-bottom: 14px; color: var(--dark); }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo img { height: 48px; margin-bottom: 16px; }
.footer-about p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); margin-bottom: 18px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--green); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--green); }
.footer-phone { font-size: 1.1rem; font-weight: 700; color: var(--white) !important; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.82rem; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .slide { height: 420px; }
  .slide-content h1 { font-size: 1.9rem; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 16px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: none; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-phone { font-size: 1.5rem; }
  .slider-arrow { display: none; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
}
