/* ===================================
   Header - Two Tier Structure
   =================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Top Bar (Gold) */
.top-bar {
  background-color: var(--color-gold);
  padding: var(--spacing-sm) 0;
  color: var(--color-white);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.top-bar-left>div {
  display: flex;
  align-items: center;
}

/* Top bar logo - 75px height (more specific to override icon styles) */
.top-bar-left .top-bar-logo,
.top-bar-left .custom-logo,
.top-bar-left .custom-logo-link img {
  height: 50px !important;
  width: auto;
  max-height: 75px;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Icons are now in top-bar-left */

.top-bar-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-white);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  transition: var(--transition-base);
}

.contact-item a:hover {
  transform: scale(1.1);
}

.contact-item img,
.contact-item svg {
  height: 25px;
  width: auto;
}

.contact-icon {
  width: 35px;
  height: 35px;
  display: inline-block;
}

/* ===================================
   Navigation Header (White)
   =================================== */
.navbar {
  background-color: var(--color-white);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* WordPress menu container */
.navbar-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* WordPress menu - Clean horizontal layout */
.navbar-nav ul,
.navbar-nav .nav-menu,
#menu-primary-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* Menu items */
.navbar-nav li,
.navbar-nav .menu-item {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Logo in navbar - vertically align with menu items */
.navbar-nav .top-bar-logo {
  height: 70px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

/* Menu links */
.navbar-nav a {
  color: var(--color-text-gray);
  font-weight: 700;
  font-style: italic;
  padding: var(--spacing-xs) 1rem;
  transition: var(--transition-base);
  font-size: var(--font-size-nav);
  text-decoration: none;
  display: inline-block;
  position: relative;
  vertical-align: middle;
}

/* Menu link hover and active states */
.navbar-nav a:hover {
  color: var(--color-gold);
}

.navbar-nav .current-menu-item>a,
.navbar-nav .current_page_item>a,
.navbar-nav a.active {
  color: var(--color-gold);
  font-weight: 700;
}

/* Add subtle underline animation on hover */
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav a:hover::after,
.navbar-nav .current-menu-item>a::after,
.navbar-nav .current_page_item>a::after {
  width: 80%;
  left: 10%;
}

/* Mobile menu toggle button */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-gray);
  font-weight: 700;
  position: absolute;
  left: var(--spacing-md);
  transition: var(--transition-base);
}

.navbar-toggle:hover {
  color: var(--color-gold);
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-style: italic;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  font-size: var(--font-size-button);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}

.btn:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
}

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

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-text-gray);
}

.btn-white:hover {
  background-color: var(--color-white);
  color: var(--color-text-gray);
  opacity: 0.9;
}

.btn-teal {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.btn-teal:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
  opacity: 0.9;
}

.btn-small {
  padding: 10px 24px;
  font-size: 15px;
}

.btn-large {
  padding: 18px 48px;
  font-size: 16px;
  border-radius: 50px;
}

/* ===================================
   Cards
   =================================== */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  transition: var(--transition-base);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  /*background-color: var(--color-gold);*/
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 2rem;
}

/* Constrain images and SVGs within icon container */
.card-icon img,
.card-icon svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card-title {
  font-size: var(--font-size-h4);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-dark);
}

.card-text {
  color: var(--color-text-medium);
  margin-bottom: var(--spacing-md);
}

.card-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===================================
   Hero Sections
   =================================== */
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: left;
  background-color: var(--color-navy);
  background-image: url('../assets/images/986a02ef7a32e0e9ca8df2ea1aebee38.avif');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: var(--color-white);
  padding: var(--spacing-xxl) var(--spacing-md);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-navy);
  opacity: 0.85;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--spacing-md);

}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
  line-height: 1.1;
  text-align: left;
}

.hero-subtitle {
  font-size: var(--font-size-subtitle);
  margin-bottom: var(--spacing-lg);
  color: var(--color-white);
  font-weight: 600;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: var(--font-size-headline);
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.section-subtitle {
  font-size: var(--font-size-body);
  color: var(--color-text-gray);
  max-width: 800px;
  margin: 0 auto;
}

/* Section titles on dark backgrounds */
.bg-teal .section-title,
.bg-navy .section-title {
  color: var(--color-white);
}

.bg-teal .section-subtitle,
.bg-navy .section-subtitle {
  color: var(--color-white);
  opacity: 0.9;
}

.section-divider {
  width: 100px;
  height: 4px;
  background-color: var(--color-gold);
  margin: var(--spacing-md) auto;
  border-radius: var(--radius-sm);
}

#mortgage-title {
  gap: 9rem;
}

/* ===================================
   Service Grid
   =================================== */
.service-card {
  text-align: center;
  padding: var(--spacing-md);
}

.service-card .card-icon {
  margin: 0 auto var(--spacing-md);
  /* background removed - icons will show without circle background */
}

/* ===================================
   Wave Divider
   =================================== */
.wave-divider {
  position: relative;
  width: 100%;
  height: 60px;
  margin: var(--spacing-lg) 0;
  overflow: hidden;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

/* ===================================
   Price Badge
   =================================== */
.price-badge {
  display: inline-block;
  background-color: var(--color-white);
  border: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.price-badge-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.price-badge-text {
  font-size: 0.875rem;
  color: var(--color-text-medium);
  margin-top: var(--spacing-xs);
}

/* ===================================
   Process Steps
   =================================== */
.process-steps {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.process-step {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
}

.process-step-number {
  width: 60px;
  height: 60px;
  background-color: var(--color-gold);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-sm);
}

.process-step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.process-step-text {
  color: var(--color-text-medium);
}

/* ===================================
   Forms
   =================================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-text-dark);
}

.form-label .required {
  color: var(--color-gold);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-family-primary);
  transition: var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-dark-green);
  box-shadow: 0 0 0 3px rgba(45, 95, 93, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text-medium);
}

.form-error {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  display: none;
}

.form-group.error .form-control {
  border-color: #d32f2f;
}

.form-group.error .form-error {
  display: block;
}

/* Range Slider Styling */
input[type=range] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 10px 0;
}

input[type=range]:focus {
  outline: none;
}

/* Slider Track */
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--color-light-gray);
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--color-light-gray);
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Slider Thumb */
input[type=range]::-webkit-slider-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -9px;
  /* Centers thumb on track */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

input[type=range]::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border: none;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: var(--color-teal);
}

input[type=range]::-moz-range-thumb:hover {
  transform: scale(1.1);
  background: var(--color-teal);
}

/* ===================================
   Advisory Card
   =================================== */
.advisory-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--color-gold);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advisory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.advisory-card-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.advisory-features li {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.advisory-features li:last-child {
  margin-bottom: 0;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: var(--color-white);
  opacity: 0.9;
}

.footer-section a:hover {
  color: var(--color-gold);
  opacity: 1;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition-base);
}

.social-link:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  opacity: 0.8;
  font-size: 0.875rem;
}

/* ===================================
   Mortgage Section
   =================================== */
.mortgage-main-image {
  width: 100%;
  border-radius: 25px;
  margin-bottom: 2rem;
}

.mortgage-interior-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.mortgage-caption-box {
  background-color: white;
  border-radius: 50px;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.mortgage-caption-box p {
  margin: 0;
  color: var(--color-text-gray);
  font-size: 1.125rem;
}

.mortgage-info-box {
  background-color: white;
  border-radius: 50px;
  padding: 2rem 3rem;
  box-shadow: var(--shadow-md);
  display: inline-block;
  max-width: 950px;
}

.mortgage-info-box p {
  margin: 0;
  color: var(--color-text-gray);
  font-size: 1.125rem;
}

#fcg-img {
  display: flex;
}

#mortgage-mai {
  flex-direction: row;
  gap: 2rem;
}

.speech-bubble-teal {
  background-color: var(--color-teal);
  color: white;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  text-align: center;
  min-height: auto;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 1.125rem;
}

.speech-bubble-teal p {
  margin: 0;
}

.mortgage-features-list {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.mortgage-features-list li {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--color-text-gray);
  line-height: 1.6;
}

.text-green {
  color: #4CAF50;
  font-weight: 700;
}

.wave-gold {
  margin: 0 0 var(--spacing-xl) 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.wave-gold svg {
  width: 100%;
  max-height: 100px;
  display: block;
}