/* Michigan GEO - Main Stylesheet
 * (c) 1997-2026 AppWT Web & AI Solutions (AppWT LLC)
 * Brand Colors: Forest #1B4332, Gold #F4A261, Platinum #F8F9FA, Obsidian #0D2818
 */

:root {
  --forest: #1B4332;
  --gold: #F4A261;
  --platinum: #F8F9FA;
  --obsidian: #0D2818;
  --white: #FFFFFF;
  --gray-light: #E9ECEF;
  --gray: #6C757D;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: var(--platinum);
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold);
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}

/* Header */
header {
  background: var(--forest);
  color: var(--white);
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  color: var(--white);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--gold);
}

.mobile-toggle {
  display: none;
  background: var(--gold);
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 4px;
  min-width: 48px;
  min-height: 48px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--obsidian) 0%, var(--forest) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: clamp(18px, 3vw, 24px);
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
  min-height: 48px;
}

.cta-button:hover {
  background: #E6935A;
  transform: translateY(-2px);
  color: var(--white);
}

/* Section Styles */
section {
  padding: 60px 0;
  overflow-x: hidden;
}

section:nth-child(even) {
  background: var(--white);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--forest);
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
}

.section-subtitle {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--forest);
  margin-bottom: 20px;
  font-weight: 600;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-number {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: var(--gray);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-title {
  font-size: 24px;
  color: var(--forest);
  margin-bottom: 15px;
  font-weight: 600;
}

.service-price {
  font-size: 32px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card ul {
  list-style: none;
  margin: 20px 0;
}

.service-card li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.service-card li:before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* FAQ Section */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-question {
  font-size: 20px;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 15px;
}

.faq-answer {
  color: #555;
  line-height: 1.7;
}

/* Content Blocks */
.content-block {
  background: var(--white);
  padding: 30px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid var(--gold);
}

.speakable {
  background: var(--gray-light);
  padding: 20px;
  margin: 20px 0;
  border-radius: 6px;
  border-left: 4px solid var(--forest);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 15px 0;
  font-size: 14px;
  color: var(--gray);
}

.breadcrumbs a {
  color: var(--forest);
}

.breadcrumbs span {
  margin: 0 8px;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--forest);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #DDD;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Contact Info */
.contact-info {
  background: var(--forest);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
  margin: 40px 0;
}

.contact-info h3 {
  color: var(--gold);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 18px;
}

.contact-info a {
  color: var(--gold);
}

/* Footer */
footer {
  background: var(--obsidian);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  section, .section, .container {
    max-width: 100vw;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6, p, li, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: var(--obsidian);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero {
    padding: 60px 0;
  }

  section {
    padding: 40px 0;
  }

  .stats-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .service-card,
  .stat-card,
  .faq-item {
    padding: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }
}
