/* Mobile polish after real-device walkthrough on baytalfuad.com.
   Kept separate from the base stylesheet so the visual fixes stay easy to audit. */

/* Keep the status badge and path number on opposite corners. */
.path-number {
  position: absolute;
  top: 1.55rem;
  inset-inline-end: 1.7rem;
  z-index: 2;
}

.path-state {
  z-index: 2;
}

/* Let card copy define its own height; never let the CTA sit on top of text. */
.path-card {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 8.75rem;
}

.path-link {
  position: static;
  margin-top: auto;
  padding-top: 1.5rem;
  align-self: flex-start;
  line-height: 1.5;
}

.path-kicker {
  margin-top: 3.7rem;
}

/* The pentagon is now a real map into the five paths, not just decoration. */
.hero-emblem {
  text-decoration: none;
}

.hero-emblem svg {
  overflow: visible;
}

.hero-node {
  cursor: pointer;
  outline: none;
}

.hero-node-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.hero-node-dot {
  fill: #d8af5d;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .2s ease, fill .2s ease, filter .2s ease;
}

.hero-node-number {
  fill: #b89a62;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  opacity: .7;
  pointer-events: none;
  transition: fill .2s ease, opacity .2s ease;
}

.hero-node:hover .hero-node-dot,
.hero-node:focus .hero-node-dot,
.hero-node:focus-visible .hero-node-dot {
  fill: #f2d38d;
  transform: scale(1.45);
  filter: drop-shadow(0 0 8px rgba(231,196,120,.65));
}

.hero-node:hover .hero-node-number,
.hero-node:focus .hero-node-number,
.hero-node:focus-visible .hero-node-number {
  fill: #f2d38d;
  opacity: 1;
}

/* The numbered nodes explain the map visually; extra instructional copy adds clutter. */
.hero-map-hint {
  display: none;
}

/* A quiet, non-algorithmic chooser that maps a present need to the right doorway. */
.today-guide {
  margin: 0 0 2.25rem;
  padding: 1.35rem;
  border: 1px solid rgba(137,156,186,.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(12,21,37,.68), rgba(7,12,22,.78));
}

.today-guide-copy {
  max-width: 42rem;
}

.today-guide-copy h3 {
  margin: 0;
  font-family: "Amiri", serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.35;
  color: #f3eadc;
}

.today-guide-copy > p:last-child {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 300;
}

.today-guide-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1.15rem;
}

.today-guide-options a {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .6rem;
  padding: .85rem .9rem;
  border: 1px solid rgba(137,156,186,.14);
  border-radius: 18px;
  background: rgba(7,13,23,.58);
  color: #eee6da;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.today-guide-options a:hover,
.today-guide-options a:focus-visible {
  border-color: rgba(231,196,120,.38);
  background: rgba(20,25,35,.9);
  transform: translateY(-2px);
  outline: none;
}

.today-guide-options span {
  grid-row: 1 / span 2;
  color: #8f98a8;
  font-size: .7rem;
  letter-spacing: .12em;
}

.today-guide-options b {
  font-size: .9rem;
  font-weight: 500;
}

.today-guide-options small {
  color: var(--muted-2);
  font-size: .66rem;
}

@media (max-width: 900px) {
  .today-guide-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-guide-options a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  /* The first screen should introduce the house without consuming two screens. */
  .hero {
    padding-top: .8rem;
    padding-bottom: 3.25rem;
  }

  .hero-emblem {
    width: min(76vw, 340px);
    margin-bottom: 1.15rem;
  }

  .hero-node-number {
    font-size: 13px;
    opacity: .82;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 16vw, 5.1rem);
    line-height: 1;
  }

  .hero-line {
    margin-top: .85rem;
    font-size: 1.8rem;
  }

  .hero-text {
    margin-top: .9rem;
    max-width: 21rem;
    font-size: 1rem;
    line-height: 1.9;
  }

  .hero-cta {
    margin-top: 1rem;
  }

  .paths-section {
    padding-top: 3.35rem;
    scroll-margin-top: 5.3rem;
  }

  .section-head {
    margin-bottom: 1.9rem;
  }

  .section-head h2 {
    font-size: clamp(2rem, 10.5vw, 2.35rem);
    line-height: 1.42;
  }

  .today-guide {
    margin-bottom: 1.6rem;
    padding: 1.05rem;
    border-radius: 22px;
  }

  .today-guide-copy .eyebrow {
    margin-bottom: .45rem;
    font-size: .72rem;
  }

  .today-guide-copy h3 {
    font-size: 1.75rem;
    line-height: 1.4;
  }

  .today-guide-copy > p:last-child {
    margin-top: .4rem;
    font-size: .87rem;
    line-height: 1.8;
  }

  .today-guide-options {
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin-top: .9rem;
  }

  .today-guide-options a {
    min-height: 68px;
    padding: .75rem .7rem;
    border-radius: 16px;
  }

  .today-guide-options b {
    font-size: .85rem;
  }

  .today-guide-options a:last-child {
    grid-column: 1 / -1;
  }

  .path-card {
    min-height: 0;
    padding: 1.45rem 1.4rem 1.5rem;
    scroll-margin-top: 5.6rem;
  }

  .path-number {
    top: 1.3rem;
    inset-inline-end: 1.35rem;
    font-size: .7rem;
  }

  .path-state {
    top: 1.15rem;
    inset-inline-start: 1.25rem;
    max-width: calc(100% - 7rem);
    white-space: nowrap;
    font-size: .72rem;
  }

  .path-kicker {
    margin-top: 3.25rem;
  }

  .path-card h3 {
    margin-top: .35rem;
    font-size: clamp(2rem, 10.5vw, 2.3rem);
    line-height: 1.3;
  }

  .path-card p {
    font-size: 1rem;
    line-height: 1.95;
  }

  .path-link {
    padding-top: 1.35rem;
    font-size: .94rem;
  }

  .manifesto {
    margin-top: 3.25rem;
    margin-bottom: 4rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .manifesto h2 {
    font-size: clamp(2.15rem, 11vw, 2.55rem);
    line-height: 1.35;
  }

  .footer-inner {
    padding-top: 2rem;
    padding-bottom: calc(2.4rem + env(safe-area-inset-bottom));
  }
}
