/* page-home.css — homepage-only styles */
/* Scoped under .page-template-page-home to prevent bleed */

/* ── Hero ─────────────────────────────────────────────────────── */

.page-template-page-home .home-hero {
  position: relative;
  width: 100%;
  height: 520px;
  background-size: cover;
  background-position: center;
  background-color: #5b9fa0; /* fallback teal if no image */
  overflow: visible;
}

.page-template-page-home .hero-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: fit-content;
  max-width: 90%;
  background: #B25E22;
  border-radius: 36px;
  padding: 48px 50px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.page-template-page-home .hero-card h1 {
  color: #fff;
  font-size: 3.875rem; /* 62px */
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.page-template-page-home .hero-divider {
  display: block;
  width: 72px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  margin: 20px auto;
}

.page-template-page-home .hero-card h1 sup {
  font-size: 0.4em;
  vertical-align: super;
  line-height: 0;
  position: relative;
  top: -0.3em;
}

.page-template-page-home .hero-card p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Video Section ───────────────────────────────────────────── */

.page-template-page-home .home-video {
  background: #fff;
  padding-bottom: 80px;
}

.page-template-page-home .home-video__inner {
  width: 76%;
  max-width: 1100px;
  margin: 0 auto;
}

.page-template-page-home .video-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.page-template-page-home .video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}

.page-template-page-home .video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #d2d3d5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-template-page-home .video-placeholder span {
  color: #6d6e71;
  font-size: 1rem;
}

.page-template-page-home .video-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.page-template-page-home .video-controls__left,
.page-template-page-home .video-controls__right {
  display: flex;
  gap: 8px;
  pointer-events: all;
}

.page-template-page-home .video-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 150ms ease;
}

.page-template-page-home .video-btn:hover {
  background: rgba(0, 0, 0, 0.72);
}

.page-template-page-home .video-btn svg {
  display: block;
  flex-shrink: 0;
}

.page-template-page-home .video-caption {
  text-align: right;
  color: #6d6e71;
  font-size: 0.875rem;
  margin-top: 12px;
}

/* ── Card entrance animation ─────────────────────────────────── */

.page-template-page-home .icon-card,
.page-template-page-home .image-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.page-template-page-home .icon-card.card--visible,
.page-template-page-home .image-card.card--visible {
  opacity: 1;
  transform: translateY(0);
}

.page-template-page-home .icon-card:nth-child(1),
.page-template-page-home .image-card:nth-child(1) { transition-delay: 0s; }
.page-template-page-home .icon-card:nth-child(2),
.page-template-page-home .image-card:nth-child(2) { transition-delay: 0.1s; }
.page-template-page-home .icon-card:nth-child(3),
.page-template-page-home .image-card:nth-child(3) { transition-delay: 0.2s; }
.page-template-page-home .icon-card:nth-child(4)  { transition-delay: 0.3s; }

/* ── Icon Cards ──────────────────────────────────────────────── */

.page-template-page-home .home-icon-cards {
  background: #fff;
  padding: 0 0 80px;
}

.page-template-page-home .home-icon-cards__wrap {
  width: 76%;
  max-width: 1100px;
  margin: 0 auto;
}

.page-template-page-home .icon-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.page-template-page-home .icon-card {
  background: #007668;
  border-radius: 16px;
  padding: 56px 32px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-template-page-home .icon-card img {
  display: block;
  width: 140px;
  height: auto;
  margin-bottom: 36px;
}

.page-template-page-home .icon-card h3 {
  color: #fff;
  font-family: Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 36px;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
  vertical-align: middle;
  margin-bottom: 16px;
}

.page-template-page-home .icon-card p {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ── First Content Section ────────────────────────────────────── */

.page-template-page-home .home-content {
  background: #fff;
  text-align: center;
  padding-top: 200px;
  padding-bottom: 80px;
}

.page-template-page-home .home-content__inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-template-page-home .home-content h2 {
  color: #007668;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-template-page-home .home-content p {
  color: #6d6e71;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Simple section ──────────────────────────────────────────── */

.page-template-page-home .home-simple {
  position: relative;
  z-index: 0;
  background-color: #1c1f1f;
  padding: 100px 0 460px;
}

.page-template-page-home .home-simple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background-image: url('https://meditracusdev.wpenginepowered.com/wp-content/uploads/2026/04/3da407d604a0949f75ef3eb6c2bc3b0bc632ea59-scaled.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: -2;
}

.page-template-page-home .home-simple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top left, rgba(0, 0, 0, 0.85) 0%, rgba(60, 60, 60, 0.25) 100%);
  z-index: -1;
}

.page-template-page-home .home-simple__inner {
  width: 76%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: center;
  gap: 48px;
}

.page-template-page-home .home-simple__text h2 {
  color: #00AF94;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.page-template-page-home .home-simple__text p {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.page-template-page-home .home-simple .btn-outline {
  display: inline-block;
  padding: 11px 28px;
  border: 2px solid #00AF94;
  border-radius: 50px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.page-template-page-home .home-simple .btn-outline:hover {
  background: #00AF94;
  border-color: #00AF94;
  color: #fff;
}

.page-template-page-home .home-simple__map img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Image cards ─────────────────────────────────────────────── */

.page-template-page-home .home-image-cards {
  background: linear-gradient(to bottom, transparent 320px, #B25E22 320px);
  padding: 0 0 100px;
  margin-top: -360px; /* overlap dark section — cards stay fixed, bg extends into body */
  position: relative;
  z-index: 1;
}

.page-template-page-home .image-cards-container {
  width: 76%;
  max-width: 1100px;
  margin: 0 auto;
}

.page-template-page-home .image-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.page-template-page-home .image-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.page-template-page-home a.image-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.page-template-page-home a.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.page-template-page-home .image-card__photo {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.page-template-page-home .image-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-template-page-home .image-card__body {
  padding: 28px 32px 36px;
  flex: 1;
}

.page-template-page-home .image-card__body h3 {
  color: #007668;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.page-template-page-home .image-card__divider {
  display: block;
  width: 90px;
  height: 2px;
  background: #00AF94;
  margin-bottom: 20px;
}

.page-template-page-home .image-card__body p {
  color: #3a3a3a;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Tablet Responsive ───────────────────────────────────────── */

@media (max-width: 1024px) {
  .page-template-page-home .icon-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {

  /* Hero */
  .page-template-page-home .home-hero {
    height: 340px;
  }

  .page-template-page-home .hero-card {
    width: 88%;
    padding: 32px 28px;
  }

  .page-template-page-home .hero-card h1 {
    font-size: 1.75rem;
  }

  /* Content */
  .page-template-page-home .home-content {
    padding-top: 160px;
    padding-bottom: 60px;
  }

  .page-template-page-home .home-content__inner {
    padding: 0 24px;
  }

  /* Video */
  .page-template-page-home .home-video {
    padding-bottom: 48px;
  }

  .page-template-page-home .home-video__inner {
    width: 90%;
  }

  /* Icon Cards */
  .page-template-page-home .home-icon-cards {
    padding-bottom: 48px;
    margin-bottom: -90px;
    position: relative;
    /* no z-index — keeps stacking context open so .icon-card can escape */
  }

  .page-template-page-home .home-icon-cards__wrap {
    width: 90%;
  }

  .page-template-page-home .icon-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-template-page-home .icon-card {
    padding: 36px 20px 28px;
    position: relative;
    z-index: 2;
  }

  .page-template-page-home .icon-card img {
    width: 90px;
    margin-bottom: 20px;
  }

  .page-template-page-home .icon-card h3 {
    font-size: 1.15rem;
  }

  /* Simple Section */
  .page-template-page-home .home-simple {
    padding: 150px 0 80px;
    z-index: 1;
  }

  .page-template-page-home .home-simple::before {
    width: 100%;
    height: 100%;
    background-position: top center;
  }

  .page-template-page-home .home-simple::after {
    background: linear-gradient(to bottom,
      rgba(28, 31, 31, 0.2) 0%,
      rgba(28, 31, 31, 0.7) 60%,
      #1c1f1f 100%
    );
  }

  .page-template-page-home .home-simple__inner {
    width: 88%;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-template-page-home .home-simple__map {
    display: none;
  }

  .page-template-page-home .home-simple__text {
    text-align: center;
  }

  .page-template-page-home .home-simple__text h2 {
    font-size: 2.2rem;
  }

  .page-template-page-home .home-simple__text p {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Image Cards */
  .page-template-page-home .home-image-cards {
    margin-top: 0;
    background: linear-gradient(to bottom, #1c1f1f 75%, #B25E22 75%);
    padding-bottom: 72px;
  }

  .page-template-page-home .image-cards-container {
    width: 90%;
  }

  .page-template-page-home .image-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {

  /* Hero */
  .page-template-page-home .home-hero {
    height: 280px;
  }

  .page-template-page-home .hero-card {
    padding: 28px 20px;
  }

  .page-template-page-home .hero-card h1 {
    font-size: 1.5rem;
  }

  /* Content */
  .page-template-page-home .home-content {
    padding-top: 136px;
  }

  /* Icon Cards */
  .page-template-page-home .icon-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Simple Section */
  .page-template-page-home .home-simple {
    padding: 150px 0 80px;
  }

  .page-template-page-home .home-simple__text h2 {
    font-size: 1.85rem;
  }

  /* Image Cards */
  .page-template-page-home .home-image-cards {
    margin-top: 0;
  }
}
