/* ==========================================
   Midwest Home Companion - Static CSS
   Pure CSS - No JavaScript Required
   ========================================== */

/* ==========================================
   Self-Hosted Fonts
   ========================================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
   
/* CSS Variables */
:root {
  --color-primary: #007BA7;
  --color-primary-hover: #006285;
  --color-primary-light: #e0f2f7;
  --color-green: #16a34a;
  --color-green-light: #dcfce7;
  --color-background: #fffbf7;
  --color-white: #ffffff;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-red: #ef4444;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Inter', Georgia, 'Times New Roman', serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-slate-800);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-slate-800);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 56rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 167, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
}

.btn-full {
  width: 100%;
}

.icon {
  flex-shrink: 0;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* ==========================================
   Header
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-white);
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--color-slate-600);
  transition: color 0.2s;
  padding: 0.5rem;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-cta {
  margin-left: 0.5rem;
}

.mobile-cta {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  
  .mobile-cta {
    display: none;
  }
  
  .logo-text {
    display: block;
  }
}

@media (max-width: 767px) {
  .logo-text {
    display: none;
  }
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  padding: 7rem 0 3rem;
  background-color: var(--color-background);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  order: 2;
}

.hero-title {
  font-size: 2.5rem;
  margin: 1.5rem 0 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-slate-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-image {
  order: 1;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* ==========================================
   Section Styles
   ========================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-slate-600);
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

/* ==========================================
   Services Section
   ========================================== */
.services {
  padding: 4rem 0;
  background-color: var(--color-white);
}

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

.service-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-slate-100);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.04);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.08);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon-teal {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.service-icon-green {
  background-color: var(--color-green-light);
  color: var(--color-green);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate-500);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--color-slate-600);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-slate-600);
}

.service-features li::before {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23007BA7' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  margin-top: 2px;
}

.service-features-green li::before {
  background-color: var(--color-green-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.service-ideal {
  background-color: rgba(0, 123, 167, 0.05);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-slate-600);
}

.service-ideal-green {
  background-color: rgba(22, 163, 74, 0.05);
}

@media (min-width: 768px) {
  .services {
    padding: 6rem 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .service-card {
    padding: 2.5rem;
  }
}

/* ==========================================
   Why Us Section
   ========================================== */
.why-us {
  padding: 5rem 0;
  background-color: var(--color-background);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: 1rem;
  border: 1px solid var(--color-slate-100);
  transition: box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--color-slate-600);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-us {
    padding: 8rem 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--color-white);
}

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

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-description {
  color: var(--color-slate-600);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .step::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 60%;
    width: 80%;
    height: 2px;
    background-color: var(--color-primary-light);
  }
  
  .step:last-child::after {
    display: none;
  }
}

@media (min-width: 1024px) {
  .how-it-works {
    padding: 8rem 0;
  }
}

/* ==========================================
   Contact Form Section
   ========================================== */
.contact-section {
  padding: 5rem 0;
  background-color: var(--color-slate-50);
}

.contact-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-slate-100);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--color-slate-600);
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  margin-top: 1.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-700);
  margin-bottom: 0.5rem;
}

.required {
  color: var(--color-red);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius);
  background-color: var(--color-white);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 167, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-slate-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.contact-form .btn {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 3rem;
  }
  
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-section {
    padding: 8rem 0;
  }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background-color: var(--color-slate-900);
  color: white;
  padding: 4rem 0;
}

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

.footer-col {
  text-align: left;
}

.footer-col-center {
  display: flex;
  justify-content: flex-start;
}

.footer-col-end {
  display: flex;
  justify-content: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
}

.footer-description {
  color: var(--color-slate-400);
  line-height: 1.7;
}

.footer-description strong {
  color: white;
}

.footer-heading {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--color-slate-400);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: white;
}

.footer-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-slate-400);
  transition: color 0.2s;
}

.footer-contact-item:hover {
  color: white;
}

.footer-contact-item .icon {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-slate-800);
  text-align: center;
  color: var(--color-slate-500);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-col-center {
    justify-content: center;
  }
  
  .footer-col-end {
    justify-content: flex-end;
  }
}

/* ==========================================
   Floating CTA
   ========================================== */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 123, 167, 0.4);
  z-index: 40;
  transition: all 0.2s ease;
}

.floating-cta:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .floating-cta {
    display: none;
  }
}

/* ==========================================
   Utilities
   ========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print Styles */
@media print {
  .header,
  .floating-cta,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    background: white;
  }
  
  .hero,
  .services,
  .why-us,
  .how-it-works,
  .contact-section {
    padding: 1rem 0;
  }
}

/* ==========================================
   Carousel (Scroll Snap + Controls)
   ========================================== */

.photo-carousel { margin-top: 2rem; }

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--color-slate-100);
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-slide {
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track { scrollbar-width: none; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255,255,255,0.40);
  color: var(--color-slate-700);
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-btn:hover { background: rgba(255,255,255,0.95); }
.carousel-btn:active { transform: translateY(-50%) scale(0.98); }

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  border: 0;
  background: rgba(255,255,255,0.65);
  cursor: pointer;
}

.carousel-dot.active {
  background: rgba(255,255,255,0.95);
}

@media (max-width: 768px) {
  .carousel-slide img { height: 300px; }
  .carousel-btn { width: 40px; height: 40px; }
}

.who-we-help {
  padding: 5rem 0;
  background-color: var(--color-background);
}

.trust-section {
  padding: 3rem 0;
  background-color: var(--color-white);
}

.trust-box {
  background: #f2f8fb;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.trust-box h3 {
  margin-bottom: 1rem;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-slate-700);
}