/* =========================
   COLOR VARIABLES
========================= */
:root {
  --primary: #5b2eff;
  --secondary: #1b1f3b;
  --accent: #00aeef;
  --btn-hover: #007ea7;
  --light-bg: #f5f5f7;
  --dark-text: #1f2937;
  --muted-text: #6b7280;
  --highlight: #9333ea;
  --pending-status: #d97706;
  --main-purple: #9b27e8;
  --heading-color: var(--dark-text);
}

/* =========================
   BASE
========================= */
html,
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Poppins', 'Inter', sans-serif;
  background-color: #fff;
  color: var(--dark-text);
}

/* =========================
   NAVBAR + LOGO
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

/* Circle logo container */
.logo {
  width: 80px;
  height: 80px;
  border-radius: 70%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Logo image inside */
.logo img {
  width: 78%;
  height: auto;
}

/* Optional hover lift */
.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

/* Alignment inside navbar */
.navbar .logo {
  margin-top: 8px;
  margin-left: 10px;
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  overflow: hidden;
}

.nav-links li {
  position: relative;
}

.nav-links li::after {
  content: "|";
  color: #ccc;
  margin-left: 10px;
  font-size: 0.95rem;
}

.nav-links li:last-child::after {
  content: "";
}

.nav-links a {
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--highlight);
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  padding-top: 80px;
}

#bg-video,
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#bg-video {
  object-fit: cover;
  z-index: -2;
}

.overlay {
  background: rgba(0, 0, 0, 0.4);
}

/* Oval hero container */
.hero-oval-wrapper {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background: #fff;
}

.hero-oval {
  position: relative;
  width: 100vw;
  max-width: none;
  height: clamp(600px, 80vh, 850px);
  margin: 60px auto -40px auto;
  border-radius: 60% / 20%;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.7)
  );
  backdrop-filter: blur(10px);
  border: 2px solid rgba(161, 42, 252, 0.2);
  box-shadow: 0 20px 80px rgba(161, 42, 252, 0.25);
}

.hero-oval video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content,
.hero-content-inside-oval {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-content {
  top: 50%;
}

.hero-content-inside-oval {
  top: 55%;
}

.hero-content-inside-oval h1,
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #9333ea, #5b2eff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content-inside-oval p,
.hero-content p {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 500;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

/* Darken only the middle band of the hero, to make text pop */
.hero-oval::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  bottom: 20%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.45),
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* =========================
   PREMIUM SEARCH BAR
========================= */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.25);
  max-width: 550px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: #fff;
}

.search-bar input::placeholder {
  color: #f8f4ff;
  opacity: 1;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.search-bar button {
  padding: 14px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #9333ea, #5b2eff);
  color: #fff !important;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.search-bar button:hover {
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
  transform: translateY(-2px);
}

/* =========================
   SERVICES GRID
========================= */
.services-grid-section {
  padding: 80px 20px;
  background-color: #fff;
  color: var(--dark-text);
  text-align: center;
}

.section-title,
.services-grid-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--heading-color);
}

.loan-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.loan-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.6);
  animation: pulseBorder 2.5s infinite ease-in-out;
}

@keyframes pulseBorder {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.6);
  }
  50% {
    box-shadow: 0 0 15px 5px rgba(147, 51, 234, 0.5);
  }
}

.loan-card:hover {
  transform: translateY(-5px);
}

.loan-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.loan-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark-text);
}

.loan-card p {
  font-size: 0.95rem;
  color: #4b5563;
  flex: 1;
}

.btn-primary {
  margin-top: 20px;
  display: inline-block;
  background-color: var(--main-purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #9224e6;
}

/* =========================
   FEATURED PROPERTIES
========================= */
.featured-properties-section {
  padding: 80px 20px;
  background-color: var(--light-bg);
  text-align: center;
}

.featured-properties-section .section-title {
  color: var(--dark-text);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.property-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.property-card:hover {
  transform: translateY(-6px);
}

.property-image {
  position: relative;
}

.property-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.property-status {
  position: absolute;
  top: 12px;
  right: 0;
  background-color: var(--highlight);
  color: #fff;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  text-transform: uppercase;
}

.property-status.pending {
  background-color: var(--pending-status);
}

.property-info {
  padding: 20px;
  text-align: left;
}

.property-info h3 {
  font-size: 1.1rem;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.sub-address {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 6px;
}

.details {
  font-size: 0.9rem;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--main-purple);
}

/* =========================
   TEAM SECTION
========================= */
.team-section {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.team-section .section-title {
  font-size: 2.5rem;
  color: #1f2937;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 40px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Team card shared styles (grid + overlay style combined) */
.team-card {
  position: relative;
  display: block;
  width: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--main-purple);
  box-shadow: 0 0 10px rgba(161, 42, 252, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* Purple overlay for "Learn More" */
.team-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(120, 48, 192, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.team-card:hover .overlay {
  opacity: 1;
}

.team-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.team-info {
  background-color: var(--dark-text);
  color: #fff;
  padding: 16px;
  text-align: center;
}

.team-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.team-info p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #e5e7eb;
}

/* "View All" button under grid */
.view-all-button {
  margin-top: 30px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.btn-outline {
  display: inline-block;
  padding: 10px 30px;
  color: var(--highlight);
  border: 2px solid var(--highlight);
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  background-color: var(--highlight);
  color: #fff;
}

/* =========================
   GLOBAL TYPOGRAPHY & BUTTONS
========================= */
h1,
h2,
.section-title,
.logo-text {
  color: var(--main-purple);
}

.logo svg {
  fill: var(--main-purple);
}

button,
.button,
.search-button,
.learn-more-btn {
  background-color: var(--main-purple) !important;
  border: none;
  color: #fff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button:hover,
.search-button:hover,
.learn-more-btn:hover {
  background-color: #9224e6;
}

.card {
  border: 1px solid var(--main-purple);
  box-shadow: 0 0 10px var(--main-purple);
}

/* =========================
   TEAM SEARCH
========================= */
.team-search {
  margin-bottom: 2rem;
}

.team-search input {
  padding: 10px 20px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 16px;
}

/* =========================
   AGENT PROFILE
========================= */
.agent-search-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.agent-search-wrapper input {
  width: 300px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

.agent-profile {
  padding: 100px 20px 60px;
  background-color: var(--light-bg);
  color: var(--dark-text);
  font-family: 'Poppins', sans-serif;
}

.agent-profile .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Layout wrapper */
.agent-profile-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 20px;
}

/* Photo */
.agent-photo-container {
  flex: 0 0 auto;
  width: 400px;
  height: 450px;
  margin-right: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.agent-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Text block */
.agent-details-container {
  flex: 1;
}

.agent-details-container h1 {
  color: var(--main-purple);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.agent-details-container h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--main-purple);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.agent-details-container h3 {
  color: #555;
  margin-bottom: 1rem;
}

.agent-details-container p {
  font-size: 0.95rem;
  margin: 0.5rem 0;
  color: var(--dark-text);
}

.agent-details-container a {
  color: var(--main-purple);
  text-decoration: none;
  margin-right: 1rem;
}

.agent-details-container a:hover {
  text-decoration: underline;
}

/* Social icons on agent page */
.agent-social-icons {
  display: flex;
  gap: 4px;
  margin-top: 1rem;
}

.agent-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--main-purple);
  border-radius: 50%;
  color: var(--main-purple);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
}

.agent-social-icons a:hover {
  background-color: var(--main-purple);
  color: #fff;
}

/* Bio card */
.bio {
  background-color: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.1);
  max-width: 1000px;
  margin: 0 auto;
}

.bio h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--main-purple);
}

.bio h4 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--muted-text);
}

.bio p {
  line-height: 1.8;
  font-size: 1rem;
  color: var(--dark-text);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background-color: #ffffff;
  color: #1f2937;
  padding: 60px 20px 30px;
  font-family: 'Poppins', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 340px 1fr 1fr 1fr;
  column-gap: 80px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* Arches + tagline container */
.footer-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 320px;
}

/* Row of arches */
.footer-arches {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

/* Arch shape */
.footer-arches .arch-card {
  width: 120px;
  border-radius: 140px 140px 0 0;
  overflow: hidden;
  background: transparent;
}

/* Different arch heights */
.arch-card--tall {
  height: 230px;
}

.arch-card--medium {
  height: 200px;
}

.arch-card--short {
  height: 170px;
}

.footer-arches .arch-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tagline */
.footer-tagline {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #4b5563;
  max-width: 260px;
  line-height: 1.5;
}

/* Footer columns */
.footer-logo img {
  width: 130px;
  margin-bottom: 16px;
}

.footer-logo p {
  font-size: 0.9rem;
  color: #4b5563;
  max-width: 240px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--main-purple);
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-contact a {
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
  color: var(--main-purple);
}

.footer-contact p {
  font-size: 0.9rem;
  color: #374151;
  margin: 5px 0;
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 4px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--main-purple);
  border-radius: 50%;
  color: var(--main-purple);
  font-size: 0.75rem;
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
}

.footer-social a:hover {
  background-color: var(--main-purple);
  color: #fff;
}

/* Puffin under icons */
.footer-contact {
  text-align: left;
}

.footer-contact .footer-social {
  margin-bottom: 10px;
}

.footer-puffin {
  text-align: left;
  margin-top: 6px;
  margin-left: 4px;
}

.footer-puffin img {
  width: 42px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-puffin img:hover {
  transform: scale(1.08);
  opacity: 1;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: #e5e7eb;
  margin: 0 auto;
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding: 20px 10px 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* =========================
   BORN IN AUSTIN BADGE
========================= */
.born-badge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1100;
}

.born-emoji {
  margin-left: 6px;
  font-size: 1rem;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablets & small laptops */
@media screen and (max-width: 992px) {
  .hero-section {
    height: auto;
  }

  .hero-oval {
    height: 520px;
    border-radius: 55% / 24%;
    margin: 80px auto 0;
  }

  .hero-content,
  .hero-content-inside-oval {
    top: 52%;
  }

  .hero-content h1,
  .hero-content-inside-oval h1 {
    font-size: 2.6rem;
  }

  .hero-content p,
  .hero-content-inside-oval p {
    font-size: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 260px 1fr 1fr;
    column-gap: 40px;
  }
}

/* Phones */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 12px 16px;
    gap: 8px;
  }

  .navbar .logo {
    margin-top: 0;
    margin-left: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
  }

  .nav-links li::after {
    content: "";
  }

  .hero-section {
    padding-top: 90px;
  }

  .hero-oval-wrapper {
    padding: 40px 12px;
  }

  .hero-oval {
    height: 460px;
    border-radius: 50% / 26%;
    margin: 70px auto 0;
  }

  .hero-content,
  .hero-content-inside-oval {
    top: 52%;
    width: 90%;
  }

  .hero-content h1,
  .hero-content-inside-oval h1 {
    font-size: 2.2rem;
  }

  .hero-content p,
  .hero-content-inside-oval p {
    font-size: 1rem;
  }

  .search-bar {
    flex-direction: column;
    max-width: 92%;
  }

  .search-bar input,
  .search-bar button {
    width: 100%;
    border-radius: 30px;
    margin: 5px 0;
  }

  .services-grid-section,
  .featured-properties-section,
  .team-section {
    padding: 60px 16px;
  }

  .section-title,
  .featured-properties-section .section-title,
  .team-section .section-title {
    font-size: 2rem;
    margin-bottom: 28px;
  }

  .team-card {
    width: 100%;
    max-width: 260px;
  }

  .agent-profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
  }

  .agent-photo-container {
    width: 90%;
    margin-right: 0;
  }

  .agent-details-container {
    width: 100%;
  }

  .agent-social-icons {
    justify-content: center;
  }

  .bio {
    padding: 24px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 32px;
  }

  .footer-visual {
    align-items: center;
    text-align: center;
  }

  .footer-arches {
    justify-content: center;
  }

  .footer-tagline {
    max-width: 320px;
  }

  .born-badge {
    right: 12px;
    bottom: 16px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* Very small phones */
@media screen and (max-width: 480px) {
  .hero-oval {
    height: 420px;
    border-radius: 55% / 30%;
  }

  .hero-content h1,
  .hero-content-inside-oval h1 {
    font-size: 1.9rem;
  }

  .hero-content p,
  .hero-content-inside-oval p {
    font-size: 0.95rem;
  }

  .loan-card img,
  .property-image img {
    height: 180px;
  }

  .born-badge {
    font-size: 0.75rem;
  }
}
