/* Zamzam Pilgrim Laundry · v1.5 targeted layout refinements
   Fixes: consistent navigation indicator, FAQ inset spacing, CTA button alignment.
   Loaded after the existing styles to preserve the v1.4 visual design. */

/* 1. One indicator geometry for hovered, focused and currently selected pages. */
@media (min-width: 781px) {
  .site-header .nav-links > a {
    position: relative;
  }
  .site-header .nav-links > a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -16px;
    height: 2px;
    background: #b88c51;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .24s ease;
    pointer-events: none;
  }
  .site-header .nav-links > a:hover::after,
  .site-header .nav-links > a:focus-visible::after,
  .site-header .nav-links > a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

/* 2. Inner left/right breathing room on every FAQ accordion item. */
.faq-layout,
.faq-layout > *,
.faq-layout .accordion {
  min-width: 0;
}
.faq-layout .accordion {
  border-top: 0;
  display: grid;
  gap: 12px;
}
.faq-layout .accordion details {
  min-width: 0;
  margin: 0;
  padding: 22px 25px;
  border: 1px solid #e7e0d4;
  border-radius: 9px;
  background: #fdfaf5;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.faq-layout .accordion details:hover,
.faq-layout .accordion details[open] {
  border-color: #d7c4a4;
  background: #fffcf7;
  box-shadow: 0 7px 22px rgba(48, 57, 43, .045);
}
.faq-layout .accordion summary {
  min-height: 26px;
  line-height: 1.55;
  gap: 18px;
}
.faq-layout .accordion summary::after {
  flex: 0 0 20px;
  text-align: center;
}
.faq-layout .accordion details p {
  margin: 12px 32px 0 0;
  line-height: 1.8;
}

/* 3. CTA actions form a consistent grid; never uneven wrapping. */
.cta-band .cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(26px, 4vw, 65px);
}
.cta-band .cta-band-inner > div:first-child {
  min-width: 0;
}
.cta-band .cta-band-inner > .btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  width: 420px;
  max-width: 100%;
  margin: 0;
}
.cta-band .cta-band-inner > .btn-row > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  height: 100%;
  padding: 14px 16px;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  line-height: 1.25;
}
.cta-band .cta-band-inner > .btn-row > .btn .icon {
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .cta-band .cta-band-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .cta-band .cta-band-inner > .btn-row {
    width: min(100%, 430px);
  }
}

@media (max-width: 780px) {
  /* Drawer selection uses a background highlight, never the desktop underline. */
  .site-header .nav-links > a::after {
    display: none !important;
  }
  .faq-layout .accordion details {
    padding: 19px 20px;
  }
  .faq-layout .accordion details p {
    margin-right: 12px;
  }
}

@media (max-width: 520px) {
  .faq-layout.container {
    width: calc(100% - 36px);
  }
  .faq-layout .accordion details {
    padding: 18px 18px;
  }
  .cta-band .cta-band-inner > .btn-row {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .cta-band .cta-band-inner > .btn-row > .btn {
    min-height: 54px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav-links > a::after {
    transition: none;
  }
}
