/* ============================================================
   John Nasci Tennis — Global Stylesheet
   ============================================================ */

:root {
  --green-dark:   #1a3a2a;
  --green-mid:    #2d5a3f;
  --green-accent: #4a9b6e;
  --green-light:  #e8f5ee;
  --cream:        #faf8f3;
  --cream-dark:   #f0ece3;
  --gold:         #c8a44e;
  --text-dark:    #1a1a1a;
  --text-mid:     #4a4a4a;
  --text-light:   #7a7a7a;
  --white:        #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background: var(--white);
  border-bottom: 1px solid #e0ddd5;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.nav-logo img {
  height: 117px;
  width: auto;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
}

.nav-logo-text span { color: var(--green-accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--green-accent); }
.nav-links a.active { color: var(--green-dark); font-weight: 700; }

.nav-cta {
  background: var(--green-accent) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}

.nav-cta:hover {
  background: var(--green-mid) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all .25s;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0f2a1a 100%);
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74,155,110,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '🎾';
  position: absolute;
  bottom: 30px;
  right: 60px;
  font-size: 80px;
  opacity: 0.06;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.15;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-accent);
}

.hero p {
  color: rgba(255,255,255,.75);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-block;
  background: rgba(74,155,110,.2);
  border: 1px solid rgba(74,155,110,.4);
  color: var(--green-accent);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 24px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--green-accent);
  color: white;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  transition: all .25s;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.btn-whatsapp { background: #25D366; }
.btn-whatsapp:hover { background: #1fb855 !important; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--green-accent);
  color: var(--green-accent);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s;
}

.btn-outline:hover {
  background: var(--green-accent);
  color: white;
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section { padding: 80px 40px; }
section.alt { background: var(--white); }
section.dark { background: var(--green-dark); color: var(--white); }

.container { max-width: 1000px; margin: 0 auto; }

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

h2 em { font-style: normal; color: var(--green-accent); }
section.dark h2 { color: var(--white); }

.subtitle {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 700px;
}

section.dark .subtitle { color: rgba(255,255,255,.6); }

h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--green-dark);
}

section.dark h3 { color: var(--green-accent); }

p { line-height: 1.7; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ===== SECTION LABEL ===== */
.section-label {
  background: var(--green-dark);
  color: var(--green-accent);
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
  border-radius: 4px;
}

section.alt .section-label { background: var(--green-light); color: var(--green-dark); }

/* ===== GRID CARDS ===== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid #e8e5dc;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.07);
}

section.alt .card { background: var(--cream); }

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-mid); margin-bottom: 0; }

/* ===== PILLAR BLOCKS ===== */
.pillar {
  display: flex;
  gap: 40px;
  margin-bottom: 56px;
  align-items: flex-start;
}

.pillar:last-child { margin-bottom: 0; }

.pillar-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--green-accent);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
}

.pillar-content { flex: 1; }
.pillar-content h3 { font-size: 22px; margin-bottom: 8px; }
.pillar-content p { color: var(--text-mid); }

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 36px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  width: 52px;
  height: 52px;
  background: var(--green-dark);
  color: var(--green-accent);
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step h3 { font-size: 16px; text-align: center; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-mid); }

/* ===== MODALITIES ===== */
.modalities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.modality-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color .2s, background .2s;
}

.modality-card:hover {
  border-color: var(--green-accent);
  background: rgba(255,255,255,.09);
}

.modality-card h3 { color: var(--green-accent); font-size: 18px; margin-bottom: 10px; }
.modality-card p { color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 0; }

.modality-tag {
  display: inline-block;
  background: rgba(74,155,110,.2);
  color: var(--green-accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 14px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.testimonial {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid #e8e5dc;
  position: relative;
}

section .testimonial { background: var(--white); }

.testimonial::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  color: var(--green-accent);
  opacity: .25;
  position: absolute;
  top: 8px;
  left: 18px;
  line-height: 1;
}

.testimonial p {
  font-size: 14px;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 16px;
  padding-top: 20px;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== PROFILES ===== */
.profiles {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.profile-card {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: border-color .2s;
}

.profile-card:hover { border-color: var(--green-accent); }
.profile-card h3 { color: var(--green-accent); margin-bottom: 8px; }
.profile-card p { color: rgba(255,255,255,.6); font-size: 14px; }

/* ===== ALIGN CARDS ===== */
.align-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.align-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 36px 28px;
  border-left: 4px solid var(--green-accent);
  transition: box-shadow .2s;
}

.align-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.align-card h3 { color: var(--green-dark); font-size: 18px; margin-bottom: 12px; }
.align-card p { font-size: 14px; color: var(--text-mid); margin-bottom: 0; }

/* ===== LOCATION ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.location-info h3 { margin-bottom: 16px; }
.location-info p { font-size: 14px; color: var(--text-mid); }

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* ===== FORM ===== */
.form-section {
  background: var(--green-dark);
  color: white;
  text-align: center;
}

.form-section h2 { color: white; }

.form-wrapper {
  max-width: 500px;
  margin: 30px auto 0;
  text-align: left;
}

.form-field {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 14px 18px;
  width: 100%;
  color: var(--white);
  font-size: 14px;
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
}

.form-field::placeholder { color: rgba(255,255,255,.4); }
.form-field:focus { border-color: var(--green-accent); }

.form-field-light {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px 18px;
  width: 100%;
  color: var(--text-dark);
  font-size: 14px;
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
}

.form-field-light:focus { border-color: var(--green-accent); }

.form-box {
  background: var(--cream);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e8e5dc;
}

/* ===== FORM FEEDBACK ===== */
.form-feedback {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

.form-feedback.show { display: block; }

.form-feedback--ok {
  background: rgba(74,155,110,.12);
  color: #2d6e4a;
  border: 1px solid rgba(74,155,110,.35);
}

.form-feedback--err {
  background: rgba(220,53,69,.08);
  color: #b02a37;
  border: 1px solid rgba(220,53,69,.3);
}

/* Variantes para seção escura */
.form-section .form-feedback--ok {
  background: rgba(74,155,110,.2);
  color: #7fd4a6;
  border-color: rgba(74,155,110,.45);
}

.form-section .form-feedback--err {
  background: rgba(220,53,69,.15);
  color: #ff8089;
  border-color: rgba(220,53,69,.4);
}

/* Loading state */
button[disabled] {
  opacity: .65;
  cursor: not-allowed;
}

/* ===== FIELD VALIDATION ===== */
.form-field.field-error,
.form-field-light.field-error {
  border-color: #e05260 !important;
  background-color: rgba(220,53,69,.06) !important;
}

.field-error-msg {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: -8px;
  margin-bottom: 10px;
  padding-left: 4px;
}

/* Padrão: visível em fundo escuro (home form está dentro de .form-section) */
.field-error-msg { color: #ff8089; }

/* Contexto claro: form de contato está dentro de .form-box */
.form-box .field-error-msg { color: #c0392b; }

/* Ícone de sucesso no campo validado */
.form-field.field-ok,
.form-field-light.field-ok {
  border-color: var(--green-accent) !important;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--green-accent);
  padding: 40px;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  margin-top: 6px;
}

/* ===== INNER PAGE HERO ===== */
.inner-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 70px 40px;
  text-align: center;
}

.inner-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: white;
  margin-bottom: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.inner-hero p {
  color: rgba(255,255,255,.65);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid #e8e5dc;
  padding: 22px 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
  background: #0f1f16;
  color: rgba(255,255,255,.5);
  padding: 48px 40px 32px;
  text-align: center;
  font-size: 13px;
}

.footer-grid {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-logo img { height: 38px; width: auto; opacity: .8; }

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}

.footer-logo-text span { color: var(--green-accent); }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}

footer a { color: var(--green-accent); text-decoration: none; }
footer a:hover { color: var(--white); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 24px 0;
}

.footer-contact { margin-bottom: 16px; line-height: 2; }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  text-align: center;
  text-decoration: none;
}

.whatsapp-float-btn {
  background: #25D366;
  color: white;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}

.whatsapp-float:hover .whatsapp-float-btn {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}

.whatsapp-float-label {
  background: var(--green-dark);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
  white-space: nowrap;
}

/* ===== NOTICE ===== */
.notice-bar {
  background: var(--green-accent);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
}

.notice-bar a { color: white; text-decoration: underline; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}

.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-accent); }
.breadcrumb span { margin: 0 8px; }

/* ===== GRID VARIANTS ===== */
/* Use estas classes no HTML em vez de inline styles — assim o responsivo funciona */
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.photo-slot {
  background: var(--cream-dark);
  border: 2px dashed #ccc;
  border-radius: 12px;
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  gap: 10px;
}

.photo-slot-icon { font-size: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards-3         { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3     { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .profiles { flex-wrap: wrap; }
  .profile-card { min-width: calc(50% - 20px); }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 10px 16px; }
  .nav-logo img { height: 72px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid #e0ddd5;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid #f0ece3;
  }

  .nav-links a.nav-cta {
    margin-top: 8px;
    text-align: center;
    border-bottom: none;
  }

  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }

  /* Sections */
  section { padding: 48px 20px; }
  h2 { font-size: 26px; }
  .subtitle { font-size: 15px; }

  /* All grids collapse to 1 column */
  .cards-3,
  .steps,
  .testimonial-grid,
  .modalities-grid,
  .grid-cols-3,
  .align-cards,
  .location-grid,
  .photo-grid { grid-template-columns: 1fr !important; }

  /* Pillars */
  .pillar { flex-direction: column; gap: 16px; }
  .pillar-content h3 { font-size: 18px; }

  /* Stats */
  .stats-strip { padding: 32px 20px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 12px; }

  /* Profiles */
  .profiles { flex-direction: column; gap: 20px; }

  /* Inner pages */
  .inner-hero { padding: 44px 20px; }
  .inner-hero h1 { font-size: 26px; }
  .inner-hero p { font-size: 14px; }

  /* Photo slots */
  .photo-slot { height: 200px; }

  /* Form */
  .form-box { padding: 20px; }

  /* Footer */
  .footer-links { gap: 8px 16px; }
  .footer-contact { font-size: 12px; }

  /* Floating WA */
  .whatsapp-float { bottom: 16px; right: 16px; }
  .whatsapp-float-btn { width: 52px; height: 52px; font-size: 24px; }
}
