/* Fidu breadcrumb — append to the theme stylesheet.
   Palette matches the existing site: #F7F7F9 card bg, navy #2F3466. */

.fidu-breadcrumb {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 0;
}

.fidu-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fidu-breadcrumb li {
  display: flex;
  align-items: center;
  color: #6b6b78;
  min-width: 0;
}

.fidu-breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #c4c4cf;
  flex: none;
}

.fidu-breadcrumb a {
  color: #2F3466;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

.fidu-breadcrumb a:hover,
.fidu-breadcrumb a:focus-visible {
  border-bottom-color: #2F3466;
}

/* Last crumb is the current listing title — truncate rather than wrap the bar */
.fidu-breadcrumb li[aria-current="page"] {
  color: #6b6b78;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40ch;
}

@media (max-width: 640px) {
  .fidu-breadcrumb {
    font-size: 13px;
  }

  /* On mobile the tower/building name eats the bar — keep the area crumb,
     which is the one people actually use to navigate up. */
  .fidu-breadcrumb li[aria-current="page"] {
    max-width: 18ch;
  }
}

/* ---------------------------------------------------------------------------
   Area-guide blocks added by the AI-SEO pass.
   These class names are new — nothing in the theme styles them yet, and they
   are NOT Tailwind utilities (deliberately: tailwind.css is a build artifact,
   and an uncompiled class fails silently).
   --------------------------------------------------------------------------- */

.fidu-guide-meta {
  font-size: 14px;
  line-height: 1.5;
  color: #6b6b78;
  padding: 12px 16px;
  margin: 0 0 28px;
  background: #F7F7F9;
  border-left: 3px solid #2F3466;
  border-radius: 4px;
}

.fidu-guide-meta strong {
  color: #2F3466;
  font-weight: 600;
}

.fidu-cta-trust {
  font-size: 14px;
  line-height: 1.5;
  color: #6b6b78;
  margin: 0 0 16px;
}

/* Comparison table — the most citable block on the page, so it has to be
   readable on a phone rather than overflowing the layout. */
.fidu-guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
}

.fidu-guide-content thead th {
  text-align: left;
  background: #2F3466;
  color: #fff;
  font-weight: 600;
  padding: 10px 12px;
  white-space: nowrap;
}

.fidu-guide-content tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4ec;
  vertical-align: top;
}

.fidu-guide-content tbody tr:nth-child(even) {
  background: #F7F7F9;
}

@media (max-width: 640px) {
  .fidu-guide-content table { font-size: 13px; }
  .fidu-guide-content thead th,
  .fidu-guide-content tbody td { padding: 8px 9px; }
}

/* ---------------------------------------------------------------------------
   Dark hero context.
   On single-property.php the H1 sits inside a dark gradient overlay
   (`.text-white`), so navy-on-light links are effectively invisible there.
   These are plain CSS selectors matching classes already in the markup —
   NOT Tailwind utilities, so no rebuild of tailwind.css is required.
   --------------------------------------------------------------------------- */

.text-white .fidu-breadcrumb,
.fidu-breadcrumb--light {
  color: rgba(255, 255, 255, .78);
}

.text-white .fidu-breadcrumb li,
.fidu-breadcrumb--light li {
  color: rgba(255, 255, 255, .78);
}

.text-white .fidu-breadcrumb li + li::before,
.fidu-breadcrumb--light li + li::before {
  color: rgba(255, 255, 255, .45);
}

.text-white .fidu-breadcrumb a,
.fidu-breadcrumb--light a {
  color: #fff;
}

.text-white .fidu-breadcrumb a:hover,
.text-white .fidu-breadcrumb a:focus-visible,
.fidu-breadcrumb--light a:hover,
.fidu-breadcrumb--light a:focus-visible {
  border-bottom-color: #fff;
}

.text-white .fidu-breadcrumb li[aria-current="page"],
.fidu-breadcrumb--light li[aria-current="page"] {
  color: rgba(255, 255, 255, .70);
}

/* Legibility over a photographic hero — the gradient alone is not always enough. */
.text-white .fidu-breadcrumb,
.fidu-breadcrumb--light {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

/* ---------------------------------------------------------------------------
   Service pages — patterns taken from the Figma service-page frames
   (Property Management Services / Consulting Services in the UAE).
   Plain CSS, no Tailwind utilities: tailwind.css is a build artifact and an
   uncompiled class produces no rule at all, silently.
   --------------------------------------------------------------------------- */

.fidu-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 32px;
}

.fidu-stat {
  flex: 1 1 180px;
  background: #F7F7F9;
  border: 1px solid #e4e4ec;
  border-radius: 8px;
  padding: 16px 18px;
}

.fidu-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #2F3466;
  line-height: 1.2;
}

.fidu-stat-label {
  display: block;
  font-size: 13px;
  color: #6b6b78;
  margin-top: 3px;
}

/* "Our Service Includes" card grid — two columns, one on mobile */
.fidu-svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}

.fidu-svc-card {
  border: 1px solid #e4e4ec;
  border-radius: 10px;
  padding: 18px 20px;
  background: #fff;
}

.fidu-svc-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #2F3466;
}

.fidu-svc-card p { margin: 0; font-size: 15px; }

/* Numbered process steps */
.fidu-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.fidu-step {
  background: linear-gradient(180deg, #363636 0%, #2F3466 100%);
  color: #fff;
  border-radius: 10px;
  padding: 18px;
}

.fidu-step-n {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 6px;
}

.fidu-step h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.fidu-step p { margin: 0; font-size: 14px; opacity: .9; }

/* Advisor prompt card */
.fidu-advisor-card {
  background: #F7F7F9;
  border: 1px solid #e4e4ec;
  border-left: 3px solid #2F3466;
  border-radius: 8px;
  padding: 20px 22px;
  margin: 28px 0;
}

.fidu-advisor-card h3 { margin: 0 0 6px; color: #2F3466; }
.fidu-advisor-card p { margin: 0 0 14px; }

/* The 7-service tag row — the "tabs" from the design */
.fidu-svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 8px;
}

.fidu-svc-tag {
  display: inline-block;
  background: #2F3466;
  color: #fff;
  border: 1px solid #2F3466;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s ease;
}

.fidu-svc-tag:hover,
.fidu-svc-tag:focus-visible { background: #3d4384; color: #fff; }

/* Current page is not a link — it is where you already are */
.fidu-svc-tag.is-current {
  background: #fff;
  color: #2F3466;
  border-color: #c4c4cf;
  cursor: default;
}

@media (max-width: 860px) {
  .fidu-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .fidu-svc-grid,
  .fidu-steps { grid-template-columns: 1fr; }
  .fidu-stat { flex: 1 1 100%; }
}
