/* ==========================================================================
   BIO WELLNESS FITNESS STUDIO — DARK BOUTIQUE STYLESHEET (Mobile-First)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bws-black);
  color: var(--bws-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin-top: 0;
  letter-spacing: -0.025em;
  color: var(--bws-text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Brand Lockup */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}
.brand-title .bio { color: var(--bws-acid-400); }
.brand-title .wellness { color: #ffffff; }
.brand-sub {
  font-size: 0.64rem;
  color: var(--bws-text-soft);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-top: 2px;
}

/* Overlay / Sticky Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  background: linear-gradient(180deg, rgba(7, 8, 7, 0.78) 0%, rgba(7, 8, 7, 0) 100%);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(7, 8, 7, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--bws-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}

.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Minimalist 2-line Hamburger matching reference */
.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100%;
  background: var(--bws-surface-1);
  border-left: 1px solid var(--bws-border);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}
.mobile-drawer.open .drawer-panel { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bws-border);
  margin-bottom: 0.5rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bws-text-soft);
}
.drawer-link:hover, .drawer-link.active {
  background: var(--bws-acid-soft);
  color: var(--bws-acid-400);
}
.drawer-divider { height: 1px; background: var(--bws-border); margin: 0.5rem 0; }

/* Buttons (Pill Acid Primary matching reference) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--bws-acid-400);
  color: var(--bws-text-on-acid);
  box-shadow: var(--shadow-acid);
}
.btn-primary:hover {
  background: var(--bws-acid-300);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--bws-border-hi);
  color: #fff;
}
.btn-outline:hover {
  border-color: var(--bws-acid-400);
  color: var(--bws-acid-400);
  background: var(--bws-acid-soft);
}

.btn-whatsapp {
  background: var(--bws-whatsapp);
  color: #052e16;
}
.btn-full { width: 100%; }

/* Eyebrow Pill matching reference */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bws-acid-400);
  background: rgba(7, 8, 7, 0.58);
  border: 1px solid var(--bws-acid-border);
  backdrop-filter: blur(8px);
  margin-bottom: 1.1rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-acid   { background: var(--bws-acid-soft); color: var(--bws-acid-400); border: 1px solid var(--bws-acid-border); }
.badge-green  { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
.badge-blue   { background: rgba(96, 165, 250, 0.14); color: #60a5fa; }
.badge-amber  { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
.badge-purple { background: rgba(192, 132, 252, 0.14); color: #c084fc; }
.badge-red    { background: rgba(248, 113, 113, 0.14); color: #f87171; }
.badge-slate  { background: rgba(255, 255, 255, 0.08); color: #d1d5db; }

/* ==========================================================================
   FIRST FOLD — FULL-BLEED EDITORIAL HERO (Matches Reference)
   ========================================================================== */
.hero-editorial {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 0 2.5rem;
  background-color: var(--bws-black);
  background-image:
    linear-gradient(180deg, rgba(164, 178, 28, 0.22) 0%, rgba(7, 8, 7, 0.18) 28%, rgba(7, 8, 7, 0.86) 64%, #070807 90%),
    url('https://biowellnessstudio.com.br/wp-content/uploads/2019/10/Untitled-9.jpg');
  background-size: cover;
  background-position: center 22%;
  overflow: hidden;
}

.hero-editorial-content {
  width: 100%;
  max-width: 640px;
}

.hero-editorial h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.1rem;
  letter-spacing: -0.03em;
}
.hero-editorial h1 .acid { color: var(--bws-acid-400); display: inline; }

.hero-editorial .hero-lead {
  font-size: 1.03rem;
  color: var(--bws-text-soft);
  margin: 0 0 1.75rem;
  max-width: 46ch;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.hero-metric span {
  display: block;
  font-size: 0.8rem;
  color: var(--bws-text-muted);
  margin-top: 2px;
}

/* Subpage Hero */
.page-hero {
  position: relative;
  padding: 7.5rem 0 3.25rem;
  background-color: var(--bws-surface-1);
  background-image:
    linear-gradient(180deg, rgba(7, 8, 7, 0.82) 0%, #070807 100%),
    url('https://biowellnessstudio.com.br/wp-content/uploads/2019/10/fachada.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--bws-border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--bws-text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--bws-acid-400); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bws-surface-1); border-top: 1px solid var(--bws-border); border-bottom: 1px solid var(--bws-border); }

.section-header { max-width: 720px; margin-bottom: 2.25rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: var(--text-2xl); margin-bottom: 0.65rem; }
.section-subtitle { color: var(--bws-text-muted); font-size: 1rem; margin: 0; }

/* Grids & Cards */
.grid { display: grid; gap: 1.25rem; }

.card {
  background: var(--bws-surface-2);
  border: 1px solid var(--bws-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--bws-acid-border);
  background: var(--bws-surface-3);
}

.card-media { padding: 0; overflow: hidden; }
.card-media-wrap { overflow: hidden; position: relative; }
.card-media-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bws-surface-1);
  transition: transform 0.4s ease;
}
.card-media:hover .card-media-img { transform: scale(1.04); }
.card-media-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }

.card-footer-link {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bws-acid-400);
}

/* Video Thumb */
.video-thumb-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 1rem;
}
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: transform 0.35s ease; }
.video-thumb-wrap:hover img { transform: scale(1.04); opacity: 1; }
.play-btn-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.25); }
.play-circle {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--bws-acid-400); color: var(--bws-text-on-acid);
  display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px;
  box-shadow: var(--shadow-acid);
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.gallery-item {
  border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2;
  cursor: pointer; border: 1px solid var(--bws-border); background: #000;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Forms */
.form-card {
  background: var(--bws-surface-2);
  border: 1px solid var(--bws-acid-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 0.95rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--bws-text-soft); margin-bottom: 0.35rem; }
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--bws-border-hi);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.94rem;
  color: #fff;
  background: var(--bws-surface-1);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--bws-acid-400);
  box-shadow: 0 0 0 3px var(--bws-acid-glow);
}
select.form-control option { background: var(--bws-surface-1); color: #fff; }
textarea.form-control { min-height: 92px; resize: vertical; }
.form-note { font-size: 0.76rem; color: var(--bws-text-muted); margin-top: 0.65rem; }

/* HOPE Letters */
.hope-letter {
  font-size: 2.2rem; font-weight: 800; font-family: var(--font-display);
  color: var(--bws-acid-400); line-height: 1; margin-bottom: 0.5rem;
}

/* Filter Pills */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filter-pill {
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--bws-border-hi);
  background: var(--bws-surface-2);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--bws-text-soft);
  transition: all var(--transition);
}
.filter-pill.active, .filter-pill:hover {
  background: var(--bws-acid-400);
  color: var(--bws-text-on-acid);
  border-color: var(--bws-acid-400);
}

/* Check List */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--bws-text-soft); }
.check-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bws-acid-soft); color: var(--bws-acid-400);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
  font-size: 0.74rem; font-weight: 800;
}

.post-meta { display: flex; flex-wrap: wrap; gap: 0.55rem; font-size: 0.78rem; color: var(--bws-text-muted); margin-bottom: 0.5rem; }

/* Footer */
.site-footer {
  background: var(--bws-surface-1);
  color: var(--bws-text-muted);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--bws-border);
}
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
.footer-title { color: #fff; font-size: 0.94rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.88rem; }
.footer-links a:hover { color: var(--bws-acid-400); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--bws-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.82rem;
}

/* Toast */
.toast-container {
  position: fixed; top: 86px; right: 16px; left: 16px; z-index: 300;
  display: flex; flex-direction: column; gap: 0.6rem; pointer-events: none;
}
.toast {
  background: var(--bws-surface-2); color: #fff;
  padding: 1rem 1.15rem; border-radius: 14px;
  border: 1px solid var(--bws-acid-border);
  border-left: 4px solid var(--bws-acid-400);
  box-shadow: var(--shadow); font-size: 0.89rem; pointer-events: auto;
}
.toast strong { display: block; margin-bottom: 0.15rem; color: var(--bws-acid-400); }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--bws-surface-2); border: 1px solid var(--bws-border-hi);
  border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; padding: 1.5rem; box-shadow: var(--shadow);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--bws-border); margin-bottom: 1.15rem;
}

/* Design System Swatches */
.swatch-card {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--bws-border);
  background: var(--bws-surface-2); cursor: pointer; transition: transform var(--transition);
}
.swatch-card:hover { transform: translateY(-2px); border-color: var(--bws-acid-400); }
.swatch-color { height: 76px; width: 100%; }
.swatch-meta { padding: 0.8rem; font-size: 0.8rem; }
.swatch-meta code { font-family: var(--font-mono); font-size: 0.74rem; color: var(--bws-text-muted); display: block; }

/* CRM Styles (Dark Boutique) */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-bottom: 1.5rem; }
.kpi-card { background: var(--bws-surface-2); border: 1px solid var(--bws-border); border-radius: var(--radius); padding: 1.15rem; }
.kpi-label { font-size: 0.74rem; font-weight: 700; color: var(--bws-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 1.75rem; font-weight: 800; font-family: var(--font-display); margin-top: 0.25rem; color: #fff; }

.crm-toolbar {
  display: grid; gap: 0.75rem; background: var(--bws-surface-2);
  border: 1px solid var(--bws-border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.25rem;
}
.table-wrap { background: var(--bws-surface-2); border: 1px solid var(--bws-border); border-radius: var(--radius); overflow-x: auto; }
.crm-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.87rem; }
.crm-table th, .crm-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--bws-border); vertical-align: middle; }
.crm-table th { background: var(--bws-surface-1); font-weight: 700; font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bws-text-muted); }
.crm-table tr:hover td { background: rgba(255, 255, 255, 0.025); }

.kanban-grid { display: grid; gap: 1rem; }
.kanban-col { background: var(--bws-surface-1); border: 1px solid var(--bws-border); border-radius: var(--radius); padding: 0.9rem; }
.kanban-col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; font-weight: 700; font-size: 0.88rem; }
.kanban-card { background: var(--bws-surface-2); border: 1px solid var(--bws-border); border-radius: 12px; padding: 0.9rem; margin-bottom: 0.75rem; }
.crm-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .toast-container { left: auto; width: 390px; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-cta-row { flex-direction: row; align-items: center; }
  .hero-cta-row .btn-primary { min-width: 280px; }
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .crm-toolbar { grid-template-columns: 1.5fr 1fr 1fr auto; align-items: center; }
  .kanban-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav-desktop {
    display: flex; align-items: center; gap: 1.35rem;
    font-size: 0.88rem; font-weight: 600;
  }
  .nav-desktop a { color: var(--bws-text-soft); transition: color var(--transition); }
  .nav-desktop a:hover, .nav-desktop a.active { color: var(--bws-acid-400); }
  .hero-editorial {
    align-items: center;
    padding: 7rem 0 4rem;
    background-image:
      linear-gradient(95deg, #070807 0%, rgba(7, 8, 7, 0.88) 46%, rgba(7, 8, 7, 0.35) 100%),
      url('https://biowellnessstudio.com.br/wp-content/uploads/2019/10/Untitled-9.jpg');
  }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
  .kpi-grid { grid-template-columns: repeat(5, 1fr); }
  .kanban-grid { grid-template-columns: repeat(4, 1fr); }
}
