/* ============================================
   Braehill Lodge — Shared Styles
   ============================================ */

:root {
  --color-primary: #5b21b6;
  --color-primary-dark: #4c1d95;
  --color-primary-deep: #312e81;
  --color-primary-light: #ede9fe;
  --color-accent: #fbbf24;
  --color-text: #374151;
  --color-text-muted: #6b7280;
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-footer: #1f2937;
  --header-height: 4.25rem;
  --font-body: 'Nunito Sans', sans-serif;
  --font-display: 'Lora', serif;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: 0.3s ease;
}

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.font-logo {
  font-family: var(--font-display);
  transition: font-size 0.3s ease-in-out;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* --- Header --- */
#header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

#header.header-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: var(--shadow-md);
}

#header.header-scrolled .font-logo {
  font-size: 1.5rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  color: #4b5563;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active {
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(to right, var(--color-primary), var(--color-primary-deep));
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-cta {
  background: var(--color-primary);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.nav-cta::after {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* --- Mobile Menu --- */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-xl);
  padding: 1.25rem;
  z-index: 60;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

#mobile-menu.is-open {
  transform: translateX(0);
}

#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-links a {
  color: #4b5563;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.mobile-nav-links .nav-cta {
  text-align: center;
  margin-top: 0.5rem;
}

/* --- Main --- */
main {
  padding-top: var(--header-height);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Page Hero --- */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 7rem 0 5rem;
  text-align: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 10, 18, 0.72) 0%, rgba(12, 10, 18, 0.45) 48%, rgba(12, 10, 18, 0.28) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e9d5ff;
  text-shadow: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  max-width: 18rem;
}

.page-hero p {
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-left {
  text-align: left;
}

.page-hero-left h1 {
  max-width: 14rem;
  margin-left: 0;
  margin-right: 0;
}

.page-hero-left p {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 767px) {
  .page-hero {
    padding: 6rem 0 3.5rem;
  }

  .page-hero h1 {
    max-width: none;
  }
}

/* --- Buttons --- */
.btn-gradient {
  display: inline-block;
  background-image: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary-deep) 51%, var(--color-primary) 100%);
  background-size: 200% auto;
  color: white;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  box-shadow: var(--shadow-xl);
  border: none;
  cursor: pointer;
  transition: 0.5s;
}

.btn-gradient:hover {
  background-position: right center;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: scale(1.05);
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section-white {
  background: var(--color-white);
}

.section-alt {
  background: var(--color-bg);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  max-width: 48rem;
  margin: 0 auto 3rem;
  color: var(--color-text-muted);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* --- Grid layouts --- */
.grid-2 {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.grid-2 > * {
  min-width: 0;
}

.content-split {
  align-items: start;
}

@media (min-width: 768px) {
  .content-split .image-zoom img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    height: 100%;
    min-height: 18rem;
  }
}

.grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.order-swap {
  display: contents;
}

@media (min-width: 768px) {
  .order-text {
    order: 1;
  }
  .order-image {
    order: 2;
  }
  .order-text-last {
    order: 1;
  }
  .order-image-first {
    order: 2;
  }
}

/* --- Cards --- */
.card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 9999px;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1f2937;
}

.card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Image zoom --- */
.image-zoom {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-xl);
}

.image-zoom img {
  width: 100%;
  transition: transform 0.5s ease;
}

.image-zoom:hover img {
  transform: scale(1.05);
}

/* --- Check lists --- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  display: inline-flex;
  background: var(--color-primary);
  border-radius: 9999px;
  padding: 0.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.check-icon.amber {
  background: var(--color-accent);
}

.check-icon svg {
  width: 1rem;
  height: 1rem;
  color: white;
}

/* --- Testimonials --- */
.testimonial-card {
  background: white;
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-card p:first-child {
  font-style: italic;
  margin: 0 0 1rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

/* --- FAQ --- */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.faq-question.open svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.faq-answer p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--color-text-muted);
}

/* --- Gallery --- */
.gallery-img {
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-grid-home {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid-home {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-span-2 {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid-4 .gallery-span-2 {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-grid-4 .gallery-span-wide {
    grid-column: span 2;
  }
}

.gallery-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gallery-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-grid-outdoors {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid-outdoors {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-span-wide {
    grid-column: span 2;
  }
}

.gallery-section {
  margin-bottom: 5rem;
}

.gallery-section:last-child {
  margin-bottom: 0;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.2);
  outline: none;
}

.form-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-xl);
}

.form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin: 0 0 1.5rem;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-box {
  background: #f5f3ff;
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.highlight-box h3 {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 0.5rem;
}

.highlight-box ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-primary);
}

.highlight-box li {
  margin-bottom: 0.5rem;
}

/* --- Contact --- */
.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-xl);
}

.contact-card h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--color-text-muted);
  margin: 0;
}

.contact-item a {
  color: var(--color-primary);
}

.contact-item a:hover {
  text-decoration: underline;
}

.map-wrap {
  border-radius: 0.5rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  height: 24rem;
}

@media (min-width: 768px) {
  .map-wrap {
    height: 100%;
    min-height: 28rem;
  }
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Animations --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
footer {
  background: var(--color-footer);
  color: white;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #c4b5fd;
  margin: 0 0 1rem;
}

.footer-brand p {
  color: #9ca3af;
  margin: 0;
}

.footer-col h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a,
.footer-col span {
  color: #9ca3af;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-col li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-col li svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #9ca3af;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: white;
}

.footer-social svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 2rem 0;
  text-align: center;
  color: #9ca3af;
}

.footer-partner {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.footer-partner span {
  font-weight: 700;
  color: #c4b5fd;
}

.footer-legal {
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.footer-legal a {
  color: #9ca3af;
}

.footer-legal a:hover {
  color: white;
}

.footer-legal span {
  margin: 0 0.75rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

/* --- Home Hero Slider --- */
#hero-slider {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: 28rem;
  overflow: hidden;
  color: white;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding-bottom: 5rem;
  }
}

.hero-text {
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-text {
    padding: 2.5rem;
    max-width: 48rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
  }
}

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin: 0;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.75rem;
  }
}

.hero-text p {
  margin-top: 1rem;
  font-size: 1.125rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-text p {
    font-size: 1.25rem;
  }
}

.hero-text .btn-wrap {
  margin-top: 2rem;
}

/* --- Facility mosaic --- */
.facility-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .facility-mosaic {
    grid-template-columns: repeat(4, 1fr);
  }

  .facility-mosaic .span-large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.facility-mosaic .image-zoom {
  height: 100%;
  min-height: 10rem;
}

.facility-mosaic .image-zoom img {
  height: 100%;
  object-fit: cover;
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Hero eyebrow --- */
.hero-eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9d5ff;
  margin: 0 0 0.75rem;
  text-shadow: none;
}

/* --- Prose content --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 2rem;
  line-height: 1.4;
}

.breadcrumb span[aria-hidden="true"] {
  color: #d1d5db;
}

.prose {
  max-width: 40rem;
}

.prose .section-title {
  margin: 0 0 1rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--color-text);
  line-height: 1.75;
  font-size: 1.02rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a:not(.btn-gradient) {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:not(.btn-gradient):hover {
  color: var(--color-primary-dark);
}

.prose a.text-link,
.text-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a.text-link:hover,
.text-link:hover {
  color: var(--color-primary-dark);
}

.prose .nap-line {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.prose .cta-row {
  margin-top: 1.5rem;
}

.prose-narrow {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.prose-narrow .section-title {
  margin-bottom: 1.5rem;
}

.grid-2 > .prose {
  max-width: none;
}

/* --- Feature list --- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .feature-list:not(.feature-list-stack) {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-list-stack {
  grid-template-columns: 1fr;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text);
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--color-primary);
}

.faq-list-narrow {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Card as link --- */
a.card-link {
  display: block;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

a.card-link h3 {
  margin-top: 0;
  transition: color var(--transition);
}

a.card-link p {
  margin-bottom: 0;
}

a.card-link:hover h3 {
  color: var(--color-primary);
}
.why-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  background: var(--color-bg);
  border-top: 3px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.why-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem;
}

.why-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* --- CTA banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  color: white;
  padding: 4rem 0;
}

.cta-banner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.cta-banner p {
  max-width: 40rem;
  margin: 0 auto 1rem;
  opacity: 0.95;
  line-height: 1.7;
}

.cta-banner p:last-of-type {
  margin-bottom: 2rem;
}

.cta-banner .btn-gradient {
  background-image: none;
  background: white;
  color: var(--color-primary-dark);
}

.cta-banner .btn-gradient:hover {
  background: #f5f3ff;
  transform: scale(1.05);
}

/* --- Care page jump nav --- */
.care-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 1.5rem;
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

.care-jump a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.4rem 0.9rem;
  border: 1px solid #ddd6fe;
  border-radius: 9999px;
  transition: all var(--transition);
}

.care-jump a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.care-jump a.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.care-define {
  background: #f5f3ff;
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.care-define h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 0.6rem;
}

.care-define p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1.05rem;
}

.care-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.care-related a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.4rem 0.85rem;
  border: 1px solid #ddd6fe;
  border-radius: 9999px;
  transition: all var(--transition);
}

.care-related a:hover {
  background: var(--color-primary);
  color: white;
}

.care-block {
  padding-bottom: 4rem;
  scroll-margin-top: 7rem;
}

.care-block:last-child {
  padding-bottom: 0;
}
