/* =========================
   InsideHOA theme variables
   ========================= */
:root {
  --brand-primary: #cb4724;
  --brand-primary-dark: #a83a1d;
  --brand-primary-light: #e06a4b;

  --brand-text-dark: #333333;
  --brand-text-muted: #6c757d;

  --brand-bg-dark: #2f2f2f;
  --brand-bg-light: #f8f9fa;

  --brand-dot-muted: #d9c2b7;
}

/* =========================
   Bootstrap overrides
   ========================= */

/* Nav links */
.nav-link {
  color: var(--brand-primary) !important;
}

/* Hamburger/toggler */
.navbar-toggler {
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* (Optional) remove logo focus ring if it bugs you */
.navbar-brand:focus,
.navbar-brand:active {
  outline: none !important;
  box-shadow: none !important;
}

/* =========================
   Layout container (site max width)
   ========================= */
.ihoa-container {
  max-width: 900px; /* set to 1200px if you want to match old site */
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 576px) {
  .ihoa-container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* =========================
   Hero
   ========================= */
.ihoa-hero {
  background: var(--brand-bg-dark) !important;
  color: #fff !important;
  padding: 0 !important; /* container controls spacing */
}

.ihoa-hero-lead {
  color: rgba(255,255,255,.78) !important;
  max-width: 56rem;
}

.ihoa-hero-logo {
  max-height: 240px !important;
}

.ihoa-hero h1 {
  margin-bottom: 1rem !important;
}

.ihoa-hero-intro {
  font-size: 1.1rem !important;
}

/* =========================
   Callout bar
   ========================= */
.ihoa-callout-bar {
  background: var(--brand-primary);
  color: #fff;
  height: 56px;
}

.ihoa-callout-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ihoa-callout-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.ihoa-callout-link:hover {
  color: #fff;
  opacity: 0.85;
}

/* =========================
   Scribble header
   ========================= */
.ihoa-scribble {
  max-width: 520px;
  width: 100%;
  height: 64px;
}

.ihoa-scribble-arrow {
  height: 54px;
}

/* =========================
   Why-choose nav + items
   ========================= */

/* Shared dot-link styling (used by both nav variants) */
.ihoa-why-nav .ihoa-why-link,
.ihoa-sticky-nav .ihoa-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none !important;
  font-weight: 600;
}

.ihoa-why-nav .ihoa-why-link::before,
.ihoa-sticky-nav .ihoa-nav-link::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-dot-muted);
  display: inline-block;
}

/* Default (inactive) colors */
.ihoa-why-nav .ihoa-why-link {
  color: #a6a6a6 !important;
}

.ihoa-sticky-nav .ihoa-nav-link {
  color: #9aa0a6;
}

/* Active */
.ihoa-why-nav .ihoa-why-link.active,
.ihoa-sticky-nav .ihoa-nav-link.active {
  color: #222 !important;
}

.ihoa-why-nav .ihoa-why-link.active::before,
.ihoa-sticky-nav .ihoa-nav-link.active::before {
  background: var(--brand-primary);
}

/* Content styles */
.ihoa-why-heading {
  color: var(--brand-primary);
}

.ihoa-why-icon {
  font-size: 110px;
  color: #c9c9c9;
}

/* RTE body cleanup */
.ihoa-why-body p:last-child {
  margin-bottom: 0 !important;
}

/* =========================
   Bottom CTA
   ========================= */
.ihoa-bottom-cta {
  background: #fbf6f2; /* warm off-white */
}

.ihoa-bottom-cta-heading {
  color: var(--brand-primary);
  font-size: 2rem;
  line-height: 1.2;
}

.ihoa-bottom-cta-button {
  background-color: var(--brand-primary);
  color: #fff;
  border: none !important;
}

.ihoa-bottom-strip {
  background: #e6e6e6;
}

.ihoa-strip-text {
  color: var(--brand-primary);
  font-weight: 600;
}

.ihoa-small-arrow-scribble {
  height: 32px;
}

/* =========================
   Responsive rules
   ========================= */

/* Tablet + down: hide heavy images (your latest requirement) */
@media (max-width: 1024px) {
  .ihoa-hero img,
  .ihoa-hero-logo,
  .ihoa-hero-logo-container,
  .ihoa-laptop {
    display: none !important;
  }
}

/* Mobile: tighten spacing + hide section icons */
@media (max-width: 767.98px) {

  /* Hide section icons only on true mobile */
  .ihoa-why-icon {
    display: none !important;
  }

  /* Hero spacing tighter */
  .ihoa-hero .container {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .ihoa-hero h1 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }

  .ihoa-hero .ihoa-hero-lead {
    margin-bottom: 0 !important;
  }

  /* Callout bar */
  .ihoa-callout-bar {
    margin-bottom: 0 !important;
  }

  /* Scribble block spacing */
  #why-choose-header,
  .ihoa-why-header,
  .ihoa-why-scribble-section {
    padding-top: 12px !important;
    padding-bottom: 6px !important;
    margin-top: 0 !important;
  }

  .ihoa-scribble {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
  }

  /* Why-choose item spacing */
  #why-choose-items [id] {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  /* Reduce gutters when icons are hidden */
  #why-choose-items .row.g-4,
  #why-choose-items .row.g-5 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: .75rem;
  }

  /* Divider spacing */
  #why-choose-items .border-top {
    margin-top: 10px !important;
    padding-top: 18px !important;
  }

  /* Headings + paragraphs tighter */
  #why-choose-items h3 {
    margin-bottom: 6px !important;
  }

  .ihoa-why-body p {
    margin-bottom: 0.5rem;
  }
  .ihoa-why-body p:last-child {
    margin-bottom: 0 !important;
  }
}
