/* ============================================================
   Pawty Yoga — Neighborhood landing pages stylesheet
   ============================================================
   Shared by /puppy-yoga-{neighborhood}.html pages so they all
   look identical to the main brand without duplicating ~1000
   lines of CSS into each file. Mirrors the homepage palette
   and fonts (DM Sans + Fraunces) but stripped down to only
   what these single-purpose landing pages need.
   ============================================================ */

:root {
  --cream: #FAF7F2;
  --warm-white: #FFFCF7;
  --butter: #F5E6C8;
  --peach: #F2C4A0;
  --coral: #E8805A;
  --coral-dark: #C05A38;
  --sage: #8BAF7C;
  --sage-light: #C8DEC0;
  --sage-dark: #4A7A3A;
  --brown: #3D2B1F;
  --brown-mid: #6B4A35;
  --charcoal: #2A2420;
  --gold: #D4A843;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--coral-dark); }
a:hover { color: var(--coral); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }
}

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--coral); color: white; padding: 0.6rem 1.2rem;
  border-radius: 0 0 0.75rem 0.75rem; font-weight: 700; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===================== NAV ===================== */
nav.np-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: rgba(255,252,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61,43,31,0.08);
}
.np-nav .nav-logo img { max-height: 72px; height: auto; width: auto; display: block; }
.np-nav .nav-links { display: flex; gap: 1.6rem; align-items: center; }
.np-nav .nav-links a {
  text-decoration: none; color: var(--brown-mid);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.np-nav .nav-links a:hover { color: var(--coral); }
.np-nav .nav-cta {
  background: var(--coral); color: white !important;
  padding: 0.65rem 1.35rem; border-radius: 999px;
  font-weight: 700 !important;
}
@media (max-width: 800px) {
  nav.np-nav { padding: 0 1.25rem; }
  .np-nav .nav-links a:not(.nav-cta) { display: none; }
  .np-nav .nav-cta { padding: 0.55rem 1rem; font-size: 0.85rem; }
}

/* ===================== BREADCRUMBS ===================== */
/* Visible breadcrumb trail at the top of each neighborhood page —
   pairs with the BreadcrumbList JSON-LD schema. Helps reviewers
   know where they are AND helps Google build better SERP snippets. */
.np-breadcrumbs {
  margin-top: 80px; /* clear the fixed nav */
  padding: 0.9rem 4rem 0.4rem;
  font-size: 0.82rem;
  color: var(--brown-mid);
  background: var(--cream);
}
.np-breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  max-width: 880px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
}
.np-breadcrumbs li { display: inline-flex; align-items: center; }
.np-breadcrumbs a {
  color: var(--brown-mid); text-decoration: none;
  border-bottom: 1px dotted rgba(61,43,31,0.25);
  transition: color 0.2s, border-color 0.2s;
}
.np-breadcrumbs a:hover { color: var(--coral); border-color: var(--coral); }
.np-breadcrumbs li[aria-current="page"] {
  color: var(--charcoal); font-weight: 600;
}
.np-breadcrumbs .np-breadcrumb-sep {
  color: rgba(61,43,31,0.35);
  margin: 0 0.25rem;
}
@media (max-width: 700px) {
  .np-breadcrumbs { padding-left: 1.3rem; padding-right: 1.3rem; }
}

/* ===================== HERO ===================== */
.np-hero {
  /* margin-top handled by .np-breadcrumbs (which sits above and clears the fixed nav).
     Pages without breadcrumbs would need to re-add margin-top: 80px here. */
  padding: 2rem 4rem 3rem;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
  border-bottom: 1px solid rgba(61,43,31,0.06);
}
.np-hero-inner { max-width: 880px; margin: 0 auto; }
.np-tag {
  display: inline-block;
  background: rgba(74,122,58,0.10);
  color: var(--sage-dark);
  border: 1px solid rgba(74,122,58,0.25);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.np-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.np-hero h1 em {
  font-style: italic;
  color: var(--coral);
  font-weight: 700;
}
.np-hero-sub {
  font-size: 1.1rem;
  color: var(--brown-mid);
  max-width: 640px;
  margin-bottom: 1.6rem;
}
.np-cta-row {
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center;
}
.np-btn {
  background: var(--coral); color: white;
  text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.1s;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
}
.np-btn:hover { background: var(--coral-dark); }
.np-btn:active { transform: translateY(1px); }
.np-btn-secondary {
  background: transparent; color: var(--brown);
  border: 1.5px solid rgba(61,43,31,0.18);
}
.np-btn-secondary:hover { background: rgba(61,43,31,0.04); color: var(--coral-dark); }

/* ===================== CONTENT SECTIONS ===================== */
section.np-section {
  padding: 4rem 4rem;
}
.np-section-inner { max-width: 880px; margin: 0 auto; }
.np-section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--charcoal);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
.np-section h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin: 1.5rem 0 0.5rem;
}
.np-section p {
  font-size: 1rem;
  color: var(--brown-mid);
  margin-bottom: 1rem;
  max-width: 720px;
}
.np-section ul {
  margin-left: 1.4rem; color: var(--brown-mid);
}
.np-section ul li { margin-bottom: 0.4rem; }

.np-alt-bg { background: var(--warm-white); }

/* Distance / landmark card */
.np-landmark {
  background: white;
  border: 1px solid rgba(61,43,31,0.08);
  border-radius: 1.2rem;
  padding: 1.4rem 1.6rem;
  margin: 1.4rem 0;
  box-shadow: 0 4px 16px rgba(61,43,31,0.04);
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  align-items: center;
}
.np-landmark .np-landmark-icon {
  font-size: 1.8rem;
  background: rgba(232,128,90,0.10);
  border-radius: 999px;
  width: 3.2rem; height: 3.2rem;
  display: flex; align-items: center; justify-content: center;
}
.np-landmark strong { color: var(--charcoal); }

/* What to expect — quick card grid */
.np-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.np-card {
  background: white;
  border: 1px solid rgba(61,43,31,0.08);
  border-radius: 1.2rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 4px 16px rgba(61,43,31,0.04);
}
.np-card .np-card-icon {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}
.np-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin: 0 0 0.4rem;
}
.np-card p {
  font-size: 0.9rem; color: var(--brown-mid); margin: 0;
}

/* FAQ */
.np-faq details {
  background: white;
  border: 1px solid rgba(61,43,31,0.08);
  border-radius: 1rem;
  padding: 1rem 1.3rem;
  margin-bottom: 0.8rem;
}
.np-faq summary {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
}
.np-faq summary::-webkit-details-marker { display: none; }
.np-faq summary::after {
  content: '+'; float: right; color: var(--coral); font-weight: 900;
  transition: transform 0.2s;
}
.np-faq details[open] summary::after { content: '–'; }
.np-faq details p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--brown-mid);
}

/* Cross-link strip — links to other neighborhood pages */
.np-cross-links {
  background: var(--butter);
  padding: 3rem 4rem;
  text-align: center;
}
.np-cross-links h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.np-cross-links .np-link-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
}
.np-cross-links a {
  display: inline-block;
  background: white;
  border: 1px solid rgba(61,43,31,0.12);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.np-cross-links a:hover {
  background: var(--coral); color: white; border-color: var(--coral);
}

/* Final CTA */
.np-final-cta {
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem 4rem;
  text-align: center;
}
.np-final-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cream);
  margin-bottom: 1rem;
}
.np-final-cta p {
  color: rgba(250,247,242,0.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 1.4rem;
}
.np-final-cta .np-btn {
  background: var(--coral);
}
.np-final-cta .np-btn:hover { background: var(--coral-dark); }

/* Footer */
footer.np-footer {
  background: var(--brown);
  color: rgba(250,247,242,0.85);
  padding: 2.4rem 4rem;
  text-align: center;
  font-size: 0.88rem;
}
footer.np-footer .footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin: 1rem 0;
}
footer.np-footer a {
  color: rgba(250,247,242,0.85);
  text-decoration: none;
}
footer.np-footer a:hover { color: var(--coral); }
footer.np-footer .footer-copy {
  color: rgba(250,247,242,0.55);
  font-size: 0.78rem;
  margin-top: 0.6rem;
}

/* Mobile tightening */
@media (max-width: 700px) {
  .np-hero,
  section.np-section,
  .np-cross-links,
  .np-final-cta,
  footer.np-footer {
    padding-left: 1.3rem;
    padding-right: 1.3rem;
  }
  .np-landmark { grid-template-columns: 1fr; text-align: center; }
  .np-landmark .np-landmark-icon { margin: 0 auto; }
}

/* ============================================================
   MOBILE-FIRST + ACCESSIBILITY ENHANCEMENTS
   - WCAG 2.5.5 / 2.5.8: tap targets >= 44x44px (using 48 for safety)
   - Touch-action manipulation removes 300ms tap delay on iOS
   - Smooth scroll behavior already on root <html>
   ============================================================ */

/* Ensure ALL primary CTAs meet 48px minimum tap target */
.np-btn,
.np-btn-secondary {
  min-height: 48px;
  touch-action: manipulation;
}

/* Larger underline-target zone for inline links inside paragraphs (mobile thumbs) */
.np-section-inner p a,
.np-faq details p a {
  padding: 2px 0;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

/* Phone-link styling — subtle but always tappable */
a[href^="tel:"] {
  white-space: nowrap;
}

/* Cross-link row pills get tap-target compliance */
.np-link-row a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}

/* Improve breadcrumb tap targets on mobile */
.np-breadcrumbs ol li a {
  display: inline-block;
  padding: 6px 4px;
  min-height: 36px;
  line-height: 1.5;
}

/* Visible focus ring for keyboard users */
.np-btn:focus-visible,
.np-btn-secondary:focus-visible,
.np-link-row a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 999px;
}

/* iOS Safari: prevent zoom on input focus by ensuring 16px minimum input font */
@media (max-width: 900px) {
  input, select, textarea, button {
    font-size: 16px;
  }
}

/* Mobile sticky booking strip — appears on neighborhood/event/about pages
   that opt in by adding <div class="np-mobile-cta-bar">...</div> near the
   end of <body>. Hidden on desktop. */
.np-mobile-cta-bar {
  display: none;
}
@media (max-width: 700px) {
  .np-mobile-cta-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 252, 247, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(61, 43, 31, 0.08);
    box-shadow: 0 -8px 24px rgba(61, 43, 31, 0.06);
  }
  .np-mobile-cta-bar a {
    flex: 1;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    touch-action: manipulation;
  }
  .np-mobile-cta-bar a.primary {
    background: var(--coral);
    color: white;
  }
  .np-mobile-cta-bar a.secondary {
    background: rgba(232, 128, 90, 0.08);
    color: var(--coral-dark);
    border: 1.5px solid rgba(232, 128, 90, 0.3);
    flex: 0 0 auto;
    min-width: 56px;
  }
  /* Add bottom padding on body so the sticky bar doesn't cover content */
  body { padding-bottom: 96px; }
}

/* Reduced-motion respect (already in homepage; mirror for neighborhood pages) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
