/* ============================================
   Components — Navbar, Buttons, Cards, Inputs
   ============================================ */

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-navbar);
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}
.navbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.625rem 2rem;
  transition: all 0.3s ease;
}
.navbar-inner.scrolled-light {
  background-color: rgba(248, 245, 240, 0.95);
  border-color: rgba(15, 15, 15, 0.05);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 10px 20px -10px rgba(0, 0, 0, 0.05);
}
.navbar-inner.scrolled-dark {
  background-color: rgba(15, 15, 15, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}
.navbar-inner.non-home {
  background-color: rgba(15, 15, 15, 0.98);
  border-color: var(--white-10);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  background-color: var(--vibrant-orange);
  border-radius: var(--radius-lg);
  transform: rotate(12deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-icon {
  transform: rotate(0deg);
}
.nav-logo-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
}
.nav-logo-text .accent { color: var(--vibrant-orange); }

/* Nav Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}
.nav-link:hover {
  opacity: 1;
  color: var(--vibrant-orange);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--vibrant-orange);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Nav CTA */
.nav-cta {
  background: var(--vibrant-orange);
  color: white;
  padding: 0.625rem 2rem;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover {
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.3);
  transform: scale(1.05);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: block;
  padding: 0.5rem;
  color: inherit;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  flex-direction: column;
  padding: 2rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu.theme-light { background: var(--cream); color: var(--matte-black); }
.mobile-menu.theme-dark { background: var(--matte-black); color: white; }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
.mobile-menu-link {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.mobile-menu-footer {
  margin-top: auto;
}
.mobile-menu-cta {
  display: block;
  width: 100%;
  background: var(--vibrant-orange);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.2);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* === Buttons === */
.btn-primary {
  background: var(--vibrant-orange);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-orange-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--matte-black); }
.btn-primary:active { transform: scale(0.95); }

.btn-secondary {
  background: var(--matte-black);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-secondary:hover { background: rgba(0, 0, 0, 0.9); }

.btn-hero {
  width: 100%;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-2xl);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-hero.btn-orange {
  background: var(--vibrant-orange);
  color: white;
  box-shadow: 0 25px 50px rgba(255, 106, 0, 0.2);
}
.btn-hero.btn-dark {
  background: var(--matte-black);
  color: white;
}
.btn-hero.btn-dark:hover { background: rgba(0, 0, 0, 0.9); }
.btn-hero:hover { transform: scale(1.05); }
.btn-hero:active { transform: scale(0.98); }

@media (min-width: 640px) {
  .btn-hero { width: auto; }
}

/* === Glass Card === */
.glass-card, .glass {
  background: white;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
.glass-card:hover { box-shadow: var(--shadow-md); }

/* Dark glass */
.glass-dark {
  background: var(--white-5);
  border: 1px solid var(--white-10);
  backdrop-filter: blur(12px);
}

/* === Input Field === */
.input-field {
  width: 100%;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1rem;
  color: var(--slate-900);
  transition: all 0.3s ease;
}
.input-field:focus {
  border-color: var(--orange-50);
  box-shadow: 0 0 0 4px var(--orange-5);
}

/* === Badge === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--orange-10);
  color: var(--vibrant-orange);
  font-weight: 600;
  font-size: 10px;
  border: 1px solid var(--orange-10);
  box-shadow: var(--shadow-sm);
}

/* === Section Headers === */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-label-line {
  width: 3rem;
  height: 1px;
  background: var(--vibrant-orange);
}
.section-label-text {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--white-40);
}
.section-label-text.dark { color: var(--black-40); }

/* === Footer === */
.footer {
  background: var(--cream);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--black-5);
}
.footer-heading {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--vibrant-orange);
  opacity: 0.8;
}
.footer-link {
  color: var(--black-60);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.3s ease;
  text-decoration: none;
}
.footer-link:hover { color: var(--matte-black); }
.footer-social {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black-60);
  transition: all 0.3s ease;
  background: white;
  border: 1px solid var(--slate-200);
}
.footer-social:hover {
  color: var(--vibrant-orange);
  transform: scale(1.05);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--black-5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 10px;
  color: var(--black-40);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* === Chatbot Widget === */
.chatbot-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-chatbot);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chatbot-panel {
  width: 92vw;
  height: 75vh;
  background: var(--cream);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--black-5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.chatbot-panel.active { display: flex; }
@media (min-width: 640px) {
  .chatbot-panel { width: 360px; height: 580px; }
}
.chatbot-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to right, var(--matte-black), #2A2A2A);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chatbot-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--vibrant-orange), #FF8C00);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.chatbot-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.625;
  box-shadow: var(--shadow-sm);
}
.chatbot-msg.user {
  align-self: flex-end;
  background: var(--orange-10);
  color: var(--matte-black);
  border: 1px solid var(--orange-20);
  border-top-right-radius: 0;
}
.chatbot-msg.ai {
  align-self: flex-start;
  background: white;
  color: var(--matte-black);
  border: 1px solid var(--black-5);
  border-top-left-radius: 0;
}
.chatbot-input-area {
  padding: 1rem 1.25rem;
  background: white;
  border-top: 1px solid var(--black-5);
}
.chatbot-input-wrap {
  position: relative;
}
.chatbot-input {
  width: 100%;
  padding: 1rem 1.25rem;
  padding-right: 3.5rem;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--black-5);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.chatbot-input:focus {
  border-color: var(--orange-50);
  box-shadow: 0 0 0 4px var(--orange-5);
}
.chatbot-send-btn {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  aspect-ratio: 1;
  background: var(--matte-black);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.chatbot-send-btn:hover { background: var(--vibrant-orange); }
.chatbot-send-btn:disabled { opacity: 0.2; }

/* Chatbot FAB */
.chatbot-fab {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--matte-black);
  color: white;
  border-radius: var(--radius-full);
  padding: 0.5rem;
  box-shadow: 0 25px 50px rgba(15, 15, 16, 0.2);
  border: 1px solid var(--white-10);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}
.chatbot-fab:hover { transform: scale(1.05); }
.chatbot-fab:active { transform: scale(0.95); }
.chatbot-fab-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--vibrant-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.chatbot-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: white;
  animation: chatbot-pulse 2s infinite;
}
@keyframes chatbot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.1; }
}
.chatbot-fab-text-wrap {
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  padding-right: 1.5rem;
  overflow: hidden;
}
.chatbot-fab-divider {
  height: 1rem;
  width: 1px;
  background: var(--white-20);
  margin: 0 0.25rem;
}
.chatbot-fab-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

/* Chatbot Options */
.chatbot-option-btn {
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--black-5);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--black-60);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}
.chatbot-option-btn:hover {
  border-color: var(--orange-30);
  color: var(--vibrant-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.chatbot-cta-card {
  padding: 1.25rem;
  background: rgba(255, 106, 0, 0.04);
  border: 1px solid var(--orange-10);
  border-radius: 20px;
}
.chatbot-cta-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--vibrant-orange);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 1rem;
}
.chatbot-cta-btn {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  text-align: center;
}
.chatbot-cta-btn.call {
  background: var(--vibrant-orange);
  color: white;
}
.chatbot-cta-btn.call:hover { background: var(--matte-black); }
.chatbot-cta-btn.whatsapp {
  background: var(--matte-black);
  color: white;
}
.chatbot-cta-btn.whatsapp:hover { background: var(--vibrant-orange); }

/* Typing indicator */
.typing-dots {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--black-5);
  border-radius: 18px;
  border-top-left-radius: 0;
  box-shadow: var(--shadow-sm);
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--vibrant-orange);
  animation: typing-blink 1s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
