/* ============================================================
   sitemap-page.css — /sitemap (HTML visual sitemap)
   Zion Property Management
   Depends on: pearl.css
   
   Design direction: "Information architecture meets brand" —
   clear hierarchy, colour-coded sections, connected node
   animation in hero, interactive card grid with hover states.
============================================================ */

/* =============================================
   HERO
============================================= */
.sm-hero {
  background: linear-gradient(135deg, #0d1a3a 0%, #1e398f 55%, #2a0845 100%);
  min-height: 54vh;
  position: relative;
  overflow: hidden;
  padding: 140px 40px 100px;
  display: flex;
  align-items: center;
}
.sm-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.sm-blob--1 {
  width: 500px;
  height: 500px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(199, 0, 126, 0.22), transparent 70%);
  animation: blobPulse1 13s ease-in-out infinite;
}
.sm-blob--2 {
  width: 380px;
  height: 380px;
  bottom: -80px;
  right: -60px;
  background: radial-gradient(
    circle,
    rgba(240, 180, 41, 0.15),
    transparent 70%
  );
  animation: blobPulse2 16s ease-in-out infinite;
}
.sm-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 55px 55px;
}

/* Decorative network nodes */
.sm-nodes-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.sm-node {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: nodePulse 0s ease-in-out infinite;
}
/* sizes + positions */
.sm-node--0 {
  width: 14px;
  height: 14px;
  top: 20%;
  left: 10%;
  animation-duration: 4s;
}
.sm-node--1 {
  width: 8px;
  height: 8px;
  top: 35%;
  left: 22%;
  animation-duration: 5s;
  animation-delay: -1s;
}
.sm-node--2 {
  width: 12px;
  height: 12px;
  top: 15%;
  left: 35%;
  animation-duration: 3.5s;
  animation-delay: -2s;
}
.sm-node--3 {
  width: 6px;
  height: 6px;
  top: 55%;
  left: 15%;
  animation-duration: 6s;
  animation-delay: -0.5s;
}
.sm-node--4 {
  width: 10px;
  height: 10px;
  top: 70%;
  left: 30%;
  animation-duration: 4.5s;
  animation-delay: -1.5s;
}
.sm-node--5 {
  width: 16px;
  height: 16px;
  top: 25%;
  right: 12%;
  animation-duration: 5.5s;
  animation-delay: -3s;
}
.sm-node--6 {
  width: 7px;
  height: 7px;
  top: 50%;
  right: 22%;
  animation-duration: 4s;
  animation-delay: -2s;
}
.sm-node--7 {
  width: 11px;
  height: 11px;
  bottom: 25%;
  right: 15%;
  animation-duration: 6s;
  animation-delay: -1s;
}
@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.06;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.14;
  }
}

.sm-hero-inner {
  max-width: 860px;
  margin: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.sm-hero-inner .breadcrumb {
  justify-content: center;
  margin-bottom: 20px;
}
.sm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 180, 41, 0.15);
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: #f0b429;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sm-hero-inner h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.sm-h1-gradient {
  background: linear-gradient(90deg, #f0b429, #c7007e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sm-hero-inner > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Stats row */
.sm-hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto;
}
.sm-hs-item {
  padding: 18px 32px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.sm-hs-item:last-child {
  border-right: none;
}
.sm-hs-num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #f0b429, #c7007e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.sm-hs-item p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  margin-top: 4px;
}
.sm-xml-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #4ade80;
  text-decoration: none;
  transition: color 0.2s;
}
.sm-xml-link:hover {
  color: #22c55e;
}
.sm-xml-link i {
  font-size: 1rem;
}

.sm-hero-slant {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}
.sm-hero-slant svg {
  display: block;
  width: 100%;
}

/* =============================================
   SHARED CONTAINER
============================================= */
.sm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   EXPLAINER SECTION
============================================= */
.sm-explainer {
  background: var(--offwhite);
  padding: 60px 0;
}
.sm-exp-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.sm-exp-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(30, 57, 143, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s;
}
.sm-exp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pink);
}
.sm-exp-card--html {
  border-top: 3px solid var(--blue);
}
.sm-exp-card--xml {
  border-top: 3px solid #22c55e;
}
.sm-exp-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
}
.sm-exp-card--html .sm-exp-icon {
  background: var(--gradient-main);
}
.sm-exp-card--xml .sm-exp-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.sm-exp-card h3 {
  font-size: 1.1rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.sm-exp-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sm-exp-badge--blue {
  background: rgba(30, 57, 143, 0.1);
  color: var(--blue);
  border: 1px solid rgba(30, 57, 143, 0.2);
}
.sm-exp-badge--green {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.sm-exp-card p {
  font-size: 0.86rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 14px;
}
.sm-exp-card p a {
  color: var(--blue);
  font-weight: 600;
}
.sm-exp-card ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sm-exp-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #374151;
}
.sm-exp-card li i {
  color: #22c55e;
  font-size: 0.75rem;
}
.sm-exp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-exp-vs {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
}
.sm-xml-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.sm-xml-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

/* =============================================
   DIRECTORY
============================================= */
.sm-directory {
  padding: 70px 0 80px;
  background: #fff;
}
.sm-dir-header {
  text-align: center;
  margin-bottom: 32px;
}
.sm-dir-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-family: "Playfair Display", serif;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}
.sm-dir-header p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Jump pills */
.sm-jump-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 52px;
}
.sm-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pill-color, var(--blue));
  background: color-mix(in srgb, var(--pill-color, var(--blue)) 10%, white);
  border: 1px solid
    color-mix(in srgb, var(--pill-color, var(--blue)) 25%, white);
  transition: all 0.3s;
}
.sm-jump-pill:hover {
  background: var(--pill-color, var(--blue));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pill-color) 35%, transparent);
}
.sm-jump-pill i {
  font-size: 0.75rem;
}

/* Section */
.sm-section {
  margin-bottom: 56px;
  scroll-margin-top: 90px;
}
.sm-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid
    color-mix(in srgb, var(--section-color, #1e398f) 20%, transparent);
}
.sm-sh-icon {
  width: 38px;
  height: 38px;
  background: var(--section-color, var(--blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.sm-section-header h2 {
  font-size: 1.3rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  color: var(--dark);
}
.sm-sh-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--section-color, #1e398f) 20%, transparent),
    transparent
  );
}

/* Pages grid */
.sm-pages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.sm-pages-grid--sub {
  grid-template-columns: repeat(2, 1fr);
}

.sm-page-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 57, 143, 0.07);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.sm-page-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--page-color, var(--blue));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}
.sm-page-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.sm-page-card:hover::before {
  transform: scaleY(1);
}
.sm-pc-icon {
  width: 38px;
  height: 38px;
  background: var(--page-color, var(--blue));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.sm-page-card:hover .sm-pc-icon {
  transform: scale(1.1) rotate(-5deg);
}
.sm-pc-icon--sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}
.sm-pc-content {
  flex: 1;
  min-width: 0;
}
.sm-pc-content strong {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  margin-bottom: 2px;
}
.sm-pc-url {
  display: block;
  font-size: 0.68rem;
  color: var(--gray);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-pc-content p {
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}
.sm-pc-arrow {
  color: var(--page-color, var(--blue));
  font-size: 0.75rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s;
  margin-top: 2px;
}
.sm-page-card:hover .sm-pc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Sub card variant */
.sm-page-card--sub {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(30, 57, 143, 0.06);
}

/* Subsections */
.sm-subsections {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sm-sub-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--sub-color, var(--blue));
}
.sm-sub-header i {
  color: var(--sub-color, var(--blue));
  font-size: 0.85rem;
}
.sm-sub-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  color: var(--dark);
}

/* =============================================
   BRANCHES GRID
============================================= */
.sm-branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sm-branch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 197, 94, 0.1);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.sm-branch-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #22c55e;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}
.sm-branch-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(4px);
  border-color: rgba(34, 197, 94, 0.2);
}
.sm-branch-card:hover::before {
  transform: scaleY(1);
}
.sm-bc-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.sm-branch-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
}
.sm-branch-card > div > span {
  font-size: 0.76rem;
  color: var(--gray);
}
.sm-bc-url {
  font-size: 0.68rem;
  color: rgba(30, 57, 143, 0.5);
  display: block;
  margin-top: 2px;
}
.sm-bc-arrow {
  color: #22c55e;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s;
}
.sm-branch-card:hover .sm-bc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   BOTTOM CTA
============================================= */
.sm-cta {
  padding: 40px 0 60px;
  background: var(--offwhite);
}
.sm-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--gradient-main);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.sm-cta-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  color: #fff;
  margin-bottom: 6px;
}
.sm-cta-text p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}
.sm-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.sm-cta-btn--wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.sm-cta-btn--contact {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.sm-cta-btn:hover {
  transform: translateY(-3px);
}
.sm-cta-btn--wa:hover {
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}
.sm-cta-btn--contact:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Floating WA + back-to-top (reuse from pearl.css patterns) */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  z-index: 900;
  animation: waFloat 3s ease-in-out infinite;
  text-decoration: none;
  transition: transform 0.3s;
}
.float-wa:hover {
  transform: scale(1.15);
}
@keyframes waFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.back-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  box-shadow: var(--shadow);
  border: none;
}
.back-top.show {
  opacity: 1;
  transform: translateY(0);
}
.back-top:hover {
  transform: translateY(-4px);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .sm-pages-grid,
  .sm-pages-grid--sub {
    grid-template-columns: 1fr;
  }
  .sm-branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm-exp-grid {
    grid-template-columns: 1fr;
  }
  .sm-exp-divider {
    display: none;
  }
  .sm-hero-stats {
    flex-wrap: wrap;
    width: auto;
  }
}
@media (max-width: 768px) {
  .sm-hero {
    padding: 110px 20px 80px;
  }
  .sm-container {
    padding: 0 20px;
  }
  .sm-branches-grid {
    grid-template-columns: 1fr;
  }
  .sm-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .sm-cta-actions {
    justify-content: center;
  }
  .sm-hero-stats {
    flex-direction: column;
  }
  .sm-hs-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 24px;
  }
}
@media (max-width: 480px) {
  .sm-jump-pills {
    display: none;
  }
}
