:root {
  --royal: #000080;
  --royal-2: #1111a5;
  --royal-3: #2929c7;
  --baby: #dfefff;
  --baby-2: #edf6ff;
  --ink: #11142a;
  --muted: #5c6275;
  --line: #dfe3ec;
  --soft: #f4f6f9;
  --white: #fff;
  --shadow: 0 18px 48px rgba(0, 0, 64, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-baby { background: linear-gradient(135deg, var(--baby-2), var(--baby)); }
.section-royal { color: white; background: linear-gradient(135deg, #00005b, var(--royal)); }
.eyebrow { margin: 0 0 12px; color: var(--royal-3); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-royal .eyebrow { color: #a9d4ff; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.25rem; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.section-royal .lead { color: #e7efff; }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head p:last-child { margin-bottom: 0; }
.accent { color: var(--royal-3); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(0,0,128,.08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; color: var(--royal); font-weight: 950; }
.brand-logo { display: inline-flex; width: 194px; min-height: 54px; align-items: center; }
.brand-logo img { width: 100%; height: auto; }
.brand-logo-footer { width: 180px; height: auto; padding: 9px 11px; background: white; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: .88rem; font-weight: 750; }
.nav-links a:hover { color: var(--royal-3); }
.nav-links a.active { color: var(--royal-3); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: white; border-radius: 12px; color: var(--royal); font-weight: 900; }

.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 850; cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--royal); box-shadow: 0 10px 24px rgba(0,0,128,.22); }
.btn-light { color: var(--royal); background: white; }
.btn-ghost { color: white; border: 1.5px solid rgba(255,255,255,.72); background: rgba(0,0,50,.22); }
.btn-outline { color: var(--royal); border: 1.5px solid var(--royal); background: transparent; }
.btn-sm { min-height: 42px; padding: 0 17px; font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero { position: relative; overflow: hidden; padding: 88px 0 76px; background: radial-gradient(circle at 78% 20%, #cae7ff 0, transparent 27%), linear-gradient(135deg, #fff 0%, #f4f8ff 100%); }
.hero::after { content: "K"; position: absolute; right: -3vw; bottom: -15vw; color: rgba(0,0,128,.035); font-size: min(55vw, 700px); font-weight: 950; font-style: italic; line-height: 1; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 64px; }
.hero p { max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 8px 13px; border: 1px solid #bcd7f5; border-radius: 999px; color: var(--royal); background: rgba(255,255,255,.8); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.hero-panel { position: relative; min-height: 480px; overflow: hidden; border: 8px solid white; border-radius: 42px 8px 42px 8px; background: linear-gradient(150deg, #1010a6, #000047); box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, transparent 0 34px, rgba(255,255,255,.045) 35px 36px); }
.hero-panel-content { position: absolute; inset: auto 28px 28px; z-index: 2; padding: 24px; color: white; background: rgba(0,0,50,.68); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; backdrop-filter: blur(10px); }
.hero-panel-content strong { display: block; font-size: 1.25rem; }
.hero-panel-content span { color: #dceaff; }
.k-ring { position: absolute; width: 280px; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%,-58%); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.k-ring::before, .k-ring::after { content: ""; position: absolute; inset: 28px; border: inherit; border-radius: inherit; }
.k-ring::after { inset: 70px; }
.k-symbol { position: absolute; width: 238px; height: 190px; left: 50%; top: 50%; transform: translate(-50%,-50%); overflow: hidden; }
.k-symbol::before { content: ""; position: absolute; width: 1018px; height: 337px; left: -14px; top: -9px; background: url("assets/logo-renzo-gracie.png") left top / 1018px 337px no-repeat; }

.trust-strip { padding: 22px 0; color: white; background: var(--royal); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust-items strong { display: block; font-size: 1rem; }
.trust-items span { color: #cbdfff; font-size: .8rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 28px rgba(17,20,42,.04); transition: .22s ease; }
.card:hover { transform: translateY(-5px); border-color: #b7ccef; box-shadow: var(--shadow); }
.card-number { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 28px; border-radius: 50%; color: white; background: var(--royal); font-weight: 900; }
.card p { color: var(--muted); }
.card-link { color: var(--royal); font-weight: 850; }
.program-card { min-height: 310px; display: flex; flex-direction: column; }
.program-card .card-link { margin-top: auto; }
.program-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -55px; top: -55px; border-radius: 50%; background: var(--baby); }

.feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 62px; align-items: center; }
.feature-visual { min-height: 500px; padding: 34px; display: flex; align-items: flex-end; color: white; background: linear-gradient(145deg, var(--royal-3), #00004b); border-radius: 44px 10px 44px 10px; box-shadow: var(--shadow); }
.feature-visual blockquote { margin: 0; font-size: clamp(1.65rem,3vw,2.5rem); font-weight: 850; line-height: 1.14; letter-spacing: -.03em; }
.checks { display: grid; gap: 18px; margin-top: 28px; }
.check { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.check-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--royal); background: var(--baby); border-radius: 50%; font-weight: 950; }
.check strong { display: block; }
.check span { color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.pillar { padding: 24px; border-top: 4px solid var(--royal); border-radius: 0 0 16px 16px; background: white; }
.pillar p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }

.profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: center; }
.portrait { position: relative; min-height: 530px; display: grid; place-items: center; overflow: hidden; color: white; background: linear-gradient(145deg, #dcecff, #8ec2f5); border-radius: 36px 8px 36px 8px; }
.credentials { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.credential { padding: 8px 12px; color: var(--royal); background: var(--baby-2); border: 1px solid #cde2fa; border-radius: 999px; font-size: .82rem; font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.stat { padding: 25px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); border-radius: 18px; }
.stat strong { display: block; font-size: 1.8rem; }
.stat span { color: #cdddff; }

.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: white; }
.faq-question { width: 100%; padding: 20px 22px; display: flex; justify-content: space-between; gap: 20px; border: 0; text-align: left; color: var(--ink); background: transparent; font-weight: 850; cursor: pointer; }
.faq-answer { display: none; padding: 0 22px 20px; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question span { transform: rotate(45deg); }

.lead-box { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; padding: 44px; color: white; background: var(--royal); border-radius: 30px 8px 30px 8px; }
.lead-box p { color: #dce7ff; }
.lead-form { display: grid; gap: 12px; }
.lead-form input, .lead-form select { width: 100%; min-height: 49px; padding: 0 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 11px; color: var(--ink); background: white; }
.form-note { font-size: .76rem; color: #cbd8ff !important; }

.page-hero { padding: 78px 0 64px; background: linear-gradient(135deg, #f9fbff, var(--baby-2)); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.page-symbol { min-height: 360px; display: grid; place-items: center; color: white; background: var(--royal); border-radius: 40px 8px 40px 8px; font-size: 6rem; font-weight: 950; font-style: italic; box-shadow: var(--shadow); }
.promise-bar { padding: 30px; color: white; background: var(--royal); border-radius: 22px 6px 22px 6px; }
.promise-bar p { margin: 0; font-size: clamp(1.25rem,2.5vw,2rem); font-weight: 850; line-height: 1.2; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.content-list { padding: 0; list-style: none; }
.content-list li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); }
.content-list li::before { content: "✓"; position: absolute; left: 0; color: var(--royal); font-weight: 950; }
.timeline { position: relative; display: grid; gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--baby); }
.timeline-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.timeline-dot { z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; color: white; background: var(--royal); border-radius: 50%; font-size: .7rem; font-weight: 850; }
.photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.photo-slot { min-height: 250px; display: grid; place-items: center; padding: 18px; text-align: center; color: var(--royal); border: 1px dashed #90b6e5; background: var(--baby-2); border-radius: 16px; font-size: .78rem; font-weight: 800; }

.site-footer { padding: 56px 0 30px; color: #dbe4ff; background: #08082d; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-title { color: white; font-weight: 900; }
.footer-links { display: grid; gap: 8px; font-size: .9rem; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #949dc0; font-size: .8rem; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; color: white; background: #20b95a; border-radius: 50%; box-shadow: 0 10px 28px rgba(0,0,0,.22); font-weight: 950; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 20px; right: 20px; top: 70px; display: none; padding: 22px; align-items: stretch; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero-grid, .feature-grid, .profile, .lead-box, .page-hero-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 400px; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .pillars { grid-template-columns: repeat(2,1fr); }
  .trust-items { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container, .narrow { width: min(100% - 28px, 1160px); }
  .section { padding: 68px 0; }
  .hero { padding: 62px 0 56px; }
  .hero-panel { min-height: 330px; }
  .brand-logo { width: 132px; }
  .cards, .pillars, .stats, .photo-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-items { grid-template-columns: 1fr 1fr; font-size: .8rem; }
  .lead-box { padding: 28px 20px; }
  h1 { font-size: 2.65rem; }
}

/* Homepage visual redesign */
.hero-photo {
  min-height: clamp(620px, 76vh, 860px);
  padding: 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0,0,35,.90) 0%, rgba(0,0,55,.68) 34%, rgba(0,0,40,.08) 66%),
    url("assets/photos/hero-renzo-gracie-goiania.webp") center center / cover no-repeat;
}
.hero-photo::after { display: none; }
.hero-copy { position: relative; z-index: 2; color: white; }
.hero-copy h1 { max-width: 780px; margin-bottom: 30px; font-size: clamp(2.8rem, 6vw, 5.6rem); }
.hero-copy h1 span { color: #b9dcff; }
.hero-copy > p { max-width: 670px; color: #eef5ff; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-photo .hero-badge { color: white; border-color: rgba(255,255,255,.35); background: rgba(0,0,70,.32); }

.visual-cards .program-card { min-height: 0; padding: 0; }
.visual-cards .program-card::after { display: none; }
.visual-cards .program-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { min-height: 205px; padding: 24px; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { margin: 0 0 20px; }
.card-body .card-link { margin-top: auto; }

.photo-quote { position: relative; min-height: 560px; padding: 0; overflow: hidden; background: #00004b; }
.photo-quote::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,0,45,.92)); }
.photo-quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-quote blockquote { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 30px; font-size: clamp(1.35rem,2.4vw,2.2rem); }
.method-points { display: grid; gap: 12px; margin: 30px 0; }
.method-points > div { padding: 18px 20px; border-left: 4px solid var(--royal); background: rgba(255,255,255,.68); border-radius: 0 14px 14px 0; }
.method-points strong, .method-points span { display: block; }
.method-points span { margin-top: 3px; color: var(--muted); }

.visual-pillars .pillar { padding: 0; overflow: hidden; border-top: 0; border-radius: 18px; box-shadow: 0 10px 28px rgba(17,20,42,.07); }
.visual-pillars .pillar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.visual-pillars .pillar > div { padding: 20px; border-top: 4px solid var(--royal); }
.visual-pillars .pillar h3 { margin-bottom: 8px; }

.portrait-photo { width: 100%; max-height: 560px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 36px 8px 36px 8px; box-shadow: var(--shadow); }

.photo-stats .stat { padding: 0; overflow: hidden; background: rgba(255,255,255,.09); }
.photo-stats .stat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-stats .stat > div { padding: 22px; }
.photo-stats .stat strong { font-size: 1.45rem; }

/* Renzo Gracie identity and leadership */
.leadership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.leader-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px 8px 24px 8px; background: white; box-shadow: 0 12px 34px rgba(17,20,42,.07); }
.leader-media { height: 350px; overflow: hidden; background: var(--baby-2); }
.leader-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.leader-brand { display: grid; place-items: center; padding: 55px; background: linear-gradient(145deg, #164b91, #08234f); }
.leader-brand > img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .95; }
.leader-copy { padding: 25px; }
.leader-copy h3 { margin: 7px 0 10px; font-size: 1.55rem; }
.leader-copy p { color: var(--muted); }
.leader-role { color: var(--royal-3); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.academy-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.academy-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(255,255,255,.16); border-radius: 24px 7px 24px 7px; box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.renzo-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px 7px 22px 7px; background: white; box-shadow: var(--shadow); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #050525; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-copy { padding: 22px; }
.video-copy h3 { margin-bottom: 8px; }
.video-copy p { margin: 0; color: var(--muted); }
.leadership-mini { display: grid; gap: 5px; padding: 28px; border-left: 4px solid var(--royal); background: white; border-radius: 0 18px 18px 0; box-shadow: var(--shadow); }
.leadership-mini strong:not(:first-child) { margin-top: 20px; }
.leadership-mini span { color: var(--muted); }
.master-symbol { min-height: 430px; display: grid; place-items: center; padding: clamp(55px, 8vw, 95px); overflow: hidden; background: linear-gradient(145deg, #164b91, #071d43); border-radius: 40px 8px 40px 8px; box-shadow: var(--shadow); }
.master-symbol img { width: 100%; max-width: 310px; filter: brightness(0) invert(1); }
.legacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.legacy-card { padding: 30px; border: 1px solid #cde2fa; border-radius: 22px 7px 22px 7px; background: rgba(255,255,255,.78); }
.legacy-card > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 22px; color: white; background: var(--royal); border-radius: 50%; font-size: .78rem; font-weight: 900; }
.legacy-card h3 { margin-bottom: 8px; }
.legacy-card p { margin: 0; color: var(--muted); }
.source-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.source-links a { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--line); border-radius: 18px 6px 18px 6px; background: white; box-shadow: 0 10px 28px rgba(17,20,42,.05); transition: .2s ease; }
.source-links a:hover { transform: translateY(-4px); border-color: #b7ccef; box-shadow: var(--shadow); }
.source-links strong { color: var(--ink); }
.source-links span { color: var(--royal); font-size: .88rem; font-weight: 800; }

@media (max-width: 900px) {
  .hero-photo { min-height: 680px; background-position: 58% center; }
  .hero-copy { padding-top: 250px; }
  .hero-photo { background-image: linear-gradient(0deg, rgba(0,0,45,.96) 0%, rgba(0,0,60,.68) 45%, rgba(0,0,30,.08) 76%), url("assets/photos/hero-renzo-gracie-goiania.webp"); }
}

@media (max-width: 600px) {
  .hero-photo { min-height: 690px; align-items: flex-end; background-position: 62% center; }
  .hero-copy { padding: 0 0 48px; }
  .hero-copy h1 { font-size: clamp(2.25rem, 11vw, 3.3rem); }
  .hero-copy h1 br { display: none; }
  .trust-items { grid-template-columns: 1fr 1fr; gap: 20px 8px; }
  .card-body { min-height: 185px; }
  .photo-quote { min-height: 530px; }
}

@media (max-width: 900px) {
  .leadership-grid { grid-template-columns: 1fr 1fr; }
  .academy-gallery, .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand-logo { width: 148px; }
  .leadership-grid { grid-template-columns: 1fr; }
  .leader-media { height: 380px; }
  .renzo-hero .portrait { min-height: 390px; }
  .master-symbol { min-height: 360px; }
  .legacy-grid { grid-template-columns: 1fr; }
  .source-links { grid-template-columns: 1fr; }
}
