/* ==========================================================================
   Da Panela — Confeitaria Artesanal (Pausa Temporária)
   Intact logo on signature Mint-Teal stage + Crisp Editorial Architecture
   Motion & Mobile Craft: Emil Kowalski + Apple Fluid Interfaces
   ========================================================================== */

:root {
  /* Da Panela Signature Palette */
  --bg-canvas: #fbf8f3;
  --bg-surface: #ffffff;
  --teal-stage: #3fa89c;
  --teal-deep: #2f8b80;
  --pink-accent: #d96488;
  --navy: #16324f;
  --navy-hover: #0f253d;

  --ink-primary: #1f2b33;
  --ink-secondary: #51616b;
  --ink-muted: #76858f;
  --border-subtle: rgba(22, 50, 79, 0.12);
  --border-strong: rgba(22, 50, 79, 0.24);

  /* Pamella Bridge Palette (Terra, Argila & Sálvia) */
  --bridge-bg: #f6f1e9;
  --bridge-border: rgba(38, 30, 25, 0.14);
  --bridge-sage: #3d5d44;
  --bridge-sage-hover: #2d4733;
  --bridge-clay: #b25a39;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Emil Kowalski Sanctioned Curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* Crisp Architectural Radii */
  --radius-xs: 3px;
  --radius-sm: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-canvas);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button,
a {
  touch-action: manipulation;
}

button,
.btn,
.social-link,
.bridge-cta {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

:focus-visible {
  outline: 2px solid var(--pink-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(1.75rem + env(safe-area-inset-top, 0px))
    1.25rem
    calc(2.25rem + env(safe-area-inset-bottom, 0px));
}

.shell {
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* ==========================================================================
   Primary Pause Card (Crisp Architectural Geometry)
   ========================================================================== */
.pause-card {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* Signature Mint-Teal Stage showcasing the intact Da Panela logo */
.brand-stage {
  background: linear-gradient(160deg, #47b3a7 0%, var(--teal-stage) 58%, var(--teal-deep) 100%);
  padding: clamp(2.1rem, 5vw, 3rem) 1.75rem 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.brand-logo {
  width: min(260px, 74%);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(15, 55, 51, 0.14));
}

.stage-location {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.card-body {
  padding: clamp(1.75rem, 4.5vw, 2.75rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-kicker {
  margin: 0 0 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-accent);
}

.status-rule {
  width: 20px;
  height: 1px;
  background: var(--pink-accent);
}

.card-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  color: var(--ink-primary);
  max-width: 19ch;
}

.card-message {
  margin: 0 0 1.85rem;
  color: var(--ink-secondary);
  max-width: 48ch;
  font-size: 0.95rem;
}

.card-message strong {
  color: var(--ink-primary);
  font-weight: 600;
}

/* ==========================================================================
   Crisp Rectangular Buttons & Minimal Social Strip
   ========================================================================== */
.actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border-radius: var(--radius-xs);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 140ms var(--ease-out),
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
  border: 1px solid var(--navy);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--navy-hover);
    border-color: var(--navy-hover);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--bg-canvas);
    border-color: var(--navy);
  }
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.15rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 180ms ease, transform 140ms var(--ease-out);
}

.social-link:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .social-link:hover {
    color: var(--teal-deep);
  }
}

.social-sep {
  color: var(--border-strong);
  font-size: 0.8rem;
}

/* ==========================================================================
   Discreet Bridge Card to Pamella Laciprete Massoterapia
   ========================================================================== */
.bridge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.45rem;
  border-radius: var(--radius-xs);
  background: var(--bridge-bg);
  border: 1px solid var(--bridge-border);
  border-left: 3px solid var(--bridge-clay);
}

.bridge-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.bridge-mark {
  width: 54px;
  height: auto;
  flex-shrink: 0;
}

.bridge-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bridge-clay);
}

.bridge-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.2;
  color: #261e19;
}

.bridge-desc {
  margin: 0;
  font-size: 0.84rem;
  color: #5c4d42;
  line-height: 1.45;
}

.bridge-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-xs);
  background: var(--bridge-sage);
  color: #fbf8f3;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    transform 140ms var(--ease-out),
    background-color 180ms ease;
}

.bridge-cta svg {
  transition: transform 180ms var(--ease-out);
}

.bridge-cta:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .bridge-cta:hover {
    background: var(--bridge-sage-hover);
  }
  .bridge-cta:hover svg {
    transform: translateX(3px);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  padding-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer p {
  margin: 0;
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer a {
  transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover {
    color: var(--teal-deep);
  }
}

/* ==========================================================================
   One-Shot Choreography (Non-Uniform Delays)
   ========================================================================== */
@keyframes choreoRise {
  from {
    opacity: 0;
    transform: translateY(var(--rise, 10px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes choreoFade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.choreo-lead {
  animation: choreoFade 480ms var(--ease-out) both;
}

.choreo-support-1 {
  --rise: 8px;
  animation: choreoRise 460ms var(--ease-out) 70ms both;
}

.choreo-support-2 {
  --rise: 6px;
  animation: choreoRise 440ms var(--ease-out) 125ms both;
}

.choreo-support-3 {
  --rise: 6px;
  animation: choreoRise 460ms var(--ease-out) 170ms both;
}

.choreo-deco {
  animation: choreoFade 420ms var(--ease-out) 190ms both;
}

/* ==========================================================================
   Sonner-Style Crisp Rectangular Toast
   ========================================================================== */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
  width: min(360px, calc(100% - 2rem));
  display: flex;
  justify-content: center;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px -14px rgba(22, 50, 79, 0.45);
  opacity: 0;
  transform: translateY(100%) scale(0.97);
  transition: opacity 400ms ease, transform 400ms ease;
}

.toast[data-visible='true'] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #7ae0d3;
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
  .actions-row {
    flex-direction: column;
  }

  .actions-row .btn {
    width: 100%;
  }

  .bridge-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .bridge-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .choreo-lead,
  .choreo-support-1,
  .choreo-support-2,
  .choreo-support-3,
  .choreo-deco {
    animation: choreoReducedFade 200ms ease both;
  }

  @keyframes choreoReducedFade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .toast {
    transform: none;
    transition: opacity 200ms ease;
  }
}
