/* =========================================================
   Delta Design — Components
   ---------------------------------------------------------
   Drop-in stylesheet that complements colors_and_type.css.
   Covers every component pattern from DESIGN-SYSTEM.md §4–5:
     · Button (primary, ghost, sizes, states)
     · FAB (floating action button)
     · Toast
     · FAQ / Accordion
     · Marquee (loop)
     · Service card (basic skin)
     · Process step (numbered + featured)
     · Portfolio tile (hover lift)
     · Modal backdrop
     · Calendar cell + time slot (scheduler)
     · Reveal (scroll-in fade + rise)
   ========================================================= */

/* ====================================================================
   Buttons
   ==================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-md);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 0;
  outline: none;
  transition: all var(--dur-base) var(--ease-out);
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(108, 11, 214, 0.5),
              0 6px 18px rgba(108, 11, 214, 0.28);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(108, 11, 214, 0.6), var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { box-shadow: 0 0 0 1px rgba(108,11,214,0.6), var(--shadow-focus); }

.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:active { transform: scale(0.98); }

.btn-quiet {
  background: var(--surface-3);
  color: var(--fg-1);
}
.btn-quiet:hover { background: var(--surface-4); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn[disabled],
.btn.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Light-mode adjustments */
[data-theme="light"] .btn-ghost {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  color: var(--delta-ink);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

/* ====================================================================
   Floating Buttons (FAB)
   ==================================================================== */

.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 0;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #fff;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--surface-line),
              0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              filter var(--dur-base) var(--ease-out);
  z-index: 100;
}
.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--surface-line),
              0 16px 32px rgba(0, 0, 0, 0.5);
}
.fab:active { transform: scale(0.96); }
.fab:focus-visible { box-shadow: 0 0 0 1px var(--surface-line), var(--shadow-focus); }

.fab-extended {
  width: auto;
  min-width: 56px;
  padding: 0 22px;
  gap: 10px;
}
.fab-extended .fab-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.fab-primary {
  background: var(--grad-primary);
  box-shadow: 0 0 0 1px rgba(108, 11, 214, 0.5),
              0 10px 28px rgba(108, 11, 214, 0.35);
}
.fab-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(108, 11, 214, 0.6),
              0 14px 36px rgba(108, 11, 214, 0.5),
              var(--shadow-glow);
}

.fab-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.4),
              0 10px 28px rgba(37, 211, 102, 0.35);
}
.fab-whatsapp:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.6),
              0 14px 36px rgba(37, 211, 102, 0.45);
}

.fab-ghost {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--fg-1);
  box-shadow: var(--glass-shadow);
}
.fab-ghost:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
}

.fab-sm { width: 44px; height: 44px; }
.fab-sm.fab-extended { width: auto; min-width: 44px; padding: 0 16px; font-size: 13px; }
.fab-lg { width: 64px; height: 64px; }
.fab-lg.fab-extended { width: auto; min-width: 64px; padding: 0 26px; font-size: 16px; }

.fab-bl { right: auto; left: 24px; }
.fab-stack-2 { bottom: calc(24px + 56px + 14px); }
.fab-stack-2.fab-sm { bottom: calc(24px + 44px + 14px); }
.fab-stack-2.fab-lg { bottom: calc(24px + 64px + 14px); }

.fab[disabled],
.fab.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

[data-theme="light"] .fab {
  background: var(--paper-1);
  color: var(--delta-ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08),
              0 10px 24px rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .fab-ghost {
  background: var(--glass-bg-light);
  box-shadow: var(--glass-shadow-light);
}

@media (max-width: 540px) {
  .fab { bottom: 18px; right: 18px; }
  .fab-bl { left: 18px; }
}

/* ====================================================================
   Toast
   ==================================================================== */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 80px));
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--fg-1);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
              inset 0 0 0 1px rgba(255, 255, 255, 0.14),
              var(--shadow-glow);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  transition: transform 320ms var(--ease-out);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--delta-purple-soft);
}

[data-theme="light"] .toast {
  background: rgba(40, 40, 40, 0.92);
  color: #fff;
}

/* ====================================================================
   FAQ / Accordion
   ==================================================================== */

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-top: 1px solid var(--surface-line); }
.faq-item:last-child { border-bottom: 1px solid var(--surface-line); }

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--fg-1);
  text-align: left;
  letter-spacing: -0.015em;
  transition: color 200ms var(--ease-out);
}
.faq-q:hover { color: var(--delta-purple-soft); }

.faq-icn {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-1);
  box-shadow: inset 0 0 0 1px var(--surface-line);
  transition: transform 320ms var(--ease-out), background 200ms var(--ease-out);
}
.faq-item.open .faq-icn {
  transform: rotate(45deg);
  background: var(--grad-primary);
  box-shadow: 0 6px 18px rgba(108, 11, 214, 0.35);
  color: #fff;
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 360ms var(--ease-out), padding 360ms var(--ease-out);
  color: var(--fg-3);
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
}
.faq-item.open .faq-a {
  max-height: 320px;
  padding-bottom: 28px;
}

/* ====================================================================
   Marquee
   ==================================================================== */

.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
  padding: 28px 0;
  background: var(--canvas);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee-slide 38s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
  color: #fff;
  align-items: center;
  width: max-content;
}
.marquee-track .term         { color: #fff; display: inline-block; }
.marquee-track .term::first-letter { text-transform: uppercase; }
.marquee-track .term.t-black   { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.04em; }
.marquee-track .term.t-bold    { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }
.marquee-track .term.t-medium  { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.marquee-track .term.t-light   { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; }
.marquee-track .term.t-serif   { font-family: var(--font-serif);   font-weight: 400; font-style: italic; letter-spacing: -0.015em; }
.marquee-track .term.t-cursive { font-family: var(--font-accent);  font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--delta-purple-soft);
  border-radius: 50%;
}
.marquee-track .ital {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--delta-purple-soft);
  letter-spacing: -0.01em;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

[data-theme="light"] .marquee-wrap {
  background: var(--canvas);
  border-color: var(--surface-line);
}

/* ====================================================================
   Service card
   ==================================================================== */

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  text-align: left;
  color: var(--fg-2);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(108, 11, 214, 0.35),
              0 16px 36px rgba(108, 11, 214, 0.14);
}
.service-card.featured {
  background:
    linear-gradient(135deg, rgba(106,6,190,0.22), rgba(138,47,219,0.08)),
    var(--surface-2);
  box-shadow: var(--shadow-feature);
}
.service-card .icon-bubble {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--delta-purple-12);
  color: var(--delta-purple-soft);
}
.service-card.featured .icon-bubble {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(108, 11, 214, 0.35);
}
.service-card .service-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg-1);
}
.service-card .service-tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--delta-purple-soft);
  font-size: 15px;
}
.service-card .service-desc {
  color: var(--fg-3);
  font-size: 15px;
  line-height: 1.55;
}
.service-card .featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-1);
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

/* ====================================================================
   Process step (numbered)
   ==================================================================== */

.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .proc-grid { grid-template-columns: 1fr; }
}

.proc-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-ring);
}
.proc-step.featured {
  background:
    linear-gradient(135deg, rgba(106,6,190,0.22), rgba(106,6,190,0.04)),
    var(--surface-2);
  box-shadow: var(--shadow-feature);
}
.proc-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 4px;
}
.proc-step.featured .proc-num {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 6px 14px rgba(108, 11, 214, 0.45));
}
.proc-step h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg-1);
}
.proc-step p { color: var(--fg-3); font-size: 15px; line-height: 1.55; }
.proc-step .detail {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--delta-purple-soft);
  font-size: 15px;
  line-height: 1.5;
}

.proc-sep {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--delta-purple-soft);
  border-radius: 50%;
  opacity: 0.7;
}

/* ====================================================================
   Portfolio tile
   ==================================================================== */

.port-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 880px) {
  .port-grid { grid-template-columns: 1fr; }
  .port-grid > * { grid-column: auto !important; }
}

.port-tile {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  isolation: isolate;
}
.port-tile.wide { grid-column: span 2; min-height: 420px; }
.port-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(106, 6, 190, 0.4),
              0 24px 48px rgba(0, 0, 0, 0.55);
}
.port-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 600ms var(--ease-out);
  z-index: -2;
}
.port-tile:hover .port-photo { transform: scale(1.07); }
.port-tint {
  position: absolute; inset: 0;
  z-index: -1;
}
.port-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}
.port-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  display: flex; gap: 14px; align-items: center;
}
.port-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.port-title .ital {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
}
.port-spec {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}
.port-result {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.port-services {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}
.port-services span {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
  color: #fff;
}

/* ====================================================================
   Modal backdrop
   ==================================================================== */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface-2);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-feature);
  max-width: 640px; width: 100%;
  padding: 32px;
  transform: translateY(10px);
  transition: transform 220ms var(--ease-out);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-close {
  background: var(--surface-3);
  border: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--fg-1);
  cursor: pointer;
}

/* ====================================================================
   Scheduler — calendar cell + time slot
   ==================================================================== */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-head {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  background: var(--surface-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.cal-cell.available:hover { background: var(--surface-3); color: var(--fg-1); }
.cal-cell.today    { box-shadow: inset 0 0 0 1px var(--delta-purple-soft); }
.cal-cell.selected { background: var(--grad-primary); color: #fff; }
.cal-cell.past     { opacity: 0.3; pointer-events: none; }
.cal-cell.weekend  { opacity: 0.4; pointer-events: none; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.slot {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.slot:hover {
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px rgba(138, 47, 219, 0.4);
}
.slot.selected {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(108, 11, 214, 0.35);
}

/* ====================================================================
   Reveal — fade + rise on scroll-in
   ==================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"].is-in { transition-delay: 80ms; }
.reveal[data-delay="2"].is-in { transition-delay: 160ms; }
.reveal[data-delay="3"].is-in { transition-delay: 240ms; }
.reveal[data-delay="4"].is-in { transition-delay: 320ms; }
.reveal[data-delay="5"].is-in { transition-delay: 400ms; }

/* ====================================================================
   Cursor magnético — REMOVED from the system (2026-05-27)
   Cursor padrão do navegador. Sem custom cursor.
   ==================================================================== */
