/* ==========================================================================
   Mariana Parra Nutricionista — Cartão de Visita Digital
   Tokens extraídos da logo real (ver design-spec-mariana-parra.md.docx)
   ========================================================================== */

:root {
  /* Marca */
  --color-teal: #5B9480;
  --color-teal-light: #87B5A5;
  --color-teal-dark: #3F6D5A;
  --color-teal-tint: #EAF2EE;
  --color-gray: #767674;
  --color-gray-dark: #575755;

  /* Base */
  --color-bg: #F7F8F6;
  --color-surface: #FFFFFF;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(118, 118, 116, 0.18);
  --glass-border-hover: rgba(91, 148, 128, 0.35);
  --glass-blur: 20px;

  /* Sombra em camadas */
  --shadow-soft: 0 1px 2px rgba(30, 40, 35, 0.04), 0 8px 24px rgba(30, 40, 35, 0.06);
  --shadow-hover: 0 2px 4px rgba(30, 40, 35, 0.06), 0 12px 32px rgba(91, 148, 128, 0.14);

  /* Raio — escala consistente */
  --radius-container: 28px;
  --radius-card: 20px;
  --radius-chip: 12px;
  --radius-pill: 999px;

  /* Tipografia */
  --font-display: 'Poppins', 'Century Gothic', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Header */
  --header-height: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-gray-dark);
  line-height: 1.7;
  background: var(--color-bg);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

/* Nunca preto puro; foco visível padrão */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Blobs decorativos — apenas desktop (mobile: "sem efeito decorativo") */
@media (min-width: 1024px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
  }
  body::before {
    background: rgba(91, 148, 128, 0.16);
    top: -120px;
    left: -160px;
  }
  body::after {
    background: rgba(118, 118, 116, 0.12);
    bottom: -140px;
    right: -160px;
  }
}

/* ==========================================================================
   Layout — mobile-first, "moldura de celular" no desktop
   ========================================================================== */

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.card-container {
  width: 100%;
  background: var(--color-bg);
}

@media (min-width: 1024px) {
  .page-shell {
    align-items: center;
    padding: 40px 24px;
  }
  .card-container {
    max-width: 460px;
    height: min(860px, calc(100vh - 80px));
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-container);
    box-shadow: 0 20px 60px rgba(30, 40, 35, 0.16), var(--shadow-soft);
    overflow-y: auto;
    overflow-x: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border-hover) transparent;
  }
  .card-container::-webkit-scrollbar { width: 6px; }
  .card-container::-webkit-scrollbar-thumb {
    background: var(--glass-border-hover);
    border-radius: var(--radius-pill);
  }
}

main { position: relative; z-index: 1; }

/* ==========================================================================
   Header sticky
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
}

@media (min-width: 1024px) {
  .site-header { border-radius: var(--radius-container) var(--radius-container) 0 0; }
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 10px 0;
}

.brand-logo img {
  height: 100%;
  width: auto;
  max-height: 46px;
}

.btn-save-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-teal-dark);
  background: var(--color-teal-tint);
  border: 1px solid transparent;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.btn-save-contact i { font-size: 16px; }

.btn-save-contact:hover {
  background: var(--color-teal);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Tipografia / micro-label / chips
   ========================================================================== */

.micro-label {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 11px;
  color: var(--color-teal-dark);
  margin: 0 0 10px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-gray-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-teal-tint);
  color: var(--color-teal-dark);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

.chip i { font-size: 14px; }

.chip:hover {
  background: var(--color-teal);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Botões
   ========================================================================== */

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-teal) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: var(--radius-pill);
  padding: 14px 26px;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary i {
  font-size: 18px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine-loop 3.5s ease-in-out infinite;
}

@keyframes shine-loop {
  0%   { left: -60%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-gray-dark);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  transition: border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.btn-secondary i { font-size: 17px; color: var(--color-gray); transition: color 0.3s ease; }

.btn-secondary:hover {
  border-color: var(--glass-border-hover);
  color: var(--color-teal-dark);
  transform: translateY(-2px);
}

.btn-secondary:hover i { color: var(--color-teal); }

/* ==========================================================================
   Cards / bordas elegantes
   ========================================================================== */

.card {
  border: 2px solid var(--color-teal);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  border-color: var(--color-teal-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Seções — espaçamento base
   ========================================================================== */

section {
  padding: 40px 22px;
  border-bottom: 1px solid rgba(118, 118, 116, 0.08);
}

.site-footer {
  padding: 24px 22px 32px;
  text-align: center;
  font-size: 11.5px;
  color: var(--color-gray);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Seção 1 — Hero
   ========================================================================== */

.hero { padding-top: 44px; }

.hero-headline {
  font-size: clamp(24px, 6vw, 29px);
  line-height: 1.32;
  margin-bottom: 14px;
  color: var(--color-teal);
}

.hero-subheadline {
  font-size: 15px;
  color: var(--color-gray-dark);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Seção 2 — Endereço (link direto)
   ========================================================================== */

.address-inline {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.address-inline i { color: var(--color-teal); font-size: 18px; flex-shrink: 0; }

.address-inline p {
  font-size: 13.5px;
  color: var(--color-gray-dark);
  flex: 1 1 auto;
  min-width: 200px;
}

.nav-link {
  position: relative;
  color: var(--color-teal-dark);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--color-teal);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after { width: 100%; left: 0; }

/* ==========================================================================
   Seção 3 — Foto
   ========================================================================== */

.photo-section { padding: 0 22px 40px; }

.photo-frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-trigger {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  color: var(--color-gray-dark);
  transition: transform 0.4s ease, color 0.3s ease, background 0.3s ease;
}

.qr-trigger i { font-size: 19px; }

.qr-trigger:hover {
  transform: rotate(8deg) scale(1.1);
  color: var(--color-teal);
  background: #fff;
}

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 18px;
  background: linear-gradient(to top, rgba(30, 40, 35, 0.72) 0%, rgba(30, 40, 35, 0.35) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.photo-caption strong {
  font-family: var(--font-display);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.photo-caption span { color: rgba(255, 255, 255, 0.88); font-size: 12.5px; }

.photo-caption .crn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11.5px;
}

.photo-caption .crn i { font-size: 13px; }

/* ==========================================================================
   Seção 4 — Serviços (accordion)
   ========================================================================== */

.services h2 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 22px;
}

.accordion-item {
  border: 2px solid var(--color-teal);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  background: var(--color-surface);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.accordion-item:hover { border-color: var(--color-teal-dark); }

.accordion-item.open { box-shadow: var(--shadow-soft); }

.accordion-header {
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-gray-dark);
}

.accordion-header span {
  flex: 1 1 auto;
  min-width: 0;
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-teal);
}

.accordion-header i {
  transition: transform 0.35s ease, color 0.3s ease;
  color: var(--color-gray);
  font-size: 19px;
  flex-shrink: 0;
}

.accordion-item.open .accordion-header i {
  transform: rotate(180deg);
  color: var(--color-teal);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-body p {
  padding: 0 18px 18px;
  font-size: 13.5px;
  color: var(--color-gray);
  line-height: 1.65;
}

.services-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--color-teal-tint);
  color: var(--color-teal-dark);
  border-radius: var(--radius-card);
  font-size: 12.5px;
  line-height: 1.6;
}

.services-note i { font-size: 16px; margin-top: 1px; flex-shrink: 0; }

/* ==========================================================================
   Seção 5 — Localização (card + botão)
   ========================================================================== */

.location-card { padding: 24px; }

.location-card > i { color: var(--color-teal); font-size: 22px; margin-bottom: 10px; }

.location-address {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-gray-dark);
  margin-bottom: 8px;
}

.location-support {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.65;
  margin-bottom: 18px;
}

.location-card .btn-primary { width: 100%; }

/* ==========================================================================
   Seção 6 — Contato final
   ========================================================================== */

.final-contact h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 6px 0 8px;
}

.final-contact .hero-subheadline { margin-bottom: 22px; }
.final-contact > .btn-primary { width: 100%; margin-bottom: 24px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 40px 15px 16px;
  border: 2px solid var(--color-teal);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-item:hover {
  border-color: var(--color-teal-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.contact-item i {
  font-size: 20px;
  color: var(--color-teal);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item > div { display: flex; flex-direction: column; min-width: 0; }

.contact-item .contact-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 16px;
  color: var(--color-gray);
  margin-top: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item:hover .contact-arrow {
  color: var(--color-teal-dark);
  transform: translate(2px, -2px);
}

.contact-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray);
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-dark);
  margin: 2px 0 2px;
  overflow-wrap: anywhere;
}

.contact-desc { font-size: 12px; color: var(--color-gray); line-height: 1.5; }

/* ==========================================================================
   Seção 7 — Salvar / QR
   ========================================================================== */

.save-section {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: none;
}

.save-section .btn-secondary { flex: 1 1 auto; }

/* ==========================================================================
   WhatsApp FAB
   ========================================================================== */

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab i { font-size: 26px; }

.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(91, 148, 128, 0.4);
  animation: fab-pulse 2.8s ease-out infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-hover);
}

@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   QR Modal
   ========================================================================== */

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qr-modal[hidden] { display: none; }

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 35, 0.45);
  backdrop-filter: blur(4px);
}

.qr-modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-container);
  padding: 32px 28px 26px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(30, 40, 35, 0.24);
  animation: qr-pop 0.3s ease;
}

@keyframes qr-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.qr-modal-content img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.qr-modal-content p {
  font-size: 13px;
  color: var(--color-gray);
}

.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-gray);
  transition: background 0.25s ease, color 0.25s ease;
}

.qr-modal-close:hover { background: var(--color-teal-tint); color: var(--color-teal-dark); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Acessibilidade — prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .btn-primary::after,
  .whatsapp-fab::before,
  .reveal,
  .qr-modal-content {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Desktop refinements
   ========================================================================== */

@media (min-width: 1024px) {
  section { padding: 44px 30px; }
  .hero { padding-top: 48px; }
  .photo-section { padding: 0 30px 44px; }
  .address-inline { padding: 24px 30px; }
}
