/* =========================================================
   Vital Aesthetics — Components
   File: css/components.css
   Purpose: Reusable component refinements and page-specific
   component patterns shared across the website.
   ========================================================= */

/* -----------------------------
   Header States
----------------------------- */
.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(51, 51, 51, 0.08);
}

.site-header .btn-small,
.site-nav .btn {
  white-space: nowrap;
}

/* -----------------------------
   Page Hero Variants
----------------------------- */
.hero-split .hero-copy {
  max-width: 680px;
}

.hero-centered {
  background:
    radial-gradient(circle at center top, rgba(184, 169, 154, 0.22), transparent 44%),
    var(--color-ivory);
}

.hero-centered .narrow {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.hero-centered h1 {
  max-width: 900px;
}

.hero-centered p:not(.eyebrow) {
  max-width: 680px;
}

/* -----------------------------
   Trust Bar Refinements
----------------------------- */
.trust-bar + .section {
  border-top: 1px solid rgba(51, 51, 51, 0.08);
}

.trust-grid div:not(:last-child) {
  border-right: 1px solid rgba(247, 245, 242, 0.18);
}

/* -----------------------------
   Feature Cards
----------------------------- */
.feature-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-card p {
  margin-top: 0.35rem;
}

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

.feature-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

/* -----------------------------
   Service Cards
----------------------------- */
.service-card h4 {
  margin-bottom: 0.25rem;
}

.service-card .check-list {
  margin-bottom: 0.5rem;
}

.service-card .check-list li {
  margin-bottom: 0.45rem;
}

.service-card .text-link {
  margin-top: auto;
  padding-top: var(--space-md);
}

/* Featured services on homepage can use uneven count gracefully */
.service-grid article:last-child:nth-child(odd) {
  grid-column: span 2;
}

/* -----------------------------
   Timeline
----------------------------- */
.timeline-step::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 1.1rem;
  background: var(--color-taupe);
}

.timeline-step p {
  font-size: 0.96rem;
}

/* -----------------------------
   Contact Cards
----------------------------- */
.contact-card {
  margin-top: var(--space-md);
}

.contact-card .btn {
  margin-top: var(--space-md);
}

/* -----------------------------
   Contact Form
----------------------------- */
.contact-form button {
  margin-top: 0.5rem;
  width: fit-content;
}

.contact-form ::placeholder {
  color: rgba(108, 103, 97, 0.6);
}

/* -----------------------------
   FAQ Accordion Enhanced State
----------------------------- */
.faq-question {
  position: relative;
  padding-right: 2rem;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--transition);
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Static FAQ pages using h3 instead of button */
.faq-item > h3 {
  color: var(--color-charcoal);
}

/* -----------------------------
   Pricing / Program Cards
----------------------------- */
.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: var(--color-charcoal);
}

.price-line strong {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.price-line span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* -----------------------------
   Legal Pages
----------------------------- */
.legal-content h2,
.narrow h2 {
  scroll-margin-top: 120px;
}

.legal-content p,
.legal-content li,
.narrow p,
.narrow li {
  font-size: 1.02rem;
}

.legal-content ul,
.narrow ul {
  padding-left: 0;
}

/* -----------------------------
   Image Treatment
----------------------------- */
.hero-image img,
.split-image img,
.service-card img {
  background: var(--color-stone-soft);
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  border: 1px solid rgba(51, 51, 51, 0.12);
  border-radius: var(--radius-lg);
}

/* -----------------------------
   Utility Badges
----------------------------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.55);
  color: var(--color-charcoal);
  font-size: 0.82rem;
  font-weight: 750;
}

/* -----------------------------
   CTA Banner Variants
----------------------------- */
.cta-banner .fine-print {
  max-width: 720px;
  margin-inline: auto;
  color: rgba(247, 245, 242, 0.66);
}

.cta-inner .btn + .fine-print {
  margin-top: var(--space-md);
}

/* -----------------------------
   Footer Component Refinements
----------------------------- */
.footer-brand {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.site-footer .btn-footer {
  color: var(--color-charcoal);
}

.site-footer .btn-footer:hover {
  color: var(--color-charcoal);
}

/* -----------------------------
   Service Menu Layout Helpers
----------------------------- */
.service-menu-note {
  max-width: 720px;
  margin: var(--space-lg) auto 0;
  color: var(--color-muted);
  text-align: center;
}

.service-disclaimer {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.55);
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* -----------------------------
   Placeholder Image Fallback
----------------------------- */
img[src=""],
img:not([src]) {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(184,169,154,0.2), rgba(168,181,162,0.18)),
    var(--color-stone-soft);
}

/* -----------------------------
   Soft Dividers
----------------------------- */
.soft-divider {
  width: min(var(--container), calc(100% - 2rem));
  height: 1px;
  margin: 0 auto;
  background: rgba(51, 51, 51, 0.1);
}

/* -----------------------------
   Map / Embedded Content Placeholder
----------------------------- */
.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(247,245,242,0.9), rgba(235,230,223,0.95));
  color: var(--color-muted);
  text-align: center;
  padding: var(--space-lg);
}

/* -----------------------------
   Mobile Sticky Booking Button
----------------------------- */
.mobile-booking-bar {
  display: none;
}
