/* ===================================================
   Studio Urban — Custom Styles
   =================================================== */

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

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

details summary {
  list-style: none;
}

/* Hide scrollbar */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Linktree Buttons (mobile) ── */
.linktree-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.01em;
}

.linktree-btn:active {
  transform: scale(0.97);
}

.linktree-btn:hover {
  opacity: 0.92;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

/* ── Accordion Cards ── */
.accordion-card {
  background: #f5f3f0;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.dark .accordion-card {
  background: #1a2310;
  border-color: rgba(206, 170, 92, 0.12);
}

.accordion-card[open] {
  box-shadow: 0 4px 20px rgba(206, 170, 92, 0.08);
}

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

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  line-height: 1.65;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── WhatsApp Widget ── */
.whatsapp-widget {
  width: 100%;
}

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

.whatsapp-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #0e7f69, #12926f);
  color: #fff;
}

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

.whatsapp-widget-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: #fff;
}

.whatsapp-widget-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.whatsapp-widget-status {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.whatsapp-widget-close {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.whatsapp-widget-body {
  min-height: 13rem;
  padding: 1rem 1rem 1.5rem;
  background:
    linear-gradient(rgba(239, 234, 226, 0.93), rgba(239, 234, 226, 0.93)),
    url("images/whatsappBg.jpg");
  background-size: cover;
  background-position: center;
}

.whatsapp-widget-time {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(86, 86, 86, 0.75);
}

.whatsapp-widget-bubble {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 18rem;
  padding: 0.95rem 1.05rem;
  border-radius: 0 1.25rem 1.25rem 1.25rem;
  background: #fff;
  color: #1c1c1c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.whatsapp-widget-bubble p {
  margin: 0;
}

.whatsapp-widget-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  background: #f6f5f3;
}

.whatsapp-widget-composer textarea {
  flex: 1;
  min-height: 3.5rem;
  max-height: 8rem;
  resize: vertical;
  border: none;
  border-radius: 1rem;
  background: #fff;
  padding: 0.95rem 1rem;
  font: inherit;
  color: #1c1c1c;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.whatsapp-widget-composer textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(18, 146, 111, 0.35);
}

.whatsapp-widget-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #16b85a);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

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

.whatsapp-widget-mobile {
  margin-top: 0.25rem;
}

.dark .whatsapp-widget-shell {
  background: #ece5dd;
}

@media (max-width: 767px) {
  .whatsapp-widget-shell {
    border-radius: 1.35rem;
  }

  .whatsapp-widget-body {
    min-height: 10rem;
  }
}

/* ── Gallery Item Hover ── */
.gallery-item .gallery-img {
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

/* ── Service Card ── */
.service-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(206, 170, 92, 0.15);
}

/* ── Back to Top Button ── */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 18px;
  border-radius: 50%;
  background: #ECE9E9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 50;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

#backToTop .material-symbols-outlined {
  font-size: 18px;
}

.dark #backToTop {
  background: #1a2310;
}

#backToTop.visible {
  transform: scale(1);
}

#backToTop:hover {
  box-shadow: 0 6px 24px rgba(206, 170, 92, 0.4);
}

#backToTop svg {
  position: absolute;
  /* inset: -4px; */
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);
  pointer-events: none;
}

@media screen and (max-width: 640px) {
  #backToTop {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 15px;
  }

  #backToTop .material-symbols-outlined {
    font-size: 16px;
  }
}

/* ── meuWeb.site footer logo ── */
.meuweb-logo {
  filter: grayscale(10%);
  opacity: 0.75;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

.meuweb-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  color: #ECE9E9;
}

/* ── Footer social icons ── */
.footer-social-link {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.footer-social-link:hover {
  transform: scale(1.1);
}

.footer-social-stack {
  position: relative;
  display: inline-block;
}

.footer-social-stack img {
  display: block;
}

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

.footer-social-base {
  width: 100%;
  height: 100%;
}

.footer-social-hover {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-social-base {
  opacity: 1;
}

.footer-social-hover {
  opacity: 0;
}

/* ── Instagram Feed ── */
.instagram-shell {
  position: relative;
  padding: 2.5rem 0 3.5rem;
}

.instagram-panel {
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.instagram-profile-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 4.6rem;
  padding: 1.15rem 2rem 1rem;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
}

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

.instagram-profile-avatar-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d06e, #f04672, #6c5cff);
}

.instagram-profile-avatar {
  width: 2.7rem;
  height: 2.7rem;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #203015;
}

.instagram-profile-copy {
  line-height: 1.15;
}

.instagram-profile-name {
  margin: 0;
  color: #101114;
  font-size: 1.55rem;
  font-weight: 700;
}

.instagram-profile-handle {
  margin: 0.18rem 0 0;
  color: #959595;
  font-size: 0.84rem;
}

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

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

.instagram-profile-stat strong {
  display: block;
  color: #101114;
  font-size: 1.2rem;
  font-weight: 800;
}

.instagram-profile-stat span {
  display: block;
  margin-top: 0.22rem;
  color: #9a9a9a;
  font-size: 0.72rem;
}

.instagram-follow-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.1rem;
  border-radius: 0.35rem;
  background: #1298f6;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.instagram-follow-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

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

.instagram-grid .instagram-card:nth-child(n + 7) {
  display: none;
}

.instagram-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #d7d0c1;
}

.instagram-card-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1);
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(0.95);
}

.instagram-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(0.95);
}

.instagram-card-fallback {
  background-image:
    linear-gradient(135deg, rgba(206, 170, 92, 0.18), rgba(26, 35, 16, 0.9)),
    radial-gradient(circle at top left, rgba(236, 233, 233, 0.2), transparent 45%),
    linear-gradient(180deg, #26311b, #13190e);
}

.instagram-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(12, 12, 13, 0.06), rgba(12, 12, 13, 0.78));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.instagram-card-label {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ece9e9;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.instagram-card-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.instagram-card-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.instagram-card-static::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.12));
}

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

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

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

.instagram-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  color: #8d8d8d;
  font-size: 0.8rem;
  text-align: center;
  background: #fff;
}

.instagram-shell-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 17, 14, 0.9);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%);
  pointer-events: none;
}

.instagram-shell-arrow .material-symbols-outlined {
  font-size: 2rem;
}

.instagram-shell-arrow-left {
  left: -1.7rem;
}

.instagram-shell-arrow-right {
  right: -1.7rem;
}

.instagram-shell-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 1.15rem auto 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #767676;
  font-size: 0.78rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.instagram-shell-badge .material-symbols-outlined {
  font-size: 1rem;
}

.dark .instagram-panel,
.dark .instagram-profile-bar,
.dark .instagram-status {
  background: #f8f8f8;
}

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

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

/* ── Google Maps iframe ── */
.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  display: block;
}

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.dark #preloader {
  background: #232D13;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

#preloader-inner {
  position: relative;
  width: 8rem;
  height: 8rem;
}

#preloader-inner::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(206, 170, 92, 0.00);
  border-top-color: #f4be6c;
  animation: preloader-spin 1s linear infinite;
}

.preloader-logo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Smooth scroll ── */
html {
  scroll-behavior: smooth;
}

/* ── Section fade-in on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Header shrink on scroll ── */
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 1.5rem;
}

#lightbox.open {
  display: flex;
}

#lightbox-img,
#lightbox-video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1rem;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: lb-in 0.2s ease;
  display: none;
}

#lightbox-img.open,
#lightbox-video.open {
  display: block;
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
