/* ==========================================================================
   components.css — Buttons, cards, forms, header/nav, footer, badges,
   reviews, mobile CTA, accordion, breadcrumbs
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-align: center;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--brand-primary);
  color: var(--brand-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background-color: var(--brand-secondary); color: var(--brand-white); box-shadow: var(--shadow-md); }

.btn--accent {
  background-color: var(--brand-accent);
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { background-color: var(--brand-accent-dark); color: var(--brand-white); box-shadow: var(--shadow-md); }

.btn--outline {
  background-color: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn--outline:hover { background-color: var(--brand-primary); color: var(--brand-white); }

.btn--ghost-light {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--brand-white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover { background-color: var(--brand-white); color: var(--brand-dark); }

.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-md); }
.btn--sm { padding: 0.55rem 1rem; font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }

.btn__icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
  background-color: transparent;
}
/* Solid state — toggled by JS on scroll, and default on interior pages */
.site-header.is-solid,
.site-header--solid {
  background-color: var(--brand-white);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--brand-white);
}
.brand__logo { height: 40px; width: auto; }
.brand__name { line-height: 1.1; }
/* On transparent header, brand text is white; on solid, dark */
.site-header.is-solid .brand,
.site-header--solid .brand { color: var(--brand-dark); }

/* Desktop nav */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-md);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav__link {
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: var(--brand-white);
  padding: 0.35rem 0;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand-accent);
  transition: width var(--transition-fast);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.site-header.is-solid .nav__link,
.site-header--solid .nav__link { color: var(--brand-dark); }

.header-cta {
  display: none;
  align-items: center;
  gap: var(--space-xs);
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.nav-toggle__bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--brand-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.site-header.is-solid .nav-toggle__bar,
.site-header--solid .nav-toggle__bar { background: var(--brand-dark); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px);
  background: var(--brand-white);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  padding: calc(var(--header-height) + var(--space-sm)) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__list { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-drawer__link {
  display: block;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: var(--fs-md);
  color: var(--brand-dark);
  border-bottom: 1px solid var(--color-border);
}
.mobile-drawer__link:hover { color: var(--brand-primary); }
.mobile-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--brand-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--brand-primary) 12%, white);
  color: var(--brand-primary);
  margin-bottom: var(--space-sm);
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { margin-bottom: var(--space-xs); }
.card__text { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-sm); }
.card__link {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card--media .card__body { padding: var(--space-md); }

/* --------------------------------------------------------------------------
   Trust / badges
   -------------------------------------------------------------------------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--brand-dark);
}
.trust-item svg { width: 22px; height: 22px; color: var(--brand-primary); flex-shrink: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  font-family: var(--font-heading);
  background: var(--brand-light);
  color: var(--brand-dark);
}
.badge--accent { background: color-mix(in srgb, var(--brand-accent) 20%, white); color: var(--brand-accent-dark); }
.badge--emergency {
  background: var(--color-error);
  color: var(--brand-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stat blocks */
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-3xl);
  color: var(--brand-primary);
  line-height: 1;
}
.stat__label { font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: 0.35rem; }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-star);
  font-size: var(--fs-md);
  line-height: 1;
}

.review {
  background: var(--brand-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.review__text {
  font-size: var(--fs-md);
  color: var(--brand-dark);
  margin-bottom: var(--space-sm);
}
.review__meta { display: flex; align-items: center; gap: 0.75rem; }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-light);
}
.review__author { font-weight: var(--fw-semibold); font-family: var(--font-heading); }
.review__date { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* Carousel */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-xs);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.carousel__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.carousel__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  transition: background-color var(--transition-fast);
}
.carousel__btn:hover { background: var(--brand-light); }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__dots { display: flex; gap: 0.5rem; }
.carousel__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background-color var(--transition-fast);
}
.carousel__dot.is-active { background: var(--brand-primary); }

@media (min-width: 768px) {
  .carousel__slide { flex-basis: calc((100% - var(--space-md)) / 2); }
}
@media (min-width: 1024px) {
  .carousel__slide { flex-basis: calc((100% - 2 * var(--space-md)) / 3); }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form__row { display: grid; gap: var(--space-sm); grid-template-columns: 1fr; }
@media (min-width: 480px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.form__group { display: flex; flex-direction: column; gap: 0.35rem; }
.form__label {
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: var(--brand-dark);
}
.form__label .req { color: var(--color-error); }

.form__control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: var(--fs-base);
  color: var(--brand-dark);
  background: var(--brand-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form__control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}
textarea.form__control { min-height: 130px; resize: vertical; }
.form__control.is-invalid { border-color: var(--color-error); }

.form__error {
  font-size: var(--fs-xs);
  color: var(--color-error);
  min-height: 1em;
}
.form__hint { font-size: var(--fs-xs); color: var(--color-text-muted); }

.form__status {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  display: none;
}
.form__status.is-visible { display: block; }
.form__status--success { background: color-mix(in srgb, var(--color-success) 14%, white); color: var(--color-success); }
.form__status--error { background: color-mix(in srgb, var(--color-error) 12%, white); color: var(--color-error); }

.form-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
}

/* --------------------------------------------------------------------------
   Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__item:last-child { border-bottom: none; }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  color: var(--brand-dark);
  background: var(--brand-white);
}
.accordion__trigger:hover { background: var(--brand-light); }
.accordion__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  transition: transform var(--transition-base);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.accordion__panel-inner { padding: 0 var(--space-md) var(--space-md); color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs a:hover { color: var(--brand-white); }
.breadcrumbs__sep { opacity: 0.6; }
.breadcrumbs [aria-current="page"] { color: var(--brand-white); font-weight: var(--fw-medium); }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--space-md); counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-white);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

/* --------------------------------------------------------------------------
   Mobile sticky CTA bar
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-mobile-cta);
  display: flex;
  height: var(--mobile-cta-height);
  background: var(--brand-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(16, 24, 40, 0.08);
}
.mobile-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}
.mobile-cta__btn svg { width: 18px; height: 18px; }
.mobile-cta__btn--call { background: var(--brand-primary); color: var(--brand-white); }
.mobile-cta__btn--book { background: var(--brand-accent); color: var(--brand-dark); }
/* Pad the page so the bar never covers footer content on mobile */
body { padding-bottom: var(--mobile-cta-height); }

@media (min-width: 1024px) {
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Emergency banner
   -------------------------------------------------------------------------- */
.emergency-banner {
  background: var(--color-error);
  color: var(--brand-white);
  text-align: center;
  padding: 0.6rem var(--space-sm);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}
.emergency-banner a { color: var(--brand-white); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-block: var(--space-lg) var(--space-md);
}
.site-footer h4 { color: var(--brand-white); margin-bottom: var(--space-sm); font-size: var(--fs-md); }
.footer-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
.footer__brand .brand { color: var(--brand-white); margin-bottom: var(--space-sm); }
.footer__about { font-size: var(--fs-sm); max-width: 32ch; }
.footer__list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__list a { color: rgba(255, 255, 255, 0.78); font-size: var(--fs-sm); }
.footer__list a:hover { color: var(--brand-white); }
.footer__contact { font-size: var(--fs-sm); display: flex; flex-direction: column; gap: 0.6rem; }
.footer__contact a { color: rgba(255,255,255,0.9); }
.footer__social { display: flex; gap: var(--space-xs); margin-top: var(--space-sm); }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-white);
  transition: background-color var(--transition-fast);
}
.footer__social a:hover { background: var(--brand-primary); }
.footer__social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }

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

/* --------------------------------------------------------------------------
   Desktop nav reveal
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   Misc content components
   -------------------------------------------------------------------------- */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-base);
}
.check-list svg {
  width: 22px; height: 22px;
  color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.cta-band {
  background: linear-gradient(120deg, var(--brand-secondary), var(--brand-primary));
  color: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.cta-band h2 { color: var(--brand-white); }
.cta-band p { color: rgba(255,255,255,0.9); margin-inline: auto; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

.pricing-table {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.pricing-table table { min-width: 480px; }
.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}
.pricing-table th { font-family: var(--font-heading); background: var(--brand-light); }

.map-embed {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius-lg);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li {
  padding: 0.4rem 0.9rem;
  background: var(--brand-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
