/* ==========================================================================
   FERRAZ ATACADO - LINK DA BIO
   Paleta extraída da Logo:
   - Azul Marinho Corporativo: #0B2559 / #07193D
   - Laranja Vibrante: #FF6200 / #FF7726
   - Fundo Claro & Elegante com Background da Loja
   ========================================================================== */

:root {
  --primary-navy: #0B2559;
  --primary-navy-dark: #07193D;
  --primary-navy-light: #163B82;
  
  --accent-orange: #FF6200;
  --accent-orange-hover: #E55800;
  --accent-orange-soft: rgba(255, 98, 0, 0.12);
  
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #1EBE5D;
  --whatsapp-green-soft: rgba(37, 211, 102, 0.12);

  --bg-page: #F4F6F9;
  --surface-card: rgba(255, 255, 255, 0.94);
  --surface-inner: #FFFFFF;
  --surface-subtle: #F8FAFC;
  
  --border-light: rgba(11, 37, 89, 0.08);
  --border-focus: rgba(255, 98, 0, 0.45);
  
  --text-main: #0B1E38;
  --text-muted: #5A6A80;
  --text-light: #8E9BAE;

  --shadow-sm: 0 2px 8px rgba(11, 37, 89, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 37, 89, 0.07);
  --shadow-lg: 0 16px 36px rgba(11, 37, 89, 0.12);
  --shadow-glow-orange: 0 8px 20px rgba(255, 98, 0, 0.28);
  --shadow-glow-green: 0 8px 20px rgba(37, 211, 102, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Layer with calibrated opacity & clarity */
.bg-layer {
  position: fixed;
  inset: 0;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.28; /* Nítido o suficiente para identificar a loja, sem comprometer contraste */
  filter: saturate(1.15) contrast(1.05);
  z-index: 0;
  pointer-events: none;
}

.bg-tint {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.75) 0%, rgba(244, 246, 249, 0.88) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
  pointer-events: none;
}

/* Main Container */
.page-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.bio-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-light);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(255, 98, 0, 0.12);
  border: 2px solid rgba(11, 37, 89, 0.08);
  margin-bottom: 16px;
  transition: var(--transition);
}

.logo-wrapper:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 98, 0, 0.2);
}

.store-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 37, 89, 0.06);
  color: var(--primary-navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(11, 37, 89, 0.1);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-soft);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
}

.store-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.store-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 320px;
}

/* Action Links & Cards */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.action-btn:active {
  transform: scale(0.98);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
  text-align: left;
}

.btn-primary-text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.btn-subtext {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.action-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* WhatsApp Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow-green), var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #29e06d 0%, #1ea54f 100%);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.38);
  transform: translateY(-2px);
}

/* Address Info Card */
.info-card {
  background: var(--surface-inner);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(255, 98, 0, 0.3);
  box-shadow: var(--shadow-md);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon {
  background: var(--accent-orange-soft);
  color: var(--accent-orange);
}

.info-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.address-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-navy);
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.copy-btn {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  color: var(--primary-navy);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

.copy-btn.copied {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}

/* Location / Map Section */
.location-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 37, 89, 0.08);
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.section-title svg {
  color: var(--accent-orange);
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: #E5E7EB;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Button Ver no Maps */
.btn-maps {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-hover) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow-orange), var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-maps:hover {
  background: linear-gradient(135deg, #FF7726 0%, #FF6200 100%);
  box-shadow: 0 10px 24px rgba(255, 98, 0, 0.4);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 6px;
}

.copyright {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-light);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(7, 25, 61, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  text-align: center;
  max-width: 90%;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Responsiveness */
@media (max-width: 400px) {
  .page-container {
    padding: 16px 10px 30px;
  }
  
  .bio-card {
    padding: 24px 16px;
  }
  
  .action-btn {
    padding: 14px 16px;
  }

  .btn-primary-text {
    font-size: 0.95rem;
  }
}
