/* =====================================================
   TABELA TÉCNICA — Caixa Kennel
   Arquivo: /assets/css/tabela-tecnica.css

   NOTA: Nav, breadcrumb e botão-voltar vêm de
   /assets/css/shared-ui.css (incluído no HTML).
   ===================================================== */

/* ─────────────────────────────────────────────
   Base local
───────────────────────────────────────────── */
.tabela-page { background: #fff; }
.tabela-page img { margin-bottom: 0; }
img, svg { max-width: 100%; height: auto; }

/* ============================================
   HERO (padrão A)
============================================ */
.tabela-hero {
  background: #000;
  padding: clamp(26px, 6vw, var(--spacing-2xl)) var(--spacing-md)
           clamp(18px, 4vw, var(--spacing-xl));
  text-align: center;
}

.tabela-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.tabela-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

.tabela-hero h1 span { color: var(--color-primary); }

/* ===================================
   TABELA HERO SUB — moderno e discreto
   =================================== */

.tabela-hero-sub{
  max-width: 68ch;
  margin: 14px auto 0;
  padding: 14px 18px;

  font-size: clamp(.95rem, 1.6vw, 1.08rem);
  line-height: 1.85;
  letter-spacing: .01em;

  color: rgba(255,255,255,.78);      /* assume hero escuro */
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
}

/* Barra vermelha animada */
.tabela-hero-sub::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:3px;
  height:100%;
  background:var(--color-primary);
  transform:scaleY(0);
  transform-origin:top;
  animation:barraGrow 900ms cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes barraGrow{
  to{
    transform:scaleY(1);
  }
}

.tabela-hero-sub strong{
  color: #fff;
  font-weight: 800;
}

@media (max-width: 768px){
  .tabela-hero-sub{
    max-width: 92vw;
    margin-top: 12px;
    padding: 12px 14px;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce){
  .tabela-hero-sub{ transition: none !important; }
}

/* ========================================
   TABELA HERO DEC - BARRA DEGRADÊ
   ======================================== */

.tabela-hero-dec {
  height: 50px;
  background: linear-gradient(to bottom, #000 0%, #fff 100%);
}

/* ============================================
   WRAP
============================================ */
.tabela-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, var(--spacing-xl)) var(--spacing-md) var(--spacing-2xl);
}

/* ============================================
   SEO block
============================================ */
.tabela-seo {
  background: #f8f8f8;
  border-left: 3px solid var(--color-primary);
  padding: clamp(14px, 3.5vw, var(--spacing-lg)) clamp(14px, 3.5vw, var(--spacing-xl));
  margin-bottom: var(--spacing-xl);
}

.tabela-seo p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 900px;
}

.tabela-seo p + p { margin-top: var(--spacing-sm); }
.tabela-seo strong { color: var(--color-text); }

.tabela-seo a {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary);
}

.tabela-seo a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================
   Card da tabela
============================================ */
.tabela-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  overflow: hidden;
  border-radius: 0;
}

.tabela-card-header {
  padding: clamp(16px, 3vw, 20px) clamp(16px, 3vw, 20px) 14px;
  border-bottom: 0 solid rgba(0,0,0,.07);
}

.tabela-card-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

.tabela-card-header p {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: .9rem;
}

/* Scroll / tabela */
.tabela-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.tech-table thead th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .02em;
  padding: 13px 16px;
  background: rgba(0,0,0,.03);
  border-bottom: 2px solid rgba(0,0,0,.07);
  white-space: nowrap;
  font-size: .95rem;
}

.tech-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  vertical-align: middle;
  font-size: .93rem;
}

.tech-table tbody tr:hover { background: rgba(0,0,0,.013); }
.tech-table tbody tr:last-child td { border-bottom: none; }

/* Pílula do modelo */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 20px;
  border: 0;
  background:#c400001a;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.5rem;
  border-radius: 0;
}

.tech-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,.06);
  color: #000000;
  font-weight: 900;
  font-family: var(--font-display);
  font-size: .85rem;
  border-radius: 999px;
}

.tech-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

/* Botões de ação */
.tech-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: all var(--transition-fast);
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
  min-height: 44px;
}

.tech-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tech-btn.is-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.tech-note {
  padding: 14px 18px;
  color: var(--color-text-secondary);
  font-size: .88rem;
  line-height: 1.7;
  border-top: 0 solid rgba(0,0,0,.06);
}

/* ============================================
   Mobile: tabela vira "cards"
============================================ */
@media (max-width: 860px) {
  .tech-table { min-width: 0; }
  .tech-table thead { display: none; }

  .tech-table,
  .tech-table tbody,
  .tech-table tr,
  .tech-table td {
    display: block;
    width: 100%;
  }

  .tech-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 14px 16px;
    position: relative;
    border-radius: 0;
    background: #fff;
    margin: 35px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
  }

  .tech-table tbody td {
    border: 0;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 0px;
    align-items: flex-start;
  }

  .tech-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #111;
    font-size: .88rem;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tech-actions {
    width: 100%;
    justify-content:center;
  }
}

/* ============================================
   FAQ
============================================ */
.tabela-faq {
  margin-top: var(--spacing-xl);
  display: grid;
  gap: 35px;
}

.faq-item {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 18px;
  border-radius: 0;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.faq-item p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* ============================================
   CTA (padrão A)
============================================ */
.tabela-cta {
  background: #000;
  color: #fff;
  padding: clamp(26px, 6vw, var(--spacing-2xl)) var(--spacing-md);
  text-align: center;
  margin-top: var(--spacing-2xl);
}

.tabela-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.tabela-cta p {
  color: rgba(255,255,255,.7);
  margin-bottom: var(--spacing-lg);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.tabela-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

@media (max-width: 640px) {
  .tabela-cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .tabela-cta-btns .btn-cta {
    width: 100%;
    max-width: 420px;
  }
}

/* Extra responsivo */
@media (max-width: 480px) {
  .tabela-wrap {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xl);
  }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .tech-btn { transition: none; }
}
