/* ==================== CONTACT PAGE DESIGN SYSTEM ==================== */
@import url('../../store/css/store.css');

:root {
  --contact-bg: #f5f3f0;
}

body {
  background-color: var(--contact-bg);
  color: var(--dark);
  font-family: var(--inter);
  overflow-x: hidden;
}

/* Slimmer Navbar & Top-Left Logo Removal */
.navbar {
  padding: 12px 40px !important;
  min-height: 54px !important;
  background: rgba(245, 243, 240, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.navbar .brand {
  display: none !important;
}

/* Fixed Fullscreen Background Canvas */
.contact-canvas-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#contact-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.canvas-overlay-dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(245,243,240,0.15) 0%, rgba(245,243,240,0.75) 100%);
  pointer-events: none;
}

/* ==================== WATERMARK COVER & RADIAL LINK MENU ==================== */
.watermark-cover-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Wide Classy Pill Trigger Button (100% Watermark Coverage) */
.watermark-link-trigger {
  position: relative;
  height: 54px;
  padding: 0 22px 0 16px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.watermark-link-trigger:hover {
  background-color: var(--dark);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.watermark-link-trigger.active {
  background-color: var(--dark);
  color: var(--white);
}

.watermark-badge-label {
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
}

/* Link Icon micro-animations from link-icon.json */
.watermark-link-trigger:hover .link-top {
  transform: translate(2px, -2px);
}

.watermark-link-trigger:hover .link-bottom {
  transform: translate(-2px, 2px);
}

.watermark-badge-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background-color: var(--dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.watermark-link-trigger:hover .watermark-badge-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Radial Arc Menu Container (5 Social Icons) */
.watermark-arc-menu {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 54px;
  height: 54px;
  pointer-events: none;
}

/* Base Icon Circle — Completely STABLE bounding box (No hover transform on parent!) */
.watermark-arc-menu .arc-icon-item {
  position: absolute;
  bottom: 3px;
  right: 6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  opacity: 0;
  transform: scale(0.1);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  z-index: 9;
  cursor: pointer;
}

/* Expanded State: Top-Left Arc Radiating (100% Visiblity for ALL 5 Icons!) */
.watermark-cover-container.expanded .watermark-arc-menu {
  pointer-events: auto;
}

.watermark-cover-container.expanded .arc-menu-pos-1 {
  opacity: 1;
  transform: translate(-170px, 0px);
  transition-delay: 0.04s;
}

.watermark-cover-container.expanded .arc-menu-pos-2 {
  opacity: 1;
  transform: translate(-150px, -65px);
  transition-delay: 0.08s;
}

.watermark-cover-container.expanded .arc-menu-pos-3 {
  opacity: 1;
  transform: translate(-110px, -125px);
  transition-delay: 0.12s;
}

.watermark-cover-container.expanded .arc-menu-pos-4 {
  opacity: 1;
  transform: translate(-55px, -165px);
  transition-delay: 0.16s;
}

.watermark-cover-container.expanded .arc-menu-pos-5 {
  opacity: 1;
  transform: translate(-5px, -180px);
  transition-delay: 0.20s;
}

/* Stable Hover State (Color shift ONLY on parent, NO transform shifts!) */
.watermark-arc-menu .arc-icon-item:hover {
  background-color: var(--dark);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* Tooltip for Arc Icons (Strictly pointer-events: none to prevent flickering!) */
.arc-icon-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: var(--dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.watermark-arc-menu .arc-icon-item:hover .arc-icon-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== STABLE SVG & EXACT MICRO-ANIMATIONS ==================== */
.shadcn-hover-icon {
  pointer-events: none !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scale inner SVG on hover without affecting button parent translation */
.arc-icon-item:hover .shadcn-hover-icon {
  transform: scale(1.15);
}

/* Instagram Micro-Animation */
.arc-icon-item:hover .ig-body {
  animation: igBodyPulse 0.4s ease-out;
}

.arc-icon-item:hover .ig-lens {
  animation: igLensZoom 0.3s ease-out;
}

@keyframes igBodyPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes igLensZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* WhatsApp Micro-Animation (Phone Wiggle) */
.arc-icon-item:hover .phone-icon {
  animation: waWiggle 0.45s ease-in-out;
}

@keyframes waWiggle {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

/* Facebook Micro-Animation (Path Pulse + 👍 Emoji Reveal) */
.arc-icon-item:hover .fb-path {
  animation: fbPulse 0.5s ease-in-out;
}

.arc-icon-item:hover .fb-like {
  animation: fbLikeFloat 0.6s ease-out forwards;
}

@keyframes fbPulse {
  0% { transform: scale(1); }
  30% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes fbLikeFloat {
  0% { opacity: 0; transform: translateY(6px); }
  50% { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* Map Pin Micro-Animation (Beacon Dot Pulse) */
.arc-icon-item:hover .pin-dot {
  animation: pinPulse 0.6s ease-in-out infinite alternate;
}

@keyframes pinPulse {
  0% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Threads Micro-Animation (Path Draw Glow) */
.arc-icon-item:hover .animated-path {
  animation: threadsDraw 0.8s ease-in-out;
}

@keyframes threadsDraw {
  0% { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0.3; }
  100% { stroke-dasharray: 100; stroke-dashoffset: 0; opacity: 1; }
}

/* ==================== CENTER HERO CLUSTER ==================== */
.contact-scroll-container {
  position: relative;
  z-index: 2;
}

.contact-hero-section {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 24px 40px 24px;
}

.contact-center-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 5;
}

/* Minimal Classy Title (No box around it) */
.contact-minimal-title {
  font-family: var(--sans-serif);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 28px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

/* Central Enlarged Brand Logo Box */
.arc-center-logo-box {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arc-center-logo-box:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 45px rgba(224, 130, 168, 0.22);
}

.arc-center-logo-img {
  width: 105px;
  height: auto;
  object-fit: contain;
}

/* ==================== FOOTER & MAP SECTION ==================== */
.contact-footer-section {
  background-color: var(--white);
  padding: 60px 24px;
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--border-light);
}

.map-container-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background-color: var(--white);
  position: relative;
}

.map-header-bar {
  padding: 16px 24px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-address-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.map-open-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.map-iframe-viewport {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .watermark-cover-container {
    bottom: 20px;
    right: 20px;
  }
  .watermark-link-trigger {
    height: 48px;
    padding: 0 18px 0 14px;
  }
  .contact-minimal-title {
    font-size: 32px;
    letter-spacing: 4px;
  }
  .arc-center-logo-box {
    width: 120px;
    height: 120px;
  }
  .arc-center-logo-img {
    width: 80px;
  }
  .map-iframe-viewport {
    height: 320px;
  }
}

/* ====== COMPREHENSIVE MOBILE OPTIMIZATION OVERRIDES ====== */
@media screen and (max-width: 768px) {
  .contact-body-grid, .two-col-layout {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .contact-left-col, .contact-right-col {
    padding: 16px !important;
  }
}
