/* ═══════════════════════════════════════════════════════════════
   CLARITY — components.css
   Nav · Footer · Buttons · Cards · Badges · Modals
   Forms · Accordion · Tabs · Toast Notifications
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.clarity-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.clarity-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  width: 100%;
}

/* Transparent on top, solid on scroll */
.clarity-nav.transparent {
  background: transparent;
}
.clarity-nav.scrolled {
  background: var(--pure-white);
  box-shadow: var(--shadow-sm);
}
.clarity-nav.scrolled .nav-logo,
.clarity-nav.scrolled .nav-links a {
  color: var(--charcoal);
}
.clarity-nav.scrolled .nav-cta {
  color: var(--pure-white) !important;
}

.nav-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pure-white);
  text-decoration: none;
  transition: color var(--transition);
}
.clarity-nav.scrolled .nav-logo { color: var(--teal-deep); }
.nav-logo i {
  color: var(--teal-light);
  font-size: 1.4rem;
}

/* Actual brand logo SVG */
.nav-logo-icon {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.nav-logo-icon .path-dark { fill: currentColor; }
.nav-logo-icon .path-teal { fill: var(--teal-light); }
.clarity-nav.scrolled .nav-logo-icon .path-teal { fill: var(--teal-mid); }
.footer-brand .nav-logo-icon .path-dark { fill: rgba(255,255,255,0.9); }
.footer-brand .nav-logo-icon .path-teal { fill: var(--teal-light); }

/* Logo wordmark + tagline */
.nav-logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.logo-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal-light);
  text-transform: uppercase;
  white-space: nowrap;
}
.clarity-nav.scrolled .logo-tagline { color: var(--teal-mid); }
.footer-brand .logo-tagline { color: var(--teal-soft); }
.mobile-menu .logo-tagline { color: var(--teal-soft); font-size: 0.55rem; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-light);
}
.clarity-nav.scrolled .nav-links a:hover,
.clarity-nav.scrolled .nav-links a.active {
  color: var(--teal-mid);
  background: var(--teal-pale);
}

/* Nav CTA Button */
.nav-cta {
  background: var(--teal-mid) !important;
  color: var(--pure-white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 500 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--teal-deep) !important;
  transform: translateY(-1px);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--pure-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(168, 216, 207, 0.3);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: var(--z-dropdown);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--charcoal) !important;
  background: transparent !important;
}
.dropdown-menu a:hover {
  background: var(--teal-pale) !important;
  color: var(--teal-deep) !important;
}
.dropdown-menu a i { color: var(--teal-mid); width: 20px; text-align: center; }

/* Nav actions wrapper */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Cart button */
.nav-cart {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--pure-white);
  font-size: 1.25rem;
  padding: 8px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.clarity-nav.scrolled .nav-cart { color: var(--charcoal); }
.nav-cart:hover { background: rgba(255,255,255,0.1); }
.clarity-nav.scrolled .nav-cart:hover { background: var(--teal-pale); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--pure-white);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.clarity-nav.scrolled .nav-hamburger { color: var(--charcoal); }
.nav-hamburger:hover { background: rgba(255,255,255,0.12); }
.clarity-nav.scrolled .nav-hamburger:hover { background: var(--teal-pale); }

/* Hamburger bars */
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Cart Badge on nav */
.nav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--charcoal);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 2px;
}

/* ─── Cart Drawer ─── */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 95vw);
  background: var(--pure-white);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(26,42,42,0.18);
  overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--teal-pale);
  flex-shrink: 0;
}
.cart-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.cart-drawer-header h3 i { color: var(--teal-mid); }
.cart-drawer-header button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(168,216,207,0.5);
  background: transparent;
  color: var(--slate);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}
.cart-drawer-header button:hover { background: var(--teal-pale); color: var(--charcoal); border-color: var(--teal-mid); }

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  color: var(--slate);
}
.cart-empty i { font-size: 3rem; color: var(--teal-soft); margin-bottom: 16px; }
.cart-empty h4 { font-size: 1.1rem; color: var(--charcoal); margin-bottom: 8px; }
.cart-empty p  { font-size: 0.875rem; }

.cart-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--teal-pale);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--teal-pale);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.cart-item-variant { font-size: 0.78rem; color: var(--slate); margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.cart-qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(168,216,207,0.5);
  background: transparent; color: var(--slate);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; transition: all var(--transition);
}
.cart-qty-btn:hover { background: var(--teal-pale); border-color: var(--teal-mid); color: var(--teal-deep); }
.cart-qty { font-size: 0.875rem; font-weight: 600; color: var(--charcoal); min-width: 20px; text-align: center; }
.cart-item-price { font-size: 0.95rem; font-weight: 700; color: var(--teal-deep); font-family: var(--font-display); flex-shrink: 0; }
.cart-item-remove { background: none; border: none; color: var(--slate); cursor: pointer; padding: 4px; font-size: 1rem; transition: color var(--transition); }
.cart-item-remove:hover { color: #E53E3E; }

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--teal-pale);
  flex-shrink: 0;
  background: var(--warm-white);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--slate);
  padding: 5px 0;
}
.cart-total-row {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid var(--teal-soft);
  font-size: 1rem;
  color: var(--charcoal);
}
.cart-total-row strong { color: var(--teal-deep); font-family: var(--font-display); font-size: 1.2rem; }
.cart-drawer-footer .btn-block { margin-top: 16px; }

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 90vw);
  background: var(--charcoal);
  z-index: calc(var(--z-nav) + 100);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: var(--z-nav);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  backdrop-filter: blur(2px);
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
/* Mobile menu header (logo row + close button) */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu-header .nav-logo-wordmark .logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pure-white);
}
.mobile-close,
#mobileClose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  padding: 4px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.mobile-close:hover,
#mobileClose:hover { color: var(--pure-white); background: rgba(255,255,255,0.1); }
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: rgba(255,255,255,0.08);
  color: var(--teal-light);
}
.mobile-nav-links a i { color: var(--teal-light); width: 20px; text-align: center; }
.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-social {
  display: flex;
  gap: 16px;
}
.mobile-menu-social a {
  color: rgba(255,255,255,0.5);
  font-size: 1.25rem;
  transition: color var(--transition);
}
.mobile-menu-social a:hover { color: var(--teal-light); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

/* Base button reset + shared styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Primary */
.btn-primary {
  background: var(--teal-mid);
  color: var(--pure-white);
  border-color: var(--teal-mid);
}
.btn-primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 95, 90, 0.3);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary */
.btn-secondary {
  background: transparent;
  color: var(--teal-mid);
  border-color: var(--teal-mid);
}
.btn-secondary:hover {
  background: var(--teal-mid);
  color: var(--pure-white);
  transform: translateY(-2px);
}

/* Ghost (white border, for dark backgrounds) */
.btn-ghost {
  background: transparent;
  color: var(--pure-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--pure-white);
}

/* Gold accent */
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #b8943a;
  border-color: #b8943a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

/* Text link style */
.btn-text {
  background: transparent;
  color: var(--teal-mid);
  border-color: transparent;
  padding-inline: 0;
  gap: 6px;
}
.btn-text:hover { color: var(--teal-deep); }
.btn-text i { transition: transform var(--transition); }
.btn-text:hover i { transform: translateX(4px); }

/* Danger */
.btn-danger {
  background: var(--error);
  color: var(--pure-white);
  border-color: var(--error);
}
.btn-danger:hover {
  background: #c53030;
  border-color: #c53030;
}

/* Size variants */
.btn-sm { padding: 10px 22px; font-size: 0.875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-xl { padding: 20px 48px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Icon only */
.btn-icon {
  padding: 12px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.btn-icon.btn-lg { width: 52px; height: 52px; }

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}
.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--pure-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Card image */
.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Card body */
.card-body {
  padding: 28px;
}
.card-body .overline { margin-bottom: 8px; }
.card-body h3, .card-body h4 { margin-bottom: 12px; }
.card-body p { margin-bottom: 20px; }

/* Card footer */
.card-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Service card */
.service-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(168, 216, 207, 0.3);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-mid), var(--teal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--teal-deep);
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon {
  background: var(--teal-mid);
  color: var(--pure-white);
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.service-card p { margin-bottom: 24px; font-size: 0.95rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-mid);
  font-weight: 500;
  font-size: 0.9rem;
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { color: var(--teal-deep); gap: 10px; }

/* Testimonial card */
.testimonial-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card .quote-icon {
  color: var(--teal-pale);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.testimonial-card .stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 1rem;
}
.testimonial-card blockquote {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal-soft);
}
.testimonial-author-info strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.testimonial-author-info span {
  font-size: 0.85rem;
  color: var(--slate);
}

/* Feature card */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(168, 216, 207, 0.3);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--teal-soft);
  box-shadow: var(--shadow-md);
}
.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-deep);
  font-size: 1.5rem;
}

/* Resource / Article card */
.resource-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.resource-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.resource-card:hover .resource-card-img { transform: scale(1.04); }
.resource-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.resource-card-body .overline { margin-bottom: 10px; }
.resource-card-body h4 { margin-bottom: 12px; color: var(--charcoal); }
.resource-card-body p { flex: 1; font-size: 0.9rem; margin-bottom: 20px; }
.resource-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--slate);
  flex-wrap: wrap;
}
.resource-meta i { color: var(--teal-mid); }

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group:last-child { margin-bottom: 0; }

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}
.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

/* Base input */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #CBD5E0;
  border-radius: var(--radius);
  background: var(--pure-white);
  color: var(--charcoal);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(45, 139, 122, 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #A0AEC0; }
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
.form-input.success,
.form-textarea.success {
  border-color: var(--success);
}
.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* Input with icon */
.form-input-group {
  position: relative;
}
.form-input-group .form-input {
  padding-left: 44px;
}
.form-input-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate);
  pointer-events: none;
  font-size: 1rem;
}

/* Error / help text */
.form-error {
  font-size: 0.8rem;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--slate);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #CBD5E0;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--teal-mid);
  margin-top: 2px;
}
.form-check input[type="radio"] { border-radius: 50%; }
.form-check-label {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.5;
}
.form-check-label a {
  color: var(--teal-mid);
  text-decoration: underline;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.newsletter-form .form-input {
  flex: 1;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: var(--pure-white);
}
.newsletter-form .form-input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form .form-input:focus {
  border-color: var(--teal-light);
  background: rgba(255,255,255,0.18);
}

/* ═══════════════════════════════════════════════════════════════
   ACCORDION
   ═══════════════════════════════════════════════════════════════ */

.accordion-item {
  background: var(--pure-white);
  border-radius: var(--radius);
  border: 1px solid rgba(168, 216, 207, 0.3);
  overflow: hidden;
  transition: box-shadow var(--transition);
  margin-bottom: 12px;
}
.accordion-item.open {
  box-shadow: var(--shadow-sm);
  border-color: var(--teal-soft);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: 16px;
  transition: background var(--transition);
}
.accordion-trigger:hover { background: var(--teal-pale); }
.accordion-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  flex: 1;
}
.accordion-icon {
  color: var(--teal-mid);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.open .accordion-body { max-height: 500px; }
.accordion-content {
  padding: 0 24px 24px;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════════ */

.tab-list {
  display: flex;
  gap: 4px;
  background: var(--teal-pale);
  border-radius: var(--radius-full);
  padding: 6px;
  width: fit-content;
  margin: 0 auto var(--gap-lg);
}
.tab-trigger {
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}
.tab-trigger:hover { color: var(--teal-mid); }
.tab-trigger.active {
  background: var(--pure-white);
  color: var(--teal-deep);
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 0;
  margin-bottom: 20px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--charcoal);
}
.modal-close {
  color: var(--slate);
  padding: 6px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover { color: var(--charcoal); background: var(--teal-pale); }
.modal-body { padding: 0 32px 32px; }
.modal-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--teal-pale);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--charcoal);
  color: var(--pure-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  max-width: 400px;
  pointer-events: all;
  animation: slideInRight 0.4s ease forwards, fadeIn 0.4s ease forwards;
}
.toast.removing { animation: fadeDown 0.3s ease forwards; opacity: 0; }
.toast-icon { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.toast.toast-success .toast-icon { color: #68D391; }
.toast.toast-error .toast-icon   { color: #FC8181; }
.toast.toast-info .toast-icon    { color: #63B3ED; }
.toast.toast-warning .toast-icon { color: #F6AD55; }
.toast-content { flex: 1; }
.toast-title   { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.toast-msg     { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.4; }
.toast-dismiss {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
  padding: 2px;
  margin-top: -2px;
  flex-shrink: 0;
}
.toast-dismiss:hover { color: var(--pure-white); }
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 0 0 var(--radius) var(--radius);
  animation: progressFill 4s linear forwards;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.clarity-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding-top: 80px;
  padding-bottom: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 60px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo i { color: var(--teal-light); }
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  color: var(--pure-white);
  transform: translateY(-2px);
}
.footer-col h5 {
  color: var(--pure-white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col ul li a:hover {
  color: var(--teal-light);
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.footer-contact-item i {
  color: var(--teal-light);
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--teal-light); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--teal-light); }

/* ═══════════════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  background: var(--charcoal);
  color: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner > i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.cookie-banner-content { flex: 1; }
.cookie-banner-content p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.cookie-banner-content p a {
  color: var(--teal-light);
  text-decoration: underline;
}
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT / HELP WIDGET
   ═══════════════════════════════════════════════════════════════ */

.chat-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: var(--z-modal);
}
.chat-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-mid);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  animation: pulseRing 3s ease-out infinite;
}
.chat-trigger:hover {
  background: var(--teal-deep);
  transform: scale(1.08);
}
.chat-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 220px;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.chat-panel.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.chat-panel-header {
  padding: 12px 14px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chat-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: background var(--transition);
}
.chat-action:hover { background: var(--teal-pale); color: var(--teal-deep); }
.chat-action i { color: var(--teal-mid); width: 20px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   TRUST BADGES
   ═══════════════════════════════════════════════════════════════ */

.trust-badges {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--slate);
}
.trust-badge i { color: var(--teal-mid); }

/* ═══════════════════════════════════════════════════════════════
   STEP INDICATOR (Booking / Multi-step forms)
   ═══════════════════════════════════════════════════════════════ */

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.step-item::after {
  content: '';
  width: 60px;
  height: 2px;
  background: var(--teal-pale);
  margin: 0 4px;
  flex-shrink: 0;
}
.step-item:last-child::after { display: none; }
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--pure-white);
  transition: all var(--transition);
  flex-shrink: 0;
}
.step-item.active .step-dot {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  color: var(--pure-white);
}
.step-item.completed .step-dot {
  background: var(--teal-pale);
  border-color: var(--teal-mid);
  color: var(--teal-mid);
}
.step-item.active::after,
.step-item.completed::after {
  background: var(--teal-soft);
}
.step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
}
.step-item.active .step-label { color: var(--teal-deep); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   PRICE CARD
   ═══════════════════════════════════════════════════════════════ */

.price-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(168, 216, 207, 0.3);
  position: relative;
  transition: all var(--transition);
}
.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.price-card.featured {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--pure-white);
}
.price-card.featured h3,
.price-card.featured .price-amount,
.price-card.featured p { color: var(--pure-white); }
.price-card.featured .price-feature { color: rgba(255,255,255,0.8); }
.price-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1;
  margin: 20px 0 4px;
}
.price-amount sup {
  font-size: 1.2rem;
  vertical-align: super;
  margin-right: 2px;
}
.price-period {
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 24px;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.price-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--slate);
}
.price-feature i { color: var(--teal-mid); flex-shrink: 0; }
.price-card.featured .price-feature i { color: var(--teal-light); }

/* ═══════════════════════════════════════════════════════════════
   ALERT / NOTICE BARS
   ═══════════════════════════════════════════════════════════════ */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-info    { background: #EBF8FF; color: #2B6CB0; border-left: 4px solid #63B3ED; }
.alert-success { background: #F0FFF4; color: #276749; border-left: 4px solid #68D391; }
.alert-warning { background: #FFFBEB; color: #975A16; border-left: 4px solid #F6AD55; }
.alert-error   { background: #FFF5F5; color: #C53030; border-left: 4px solid #FC8181; }

/* ═══════════════════════════════════════════════════════════════
   LAZY IMAGE PLACEHOLDER
   ═══════════════════════════════════════════════════════════════ */

.lazy-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.lazy-img.loaded { opacity: 1; }
.img-placeholder {
  background: linear-gradient(135deg, var(--teal-pale), var(--teal-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-mid);
  font-size: 2rem;
}
