/* ==========================================================================
   Care Bridge - components.css
   Reusable UI components: header, hero, wave, cards, footer
   Naming convention: BEM (.block__element--modifier)
   ========================================================================== */

/* ---- Header (fixed, glassmorphism over Hero) ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--hero-gutter);
  min-height: 96px;
}

.site-header__brand {
  display: flex;
  align-items: center;
}

.site-header__logo-mark {
  width: 150px;
  height: auto;
  display: block;
}

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

.nav__link {
  color: #0F3E7A;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--color-primary);
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  border-bottom-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-navy);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding-inline: 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.btn:hover,
.btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(0, 104, 183, 0.14);
}

.btn--primary:hover {
  background: var(--color-navy);
}

.btn--outline {
  background-color: var(--color-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: #EEF7FF;
}

/* ---- Cards ---- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
  height: 100%;
  transition: box-shadow var(--transition-base);
}

.card__title {
  color: var(--color-primary);
  font-size: 1.0625rem;
}

/* ---- Service cards ---- */
.service-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 30px 24px 26px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(7, 60, 120, 0.06);
  border-bottom: 3px solid var(--color-primary);
}

.service-card:hover {
  box-shadow: 0 8px 22px rgba(7, 60, 120, 0.1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: var(--color-primary);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.services__heading {
  text-align: center;
  margin-bottom: 36px;
}

.services__heading::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--color-primary);
}

/* ---- Stat tile (achievements) ---- */
.stat-tile {
  text-align: center;
}

.stat-tile__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto var(--space-2);
  color: var(--color-primary);
  display: block;
}

.stat-tile__unit {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.stat-tile__status {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-white);
}

.hero__visual {
  position: absolute;
  top: 0;
  right: 20px;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.98) 30%,
    rgba(255, 255, 255, 0.85) 46%,
    rgba(255, 255, 255, 0.25) 62%,
    rgba(255, 255, 255, 0) 75%
  );
}

/* ---- Hero variant: interior page title band (no photo) ---- */
.hero--page {
  min-height: 320px;
  background: linear-gradient(180deg, #ffffff 0%, #EAF5FD 100%);
}

.hero--page::before {
  display: none;
}

.hero > .container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--content-max-width);
  padding-inline: var(--hero-gutter);
  margin-inline: auto;
}

.hero__content {
  width: 52%;
  max-width: 680px;
  padding-top: 72px;
}

.hero__title {
  font-size: clamp(2.3rem, 3vw, 3.8rem);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  max-width: 680px;
  margin-bottom: 24px;
}

.hero__line {
  display: inline-block;
}

.hero__accent {
  display: inline-block;
  color: var(--color-green);
}

@media (min-width: 1024px) {
  .hero__line,
  .hero__accent {
    white-space: nowrap;
  }
}

.hero__lead {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--color-text);
  max-width: 540px;
  margin-bottom: 17px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- Wave (layered, overlapping Hero bottom edge into About) ---- */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 95px;
  z-index: 4;
  pointer-events: none;
}

.wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---- About ---- */
.about {
  padding-block: 64px 72px;
  background: linear-gradient(180deg, #ffffff 0%, #F8FBFD 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-4);
}

.about__content {
  max-width: 700px;
}

.about__content h2 {
  color: var(--color-primary);
}

.about__watermark {
  display: none;
}

/* ---- Split section (Achievements + News) ---- */
.split-card {
  height: 100%;
  min-height: 220px;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.news-card__more:hover {
  text-decoration: underline;
}

/* ---- Contact cards ---- */
.contact-card {
  height: 100%;
  min-height: 300px;
}

.contact-card__email {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  word-break: break-all;
}

/* ---- Badge / tag ---- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.badge--outline {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-block: var(--space-3);
}

.breadcrumb__link {
  color: var(--color-text-muted);
}

/* ---- FAQ (accordion) ---- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
}

.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item__answer {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  display: none;
}

.faq-item.is-open .faq-item__answer {
  display: block;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--gradient-brand);
  color: var(--color-white);
  padding-block: 60px;
  position: relative;
  overflow: hidden;
}

.site-footer a {
  color: var(--color-white);
}

.site-footer nav p {
  line-height: 2.1;
}

.site-footer__leaf {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 120px;
  height: auto;
  opacity: 0.1;
  pointer-events: none;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-4);
}

.site-footer__logo-mark {
  width: 130px;
  height: auto;
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: space-between;
}

.site-footer__copyright {
  margin-top: var(--space-5);
  font-size: 0.8125rem;
  opacity: 0.85;
}
