:root {
  --bg: #111111;
  --surface: #1e1e1e;
  --surface-2: #272727;
  --text: #f2f2f2;
  --muted: #cccccc;
  --primary: #ffb703;
  --accent: #8ecae6;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0e0e0e 0%, #171717 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 0 1rem;
  scroll-behavior: smooth;
}

.page-container {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 88px;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  backdrop-filter: blur(12px);
  padding: 0.65rem 0.75rem;
}

.page-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.brand p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

.logo {
  width: 52px;
  height: 52px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.top-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 0.88rem;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(255, 183, 3, 0.12);
  transform: translateY(-1px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.main-header,
.hero,
.services,
.agenda,
.contact,
.footer {
  padding: 0.5rem;
}

.main-header {
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.logo {
  width: 64px;
  height: 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) 1fr;
  align-items: center;
  gap: 2rem;
}

.hero h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.services,
.agenda,
.contact {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-top: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.6rem;
  display: grid;
  gap: 0.35rem;
  min-height: auto;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 183, 3, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.service-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.service-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.service-price {
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 0.95rem !important;
}

.agenda-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.agenda-list li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.agenda-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.agenda-day {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}

.agenda-hours {
  font-size: 0.88rem;
  color: var(--accent);
}

.agenda-note {
  color: var(--muted);
  margin-top: 1rem;
}

.location,
.registration,
.contact {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.location:hover,
.registration:hover,
.contact:hover {
  transform: translateY(-3px);
  border-color: rgba(142, 202, 230, 0.5);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.14);
}

.map-frame {
  margin-top: 1rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 100%;
}

.map-frame iframe {
  width: 100%;
  min-height: 220px;
  max-height: 320px;
  border: 0;
}

.user-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.form-row {
  display: grid;
  gap: 0.25rem;
}

.registration p,
.location p,
.contact p {
  margin: 0.4rem 0 0;
  line-height: 1.5;
  font-size: 0.88rem;
}

.registration h2,
.location h2,
.contact h2,
.agenda h2,
.services h2 {
  margin-bottom: 0.75rem;
}

label {
  font-size: 0.82rem;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141414;
  color: var(--text);
  font-size: 0.88rem;
}

input:focus {
  outline: 2px solid rgba(255, 183, 3, 0.35);
}

.btn-primary {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #111;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 183, 3, 0.18);
}

.db-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-message {
  color: var(--accent);
  margin: 0;
  font-size: 0.95rem;
}

.footer {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.whatsapp {
  display: inline-block;
  margin-top: 12px;
  background: var(--vermelho);
  color: var(--branco);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
}

.whatsapp:hover {
  background: var(--vermelho-escuro);
  transform: translateY(-2px);
}

.whatsapp-flutuante {
  position: fixed !important;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.24);
  border: 3px solid #ffffff;
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-flutuante:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.whatsapp-flutuante svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ── Responsividade ── */

/* Tablets */
@media (max-width: 768px) {
  .page-container {
    padding-top: 80px;
  }

  .main-header {
    padding: 0.5rem 1rem;
  }

  .brand h1 {
    font-size: 1.1rem;
  }

  .brand p {
    font-size: 0.8rem;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .top-nav {
    gap: 0.4rem;
  }

  .top-nav a {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .hero h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }

  .service-card {
    padding: 1rem;
    min-height: 200px;
  }

  .agenda-list {
    grid-template-columns: 1fr;
  }

  .agenda-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .agenda-hours {
    font-size: 0.9rem;
  }

  .map-frame iframe {
    min-height: 200px;
  }

  .user-form {
    gap: 0.8rem;
  }

  .btn-primary {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Celulares */
@media (max-width: 640px) {
  .page-container {
    padding-top: 72px;
  }

  .main-header {
    padding: 0.4rem 0.8rem;
  }

  .page-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .brand {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .brand h1 {
    font-size: 1rem;
  }

  .brand p {
    font-size: 0.75rem;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .top-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .top-nav a {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }

  .main-header,
  .hero,
  .services,
  .agenda,
  .contact,
  .footer {
    padding: 1.2rem 1rem;
  }

  .hero h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .hero p {
    font-size: 0.95rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .service-card {
    padding: 0.8rem;
    min-height: 160px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-price {
    font-size: 0.9rem;
  }

  .agenda-list {
    gap: 0.6rem;
  }

  .agenda-item {
    padding: 0.8rem 1rem;
  }

  .agenda-day {
    font-size: 0.95rem;
  }

  .agenda-hours {
    font-size: 0.85rem;
  }

  .map-frame iframe {
    min-height: 180px;
  }

  .user-form {
    gap: 0.6rem;
  }

  .form-row label {
    font-size: 0.9rem;
  }

  input {
    padding: 0.8rem 0.9rem;
    font-size: 0.95rem;
  }

  .btn-primary {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .footer {
    text-align: center;
    font-size: 0.85rem;
  }

  .whatsapp-flutuante {
    width: 56px;
    height: 56px;
    right: 1rem;
    bottom: 1rem;
  }

  .whatsapp-flutuante svg {
    width: 28px;
    height: 28px;
  }
}

/* Celulares pequenos */
@media (max-width: 480px) {
  .main-header,
  .hero,
  .services,
  .agenda,
  .contact,
  .footer {
    padding: 1rem 0.8rem;
  }

  .hero h2 {
    font-size: clamp(1.3rem, 10vw, 1.8rem);
  }

  .services h2,
  .agenda h2,
  .contact h2 {
    font-size: 1.3rem;
  }

  .service-card h3 {
    font-size: 0.95rem;
  }

  .agenda-day {
    font-size: 0.9rem;
  }

  .whatsapp-flutuante {
    width: 52px;
    height: 52px;
  }

  .whatsapp-flutuante svg {
    width: 24px;
    height: 24px;
  }
}

/* ── Scroll offset para compensar o header fixo ── */
#services-section,
#agenda-section,
#location-section,
#contact-section {
  scroll-margin-top: 96px;
}

@media (max-width: 768px) {
  #services-section,
  #agenda-section,
  #location-section,
  #contact-section {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 640px) {
  #services-section,
  #agenda-section,
  #location-section,
  #contact-section {
    scroll-margin-top: 72px;
  }
}