/* ===================================================
   Vinny InfoCell — Custom Styles
   Brand colors: #0A2E2A (dark), #59D29D (light), #017FF8 (accent)
   =================================================== */

/* ── Base ── */
body {
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Hide scrollbar utility */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Remove default details marker */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #F0F5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.dark #preloader {
  background: #040F1A;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
#preloader-inner {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
}
#preloader-inner img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
#preloader-inner::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(228, 199, 155, 0.15);
  border-top-color: #E4C79B;
  animation: preloader-spin 0.9s linear infinite;
}
@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

/* ── Linktree Buttons (mobile) ── */
.linktree-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.01em;
}
.linktree-btn:active {
  transform: scale(0.97);
}
.linktree-btn:hover {
  opacity: 0.92;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

/* Small linktree buttons */
.linktree-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.linktree-btn-sm:hover {
  opacity: 0.88;
}

/* ── Accordion Cards ── */
.accordion-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(4, 23, 40, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.dark .accordion-card {
  background: #0a2e2abb;
  border-color: rgba(1, 127, 248, 0.12);
}
.accordion-card[open] {
  box-shadow: 0 4px 20px rgba(1, 127, 248, 0.08);
}
.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
}
.accordion-content {
  padding: 0 1.25rem 1.25rem;
  line-height: 1.65;
}
/* Rotate icon when open */
.accordion-card[open] .accordion-icon {
  transform: rotate(180deg);
}

/* ── WhatsApp Widget ── */
.whatsapp-accordion {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.whatsapp-accordion[open] {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.whatsapp-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

.whatsapp-accordion[open] .accordion-icon {
  transform: rotate(180deg);
}

.whatsapp-widget {
  width: 100%;
}

.whatsapp-widget-mobile {
  padding-top: 0.5rem;
}

.whatsapp-widget-shell {
  overflow: hidden;
  border-radius: 1.75rem;
  background: #f7f3ee;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.whatsapp-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, #128c7e, #21b289);
}

.whatsapp-widget-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.whatsapp-widget-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
}

.whatsapp-widget-name {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
}

.whatsapp-widget-body {
  padding: 1rem 1rem 1.25rem;
  background:
    radial-gradient(circle at top, rgba(1, 127, 248, 0.09), transparent 45%),
    linear-gradient(180deg, #f4efe8, #f8f5ef);
}

.whatsapp-widget-time {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(12, 12, 13, 0.45);
}

.whatsapp-widget-bubble {
  max-width: 82%;
  padding: 1rem 1.05rem;
  border-radius: 1.4rem;
  border-top-left-radius: 0.4rem;
  background: #ffffff;
  color: #2e2f34;
  box-shadow: 0 14px 36px rgba(12, 12, 13, 0.08);
}

.whatsapp-widget-bubble p + p {
  margin-top: 0.55rem;
}

.whatsapp-widget-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.whatsapp-widget-composer textarea {
  min-height: 5.25rem;
  resize: vertical;
  border-radius: 1.1rem;
  border: 1px solid rgba(4, 23, 40, 0.1);
  background: #ffffff;
  color: #041728;
  padding: 1rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.whatsapp-widget-composer textarea:focus {
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
}

.whatsapp-widget-send {
  width: 3.2rem;
  height: 3.2rem;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25d366, #11b958);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.32);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.whatsapp-widget-send:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.whatsapp-widget-send .material-symbols-outlined {
  font-size: 1.4rem;
}

@media (max-width: 767px) {
  .whatsapp-widget-name {
    font-size: 1.2rem;
  }

  .whatsapp-widget-bubble {
    max-width: 88%;
  }
}

/* ── Service Card ── */
.service-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(1, 127, 248, 0.12);
  border-color: rgba(1, 127, 248, 0.25) !important;
}

/* ── Catalog Category Tabs ── */
.catalog-tab-active {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: #017FF8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(1, 127, 248, 0.35);
  border: 2px solid #017FF8;
  cursor: pointer;
}

.catalog-tab-inactive {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: transparent;
  color: rgba(4, 23, 40, 0.6);
  border: 1.5px solid rgba(4, 23, 40, 0.12);
  cursor: pointer;
}
.dark .catalog-tab-inactive {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}
.catalog-tab-inactive:hover {
  border-color: #017FF8;
  color: #017FF8;
}

/* ── Catalog Skeletons (loading state) ── */
.catalog-tab-skeleton {
  background: rgba(4, 23, 40, 0.07);
}
.dark .catalog-tab-skeleton {
  background: rgba(255, 255, 255, 0.07);
}
.catalog-card-skeleton {
  background: rgba(4, 23, 40, 0.06);
}
.dark .catalog-card-skeleton {
  background: rgba(255, 255, 255, 0.06);
}

/* ── Catalog Card ── */
.catalog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.catalog-card:hover {
  transform: translateY(-2px);
}

.catalog-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(1, 127, 248, 0.24);
  background: rgba(1, 127, 248, 0.12);
  color: #59d29d;
  padding: 0.7rem 0.95rem;
  border-radius: 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.catalog-add-btn:hover {
  transform: translateY(-1px);
  background: rgba(1, 127, 248, 0.18);
  border-color: rgba(89, 210, 157, 0.35);
}

.catalog-add-btn.is-added {
  background: rgba(89, 210, 157, 0.14);
  border-color: rgba(89, 210, 157, 0.28);
  color: #59d29d;
}

.pedido-preview-item,
.pedido-modal-item {
  border-radius: 1.25rem;
  border: 1px solid rgba(4, 23, 40, 0.08);
  background: rgba(4, 23, 40, 0.03);
}

.dark .pedido-preview-item,
.dark .pedido-modal-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.pedido-step-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(4, 23, 40, 0.1);
  background: #ffffff;
  color: #041728;
  transition: all 0.18s ease;
}

.pedido-step-btn:hover {
  border-color: rgba(1, 127, 248, 0.3);
  color: #017ff8;
}

.dark .pedido-step-btn {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0a2030;
  color: #ffffff;
}

.pedido-remove-btn {
  border-radius: 9999px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  padding: 0.5rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pedido-remove-btn:hover {
  background: rgba(220, 38, 38, 0.14);
}

/* ── Instagram Widget ── */
.instagram-shell {
  width: 100%;
}

.instagram-panel {
  overflow: hidden;
  border-radius: 2rem;
  background: #ffffff;
  border: 1px solid rgba(4, 23, 40, 0.08);
  box-shadow: 0 24px 70px rgba(4, 23, 40, 0.12);
}

.dark .instagram-panel {
  background: #0f1d2b;
  border-color: rgba(255, 255, 255, 0.08);
}

.instagram-profile-bar {
  display: grid;
  grid-template-columns: 1.25fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.35rem;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border-bottom: 1px solid rgba(4, 23, 40, 0.06);
}

.dark .instagram-profile-bar {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border-bottom-color: rgba(4, 23, 40, 0.06);
}

.instagram-profile-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.instagram-profile-avatar-ring {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: conic-gradient(from 180deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  padding: 3px;
  flex: none;
}

.instagram-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  background: #ffffff;
  padding: 4px;
}

.instagram-profile-copy {
  min-width: 0;
}

.instagram-profile-name {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}

.dark .instagram-profile-name {
  color: #111827;
}

.instagram-profile-handle {
  margin-top: 0.3rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.dark .instagram-profile-handle {
  color: #6b7280;
}

.instagram-profile-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.instagram-profile-stat {
  text-align: center;
}

.instagram-profile-stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
  color: #111827;
}

.dark .instagram-profile-stat strong {
  color: #111827;
}

.instagram-profile-stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.dark .instagram-profile-stat span {
  color: #6b7280;
}

.instagram-follow-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #0095f6, #1877f2);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 149, 246, 0.25);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.instagram-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #dbe4f0;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.dark .instagram-card {
  background: #08131d;
}

.instagram-card-bg,
.instagram-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.instagram-card-bg {
  background-size: cover;
  background-position: center;
}

.instagram-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 23, 40, 0), rgba(4, 23, 40, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-card:hover::after {
  opacity: 1;
}

.instagram-card:hover .instagram-card-bg,
.instagram-card:hover .instagram-card-media {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.instagram-card-badge {
  src:url(assets/icons/insta.png)
}

.instagram-modal-media {
  max-width: min(92vw, 760px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: #000000;
}

@media (max-width: 767px) {
  #modalProdutoMedia {
    aspect-ratio: 9 / 10 !important;
    max-height: 72vh !important;
  }
}

.modal-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(1, 127, 248, 0.65) rgba(255, 255, 255, 0.06);
}

.modal-scroll-area::-webkit-scrollbar {
  width: 10px;
}

.modal-scroll-area::-webkit-scrollbar-track {
  background: rgba(4, 23, 40, 0.08);
  border-radius: 9999px;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(1, 127, 248, 0.95), rgba(89, 210, 157, 0.9));
  border-radius: 9999px;
  border: 2px solid rgba(10, 32, 48, 0.18);
}

.modal-scroll-area::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(1, 127, 248, 1), rgba(89, 210, 157, 1));
}

.dark .modal-scroll-area {
  scrollbar-color: rgba(1, 127, 248, 0.8) rgba(255, 255, 255, 0.08);
}

.dark .modal-scroll-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.dark .modal-scroll-area::-webkit-scrollbar-thumb {
  border-color: rgba(10, 32, 48, 0.55);
}

/* ── Hero grid overlay ── */
.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(1, 127, 248, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 127, 248, 0.4) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Back to Top Button ── */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 18px;
  border-radius: 50%;
  background: #F0F5FA;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 50;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  color: #041728;
}
.dark #backToTop {
  background: #0A1F2E;
  color: #ffffff;
}
#backToTop .material-symbols-outlined {
  font-size: 20px;
}
#backToTop.visible {
  transform: scale(1);
}
#backToTop:hover {
  box-shadow: 0 6px 24px rgba(1, 127, 248, 0.4);
}
#backToTop svg {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  transform: rotate(-90deg);
  pointer-events: none;
}

@media screen and (max-width: 640px) {
  #backToTop {
    width: 2rem;
    height: 2rem;
    bottom: 1rem;
    right: 1rem;
  }
  #backToTop .material-symbols-outlined {
    font-size: 16px;
  }
}

/* ── Header shrink on scroll ── */
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(4, 23, 40, 0.1);
}
.dark #site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Copied button state ── */
#copyBtn.copied, #copyBtnDsk.copied {
  border-color: #59D29D !important;
  color: #59D29D !important;
}

/* ── Footer Social Icons ── */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.footer-social-link:hover {
  transform: translateY(-3px);
}

.footer-social-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-base {
  transition: opacity 0.25s ease;
  opacity: 1;
}
.footer-social-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.footer-social-link:hover .footer-social-base {
  opacity: 0;
}
.footer-social-link:hover .footer-social-hover {
  opacity: 1;
}
