/* Cordão de Ouro rebrand — new components. Loaded after styles.css.
   Uses only cdo-* classes so nothing depends on the tree-shaken Tailwind snapshot. */

:root {
  --cdo-green: #009c3b;
  --cdo-deep: #0b3d1e;
  --cdo-yellow: #ffdf00;
  --cdo-blue: #1b3fa6;
  --cdo-ink: #111827;
}

html { scroll-padding-top: 130px; }

/* ---------- Navbar lockup (Cordão de Ouro primary, RR secondary) ---------- */
.cdo-brand { display: flex; align-items: center; gap: 0.75rem; text-align: left; }
.cdo-brand__logo { height: 52px; width: auto; flex-shrink: 0; }
.cdo-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.cdo-brand__name {
  font-family: Outfit, sans-serif; font-weight: 900; font-size: 0.95rem;
  letter-spacing: -0.01em; color: var(--cdo-deep); text-transform: uppercase;
}
.cdo-brand__sub {
  font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cdo-green); margin-top: 3px;
}
.cdo-brand__divider { display: none; width: 1px; height: 34px; background: #d1d5db; margin: 0 0.25rem; }
.cdo-brand__rr { display: none; height: 38px; width: 38px; object-fit: contain; }
@media (min-width: 1280px) {
  .cdo-brand__divider, .cdo-brand__rr { display: block; }
}
.cdo-nav { gap: 1rem; }
.cdo-nav button, [data-testid="nav-cta-book"], .cdo-brand__sub, .cdo-brand__name { white-space: nowrap; }
@media (min-width: 1280px) { .cdo-nav { gap: 1.75rem; } }

/* ---------- Hero lineage strip ---------- */
.cdo-hero-lineage {
  margin-top: 2.25rem; display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.1rem; border-radius: 1.25rem; background: #fff;
  border: 1px solid rgba(0, 156, 59, 0.18); box-shadow: 0 10px 30px -14px rgba(11, 61, 30, 0.25);
  max-width: 34rem;
}
.cdo-hero-lineage img { height: 56px; width: auto; flex-shrink: 0; }
.cdo-hero-lineage img.cdo-hero-lineage__rr { height: 48px; width: 48px; object-fit: contain; }
.cdo-hero-lineage strong { display: block; font-family: Outfit, sans-serif; font-weight: 800; color: var(--cdo-deep); font-size: 0.95rem; }
.cdo-hero-lineage span { display: block; font-size: 0.78rem; font-weight: 600; color: #6b7280; margin-top: 2px; }

/* ---------- Lineage section ---------- */
.cdo-lineage-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .cdo-lineage-grid { grid-template-columns: 0.8fr 1.2fr; } }
.cdo-logo-card {
  background: #fff; border-radius: 2.5rem; padding: 2.25rem 2rem 1.75rem; text-align: center;
  box-shadow: 0 30px 60px -28px rgba(11, 61, 30, 0.35); max-width: 28rem; margin: 0 auto;
}
.cdo-logo-card img { width: 100%; max-width: 21rem; height: auto; margin: 0 auto; display: block; }
.cdo-logo-card p { margin-top: 1.25rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cdo-green); }
.cdo-values { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.cdo-values span {
  padding: 0.5rem 1rem; border-radius: 999px; background: var(--cdo-deep); color: #fff;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.cdo-facts { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: repeat(3, 1fr); }
.cdo-fact { background: #fff; border-radius: 1.25rem; padding: 1.1rem 1rem; text-align: center; box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.25); }
.cdo-fact b { display: block; font-family: Outfit, sans-serif; font-weight: 900; font-size: 1.6rem; color: var(--cdo-green); line-height: 1.1; }
.cdo-fact small { display: block; margin-top: 0.35rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6b7280; }
.cdo-chain-title { margin-top: 2.25rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #6b7280; }
.cdo-chain { display: grid; gap: 0.6rem; margin-top: 0.9rem; }
@media (min-width: 640px) { .cdo-chain { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; } }
.cdo-chain__step { background: #fff; border-radius: 1.1rem; padding: 0.9rem 1rem; border: 1px solid rgba(0, 156, 59, 0.18); }
.cdo-chain__step b { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 0.92rem; color: var(--cdo-deep); }
.cdo-chain__step span { display: block; font-size: 0.74rem; font-weight: 600; color: #6b7280; margin-top: 2px; }
.cdo-chain__step--you { background: var(--cdo-deep); border-color: var(--cdo-deep); }
.cdo-chain__step--you b { color: #fff; }
.cdo-chain__step--you span { color: var(--cdo-yellow); }
.cdo-chain__arrow { align-self: center; justify-self: center; color: var(--cdo-green); font-weight: 900; transform: rotate(90deg); }
@media (min-width: 640px) { .cdo-chain__arrow { transform: none; } }

/* ---------- Graduation ---------- */
.cdo-tabs { display: inline-flex; padding: 0.3rem; border-radius: 999px; background: #eef2ef; margin-top: 2.25rem; }
.cdo-tab {
  padding: 0.7rem 1.4rem; border-radius: 999px; font-family: Outfit, sans-serif; font-weight: 800;
  font-size: 0.85rem; color: #4b5563; cursor: pointer; transition: all 0.2s;
}
.cdo-tab[aria-selected="true"] { background: var(--cdo-deep); color: #fff; box-shadow: 0 6px 16px -8px rgba(11, 61, 30, 0.6); }
.cdo-panel { margin-top: 2rem; }
.cdo-panel[hidden] { display: none; }
.cdo-panel-lead { font-size: 0.95rem; color: #4b5563; max-width: 40rem; }
.cdo-panel-lead b { color: var(--cdo-deep); }

.cdo-kids-grid { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .cdo-kids-grid { grid-template-columns: repeat(5, 1fr); } }
.cdo-card {
  background: #fff; border-radius: 1.5rem; padding: 1.25rem 1rem 1.1rem; text-align: center;
  border: 1px solid #eef0f1; box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.35);
}
.cdo-card h4 { font-family: Outfit, sans-serif; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cdo-deep); }
.cdo-card .cdo-color { margin-top: 0.15rem; font-size: 0.74rem; font-weight: 700; color: #374151; }
.cdo-card .cdo-meaning { margin-top: 0.6rem; font-size: 0.78rem; color: #6b7280; line-height: 1.35; min-height: 2.1em; }
.cdo-card .cdo-time { margin-top: 0.7rem; display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; background: #f1f5f2; font-size: 0.68rem; font-weight: 800; color: var(--cdo-deep); }

/* cord drawing */
.cdo-cord-wrap { height: 128px; display: grid; place-items: center; }
.cdo-cord {
  --c1: #999; --c2: var(--c1); --c3: var(--c2);
  position: relative; width: 16px; height: 78px; border-radius: 8px 8px 3px 3px;
  background: repeating-linear-gradient(135deg, var(--c1) 0 6px, var(--c2) 6px 12px, var(--c3) 12px 18px);
  filter: drop-shadow(0 0 0.6px rgba(0, 0, 0, 0.55));
}
.cdo-cord::before {
  content: ""; position: absolute; top: -20px; left: 50%; width: 22px; height: 26px; margin-left: -11px;
  border-radius: 50% 50% 40% 40%; border: 5px solid var(--c1); border-bottom-color: var(--c2); box-sizing: border-box;
}
.cdo-cord::after {
  content: ""; position: absolute; bottom: -14px; left: -5px; right: -5px; height: 20px;
  border-radius: 3px 3px 10px 10px;
  background: repeating-linear-gradient(90deg, var(--c1) 0 3px, var(--c2) 3px 6px, var(--c3) 6px 9px);
}

.cdo-adult-groups { display: grid; gap: 1rem; margin-top: 1.5rem; }
.cdo-group { background: #fff; border-radius: 1.5rem; border: 1px solid #eef0f1; padding: 1rem 1rem 1.1rem; box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.3); }
.cdo-group__title {
  display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--cdo-deep); color: #fff;
  font-family: Outfit, sans-serif; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.cdo-group__title small { font-weight: 600; opacity: 0.75; text-transform: none; letter-spacing: 0; margin-left: 0.35rem; }
.cdo-group--mestre .cdo-group__title { background: linear-gradient(90deg, #b7862a, #e1b954); color: #3a2a05; }
.cdo-group__cords { display: grid; gap: 0.75rem; margin-top: 0.9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cdo-group__cords { grid-template-columns: repeat(4, 1fr); } }
.cdo-mini { text-align: center; }
.cdo-mini .cdo-cord-wrap { height: 118px; }
.cdo-mini b { display: block; font-size: 0.74rem; font-weight: 800; color: #1f2937; }
.cdo-mini span { display: block; font-size: 0.68rem; font-weight: 700; color: #6b7280; margin-top: 2px; }

.cdo-notes { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .cdo-notes { grid-template-columns: repeat(3, 1fr); } }
.cdo-note { background: rgba(255, 255, 255, 0.7); border-radius: 1.25rem; padding: 1.1rem 1.2rem; border: 1px solid rgba(0, 156, 59, 0.15); }
.cdo-note b { display: block; font-family: Outfit, sans-serif; font-weight: 800; color: var(--cdo-deep); font-size: 0.9rem; }
.cdo-note p { margin-top: 0.35rem; font-size: 0.82rem; line-height: 1.5; color: #4b5563; }
.cdo-chart-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem; font-weight: 800; font-size: 0.85rem; color: var(--cdo-green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer logos ---------- */
.cdo-footer-logos { display: flex; align-items: center; gap: 0.75rem; }
.cdo-plate { background: #fff; border-radius: 1rem; padding: 0.45rem 0.6rem; display: grid; place-items: center; }
.cdo-plate img { height: 62px; width: auto; display: block; }
.cdo-plate--rr img { height: 50px; width: 50px; object-fit: contain; }
.cdo-footer-line { margin-top: 1rem; font-family: Outfit, sans-serif; font-weight: 800; color: #fff; font-size: 1rem; }
.cdo-footer-line span { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cdo-yellow); margin-top: 2px; }

@media (max-width: 639px) {
  .cdo-brand__logo { height: 44px; }
  .cdo-brand__name { font-size: 0.82rem; }
  .cdo-facts { grid-template-columns: 1fr; }
}

.cdo-brand__rrname { display: none; font-style: normal; }
@media (min-width: 1280px) { .cdo-brand__rrname { display: inline; } }

/* ---------- FAQ ---------- */
.cdo-faq { margin-top: 3rem; max-width: 52rem; display: grid; gap: 0.75rem; }
.cdo-faq__item { background: #fff; border-radius: 1.25rem; border: 1px solid #e5eae7; box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.3); }
.cdo-faq__item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3.25rem 1.1rem 1.4rem; position: relative;
  font-family: Outfit, sans-serif; font-weight: 800; font-size: 1.02rem; color: var(--cdo-deep);
}
.cdo-faq__item summary::-webkit-details-marker { display: none; }
.cdo-faq__item summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 999px;
  background: rgba(0, 156, 59, 0.12); color: var(--cdo-green); font-size: 1.2rem; font-weight: 800; line-height: 1;
}
.cdo-faq__item[open] summary::after { content: "\2212"; background: var(--cdo-green); color: #fff; }
.cdo-faq__item summary:focus-visible { outline: 2px solid var(--cdo-green); outline-offset: 2px; border-radius: 1.25rem; }
.cdo-faq__item p { padding: 0 1.4rem 1.3rem; font-size: 0.95rem; line-height: 1.65; color: #4b5563; }

/* ---------- Link back to the main RR Martial Arts site ---------- */
.cdo-topbar { background: var(--cdo-deep); }
.cdo-topbar a {
  display: inline-block; padding: 0.4rem 0; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.85); text-decoration: none;
}
.cdo-topbar a:hover { color: var(--cdo-yellow); text-decoration: underline; text-underline-offset: 3px; }
.cdo-footer-links { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cdo-footer-links p { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cdo-yellow); }
.cdo-footer-links ul { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; }
.cdo-footer-links a { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.cdo-footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Language toggle (PT / EN) ---------- */
.cdo-lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid #d5e0d9; }
.cdo-lang button {
  min-width: 2.35rem; padding: 0.32rem 0.6rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1; color: #4b5563;
}
.cdo-lang button:hover { color: var(--cdo-green); }
.cdo-lang button.is-active, .cdo-lang button[aria-pressed="true"] { background: var(--cdo-green); color: #fff; }
.cdo-lang button:focus-visible { outline: 2px solid var(--cdo-deep); outline-offset: 2px; }
@media (max-width: 420px) {
  .cdo-lang button { min-width: 2rem; padding: 0.3rem 0.45rem; font-size: 0.7rem; }
}

/* Portuguese labels are longer: below 1280px the header uses the menu button instead of the inline links */
@media (min-width: 1024px) and (max-width: 1279px) {
  .cdo-nav { display: none !important; }
  [data-testid="nav-menu-toggle"] { display: grid !important; }
}
@media (min-width: 1280px) { .cdo-nav { gap: 1.15rem; } }
