/* components.css — buttons, labels, cards, nav */

/* ---------- typography components ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.eyebrow.on-dark { color: var(--accent); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1rem;
  display: block;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-title { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.item-title { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.02em; }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin-top: 1.25rem;
}

.lede.on-light { color: var(--text-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding-inline: 2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), background-color 0.3s ease;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #1c6fc2; }

.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #000; }

.btn-ghost-dark {
  color: var(--white);
  border-color: var(--border-dark);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

/* beam sweep on primary buttons */
.beam-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.beam-button:hover::before { left: 120%; }

/* ---------- region splash ---------- */
.region-panel {
  color: var(--white);
  background: transparent;
  transition: background-color 0.4s ease;
}

.region-panel:hover { background: rgba(255,255,255,.04); }

.region-panel .region-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  letter-spacing: -0.03em;
}

.region-panel .region-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.region-panel .region-sub svg { transition: transform 0.3s var(--ease); }
.region-panel:hover .region-sub svg { transform: translateX(6px); }

/* ---------- header ---------- */
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11,12,13,.6);
  transition: color 0.25s ease;
}

.nav-link:hover { color: var(--text-dark); }

.nav-link.is-active { color: var(--text-dark); position: relative; }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.9rem;
  height: 2px;
  background: var(--accent);
}

.header-phone {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: none;
}

@media (min-width: 640px) { .header-phone { display: inline; } }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  border-radius: 100px;
}
.lang-toggle:hover { background: var(--dark); border-color: var(--dark); }
.lang-flag { font-size: 0.9rem; line-height: 1; }

/* ---------- stat cards ---------- */
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.stat-item span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- system items ---------- */
.system-item .item-index {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.system-item .item-index i,
.service-detail-head .item-index i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 0.15rem;
}

.service-detail-head .item-index {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.system-item .item-title { margin-bottom: 0.75rem; text-transform: uppercase; }

.system-item p { color: var(--text-muted); line-height: 1.6; font-size: 0.94rem; }

/* ---------- service card toggle indicator ---------- */
.service-card { position: relative; }

.service-toggle {
  position: absolute;
  top: clamp(1.75rem, 3vw, 2.5rem);
  right: clamp(1.75rem, 3vw, 2.5rem);
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, background-color 0.3s ease;
}

.service-toggle svg { width: 12px; height: 12px; }
.service-toggle line { stroke: var(--text-dark); stroke-width: 1.6; stroke-linecap: round; }

.service-card:hover .service-toggle { border-color: var(--accent); }

.service-card.is-active .service-toggle {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

.service-card.is-active .service-toggle line { stroke: var(--white); }


/* ---------- feature list ---------- */
.feature-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- upsell ---------- */
.service-upsell {
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.4rem;
  background: var(--offwhite);
}

.upsell-link {
  display: block;
  margin-top: 0.85rem;
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.upsell-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- value items ---------- */
.value-item .item-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.value-item .item-title { margin-bottom: 0.75rem; }

.value-item p { color: var(--text-on-dark-muted); line-height: 1.6; font-size: 0.94rem; }

/* ---------- team ---------- */
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.team-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

.team-photo-lg {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.team-card .item-title { margin-bottom: 0.35rem; }

.team-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.94rem; }

.values-quote blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.values-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
}

/* ---------- footer ---------- */
.footer-word {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-region {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--white); }

/* ---------- pricing cards ---------- */
.pricing-badge {
  position: absolute;
  top: 0;
  right: clamp(1.75rem, 3vw, 2.25rem);
  transform: translateY(-50%);
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.pricing-price strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.pricing-price strong.pricing-custom {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--accent);
}

.pricing-price strong.pricing-range {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.pricing-price span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-card.is-highlight .pricing-price span { color: var(--text-on-dark-muted); }

/* ---------- audit callout ---------- */
.audit-card {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid var(--border-light);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--offwhite);
}

.audit-card p { color: var(--text-muted); margin-top: 0.6rem; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding-block: 1.4rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 40rem;
}

/* ---------- contact form ---------- */
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid var(--border-light);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.25s ease;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row input.has-error,
.form-row textarea.has-error { border-color: #c0392b; }

.contact-facts dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-facts dd {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
}

.contact-facts a { border-bottom: 1px solid transparent; transition: border-color 0.25s ease, color 0.25s ease; }
.contact-facts a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.85rem 1.5rem;
  max-width: min(90vw, 26rem);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 300;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11,12,13,.28);
  z-index: 240;
  transition: transform 0.3s var(--ease);
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- chatbot widget ---------- */
.chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 5.75rem;
  z-index: 240;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11,12,13,.28);
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
}

.chat-toggle:hover { transform: scale(1.08); background: var(--accent); }
.chat-toggle svg { width: 24px; height: 24px; position: absolute; }
.chat-toggle .chat-icon-close { opacity: 0; }
.chat-toggle.is-open .chat-icon-open { opacity: 0; }
.chat-toggle.is-open .chat-icon-close { opacity: 1; }
.chat-toggle { position: relative; }

.chat-panel {
  width: min(88vw, 22rem);
  max-height: min(70vh, 30rem);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 48px -16px rgba(11,12,13,.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: detailIn 0.35s var(--ease);
}

.chat-panel[hidden] { display: none; }

.chat-panel-head {
  background: var(--dark);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chat-panel-head strong { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.chat-panel-head span { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 0.06em; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 12rem;
}

.chat-msg { display: flex; }
.chat-msg-user { justify-content: flex-end; }
.chat-msg-bot { justify-content: flex-start; }

.chat-bubble {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.chat-msg-bot .chat-bubble { background: var(--offwhite); color: var(--text-dark); }
.chat-msg-user .chat-bubble { background: var(--accent); color: var(--white); }

.chat-msg-typing .chat-bubble {
  color: var(--text-muted);
  letter-spacing: 0.15em;
  animation: chatTypingPulse 1.1s ease-in-out infinite;
}

@keyframes chatTypingPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.1rem 0.85rem;
}

.chat-chip {
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.75rem;
  font-size: 0.76rem;
  color: var(--text-dark);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.chat-chip:hover { border-color: var(--accent); color: var(--accent); }

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border-light);
}

.chat-input-row input {
  flex: 1;
  border: none;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.chat-input-row input:focus { outline: none; }

.chat-input-row button {
  padding: 0 1.1rem;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  transition: background-color 0.25s ease;
}

.chat-input-row button:hover { background: var(--accent); }

@media (max-width: 480px) {
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 50px; height: 50px; }
  .chat-widget { right: 1rem; bottom: 5rem; }
  .chat-toggle { width: 50px; height: 50px; }
  .chat-panel { width: calc(100vw - 2rem); }
}

/* ---------- grain overlay ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
