/* 1. Universal responsive reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
}

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

/* 2. Page Container */
.seo-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 3. Hero & Action Buttons */
.seo-hero-copy h1 br {
  display: none; /* Disables awkward breaks on mobile */
}

@media (min-width: 768px) {
  .seo-hero-copy h1 br {
    display: inline; /* Restores breaks on desktop */
  }
}

.seo-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 600px) {
  .seo-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* 4. Stats Band (4 items) */
.seo-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 16px;
}

@media (min-width: 900px) {
  .seo-stats {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  }
}

/* 5. Intro Section */
.seo-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .seo-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
  }
}

/* 6. Cards Grid */
.seo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

@media (min-width: 1024px) {
  .seo-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 7. Image + Copy Alternating Sections */
.seo-section-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .seo-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }

  .seo-section-grid.reverse .seo-photo {
    order: 2; /* Keeps alternating layout on desktop */
  }
}

/* 8. Text Feature Band */
.seo-band .seo-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  text-align: center;
}

/* 9. Gallery */
.seo-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .seo-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 10. FAQ Accordions */
.seo-faq details {
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.seo-faq summary {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
  line-height: 1.4;
}