/* ==========================================================================
   PRISM — Components
   ========================================================================== */

/* ---- Eyebrow label ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brand-indigo);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
  flex-shrink: 0;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: scale(0.96); }

.btn--primary {
  background: var(--brand-soft, #FF4015);
  color: #FFFFFF;
  box-shadow: 0 10px 28px -8px rgba(255, 64, 21, 0.45);
}
.btn--primary:hover {
  background: var(--brand-soft, #FF4015);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(255, 64, 21, 0.55);
}

.btn--secondary {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-strong);
  color: var(--ink-900);
}
.btn--secondary:hover { transform: translateY(-2px); border-color: var(--brand-indigo); }

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--brand-indigo); color: var(--brand-indigo); }

.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn--text {
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  color: var(--brand-indigo);
  gap: var(--space-1);
}
.btn--text svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-spring); }
.btn--text:hover svg { transform: translateX(4px); }

/* ---- Glass surface (core signature material) ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm);
  transition: transform var(--dur-slow) var(--ease-spring), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow);
  border-color: rgba(139, 92, 246, 0.35);
}

/* ---- Pill / badge ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 500;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--ink-700);
}

/* ---- Icon tile ---- */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient-soft);
  color: var(--brand-indigo);
  flex-shrink: 0;
}
.icon-tile svg { width: 24px; height: 24px; }
[data-theme="dark"] .icon-tile { color: var(--brand-aqua); }

/* ---- Theme toggle switch ---- */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--glass-bg-strong);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--dur-base) var(--ease-spring);
}
[data-theme="dark"] .theme-toggle__thumb { transform: translateX(22px); }
.theme-toggle__thumb svg { width: 13px; height: 13px; }
.theme-toggle__thumb .icon-sun { display: block; }
.theme-toggle__thumb .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle__thumb .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle__thumb .icon-moon { display: block; }

/* ---- Tabs ---- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tab-btn {
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-500);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  transition: all var(--dur-base) var(--ease-out);
}
.tab-btn:hover { color: var(--ink-900); border-color: var(--border-strong); }
.tab-btn[aria-selected="true"] {
  color: #fff;
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.5);
}

/* ---- Accordion (FAQ) ---- */
.faq__list { display: flex; flex-direction: column; gap: var(--space-3); }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.accordion-item:hover { border-color: var(--border-strong); }
.accordion-item.is-open {
  border-color: rgba(139, 92, 246, 0.35);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  box-shadow: var(--glass-shadow-sm);
}
.accordion-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  text-align: left;
}
.accordion-item__index {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.7;
}
.accordion-item__question {
  flex-grow: 1;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--ink-900);
}
.accordion-item__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base);
}
.accordion-item__icon svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-spring); }
.accordion-item.is-open .accordion-item__icon { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.accordion-item.is-open .accordion-item__icon svg { transform: rotate(135deg); }

.accordion-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-smooth);
}
.accordion-item.is-open .accordion-item__panel { grid-template-rows: 1fr; }
.accordion-item__panel-inner { overflow: hidden; }
.accordion-item__panel p {
  padding: 0 var(--space-5) var(--space-5) calc(var(--space-5) + 1.4rem + var(--space-4));
  color: var(--ink-500);
  max-width: 60ch;
}
@media (max-width: 640px) {
  .accordion-item__panel p { padding-left: var(--space-5); }
  .accordion-item__index { display: none; }
}

/* ---- Avatar (initials) ---- */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  background: var(--brand-gradient);
  flex-shrink: 0;
  object-fit: cover;
}

/* ---- Star rating ---- */
.stars { display: flex; gap: 2px; color: var(--brand-violet); }
.stars svg { width: 15px; height: 15px; }

/* ---- Tooltip (title-based coming soon nudge) ---- */
[data-pending] { position: relative; }
[data-pending].is-shake { animation: shakeX 420ms var(--ease-out); }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: none;
}

/* ---- Forms (shared across any page with a form: contact, service pages) ---- */
.form-required-legend { font-size: 0.8125rem; color: var(--ink-500); margin-bottom: var(--space-5); }

.form-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--ink-900); }
.form-required { color: var(--brand-indigo); }
[data-theme="dark"] .form-required { color: var(--brand-aqua); }
.form-hint-inline { font-weight: 400; color: var(--ink-500); }
.form-hint { font-size: 0.8125rem; color: var(--ink-500); }

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--ink-900);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.form-input:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-indigo) 18%, transparent);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { cursor: pointer; }

.form-submit-row { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.form-submit-hint { font-size: 0.8125rem; color: var(--ink-300); }

/* Success panel is toggled via the native `hidden` attribute — the shown
   state MUST be scoped with :not([hidden]), otherwise this rule's bare
   `display` silently defeats the browser's [hidden]{display:none} default
   (author styles always win over UA styles, regardless of the attribute). */
.form-success:not([hidden]) { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-8) var(--space-5); }
.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(79, 70, 229, 0.5);
}
.form-success__icon svg { width: 28px; height: 28px; }
.form-success__desc { color: var(--ink-500); max-width: 40ch; }

/* ---- Dual-Theme Brand Logos ---- */
.brand__logo,
.brand img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
}
html[data-theme="dark"] .brand__logo--dark-theme { display: inline-block !important; }
html[data-theme="dark"] .brand__logo--light-theme { display: none !important; }
html[data-theme="light"] .brand__logo--dark-theme,
:root:not([data-theme="dark"]) .brand__logo--dark-theme { display: none !important; }
html[data-theme="light"] .brand__logo--light-theme,
:root:not([data-theme="dark"]) .brand__logo--light-theme { display: inline-block !important; }

@media (max-width: 560px) {
  .site-header .brand__logo,
  .site-header .brand img {
    height: 34px !important;
    max-height: 34px !important;
    width: auto !important;
  }
  .site-footer .brand__logo,
  .site-footer .brand img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
  }
}


/* ---- WhatsApp Floating Button (Section 3) ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: var(--z-toast, 1000);
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  animation: whatsappShake 4.2s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.whatsapp-float:hover {
  animation-play-state: paused;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
  display: block;
}
.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background-color: #E50914;
  color: #FFFFFF;
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, "DM Sans", sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-badge {
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

@keyframes whatsappShake {
  0% { transform: rotate(0deg); }
  6% { transform: rotate(-7deg); }
  13% { transform: rotate(7deg); }
  19% { transform: rotate(-5deg); }
  25% { transform: rotate(4deg); }
  30% { transform: rotate(-2deg); }
  34% { transform: rotate(1deg); }
  37% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}

/* ---- Footer & Contact Info Card Links Styling ---- */
.site-footer .footer__contact {
  margin-bottom: 0;
}
.site-footer .footer__contact a,
.contact-info-card__list a {
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer .footer__contact a:hover,
.contact-info-card__list a:hover {
  color: var(--brand-indigo);
}
[data-theme="dark"] .site-footer .footer__contact a:hover,
[data-theme="dark"] .contact-info-card__list a:hover {
  color: var(--brand-aqua);
}
[data-theme="dark"] .footer__contact svg,
[data-theme="dark"] .contact-info-card__list svg {
  color: var(--brand-aqua);
}

/* ---- Hide Blog & Portfolio Hero Sections strictly without affecting other pages ---- */
.blog-hero,
.portfolio-hero {
  display: none !important;
}

/* ---- Elegant Gradient Section Divider Line ---- */
.section-divider-line {
  display: block;
  width: 40%;
  height: 2px;
  margin-inline: auto;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--section-divider-color) 18%, 
    var(--section-divider-color) 82%, 
    transparent 100%
  );
  box-shadow: 0 0 10px var(--section-divider-glow);
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* ---- Single Blog Post 2nd Container (Content Section) 40px Padding ---- */
.single-post .post-content-section {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
.single-post .post-content-section .post-body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ---- Long-form legal document (Privacy notice). Scoped to .legal-doc so
   other legal pages are unaffected. ---- */
.legal-doc {
  max-width: 760px;
  font-size: 1.0625rem;
  color: var(--ink-700);
  overflow-wrap: break-word;
}
.legal-doc > * + * { margin-top: var(--space-4); }
.legal-doc h2 { font-size: var(--fs-h3); margin-top: var(--space-8); }
.legal-doc h3 { font-size: var(--fs-h4); margin-top: var(--space-6); }
.legal-doc p,
.legal-doc li { line-height: var(--lh-body); }
.legal-doc ul {
  list-style: disc;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.legal-doc li::marker { color: var(--brand-indigo); }
[data-theme="dark"] .legal-doc li::marker { color: var(--brand-aqua); }

/* ---- Performance claims hidden (not removed) until they describe real
   results. Each has a "Show" switch in Studio. ---- */
.claims-block.is-hidden,
.hero__meta.is-hidden,
.case-card__result.is-hidden { display: none !important; }
