/*
  The UBSI Group Modern Mortgage Theme
  ------------------------------------
  - Extends Bootstrap 5 carousel and marketing example styling
  - Provides consistent spacing once fixed-top navbar is in use
  - Adds helper utilities for featurettes and hero slides
*/

:root {
  --ubsi-navy: #0d1b40; /* Primary deep blue */
  --ubsi-royal: #2b5dff; /* Accent royal blue */
  --ubsi-sky: #4f8bff;  /* Secondary accent */
  --ubsi-light: #f4f7ff; /* Page background */
  --ubsi-muted: #5f6c82; /* Muted copy color */
}

body {
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  padding-top: 3.5rem; /* Offset the fixed-top navbar */
  background: linear-gradient(180deg, #02091c 0%, var(--ubsi-navy) 45%, #010512 100%);
  color: var(--ubsi-navy);
  background-color: var(--ubsi-royal); /* bright royal blue */
}

main {
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -1.5rem 3rem rgba(0, 0, 0, 0.18);
  padding-bottom: 4rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  color: var(--ubsi-navy);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Removed custom navbar overrides because global Bootstrap styles already handle horizontal layout */

.navbar.bg-dark {
  background: linear-gradient(90deg, var(--ubsi-navy), #020b24) !important;
}

.carousel-item {
  height: 34rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  color: #ffffff;
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 10, 30, 0.78), rgba(43, 93, 255, 0.45));
}


.carousel-item .caption-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 255, 0.95));
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(13, 27, 64, 0.12);
  box-shadow: 0 1.5rem 3rem rgba(2, 9, 28, 0.22);
  color: var(--ubsi-navy);
}
.carousel-item .caption-box h1,
.carousel-item .caption-box p,
.carousel-item .caption-box .lead {
  color: var(--ubsi-navy);
}

.carousel-item .caption-box h1,
.carousel-item .caption-box p,
.carousel-item .caption-box .lead {
  color: var(--ubsi-navy);
}

.carousel-item > .container {
  position: relative;
  z-index: 2;
}

/* legacy carousel styles retained for fallback sections */


.carousel-caption .btn {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.marketing .col-lg-4, .marketing .col-lg-3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.marketing h2 {
  font-weight: 600;
  color: var(--ubsi-navy);
}

.marketing p {
  color: var(--ubsi-muted);
}

.divider {
  margin: 5rem 0;
}

.featurette-divider {
  margin: 5rem 0;
}

.featurette-heading {
  font-weight: 600;
  letter-spacing: -0.05rem;
  color: var(--ubsi-navy);
}

.featurette .lead {
  color: var(--ubsi-muted);
}

.btn-advisor {
  background: linear-gradient(135deg, var(--ubsi-royal), var(--ubsi-sky));
  border: none;
  color: #ffffff;
  box-shadow: 0 1rem 2.5rem rgba(43, 93, 255, 0.3);
}

.btn-advisor:hover,
.btn-advisor:focus {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ubsi-sky), var(--ubsi-royal));
}

.btn-secondary {
  background-color: rgba(13, 27, 64, 0.08);
  border-color: transparent;
  color: var(--ubsi-royal);
}

.btn-secondary:hover {
  background-color: rgba(13, 27, 64, 0.15);
  color: var(--ubsi-navy);
}

.checkout-container {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgba(12, 23, 46, 0.08);
  padding: 2.5rem;
}

.checkout-summary {
  background-color: rgba(43, 93, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ubsi-royal);
  box-shadow: 0 0 0 0.25rem rgba(43, 93, 255, 0.25);
}
.contact-highlight,
.card.shadow-soft {
  border-radius: 1.5rem;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(43, 93, 255, 0.15);
  color: var(--ubsi-royal);
  margin: 0 auto 1rem;
  font-size: 1.75rem;
}

footer h5 {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ubsi-navy);
}

footer .nav-link {
  color: var(--ubsi-muted) !important;
}

footer .nav-link:hover {
  color: var(--ubsi-royal) !important;
}

.marketing {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: 0 1.5rem 3rem rgba(13, 27, 64, 0.12);
}

.marketing .row + .featurette-divider {
  margin-top: 4rem;
}

.ubsi-footer {
  background: linear-gradient(135deg, #010a1e, var(--ubsi-navy));
  color: rgba(255, 255, 255, 0.85);
  border-top: 6px solid #c82f2f; /* UBS red accent */
}

.ubsi-footer h5,
.ubsi-footer h6 {
  color: #ffffff;
  letter-spacing: 0.08em;
}

.ubsi-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.ubsi-footer a:hover {
  color: #ffffff;
}

.ubsi-footer p,
.ubsi-footer small {
  color: rgba(255, 255, 255, 0.85);
}

.ubsi-footer small a {
  color: rgba(255, 255, 255, 0.75);
}

.ubsi-footer small a:hover {
  color: #ffffff;
}

.ubsi-footer .newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
}

.ubsi-footer .newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-hero {
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.94), rgba(79, 139, 255, 0.82));
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/personal-advisor-hero-2.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  mix-blend-mode: screen;
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-highlight {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-highlight address,
.contact-highlight p {
  color: rgba(255, 255, 255, 0.9);
}

#contactForm .card {
  border-radius: 1.5rem;
}

#contactForm .form-control,
#contactForm .form-select {
  background-color: rgba(255, 255, 255, 0.95);
}

#contactForm .form-control:focus,
#contactForm .form-select:focus {
  border-color: var(--ubsi-royal);
  box-shadow: 0 0 0 0.25rem rgba(43, 93, 255, 0.2);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(43, 93, 255, 0.15);
  color: var(--ubsi-royal);
  font-size: 1.35rem;
}

.card.shadow-soft {
  border-radius: 1.5rem;
}

.ubsi-contact-form .form-label {
  font-weight: 600;
}

.ubsi-footer .btn.btn-ubsi-accent {
    background-color: #e67e22 !important;
    color: #000000 !important;
    border-color: #e67e22 !important;
}

footer .btn.btn-ubsi-accent,
.ubsi-footer .btn.btn-ubsi-accent {
    background-color: #e67e22 !important;
    color: #000000 !important;
    border-color: #e67e22 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

footer .btn.btn-ubsi-accent:hover,
.ubsi-footer .btn.btn-ubsi-accent:hover {
    background-color: #d35400 !important;
    color: #000000 !important;
    border-color: #d35400 !important;
}

.lead-services li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(17, 36, 66, 0.08);
}

.lead-services li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.lead-services a.btn-link {
  font-weight: 600;
}

.map-wrapper iframe {
  border-radius: 0.75rem;
  border: 0;
}

.module {
  padding: 4rem 0;
}

.advisor-hero {
  background: linear-gradient(135deg, rgba(13, 27, 64, 0.04), rgba(79, 139, 255, 0.08)); /* Provide subtle gradient backdrop for hero */
}

.advisor-hero .badge {
  letter-spacing: 0.08em; /* Improve legibility for badge text */
}

.advisor-hero-card {
  background: #ffffff; /* Anchor hero checklist on bright surface */
  border-radius: 1.25rem; /* Match rounded motif across site */
  box-shadow: 0 1.25rem 2.75rem rgba(12, 23, 46, 0.12); /* Add depth to hero card */
  border: 1px solid rgba(13, 27, 64, 0.08); /* Tie into muted navy palette */
}

.shadow-soft {
  box-shadow: 0 1.5rem 3.5rem rgba(12, 23, 46, 0.14); /* Shared soft shadow utility */
  border: 1px solid rgba(13, 27, 64, 0.06); /* Subtle border for definition */
  border-radius: 1rem; /* Ensure consistent rounding */
}

.testimonial-card,
.faq-card {
  background: rgba(13, 27, 64, 0.18); /* Provide translucent panel on dark module */
  border-radius: 1.25rem; /* Align with hero card curvature */
  border: 1px solid rgba(255, 255, 255, 0.25); /* Maintain contrast on dark sections */
  padding: 2rem; /* Offer breathing room for copy */
  backdrop-filter: blur(4px); /* Deliver frosted-glass aesthetic */
}

.faq-card ul {
  list-style: none; /* Remove default bullets in FAQ list */
  padding-left: 0; /* Reset padding for flex layout */
}

.faq-card li::before {
  content: ""; /* Placeholder to align text without markers */
}

.btn-personal {
  background: linear-gradient(135deg, var(--ubsi-royal), var(--ubsi-sky)); /* Reuse advisor gradient for CTA */
  color: #ffffff; /* Maintain WCAG contrast */
  border: none; /* Keep gradient uninterrupted */
  box-shadow: 0 1rem 2.5rem rgba(43, 93, 255, 0.28); /* Add hover-lift style baseline */
}

.btn-personal:hover,
.btn-personal:focus {
  color: #ffffff; /* Avoid color shift on hover */
  background: linear-gradient(135deg, var(--ubsi-sky), var(--ubsi-royal)); /* Reverse gradient for interaction */
}

.partner-logos img {
  filter: grayscale(0.15); /* Ensure partner logos feel cohesive */
  opacity: 0.9; /* Subdue brightness for secondary elements */
}

.partner-logos img:hover {
  filter: grayscale(0); /* Restore full color on interaction */
  opacity: 1; /* Highlight hovered logo */
}

.badge.bg-ubsi-accent {
  background-color: rgba(43, 93, 255, 0.16); /* Provide light accent background */
  color: var(--ubsi-royal); /* Tie badge text to brand palette */
}

.timeline-step {
  display: flex; /* Align index and copy */
  gap: 1rem; /* Space numeric badge from description */
  align-items: flex-start; /* Keep copy aligned with badge top */
}

.timeline-index {
  width: 40px; /* Create consistent numeric badge */
  height: 40px; /* Keep badge square */
  border-radius: 999px; /* Make badge circular */
  background: rgba(255, 255, 255, 0.25); /* Contrasting overlay for numbers */
  display: grid; /* Center number within badge */
  place-items: center; /* Align number perfectly */
  color: #ffffff; /* Ensure high contrast */
  font-weight: 700; /* Highlight step numbering */
}

.timeline-step + .timeline-step {
  margin-top: 1.5rem; /* Separate sequential steps */
}

.module-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.96));
}


.module-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  color: #ffffff;
}

.module-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 10, 30, 0.82), rgba(43, 93, 255, 0.6));
}

.module-image .container {
  position: relative;
  z-index: 2;
}

.module-surface {
  background: #ffffff;
}

.module-dark {
  background: linear-gradient(135deg, var(--ubsi-navy), #020b24);
  color: #ffffff;
}

.glass-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  color: #ffffff;
}

.glass-card .timeline-index {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.text-ubsi-accent {
  color: var(--ubsi-royal) !important;
}

.icon-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0;
}

.icon-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .carousel-item {
    height: 28rem;
  }
  .carousel-item .caption-box {
    padding: 1.75rem;
  }
}

