/* A1 Real Estate Services — brand colors sampled from the A1 logo: green, red, brown */
:root {
  --brand-green: #296f19;
  --brand-green-dark: #19430f;
  --brand-green-deep: #102c0a;
  --brand-red: #9f0521;
  --brand-red-dark: #770419;
  --brand-brown: #7b7270;
  --text: #2b2b2b;
  --muted: #5f6368;
  --light-bg: #f4f5f7;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  letter-spacing: 0.2px;
  color: var(--text);
  background: #ffffff;
}

@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}

/* ---------------- Header ---------------- */
header .navbar {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

header nav .logo-container {
  height: 64px;
  width: 64px;
  flex-shrink: 0;
  transition: all 0.4s;
}

header nav .logo-container img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

header.scrolled nav .logo-container {
  height: 48px;
  width: 48px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: normal;
}

.brand-name {
  color: var(--brand-green);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.3px;
}

.brand-sub {
  color: var(--brand-brown);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.75rem;
  }
}

header .nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text) !important;
  margin: 0 0.75rem;
}

header .nav-link:hover {
  color: var(--brand-red) !important;
}

header .nav-call {
  margin-left: 0.75rem;
}

@media (max-width: 991px) {
  header .navbar-nav {
    padding: 0.75rem 0;
    align-items: flex-start !important;
  }
  header .nav-link {
    margin: 0;
  }
  header .nav-call {
    margin: 0.5rem 0 0;
  }
}

main {
  margin-top: 84px;
}

/* ---------------- Buttons ---------------- */
.btn-brand {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
  font-weight: 500;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #ffffff;
}

.btn-outline-brand {
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
  font-weight: 500;
}

.btn-outline-brand:hover {
  background: var(--brand-green);
  color: #ffffff;
}

/* ---------------- Hero ---------------- */
.mm-homepage-hero {
  background: linear-gradient(
      90deg,
      rgba(16, 44, 10, 0.85) 0%,
      rgba(16, 44, 10, 0.55) 55%,
      rgba(16, 44, 10, 0.2) 100%
    ),
    url("images/hero-home.jpg") center center;
  background-size: cover;
  color: white;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-tagline {
  display: inline-block;
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  border-left: 4px solid var(--brand-red);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

.mm-homepage-hero-subtitle {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  max-width: 720px;
}

.mm-homepage-hero-title {
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 0;
  font-weight: 300;
  font-size: 1.15rem;
}

.mm-homepage-herobutton {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
  padding: 12px 32px;
  font-weight: 500;
}

.mm-homepage-herobutton:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #ffffff;
}

.hero-outline-button {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 10px 30px;
  font-weight: 500;
}

.hero-outline-button:hover {
  background: #ffffff;
  color: var(--brand-green);
}

@media only screen and (max-width: 768px) {
  .mm-homepage-hero {
    min-height: 60vh;
    padding: 3rem 0;
    background: linear-gradient(rgba(16, 44, 10, 0.75), rgba(16, 44, 10, 0.65)),
      url("images/hero-home.jpg") center center;
    background-size: cover;
  }
  .mm-homepage-hero-subtitle {
    font-size: 2.1rem;
  }
  .mm-homepage-hero-title {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 400px) {
  .mm-homepage-hero-subtitle {
    font-size: 1.75rem;
  }
  .mm-homepage-herobutton,
  .hero-outline-button {
    width: 100%;
  }
}

/* ---------------- Contact strip ---------------- */
.contact-icons-root {
  background-color: var(--light-bg);
}

.small-contact-icons {
  gap: 1.5rem;
}

.small-contact-icons > div > img {
  height: 48px;
}

.contact-icons-text a {
  text-decoration: none;
  color: var(--text);
}

.contact-icons-text a:hover {
  color: var(--brand-red);
}

@media screen and (max-width: 990px) {
  .small-contact-icons {
    justify-content: center !important;
    flex-direction: column;
    align-items: center;
  }

  .small-contact-icons > div {
    flex-direction: column;
    align-items: center;
  }

  .small-contact-icons > div > img {
    height: 44px !important;
    margin-bottom: 0.75rem;
  }

  .small-contact-icons .contact-icons-text {
    text-align: center;
    margin-left: 0 !important;
  }
}

/* ---------------- Headings ---------------- */
.company-green-bold {
  color: var(--brand-green);
  font-weight: 600;
  letter-spacing: 0.04rem;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
  .section-heading {
    font-size: 1.6rem;
  }
}

hr.divider-under-text {
  border: 0;
  background: var(--brand-red);
  height: 4px;
  border-radius: 4px;
  opacity: 1;
  width: 70px;
  margin: 0 auto 1rem;
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
  padding: 0 1rem;
}

/* ---------------- Services ---------------- */
section#services {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding-top: 1.5rem;
}

.service-list .card {
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  padding: 2rem 1.25rem 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-list .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 44, 10, 0.12);
}

.service-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(41, 111, 25, 0.08);
  display: grid;
  place-items: center;
}

.service-icon i {
  font-size: 2.6rem;
  color: var(--brand-red);
}

.service-list .card-text {
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
}

/* ---------------- About ---------------- */
.gray-background {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--light-bg);
}

.agent-photo {
  max-width: 300px;
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1rem 0;
  box-shadow: 0 10px 30px rgba(16, 44, 10, 0.12);
  border-bottom: 6px solid var(--brand-red);
  overflow: hidden;
}

.agent-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.agent-name {
  color: var(--brand-green);
  font-weight: 700;
  font-size: 1.5rem;
}

.agent-title {
  color: var(--muted);
  font-style: italic;
}

.about-text {
  line-height: 1.9;
  color: var(--muted);
  font-size: 1.05rem;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  border: 1px solid #e3e5e8;
  flex: 1 1 180px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.highlight i {
  font-size: 1.8rem;
  color: var(--brand-green);
}

.highlight strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------------- Contact section ---------------- */
.contact-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 2rem;
  border-top: 5px solid var(--brand-green);
}

.contact-list li {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.contact-list i {
  color: var(--brand-red);
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--brand-red);
}

.map-container {
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 380px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 44, 10, 0.1);
}

.map-container iframe {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  border: 0;
}

/* ---------------- Footer ---------------- */
footer .footer-overlay {
  color: white;
  background-color: var(--brand-green-dark);
  padding: 2.5rem 0 2rem;
}

footer .footer-logo {
  height: 56px;
  width: 56px;
  border-radius: 6px;
  background: #ffffff;
  padding: 3px;
}

footer a {
  text-decoration: none;
  color: #ffffff;
}

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

footer .footer-p-size {
  font-size: 0.95rem;
  margin-bottom: 0.35rem !important;
  opacity: 0.9;
}

footer .footer-deep-overlay {
  color: rgba(255, 255, 255, 0.85);
  background-color: var(--brand-green-deep);
  padding: 1rem 0;
  font-size: 0.85rem;
}

footer img.eho-logo {
  width: 1.75rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* ---------------- Sub-page banner ---------------- */
.page-banner {
  position: relative;
  color: #ffffff;
  padding: 3.25rem 0 2.75rem;
  background: linear-gradient(
      115deg,
      rgba(16, 44, 10, 0.93) 0%,
      rgba(16, 44, 10, 0.78) 55%,
      rgba(41, 111, 25, 0.62) 100%
    ),
    url("images/hero-home.jpg") center center;
  background-size: cover;
}

/* thin brand stripe along the bottom edge: green, red, brown */
.page-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--brand-green) 0 45%,
    var(--brand-red) 45% 80%,
    var(--brand-brown) 80% 100%
  );
}

.page-banner h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-banner p {
  max-width: 620px;
  margin-bottom: 0;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0.95;
}

.breadcrumb-bar {
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  opacity: 0.9;
}

.breadcrumb-bar a {
  color: #ffffff;
  text-decoration: none;
}

.breadcrumb-bar a:hover {
  text-decoration: underline;
}

.breadcrumb-bar .sep {
  margin: 0 0.5rem;
  opacity: 0.6;
}

@media (max-width: 576px) {
  .page-banner {
    padding: 2.5rem 0 2.25rem;
  }
  .page-banner h1 {
    font-size: 1.9rem;
  }
}

/* ---------------- Active nav state ---------------- */
header .nav-link.active {
  color: var(--brand-green) !important;
  font-weight: 600;
  position: relative;
}

header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--brand-red);
}

@media (max-width: 991px) {
  header .nav-link.active::after {
    display: none;
  }
}

/* ---------------- Numbered service cards ---------------- */
.service-list.numbered {
  counter-reset: svc;
}

.service-list.numbered .card {
  counter-increment: svc;
  position: relative;
  overflow: hidden;
}

.service-list.numbered .card::before {
  content: "0" counter(svc);
  position: absolute;
  top: 0.4rem;
  right: 0.9rem;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-green);
  opacity: 0.1;
}

/* ---------------- Call-to-action band ---------------- */
.cta-band {
  background: var(--brand-green-deep);
  color: #ffffff;
  padding: 2.75rem 0;
  text-align: center;
}

.cta-band h3 {
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
}

.cta-band p {
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
}

.cta-band .btn-outline-light:hover {
  color: var(--brand-green-deep);
}
/* ---------------- Social links ---------------- */
.social-connect {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.social-connect h6 {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-3px);
  text-decoration: none;
}

@media (max-width: 400px) {
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
}
