/* ============================================
   Circle Care Assurance — Photo-Driven Components
   Image heroes, split sections, photo cards
   ============================================ */

/* --- Nav logo swap (white over hero, color on scrolled white nav) --- */
.nav__logo .logo-color {
  display: none;
}

.nav--scrolled .nav__logo .logo-color {
  display: block;
}

.nav--scrolled .nav__logo .logo-white {
  display: none;
}

/* --- Image Hero --- */
.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--image .hero__overlay {
  background: linear-gradient(100deg,
    rgba(10, 46, 92, 0.92) 0%,
    rgba(10, 46, 92, 0.78) 38%,
    rgba(10, 46, 92, 0.45) 68%,
    rgba(10, 46, 92, 0.25) 100%);
}

.hero--image .hero__pattern {
  display: none;
}

/* Shorter hero for inner pages */
.hero--page {
  min-height: 64vh;
  padding-top: 120px;
  padding-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .hero--page {
    min-height: 56vh;
  }
}

/* --- Split Sections (image + content) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split__image {
  position: relative;
}

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

.split__image--tall img {
  aspect-ratio: 3 / 4;
}

/* gold corner accent */
.split__image::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  bottom: -18px;
  right: -18px;
  z-index: -1;
}

.split--reverse .split__image::after {
  right: auto;
  left: -18px;
}

.split--reverse .split__image {
  order: 2;
}

.split--reverse .split__content {
  order: 1;
}

.split__content .section-subtitle {
  margin-bottom: var(--space-md);
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .split--reverse .split__image,
  .split--reverse .split__content {
    order: unset;
  }

  .split__image::after {
    display: none;
  }
}

/* --- Check List --- */
.check-list {
  margin-top: var(--space-md);
}

.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: var(--space-sm);
  color: var(--dark-gray);
  line-height: 1.6;
}

.check-list li strong {
  color: var(--navy);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 131, 143, 0.1);
}

.check-list li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.section--navy .check-list li {
  color: rgba(255, 255, 255, 0.85);
}

.section--navy .check-list li strong {
  color: var(--white);
}

/* --- Photo Cards --- */
.photo-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.3);
}

.photo-card__img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.photo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-card:hover .photo-card__img img {
  transform: scale(1.05);
}

.photo-card__body {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.photo-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.photo-card__text {
  color: var(--medium-gray);
  font-size: var(--text-base);
  line-height: 1.7;
  flex: 1;
}

.photo-card .card__link {
  margin-top: var(--space-md);
}

/* --- Flagship Feature (Health Advisory on home) --- */
.flagship {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.flagship__image {
  min-height: 420px;
}

.flagship__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flagship__content {
  padding: var(--space-3xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flagship__content .section-label {
  color: var(--gold);
}

.flagship__content h3 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.flagship__content p {
  color: rgba(255, 255, 255, 0.8);
}

.flagship__content .check-list li {
  color: rgba(255, 255, 255, 0.85);
}

.flagship__content .check-list li strong {
  color: var(--white);
}

.flagship__content .check-list li::before {
  background: rgba(38, 198, 218, 0.15);
}

.flagship__content .check-list li::after {
  border-color: var(--aqua);
}

.flagship__actions {
  margin-top: var(--space-lg);
}

@media (max-width: 880px) {
  .flagship {
    grid-template-columns: 1fr;
  }

  .flagship__image {
    min-height: 260px;
  }

  .flagship__content {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* White cards keep dark text even inside navy sections */
.section--navy .card .card__title {
  color: var(--navy);
}

.section--navy .card .card__text,
.section--navy .card p {
  color: var(--medium-gray);
}

/* --- Tagline Band --- */
.tagline-band {
  background: var(--off-white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.tagline-band__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-3xl);
  color: var(--navy);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
}

.tagline-band__quote .text-gold {
  font-style: normal;
}

/* --- SLA Table --- */
.sla-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sla-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
}

.sla-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--warm-gray);
  color: var(--dark-gray);
}

.sla-table tr:last-child td {
  border-bottom: none;
}

.sla-table td:last-child {
  color: var(--teal);
  font-weight: 600;
}

/* --- Network Section Headers --- */
.network-tier {
  margin-bottom: var(--space-2xl);
}

.network-tier__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.network-tier__subtitle {
  color: var(--medium-gray);
  margin-bottom: var(--space-lg);
}

/* --- Dual Entity Cards --- */
.entity-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.entity-card--gold {
  border-top-color: var(--gold);
}

.entity-card__flag {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.entity-card__name {
  font-size: var(--text-xl);
  margin-bottom: 2px;
}

.entity-card__role {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: var(--space-md);
}

.entity-card--gold .entity-card__role {
  color: var(--gold);
}

/* --- Wide photo banner with caption card --- */
.photo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.photo-banner img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.photo-banner__caption {
  position: absolute;
  left: var(--space-xl);
  bottom: var(--space-xl);
  background: rgba(10, 46, 92, 0.88);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  max-width: 480px;
  border-left: 3px solid var(--gold);
}

.photo-banner__caption h4 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.photo-banner__caption p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .photo-banner img {
    height: 320px;
  }

  .photo-banner__caption {
    position: static;
    max-width: none;
    border-radius: 0;
  }
}
