/* ==========================================================
   Zanshin Karate College
   Paleta baseada na logo: azul-marinho → azul royal
   ========================================================== */

:root {
  --navy-950: #0e1330;
  --navy-900: #141a3d;
  --navy-800: #1c2350;
  --navy: #232b57;          /* início do degradê da logo */
  --blue: #1f5fa8;          /* fim do degradê da logo */
  --blue-500: #2f74c4;
  --blue-300: #8fb6e6;
  --blue-100: #e6eef8;
  --paper: #f5f5f5;         /* cinza claro do texto da logo */
  --white: #ffffff;
  --ink: #161b36;
  --muted: #5a6180;
  --line: #dfe3ee;
  --wa: #1fae5b;
  --wa-dark: #178a48;

  --grad: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  --grad-diag: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);

  --c-kids: #3a8be0;
  --c-adulto: #232b57;
  --c-fight: #1f5fa8;
  --c-equipe: #7a8ab8;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(20, 26, 61, .25);
  --shadow-lg: 0 24px 60px -20px rgba(20, 26, 61, .35);
  --header-h: 72px;

  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-kanji: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--grad); border-radius: 2px; }
.eyebrow-light { color: var(--blue-300); }
.eyebrow-light::before { background: var(--blue-300); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--navy); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-wa { --bg: var(--wa); box-shadow: 0 10px 24px -10px rgba(31, 174, 91, .7); }
.btn-wa:hover { --bg: var(--wa-dark); }
.btn-primary { background: var(--grad); box-shadow: var(--shadow); }
.btn-ghost { --bg: transparent; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn-outline:hover { --bg: var(--navy); --fg: var(--white); }
.btn-light { --bg: var(--white); --fg: var(--navy); }
.btn-light:hover { box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(14, 19, 48, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand img { width: 44px; height: auto; filter: brightness(0) invert(1); }
/* logo toda em branco (o "ZK" azul-marinho sumiria no cabeçalho escuro) */
.brand img.brand-logo { width: auto; height: 34px; filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a:not(.btn) {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .93rem;
  position: relative; padding: .3rem 0;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--blue-300); transition: right .25s ease;
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--white); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { right: 0; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1000px 600px at 85% 30%, rgba(31, 95, 168, .55), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(47, 116, 196, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, #1b3f78 100%);
  color: var(--white);
  padding: calc(var(--header-h) + 56px) 0 48px;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-kanji {
  position: absolute; z-index: -1; right: -4vw; bottom: -6vw;
  font-family: var(--f-kanji); font-weight: 700;
  font-size: clamp(14rem, 36vw, 34rem); line-height: .9;
  writing-mode: vertical-rl;
  color: rgba(255,255,255,.035);
  user-select: none; pointer-events: none;
}
.hero-stripes {
  position: absolute; z-index: -1; inset: 0;
  background: repeating-linear-gradient(-58deg, transparent 0 46px, rgba(255,255,255,.025) 46px 48px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}
.hero h1 .hl {
  background: linear-gradient(90deg, #9cc3f2, #4a90e2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.8); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo::before {
  /* halo claro atrás do "ZK" para dar contraste ao degradê azul da logo */
  content: ""; position: absolute; width: min(400px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,218,246,.95) 0%, rgba(160,194,238,.75) 34%, rgba(120,165,225,.25) 52%, rgba(120,165,225,0) 66%);
}
.hero-logo img {
  position: relative; width: min(420px, 100%); height: auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.45));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-stats {
  list-style: none; padding: 0; margin: 3.5rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats li { padding: 1.4rem 1rem 0; display: flex; flex-direction: column; gap: .2rem; }
.hero-stats li + li { border-left: 1px solid rgba(255,255,255,.1); }
.hero-stats strong { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Seções ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--paper); }
.section-dark {
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(31,95,168,.45), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--white);
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.06rem; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-kanji {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: var(--grad-diag);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  color: var(--white); overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-kanji::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-58deg, transparent 0 30px, rgba(255,255,255,.05) 30px 32px);
}
.about-kanji::after {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.22); border-radius: calc(var(--radius-lg) - 8px);
}
.kanji {
  position: relative; font-family: var(--f-kanji); font-weight: 700;
  font-size: clamp(5rem, 11vw, 8.5rem); line-height: 1.05; writing-mode: vertical-rl;
  text-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.kanji-caption { position: relative; font-family: var(--f-display); font-weight: 700; letter-spacing: .4em; text-transform: uppercase; font-size: .8rem; color: var(--blue-300); }
.about-copy > p { color: #3a4060; font-size: 1.04rem; }

.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.values li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.values li:hover { border-color: var(--blue-300); box-shadow: var(--shadow); }
.values svg { width: 28px; height: 28px; color: var(--blue); flex: none; margin-top: 2px; }
.values strong { display: block; font-family: var(--f-display); font-size: 1.02rem; }
.values span { color: var(--muted); font-size: .95rem; }

/* ---------- Modalidades ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.6rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue); margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); background: var(--paper); border-radius: 999px; padding: .3rem .75rem;
}

/* ---------- Horários ---------- */
.legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-bottom: 1.6rem; font-size: .88rem; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: .5rem; }
.lg::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.lg--kids, .slot--kids { --c: var(--c-kids); }
.lg--adulto, .slot--adulto { --c: var(--c-adulto); }
.lg--fight, .slot--fight { --c: var(--c-fight); }
.lg--equipe, .slot--equipe { --c: var(--c-equipe); }

.day-tabs { display: none; }

.schedule { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.day {
  background: var(--paper); border-radius: var(--radius); padding: 1rem .8rem 1.1rem;
  border: 2px solid transparent; transition: border-color .2s ease;
}
.day h3 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--navy);
  margin-bottom: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .4rem;
}
.day.today { border-color: var(--blue); background: var(--white); box-shadow: var(--shadow); }
.day.today h3::after {
  content: "Hoje"; font-size: .62rem; letter-spacing: .08em; color: var(--white);
  background: var(--blue); padding: .15rem .5rem; border-radius: 999px;
}
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.slot {
  background: var(--white); border-radius: 10px; padding: .65rem .75rem;
  border-left: 4px solid var(--c);
  display: flex; flex-direction: column; gap: .1rem;
  box-shadow: 0 2px 8px -4px rgba(20,26,61,.18);
}
.slot time { font-family: var(--f-display); font-weight: 800; font-size: .92rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.slot span { font-size: .82rem; color: var(--muted); line-height: 1.3; }

.schedule-note {
  margin-top: 2rem; display: flex; align-items: center; gap: 1.2rem;
  padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px dashed var(--blue-300); background: var(--blue-100);
}
.schedule-note > svg { width: 30px; height: 30px; color: var(--blue); flex: none; }
.schedule-note p { margin: 0; flex: 1; color: #3a4060; font-size: .95rem; }

/* ---------- Sensei ---------- */
.sensei-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait-frame {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--grad-diag); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(14,19,48,.55));
}
.portrait-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: 1; }
.portrait-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: repeating-linear-gradient(-58deg, transparent 0 30px, rgba(255,255,255,.05) 30px 32px);
}
.portrait-fallback img { width: 55%; filter: brightness(0) invert(1); opacity: .9; }
.dan-badge {
  position: absolute; z-index: 2; top: 18px; right: 18px;
  font-family: var(--f-display); font-weight: 900; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--white); color: var(--navy); padding: .45rem .9rem; border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.5);
}
.portrait-caption { margin-top: 1.1rem; display: flex; flex-direction: column; }
.portrait-caption strong { font-family: var(--f-display); font-size: 1.1rem; }
.portrait-caption span { color: var(--blue-300); font-size: .9rem; }

.sensei-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.sensei-copy > p { color: rgba(255,255,255,.78); font-size: 1.03rem; }

.achievements { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.achievements li {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: .4rem;
  transition: background-color .2s ease, transform .2s ease;
}
.achievements li:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.ach-num {
  font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; line-height: 1;
  background: linear-gradient(90deg, #ffffff, #8fb6e6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ach-label { font-size: .82rem; color: rgba(255,255,255,.75); line-height: 1.35; }

.timeline {
  list-style: none; padding: 0; margin: clamp(3.5rem, 7vw, 5rem) 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px;
  background: linear-gradient(90deg, rgba(143,182,230,.15), var(--blue-300), rgba(143,182,230,.15));
}
.timeline li { position: relative; padding: 2rem 1rem 0 0; }
.timeline li::before {
  content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy-950); border: 3px solid var(--blue-300);
}
.tl-year { font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; display: block; margin-bottom: .3rem; }
.timeline p { color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.5; margin: 0; }

.bio-full {
  margin-top: 3.5rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.03);
}
.bio-full summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.02rem;
}
.bio-full summary::-webkit-details-marker { display: none; }
.bio-full summary svg { width: 24px; height: 24px; transition: transform .25s ease; color: var(--blue-300); }
.bio-full[open] summary svg { transform: rotate(180deg); }
.bio-full summary:hover { color: var(--blue-300); }
.bio-body { padding: 0 1.5rem 2rem; columns: 2 340px; column-gap: 3rem; }
.bio-body h3 { break-after: avoid; color: var(--blue-300); font-size: 1.05rem; margin-top: 1.6rem; }
.bio-body p { color: rgba(255,255,255,.78); font-size: .97rem; break-inside: avoid; }
.bio-closing { font-family: var(--f-display); font-style: italic; font-weight: 800; color: var(--white) !important; font-size: 1.05rem !important; }

/* ---------- Faixa Instagram ---------- */
.insta-band { background: var(--grad); color: var(--white); padding: clamp(48px, 7vw, 72px) 0; position: relative; overflow: hidden; }
.insta-band::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-58deg, transparent 0 40px, rgba(255,255,255,.04) 40px 42px);
}
.insta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.insta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.insta-inner p { margin: 0; color: rgba(255,255,255,.8); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.04rem; }

.contact-people { display: grid; gap: .8rem; margin: 1.8rem 0; }
.person {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.person:hover { border-color: var(--wa); box-shadow: var(--shadow); transform: translateY(-2px); }
.person-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; flex: none; }
.person-icon svg { width: 24px; height: 24px; }
.person-text { flex: 1; display: flex; flex-direction: column; }
.person-text strong { font-family: var(--f-display); }
.person-text small { color: var(--muted); font-size: .88rem; }
.person-arrow { width: 22px; height: 22px; color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; color: #3a4060; }
.contact-list svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.contact-list a { color: var(--blue); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.wa-form {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.wa-form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.wa-form h3 { font-size: 1.35rem; margin-bottom: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fbfcfe;
  transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23232b57' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,95,168,.15); background: var(--white);
}
.field input.invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.12); }
.form-hint { margin: .8rem 0 0; text-align: center; font-size: .85rem; color: var(--muted); }

.map-wrap { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); }
.map-wrap iframe {
  width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); display: block;
  box-shadow: var(--shadow); filter: saturate(.85);
}
.map-btn { position: absolute; left: 20px; bottom: 20px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 3.5rem 0 1.5rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.footer-nav a { text-decoration: none; font-size: .93rem; }
.footer-nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: .7rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); color: var(--white); transition: background-color .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.4rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-kanji { font-family: var(--f-kanji); font-size: 1.3rem; color: rgba(255,255,255,.35); letter-spacing: .2em; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(31,174,91,.75);
  transition: transform .2s ease, opacity .3s ease, visibility .3s ease;
  opacity: 0; visibility: hidden; transform: translateY(12px);
}
.wa-float.show { opacity: 1; visibility: visible; transform: none; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo img, .wa-float::before { animation: none; }
}

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .schedule { grid-template-columns: repeat(3, 1fr); }
  .achievements { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .timeline::before { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img.brand-logo { height: 28px; }

  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14, 19, 48, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: .5rem 16px 1.4rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.02rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1.2rem; padding: .9rem; font-size: .95rem; }
  .site-header.menu-open { background: rgba(14, 19, 48, .97); }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(240px, 62vw); }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-copy .eyebrow::before { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
  .hero-stats li { padding: 1.1rem .5rem; text-align: center; align-items: center; }
  .hero-stats li:nth-child(3) { border-left: 0; }
  .hero-stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }

  .about-grid, .sensei-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-kanji { aspect-ratio: 16 / 9; flex-direction: row; }
  .kanji { writing-mode: horizontal-tb; font-size: clamp(4rem, 16vw, 6rem); }
  .kanji-caption { writing-mode: vertical-rl; letter-spacing: .3em; }
  .sensei-portrait { max-width: 400px; width: 100%; margin-inline: auto; }

  .insta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .day-tabs {
    display: flex; gap: .4rem; margin-bottom: 1rem; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .day-tabs::-webkit-scrollbar { display: none; }
  .day-tabs button {
    flex: 1 0 auto; min-width: 52px; padding: .65rem .8rem; border-radius: 10px;
    border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
    font-family: var(--f-display); font-weight: 700; font-size: .88rem; cursor: pointer;
  }
  .day-tabs button[aria-selected="true"] { background: var(--grad); color: var(--white); border-color: transparent; }
  .js .schedule { grid-template-columns: 1fr; }
  .js .schedule .day { display: none; }
  .js .schedule .day.active { display: block; }
  .slot { flex-direction: row; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; }
  .slot span { text-align: right; font-size: .9rem; }

  .schedule-note { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; }
  .footer-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .map-wrap iframe { height: 300px; }
  .map-btn { left: 12px; bottom: 12px; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
