*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #1f2933;
  background-color: #f7fafc;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: 800px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-light-gray);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

.logo-text {
  line-height: 1.1;
}

.logo-primary {
  font-weight: 600;
  font-size: 1rem;
}

.logo-sub {
  font-size: .75rem;
  color: var(--color-gray);
}

.header-partner {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.gadson-header-logo {
  height: 70px;
  width: auto;
  opacity: 0.85;
  object-fit: contain;
}

@media(max-width: 720px) {
  .gadson-header-logo {
    height: 28px;
  }
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.4rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-size: .95rem;
  color: var(--color-black);
  transition: opacity .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 0.6;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-light-gray);
  border-radius: 50%;
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-black);
}

/* HERO */

.hero {
  /* position: relative; */
  padding: 6rem 0 5rem 0;
  /* background: url('/public/images/hero-image.jpg') center/cover no-repeat; */
  /* color: #ffffff; */
}

/* .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.70);
  z-index: 1;
} */

.hero-grid, .hero-content {
  position: relative;
  z-index: 2;
}

/* .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
} */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--color-gray);
  margin-bottom: .4rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  color: var(--color-gray);
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legacy-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  margin-right: 15px;
}

.hero-content h1,
.hero-content p,
.hero-content .eyebrow {
  color: #1f2937; /* dark gray */
}

.hero-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-legacy-logo {
  width: 260px;       /* Adjust size here */
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;        /* Polished look */
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.15));
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo-wrapper {
    margin-top: 1.5rem;
  }

  .hero-legacy-logo {
    width: 180px;
    opacity: 1;
  }
}

/* =====================================
   NEW HERO WITH BACKGROUND IMAGE
   ===================================== */

.hero-bg {
  position: relative;
  padding: 7rem 0 7rem 0;
  background-image: url("/public/images/ai-hero-image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40); /* subtle dark overlay for luxury contrast */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-bg h1 {
  color: white;
}

.hero-bg .eyebrow {
  color: #ffffffcc;
}

.hero-bg .hero-subtitle {
  color: #efefef;
}

.hero-bg .btn {
  background: white;
  color: black;
  border: none;
}

.hero-bg .btn-ghost {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.hero-bg .btn-ghost:hover {
  background: white;
  color: black;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: #AE8400;
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(174, 132, 0, 0.30);
}

.btn-primary:hover {
  background: #8C6900;
  box-shadow: 0 10px 20px rgba(174, 132, 0, 0.35);
}

.btn-outline {
  background: #ffffff;
  color: #AE8400;
  border-color: #AE8400;
}

/* .btn-outline:hover {
  background: #ecfdf3;
} */

.btn-outline:hover {
  background: rgba(174, 132, 0, 0.10);
  border-color: #AE8400;
  color: #AE8400;
}

/* HERO SIDE CARD */

.lender-card {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(174, 132, 0, 0.1);
  padding: 1.5rem;
}

.lender-logo-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.gadson-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.lender-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.lender-photo {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  object-fit: cover;
}

.lender-info h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.lender-info p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: #4b5563;
}

.lender-info .nmls {
  font-size: 0.75rem;
  color: #6b7280;
}

/* SECTIONS */

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

/* ABOUT */

.about p {
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.6;
}

/* SERVICES */

.services {
  background: #ffffff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #f9fafb;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(174, 132, 0, 0.06);
  display: flex;
  flex-direction: column;
}

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

.bg-blur {
  filter: blur(2px) saturate(95%);
}

.service-card h3 {
  margin: 1rem 1.1rem 0.3rem;
  font-size: 1rem;
}

.service-card p {
  margin: 0 1.1rem 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* VALUE */

.value {
  background: #f3f4f6;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.value-item {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 10px 25px rgba(174, 132, 0, 0.04);
}

.value-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.value-item p {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
}

/* PROCESS */

.process {
  background: #ffffff;
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.process-steps li {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(174, 132, 0, 0.04);
}

.process-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.process-steps p {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.process-cta {
  text-align: center;
  margin-top: 2rem;
}

/* REVIEWS */

.reviews {
  background: #f3f4f6;
}

.reviews-list {
  min-height: 80px;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(174, 132, 0, 0.05);
}

.reviews-list .loading {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.reviews-footer {
  text-align: center;
  margin-top: 1.5rem;
}

/* CONTACT */

.contact {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-info h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.contact-info p {
  margin: 0 0 1rem;
  color: #4b5563;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.contact-details li {
  margin-bottom: 0.7rem;
}

.contact-details a {
  color: #AE8400;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form-card {
  background: #f9fafb;
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(174, 132, 0, 0.04);
}

.contact-form-card h3 {
  margin: 0 0 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.form-field input,
.form-field textarea {
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #AE8400;
  box-shadow: 0 0 0 1px #AE840030;
}

.hidden {
  display: none;
}

.meet-loran {
  background: #ffffff;
  padding: 4rem 0;
}

.meet-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  align-items: center;
}

.meet-photo {
  width: 100%;
  max-width: 330px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.meet-content h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.meet-content p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #4b5563;
}

.meet-content .nmls {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 1rem;
}

@media (max-width: 820px) {
  .meet-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .meet-photo {
    margin: 0 auto;
  }
}

/* SOCIALS */

.social-icon {
  width: 36px;   /* normal size */
  height: 36px;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.social-icon:hover {
  opacity: 0.6;
}

.meet-social-icons {
  margin-top: 20px;
  display: flex;
  gap: 20px; /* spacing between icons */
}

.meet-social-icons a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.meet-social-icons svg {
  width: 24px;
  height: 24px;
  transition: 0.25s ease;
}

.meet-social-icons a:hover svg {
  opacity: 0.6;
}


.meet-social-icons a {
  text-decoration: none !important;
}

@media (max-width: 720px) {
  .social-icons {
    display: none; /* optional: hide on mobile to save space */
  }
}

/* DISCLAIMER */

.legal-disclaimer {
  background: #f3f4f6;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.legal-disclaimer p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #4b5563;
}

.legal-disclaimer strong {
  color: #111827;
}

.general-disclaimer {
  background: #f9fafb;
  padding: 1.75rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.general-disclaimer p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #4b5563;
}

.disclaimer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.disclaimer-links a {
  text-decoration: none;
  color: #AE8400;
  font-weight: 600;
}

.disclaimer-links a:hover {
  text-decoration: underline;
}

/* FOOTER */

.site-footer {
  background: #04050b;
  color: #e5e7eb;
  padding: 2rem 0 2rem;
  position: relative;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  background: #AE8400;
}

.footer-brand .brand-sub {
  color: #9ca3af;
}

.footer-compliance {
  text-align: right;
}

.ehl-logo {
  height: 28px;
  display: inline-block;
  margin-bottom: 0.3rem;
}

.small-text {
  font-size: 0.75rem;
  color: #9ca3af;
}

.footer-bottom {
  border-top: 1px solid #111827;
  padding-top: 1.5rem;
}

.footer-bottom p {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: #a5b4fc;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-logos {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.4rem;
}

.ehl-logo,
.eho-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* makes them white for dark footer */
  opacity: 0.9;
}

.ehl-logo:hover,
.eho-logo:hover {
  opacity: 1;
}

/* =============================
   AI CHAT WIDGET
   ============================= */
#ai-chat-button {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: black;
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: 0.2s ease;
}

#ai-chat-button:hover {
  transform: scale(1.1);
}

#ai-chat-widget {
  position: fixed;
  bottom: 94px;
  right: 28px;
  width: 330px;
  height: 430px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 99999;
}

.chat-header {
  background: black;
  color: white;
  padding: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.chat-header button {
  background: none;
  border: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

.chat-messages {
  padding: 14px;
  height: 310px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.chat-input-box {
  display: flex;
  border-top: 1px solid #ddd;
}

#chat-input {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 0.9rem;
}

#chat-send {
  background: black;
  color: white;
  border: none;
  padding: 0 18px;
  cursor: pointer;
}

.message {
  margin-bottom: 12px;
  line-height: 1.4;
}

.message.user {
  text-align: right;
  font-weight: 600;
}

.message.ai {
  text-align: left;
  opacity: 0.85;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lender-main {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-compliance {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    inset: 70px 0 auto 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding-top: 3rem;
  }

  .card-grid,
  .value-grid,
  .process-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
