/* ══════════════════════════════════════════════════════
   Home Advantage – Main Stylesheet
   Dependencies: Bootstrap 5, Bootstrap Icons, Google Fonts (Montserrat, Playfair Display)
══════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --teal: #54c1bd;
  --teal-dark: #3da8a4;
  --teal-light: #e8f8f7;
  --dark: #52464a;
  --dark-alt: #3b3237;
  --mid: #7a6e72;
  --light-bg: #f5fafa;
  --white: #ffffff;
  --orange: #FFA565;
}

/* ── Base ─────────────────────────────────────────── */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
}

a {
  text-decoration: none;
}

/* ── Utilities ────────────────────────────────────── */
.btn-teal {
  background-color: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  border: none;
  border-radius: 25px;
  padding: .75rem 1.75rem;
  transition: background .25s, transform .2s;
}

.btn-teal:hover {
  background-color: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-teal {
  border: 2px solid var(--teal);
  color: var(--teal);
  font-weight: 700;
  font-size: .875rem;
  border-radius: 4px;
  padding: .7rem 1.75rem;
  background: transparent;
  transition: all .25s;
}

.btn-outline-teal:hover {
  background: var(--teal);
  color: #fff;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
}

.section-sub {
  color: var(--mid);
  font-size: .95rem;
  line-height: 1.75;
}

.teal-text {
  color: var(--teal);
}

section {
    overflow: hidden;
    padding-left: 30px;
    padding-right: 30px;
}

/* ────────────────────────────────────────────────────
   1. NAVBAR
──────────────────────────────────────────────────── */
#mainNav {
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, .08);
  padding: .9rem 0;
  transition: padding .3s;
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: .95rem;
  color: var(--dark) !important;
  padding: .4rem .75rem;
  transition: color .2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--teal) !important;
  font-weight: 700;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ────────────────────────────────────────────────────
   2. HERO
──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

#hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url(../images/hero_img.jpg) center/cover no-repeat;
}

#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(42, 34, 38, .82) 0%, rgba(42, 34, 38, .55) 55%, transparent 100%);
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .75rem;
}

#hero .tagline {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

#hero .disclaimer {
  font-size: .8rem;
  color: rgba(255, 255, 255, .7);
  margin-top: .75rem;
}

#hero h1 span {
  color: var(--teal);
}

/* ────────────────────────────────────────────────────
   3. STATS / INTRO
──────────────────────────────────────────────────── */
#stats {
  background: #fff;
  padding: 5rem 0;
  background: url(../images/second_img.jpg) center / cover no-repeat;
}

#stats .intro-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mid);
}

#stats .intro-text strong {
  color: var(--dark);
}

.stat-card {
  background: var(--teal-light);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 4px solid var(--teal);
  height: 100%;
}

.stat-card .stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  color: #fff;
}

.stat-card p {
  font-size: .9rem;
  color: var(--dark);
  font-weight: 600;
  margin: 0;
}

/* ────────────────────────────────────────────────────
   4. WHY THIS MATTERS
──────────────────────────────────────────────────── */
#why-matters {
  background: var(--light-bg);
  padding: 5rem 0;
}

#why-matters .img-wrap {
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(82, 70, 74, .15);
}

#why-matters .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#why-matters .subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .5rem;
}

/* ────────────────────────────────────────────────────
   5. WHY CHOOSE US
──────────────────────────────────────────────────── */
#why-choose {
  background: #fff;
  padding: 5rem 0 5rem;
}

/* The row needs overflow visible so icon circles can pop above card tops */
#why-choose .row {
  overflow: visible;
}

.feature-card-col {
  margin-top: 80px;
}

.feature-card {
  position: relative;
  border: 1px solid var(--teal);
  /* top padding makes room for the half-overflowing icon circle */
  padding: 7.75rem 1.5rem 3rem;
  text-align: center;
  height: 100%;
  background: #fff;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  overflow: visible;
}

.feature-card:hover {
  box-shadow: 0 10px 36px rgba(84, 193, 189, .2);
  transform: translateY(-5px);
  border-color: var(--teal);
}

/* The icon circle floats centred on the top edge of the card */
.feature-card .icon-wrap {
  position: absolute;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(84, 193, 189, .45);
  flex-shrink: 0;
  z-index: 1;
}

.feature-card h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
}

.feature-card p {
  font-size: .85rem;
  color: var(--mid);
  line-height: 1.75;
  margin: 0;
}

/* ────────────────────────────────────────────────────
   6. WHERE OTHERS WORK IN SILOS
──────────────────────────────────────────────────── */
#silos {
  background: var(--light-bg);
  padding: 5rem 0;
}

.silos-tab-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.silos-tab-btn {
  /* reset <button> defaults */
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  width: 100%;

  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--mid);
  border-left: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}

.silos-tab-btn:hover {
  background: var(--teal-light);
  color: var(--teal);
  border-left-color: var(--teal);
}

.silos-tab-btn.active {
  background: var(--teal-light);
  color: var(--teal);
  border-left-color: var(--teal);
}

.silos-tab-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Panel — explicit height so image always fills it */
.silos-panel {
  position: relative;
  overflow: hidden;
  height: 420px;
  box-shadow: 0 12px 40px rgba(82, 70, 74, .18);
}

.silos-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fade transition when src swaps */
  transition: opacity .35s ease;
}

.silos-panel img.fading {
  opacity: 0;
}

.silos-panel .panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2rem 1.75rem 1.75rem;
  width: 50%;
  height: 100%;
  background: rgba(84, 193, 189, 0.90);
}

.silos-panel .panel-overlay h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .4rem;
  transition: opacity .25s ease;
}

.silos-panel .panel-overlay p {
  color: rgba(255, 255, 255, .82);
  font-size: .875rem;
  line-height: 1.65;
  margin: 0;
  transition: opacity .25s ease;
}

/* ────────────────────────────────────────────────────
   7. HOW IT WORKS
──────────────────────────────────────────────────── */
#how-it-works {
  background: var(--light-bg);
  padding: 5rem 0;
}

#how-it-works .section-title {
  color: var(--dark);
}

/* Flex row holding the 3 steps + 2 connectors */
.hiw-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Each step block */
.hiw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Teal numbered circle */
.hiw-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(84, 193, 189, .4);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Text below the circle */
.hiw-body {
  padding: 0 1rem;
}

.hiw-body h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
}

.hiw-body p {
  font-size: .875rem;
  color: var(--mid);
  line-height: 1.75;
  margin: 0;
}

/* Horizontal dashed line connecting the circles, aligned to circle centre */
.hiw-connector {
  flex: 0 0 60px;
  height: 2px;
  border-top: 2px solid var(--teal);
  opacity: .45;
  margin-top: 35px;
  /* half of circle height (72/2 = 36) minus 1px border */
  align-self: flex-start;
}

/* ── Responsive: stack vertically on mobile ── */
@media (max-width: 767.98px) {
  .hiw-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hiw-step {
    width: 100%;
    max-width: 360px;
  }

  .hiw-connector {
    width: 2px;
    height: 40px;
    border-top: none;
    border-left: 2px solid var(--teal);
    margin-top: 0;
    margin-bottom: 0;
    align-self: center;
  }
}

/* Remove old step-card / step-connector / step-number rules */
.step-card,
.step-number,
.step-connector {
  display: none;
}

/* ────────────────────────────────────────────────────
   8. WHAT YOU CAN EXPECT
──────────────────────────────────────────────────── */
#expect {
  background: #fff;
  padding: 5rem 0;
}

.expect-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
  flex-direction: column;
}

.expect-item .check-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #047874;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.875rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.expect-item p {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.stats-block {
  background: var(--teal-light);
  border-radius: 12px;
  padding: 1.5rem;
  font-size: .95rem;
  color: var(--dark);
  line-height: 1.7;
}

/* ────────────────────────────────────────────────────
   9. TESTIMONIALS
──────────────────────────────────────────────────── */
#testimonials {
  background: var(--light-bg);
  padding: 5rem 0;
}

.testimonial-card {
  background: var(--teal);
  border-radius: 5px;
  padding: 5rem 2rem 2.5rem;
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 6rem;
  color: rgba(255, 255, 255, .15);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.testimonial-card .quote {
  color: rgba(255, 255, 255, .95);
  font-size: .9rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.testimonial-card .author {
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  font-weight: 700;
  margin-top: 1.25rem;
}

/* ────────────────────────────────────────────────────
   10. OUR WHY
──────────────────────────────────────────────────── */
#our-why {
  background: #fff;
  padding: 5rem 0;
}

#our-why .img-wrap {
  overflow: hidden;
  height: 100%;
}

#our-why .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}

.why-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.why-item .why-icon {
  width: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
}

.why-item h5 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.why-item p {
  font-size: .875rem;
  color: var(--mid);
  line-height: 1.7;
  margin: 0;
}

/* ────────────────────────────────────────────────────
   11. CTA BANNER
──────────────────────────────────────────────────── */
#cta-banner {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

#cta-banner .bg-img {
  position: absolute;
  inset: 0;
  background: url(../images/cta.png) center/cover no-repeat;
}

#cta-banner .bg-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

#cta-banner .content {
  position: relative;
  z-index: 2;
}

#cta-banner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
}

#cta-banner p {
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
  line-height: 1.8;
}

#cta-banner .note {
  font-size: .8rem;
  color: var(--teal-dark)
}

/* ────────────────────────────────────────────────────
   12. FOOTER
──────────────────────────────────────────────────── */
#footer {
  background: var(--white);
  padding: 4rem 0 2rem;
}

#footer .footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}

#footer h6 {
  color: var(--teal);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul li {
  margin-bottom: .5rem;
}

#footer ul li a {
  color: #747474;
  font-size: .875rem;
  transition: color .2s;
}

#footer ul li a:hover {
  color: var(--teal);
}

#footer .footer-contact {
  color: #747474;
  font-size: .875rem;
  line-height: 1.8;
}

#footer .footer-contact a {
  color: #747474;
}

#footer .footer-contact a:hover {
  color: var(--teal);
}

#footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: .8rem;
  color: #747474
}

/* ────────────────────────────────────────────────────
   SCROLL REVEAL ANIMATION
   Initial hidden state is applied by JS so elements
   remain visible if JS is slow or blocked.
──────────────────────────────────────────────────── */
.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-ready.visible {
  opacity: 1;
  transform: none;
}

/* ────────────────────────────────────────────────────
   RESPONSIVE TWEAKS
──────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  #hero {
    min-height: 80vh;
  }

  #hero h1 {
    font-size: 2rem;
  }
}