/* ========================================
   BBT HOME PAGE STYLES
   Home page specific styles only
   Layout styles are in assets/css/app-layout.css
   ======================================== */

/* ----------------------------------------
   HOME MOBILE GREETING (specific styling)
   ---------------------------------------- */

.home-mobile-greeting {
  display: flex;
  flex-direction: column;
}

.home-mobile-greeting-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bbt-text-white, #ffffff);
}

.home-mobile-greeting-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ----------------------------------------
   HOME MOBILE BADGES (specific styling)
   ---------------------------------------- */

.home-badge-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.5rem 0.75rem;
  background-color: var(--bbt-surface-white, #ffffff);
  border-radius: 50rem;
  color: var(--bbt-text-default, #004854);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  position: relative;
}

.home-badge-icon {
  display: flex;
  align-items: center;
  background-color: var(--bbt-primary-light, #007e93);
  color: white;
  padding: 8px;
  border-radius: 50%;
}

.home-badge-messages,
.home-badge-documents {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-badge-btn > svg {
  color: var(--bbt-primary-light, #00b4d2);
}

/* ----------------------------------------
   WELCOME SECTION
   ---------------------------------------- */

.home-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
}

.home-welcome-text {
  display: flex;
  flex-direction: column;
}

.home-welcome-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--bbt-text-default, #004854);
}

.home-welcome-sub {
  font-size: 1rem;
  color: var(--bbt-text-default, #575756);
  margin: 0.125rem 0 0;
}

.home-welcome-actions {
  display: flex;
  gap: 0.75rem;
}

.home-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px;
  background-color: var(--bbt-surface-white, #ffffff);
  border-radius: 20px;
  color: var(--bbt-primary, #007e93);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.home-action-btn:hover {
  background-color: var(--bbt-primary, #007e93);
  color: var(--bbt-text-white, #ffffff);
  text-decoration: none;
}

.home-action-btn:hover .badge-notification {
  background-color: var(--bbt-surface-white, #ffffff);
  color: var(--bbt-primary, #007e93);
}

.home-action-icon {
  display: flex;
  align-items: center;
  background-color: var(--bbt-primary, #007e93);
  color: white;
  padding: 8px;
  border-radius: 50%;
}

.home-action-icon .badge-notification {
  position: absolute;
  top: -6px;
  right: -6px;
}

/* ----------------------------------------
   SECTIONS
   ---------------------------------------- */

.home-section {
  margin-bottom: 1.5rem;
}

.home-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--bbt-text-default, #004854);
}

.home-section-title-accent {
  color: var(--bbt-primary, #007e93);
}

/* ----------------------------------------
   QUICK ACCESS GRID
   ---------------------------------------- */

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}

  .home-quick-grid .quick-access-item {
    border-radius: 0;
    padding: 1.25rem 0.75rem;
    background-color: #ffffff;
    border-right: 1px solid var(--bbt-neutral-100, #e7e7e6);
    border-bottom: 1px solid var(--bbt-neutral-100, #e7e7e6);
  }

.quick-access-item:hover {
  box-shadow: var(--bbt-shadow, 0 2px 4px rgba(0, 0, 0, 0.1));
  transform: translateY(-1px);
}

/* ----------------------------------------
   INSURANCE CARD
   ---------------------------------------- */

.home-carousel-track {
  position: relative;
}

.home-carousel-slide {
  display: none;
}

.home-carousel-slide.active {
  display: block;
}

.home-insurance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bbt-neutral-100, #e7e7e6);
}

.home-insurance-person {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.home-person-tag {
  display: inline-block;
  padding: 0;
  background-color: transparent;
  color: var(--bbt-text-default, #004854);
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.home-person-separator {
  color: var(--bbt-text-grey, #575756);
}

.home-person-date {
  color: var(--bbt-text-grey, #575756);
  font-size: 0.8125rem;
}

.home-insurance-details {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--bbt-primary, #007e93);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
}

.home-insurance-details:hover {
  text-decoration: underline;
}

.home-insurance-details-text {
  display: inline;
}

.home-insurance-provider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.home-info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  color: var(--bbt-text-grey, #575756);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
}

.home-info-btn:hover {
  color: var(--bbt-primary, #007e93);
}

.home-insurance-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ----------------------------------------
   DONUT CHART
   ---------------------------------------- */
.home-chart-wrapper {
  width: 50%;
  display: flex;
  justify-content: center;
}

.home-donut-chart {
  width: 250px;
  height: 250px;
}

.home-carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--bbt-primary, #007e93);
  border: 1px solid var(--bbt-primary, #007e93);
  border-radius: 50%;
  color: var(--bbt-text-white, #ffffff);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.home-carousel-prev {
  position: absolute;
  left: -20px;
  top: 50%;
  z-index: 1;
}

.home-carousel-next {
  position: absolute;
  right: -20px;
  top: 50%;
  z-index: 1;
}

.home-carousel-arrow:hover:not(.disabled) {
  background-color: var(--bbt-primary-300, #00b4d2);
  border-color: var(--bbt-primary-300, #00b4d2);
}

.home-carousel-arrow.disabled {
  background-color: var(--bbt-background, #f1f1f1);
  border-color: var(--bbt-neutral-200, #d1d1d1);
  color: var(--bbt-text-grey, #575756);
  cursor: default;
}

/* ----------------------------------------
   PREMIUM DETAILS
   ---------------------------------------- */

.home-insurance-details-panel {
  width: 50%;
}

.home-premium-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.home-premium-main {
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bbt-neutral-100, #e7e7e6);
}

.home-premium-main .home-premium-label {
  font-weight: 700;
  font-size: 1rem;
}

.home-premium-main .home-premium-currency {
  font-weight: 700;
  font-size: 1rem;
  color: var(--bbt-text-default, #004854);
}

.home-premium-main .home-premium-value {
  font-weight: 700;
  font-size: 1rem;
}

.home-premium-label {
  font-size: 0.75rem;
  color: var(--bbt-text-default, #004854);
}

.home-premium-currency {
  font-size: 0.75rem;
  color: var(--bbt-text-grey, #575756);
  margin-left: auto;
  margin-right: 1rem;
}

.home-premium-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bbt-text-default, #004854);
  text-align: right;
  min-width: 3.5rem;
}

.home-legend-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.home-legend-primary {
  background-color: var(--bbt-primary, #007e93);
}

.home-legend-secondary {
  background-color: var(--bbt-secondary, #3c646e);
}

/* ----------------------------------------
   CAROUSEL DOTS
   ---------------------------------------- */

.home-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 1rem 0;
}

.home-dot {
  width: 1.0rem;
  height: 1.0rem;
  border-radius: 50%;
  background-color: var(--bbt-text-grey, #575756);
  transition: background-color 0.2s;
}

.home-dot.active {
  background-color: var(--bbt-primary, #007e93);
}

/* ----------------------------------------
   TOPICS GRID
   ---------------------------------------- */

.home-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-topic-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bbt-surface-white, #ffffff);
  border-radius: 0.75rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
  overflow: hidden;
}

.home-topic-card:hover {
  box-shadow: var(--bbt-shadow, 0 2px 4px rgba(0, 0, 0, 0.1));
  text-decoration: none;
  color: inherit;
}

.home-topic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.home-topic-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.home-topic-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  color: var(--bbt-text-default, #004854);
}

.home-topic-count {
  font-size: 0.75rem;
  color: var(--bbt-text-grey, #575756);
}

.home-topic-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--bbt-icon-default, #004854);
  flex-shrink: 0;
}

.home-topic-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  min-height: 60px;
}

/* ----------------------------------------
   CONTACT SECTION (Desktop)
   ---------------------------------------- */

.home-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.home-contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bbt-surface-white, #ffffff);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.home-contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  border-radius: 50%;
  color: var(--bbt-text-default, #004854);
  flex-shrink: 0;
}

.home-contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.home-contact-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bbt-text-default, #004854);
}

.home-contact-card-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bbt-accent-600, #9a2a54);
  text-decoration: none;
}

.home-contact-card-phone:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   HOME CONTACT SECTION (Desktop only)
   ---------------------------------------- */

.home-contact-section {
  display: block;
}

/* ========================================
   RESPONSIVE: MOBILE (< 992px)
   ======================================== */

@media (max-width: 991.98px) {
  .home-welcome {
    display: none;
  }

  .home-quick-grid {
    gap: 1rem;
  }

  .home-quick-grid .quick-access-item {
    border-radius: 16px;
  }

  .home-insurance-content {
    flex-direction: column;
    gap: 1rem;
  }

  .home-chart-wrapper {
    width: 100%;
  }

  .home-insurance-details-panel {
    width: 100%;
  }

  .home-donut-chart {
    width: 220px;
    height: 220px;
  }

  /* Topics grid mobile */
  .home-topics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .home-topic-card {
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.75rem;
  }

  .home-topic-header {
    flex: 1;
    margin-bottom: 0;
  }

  .home-topic-illustration {
    width: 60px;
    height: 50px;
    flex-shrink: 0;
    padding: 0;
  }

  /* Coverage allocation mobile */
  .home-coverage-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .home-coverage-panel {
    margin-left: 0;
    width: 100%;
    gap: 0.75rem;
  }

  /* Hide desktop contact section on mobile */
  .home-contact-section {
    display: none !important;
  }
}

/* ========================================
   RESPONSIVE: SMALL MOBILE (< 576px)
   ======================================== */

@media (max-width: 575.98px) {
  .home-donut-chart {
    width: 180px;
    height: 180px;
  }
}