/*
Theme Name: CRAF Temporário
Theme URI: https://metodocraf.com.br/
Author: Método CRAF
Description: Página temporária responsiva do Método CRAF / Tiago Vicente Educação Canina.
Version: 1.0.0
Text Domain: craf-temporario
*/

:root {
  --craf-bg: #e4e7e0;
  --craf-navy: #343a49;
  --craf-earth: #8f7f74;
  --craf-white: #ffffff;
  --craf-shadow: 0 12px 32px rgba(27, 31, 40, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--craf-bg);
  color: var(--craf-navy);
  overflow-x: hidden;
}

.craf-page {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  background-color: var(--craf-bg);
  background-image: url('assets/craf-bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 100%;
}

/* Suave integração das margens laterais em ecrãs largos */
.craf-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(228,231,224,.95) 0%, rgba(228,231,224,0) 25%, rgba(228,231,224,0) 75%, rgba(228,231,224,.95) 100%);
}

.craf-status {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(52,58,73,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(27,31,40,.08);
  color: var(--craf-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.craf-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--craf-earth);
  box-shadow: 0 0 0 4px rgba(143,127,116,.13);
}

.craf-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
}

.craf-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--craf-shadow);
}

.craf-btn:hover { transform: translateY(-2px); }
.craf-btn:focus-visible { outline: 3px solid rgba(52,58,73,.35); outline-offset: 3px; }

.craf-btn-primary {
  background: var(--craf-navy);
  color: var(--craf-white);
}

.craf-btn-secondary {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(52,58,73,.15);
  color: var(--craf-navy);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.craf-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.craf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Tablet */
@media (max-width: 900px) {
  .craf-page {
    background-size: cover;
    background-position: center center;
  }
  .craf-page::before {
    background: linear-gradient(180deg, rgba(228,231,224,.10) 0%, rgba(228,231,224,0) 70%, rgba(228,231,224,.18) 100%);
  }
}

/* Celular */
@media (max-width: 600px) {
  .craf-page {
    min-height: 100svh;
    min-height: 100dvh;
    background-size: cover;
    background-position: 50% 50%;
  }

  .craf-status {
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .craf-actions {
    left: 14px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    justify-content: center;
    gap: 8px;
  }

  .craf-btn {
    min-height: 46px;
    padding: 0 14px;
    font-size: 13px;
  }

  .craf-btn-secondary { display: none; }
  .craf-btn-primary { width: min(100%, 330px); }
}

/* Celulares muito baixos: evita o botão cobrir demasiado a imagem */
@media (max-width: 600px) and (max-height: 680px) {
  .craf-actions { bottom: 8px; }
  .craf-btn { min-height: 42px; }
  .craf-status { top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .craf-btn { transition: none; }
}
