/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #003366;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-stacked-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 20px;
  max-width: 1200px;
  margin: auto;
}

.agent-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transition: transform 0.3s ease;
}

.agent-block:hover {
  transform: scale(1);
}

.agent-block:hover .agent-name {
  color: #f4d35e;
}

.agent-block:hover .agent-title {
  color: white;
}

.agent-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin: 0;
  transition: color 0.3s ease;
}

.agent-title {
  font-size: 0.85rem;
  color: #f4d35e;
  margin: 0;
  transition: color 0.3s ease;
}

.main-nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.main-nav a {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Hero Section */
.hero {
  background: url(/images/hero-image.jpg) no-repeat center center/cover;
  position: relative;
  color: white;
  text-align: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 780px;
  padding-top: 30px;
  padding-bottom: 100px;
}

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

.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-top: 0;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #f1f1f1;
}

.btn {
  display: inline-block;
  background-color: #f4d35e;
  color: #003366;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background-color: #ffd700;
  transform: translateY(-2px);
}

/* Hero Logo Fade-In */
.hero-logo {
  max-width: 260px;
  margin: 0 auto 20px;
  padding: 12px 24px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInLogo 1.2s ease-out forwards;
}

@keyframes fadeInLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Features */
.hero-features {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-features .feature {
  background: rgba(255, 255, 255, 0.95);
  padding: 28px 24px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  min-width: 0;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-features .feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.hero-features .feature i {
  font-size: 1.8rem;
  color: #f4d35e;
  margin-bottom: 12px;
}

.hero-features .feature h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

.hero-features .feature p {
  font-size: 0.95rem;
  color: #444;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Listings Styling */
.listings-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.listings-wrapper h2 {
  font-size: 2rem;
  color: #003366;
  font-weight: 700;
  margin-bottom: 10px;
}

.listings-wrapper .subtext {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
}

.iframe-container {
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  height: calc(100vh - 160px);
  background-color: white;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Footer */
footer {
  font-family: 'Montserrat', sans-serif;
  background-color: #003366;
  color: #f9f9f9;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0;
  padding: 22px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

.footer-text {
  position: static;
  left: auto;
  transform: none;
  text-align: center;
  color: white;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.legal-branding {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 5px;
}

.footer-logo img {
  height: 50px;
  display: block;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  font-size: 18px;
  color: white;
}

/* Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-content: center;
  margin: 40px auto;
  max-width: 1200px;
}

.resource-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
  text-align: center;
}

.resource-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

.resource-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 20px;
}

.resource-btn {
  display: inline-block;
  width: 100%;
  background-color: #003366;
  color: white;
  padding: 14px 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: none;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.resource-btn:hover {
  background-color: #002244;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .header-stacked-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .main-nav {
    justify-content: center;
  }

  .hero {
    min-height: 1100px;
    padding-bottom: 60px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-features {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero-features .feature {
    flex: 0 0 100%;
    max-width: 320px;
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-text {
    flex: unset;
  }

  .iframe-container {
    height: 90vh;
  }
}