/* Royal Ads: menu com dropdowns (desktop) e acordeao (gaveta do celular). */
.nav__links.mnu { align-items: center; gap: 2px; }
.mnu .mnu__top, .mnu .mnu__trg { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.82); font: 500 14px 'Atyp Display', system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.mnu .mnu__top:hover, .mnu .mnu__trg:hover, .mnu .mnu__trg[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.07); }
.mnu .is-active > .mnu__trg, .mnu .mnu__top.is-active { color: #E8CA98; }
.mnu__chev { transition: transform .25s; opacity: .8; }
.mnu__trg[aria-expanded="true"] .mnu__chev { transform: rotate(180deg); }
.mnu__grp { position: relative; }
.mnu__panel { position: absolute; top: calc(100% + 14px); left: 50%; z-index: 80; width: 340px; padding: 10px; border-radius: 20px; background: #020D3E; border: 1px solid rgba(232,202,152,.22); box-shadow: 0 24px 60px rgba(1,2,27,.55); transform: translateX(-50%); animation: mnuIn .22s cubic-bezier(.22,.61,.36,1) both; }
.mnu__panel::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.mnu__panel--wide { width: 620px; }
.mnu__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mnu__panel--wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@keyframes mnuIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mnu .mnu__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; color: #fff; text-decoration: none; line-height: 1.3; transition: background .2s; }
.mnu .mnu__item:hover, .mnu .mnu__item:focus-visible { background: rgba(232,202,152,.1); }
.mnu .mnu__item[aria-current="page"] b { color: #E8CA98; }
.mnu__ico { flex: 0 0 auto; margin-top: 1px; color: #E8CA98; }
.mnu__item span { display: grid; gap: 3px; }
.mnu__item b { font-size: 14px; font-weight: 600; }
.mnu__item small { font-size: 12.5px; color: rgba(255,255,255,.62); }
.mnu a:focus-visible, .mnu button:focus-visible { outline: 2px solid #E8CA98; outline-offset: 2px; }

/* gaveta do celular: acordeao */
.mnu--drawer { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
.mnu--drawer .mnu__top, .mnu--drawer .mnu__trg { width: 100%; justify-content: space-between; min-height: 52px; padding: 0 4px; border-radius: 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); background: none; }
.mnu--drawer .mnu__trg:hover, .mnu--drawer .mnu__trg[aria-expanded="true"] { background: none; }
.mnu--drawer .mnu__panel { position: static; width: auto; padding: 6px 0 10px; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; animation: none; }
.mnu--drawer .mnu__panel::before { display: none; }
.mnu--drawer .mnu__panel--wide ul { grid-template-columns: minmax(0, 1fr); }
.mnu--drawer .mnu__item { padding: 10px 6px; }
.mnu--drawer .mnu__item small { display: none; }
@media (prefers-reduced-motion: reduce) { .mnu__panel { animation: none; } .mnu__chev { transition: none; } }

/* Titulos: evita que o texto "encolha" para uma palavra por linha (Safari e text-wrap: balance) */
html .sec__title, html .page-hero h1, html .bl-hero h1 { width: 100%; }
/* largura minima em em (nao depende do ch da fonte): nunca uma palavra por linha */
html .sec__title { min-width: min(100%, 11em); max-width: max(20ch, 12em); }
@supports (-webkit-hyphens: none) and (not (-moz-appearance: none)) {
  html h1, html h2, html h3, html .sec__title, html .mstack__title, .film__title, .certs__title, .l3d__title { text-wrap: pretty; }
}
h1, h2, h3 { overflow-wrap: break-word; }

/* ===== Animacoes do menu: entrada suave em cascata e troca de cor no hover ===== */
@keyframes mnuItemIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mnuSideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
/* dropdown do desktop: cada opcao entra logo depois da anterior */
.mnu__panel:not([hidden]) li { animation: mnuItemIn .38s cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(var(--i, 0) * 35ms + 60ms); }
/* gaveta (menu de listras): os grupos entram em cascata quando ela abre */
.drawer:not([hidden]) .mnu--drawer > *, .drawer:not([hidden]) > .lang, .drawer:not([hidden]) > .btn { animation: mnuSideIn .45s cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
.mnu--drawer .mnu__panel:not([hidden]) li { animation-name: mnuSideIn; animation-duration: .32s; animation-delay: calc(var(--i, 0) * 30ms); }
/* hover: texto e icone trocam para o dourado */
.mnu .mnu__top:hover, .mnu .mnu__trg:hover, .mnu .mnu__trg[aria-expanded="true"] { color: #E8CA98; }
.mnu .mnu__item b, .mnu .mnu__item small, .mnu__ico { transition: color .22s, transform .25s cubic-bezier(.22,.61,.36,1); }
.mnu .mnu__item:hover b, .mnu .mnu__item:focus-visible b { color: #E8CA98; }
.mnu .mnu__item:hover small, .mnu .mnu__item:focus-visible small { color: rgba(245,230,190,.85); }
.mnu .mnu__item:hover .mnu__ico, .mnu .mnu__item:focus-visible .mnu__ico { color: #F5E6BE; transform: translateX(3px) scale(1.08); }
.mnu .mnu__item { transition: background .22s, transform .25s cubic-bezier(.22,.61,.36,1); }
.mnu:not(.mnu--drawer) .mnu__item:hover { transform: translateX(2px); }
.mnu--drawer .mnu__top:hover, .mnu--drawer .mnu__trg:hover { color: #E8CA98; padding-left: 10px; }
.mnu--drawer .mnu__top, .mnu--drawer .mnu__trg { transition: color .22s, padding-left .25s cubic-bezier(.22,.61,.36,1); }
.mnu--drawer .mnu__item:hover { background: rgba(232,202,152,.08); }
@media (prefers-reduced-motion: reduce) {
  .mnu__panel:not([hidden]) li, .drawer:not([hidden]) .mnu--drawer > *, .drawer:not([hidden]) > .lang, .drawer:not([hidden]) > .btn { animation: none; }
  .mnu .mnu__item, .mnu__ico, .mnu--drawer .mnu__top, .mnu--drawer .mnu__trg { transition: color .2s; transform: none !important; }
}

/* ===== Rodape (todas as paginas), no modelo de construction.royaladsusa.com ===== */
@keyframes ftBreathe { 0% { transform: translate(-50%, -50%) scale(1); opacity: .55; } 100% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } }
@keyframes ftMarq { to { transform: translateX(-50%); } }
@keyframes ftGiant { 0% { opacity: 0; transform: translateX(-50%) translateY(12%) scale(.82); } 100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes ftUp { 0% { opacity: 0; transform: translateY(50px); } 100% { opacity: 1; transform: none; } }
@keyframes ftGlow { 0%, 100% { filter: brightness(.8); } 50% { filter: brightness(1.25); } }
.ft { position: relative; z-index: 5; display: flex; flex-direction: column; justify-content: space-between; margin-top: 40px; background: #01021B; color: #fff; border-top: 1px solid rgba(201,168,76,.18); font-family: 'Atyp Display', system-ui, sans-serif; }
.ft__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ft__aurora { position: absolute; left: 50%; top: 52%; width: 80%; height: 60%; border-radius: 50%; filter: blur(80px); background: radial-gradient(circle, rgba(201,168,76,.22) 0%, rgba(46,91,255,.2) 42%, rgba(1,2,27,0) 70%); animation: ftBreathe 8s ease-in-out infinite alternate; will-change: transform, opacity; }
.ft__grid { position: absolute; inset: 0; background-size: 60px 60px; background-image: linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.ft__giant { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; user-select: none; font-weight: 900; font-size: clamp(120px, 23vw, 330px); line-height: .8; letter-spacing: .02em; color: transparent;
  background: linear-gradient(rgba(243,223,176,.09) 0%, rgba(201,168,76,.055) 40%, rgba(201,168,76,.016) 85%, rgba(201,168,76,0) 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: linear-gradient(#000 35%, rgba(0,0,0,.25) 80%, transparent 100%); mask-image: linear-gradient(#000 35%, rgba(0,0,0,.25) 80%, transparent 100%); opacity: 0; }
.ft.is-in .ft__giant { animation: ftGiant 1.4s cubic-bezier(.16,1,.3,1) both, ftGlow 6s ease-in-out 1.4s infinite; }
.ft__marquee { position: absolute; top: 0; left: -5%; width: 110%; overflow: hidden; z-index: 6; transform: translateY(-50%) rotate(-1.2deg); padding: 22px 0; background: rgba(1,2,27,.92); border-top: 1px solid rgba(201,168,76,.25); border-bottom: 1px solid rgba(201,168,76,.25); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.ft__track { display: flex; width: max-content; animation: ftMarq 40s linear infinite; }
.ft__mi { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-weight: 700; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #A9B4C6; white-space: nowrap; }
.ft__star { color: #C9A84C; }
.ft__center { position: relative; z-index: 3; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; max-width: 1040px; margin: 0 auto; padding: 112px 16px 56px; text-align: center; }
.ft__logo { display: block; height: 52px; width: auto; }
.ft__rv { opacity: 0; transform: translateY(50px); }
.ft.is-in .ft__rv { animation: ftUp .9s cubic-bezier(.16,1,.3,1) both; }
.ft.is-in .ft__rv:nth-child(2) { animation-delay: .12s; }
.ft.is-in .ft__rv:nth-child(3) { animation-delay: .24s; }
.ft__title { margin: 0; font-weight: 900; font-size: clamp(38px, 6.4vw, 88px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
  background: linear-gradient(#FFF4D6 0%, #E8D5A0 35%, #C9A84C 70%, rgba(201,168,76,.45) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #E8D5A0; filter: drop-shadow(0 0 24px rgba(201,168,76,.22)); }
.ft__links { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.ft__note { margin: -4px 0 6px; font-size: 13px; color: #A9B4C6; }
.ft__icons { display: flex; justify-content: center; gap: 12px; }
.ft__pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 999px; text-decoration: none; color: #C5CEDC; font-weight: 500; font-size: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.016) 100%); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), inset 0 1px 1px rgba(255,255,255,.12), inset 0 -1px 2px rgba(0,0,0,.5); backdrop-filter: blur(16px);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), background .4s cubic-bezier(.16,1,.3,1), border-color .4s, box-shadow .4s, color .3s; will-change: transform; }
.ft__pill:hover { color: #fff; background: linear-gradient(145deg, rgba(201,168,76,.18) 0%, rgba(255,255,255,.03) 100%); border-color: rgba(201,168,76,.5); box-shadow: 0 20px 40px -10px rgba(0,0,0,.7), inset 0 1px 1px rgba(255,255,255,.22), 0 0 30px rgba(201,168,76,.18); }
.ft__pill--lg { min-height: 60px; padding: 0 34px; font-weight: 800; font-size: 15px; letter-spacing: .04em; color: #0A1628 !important; background: linear-gradient(#F3DFB0 0%, #C9A84C 100%) !important; border: 1px solid #F3DFB0 !important; box-shadow: 0 18px 40px -12px rgba(201,168,76,.55) !important; }
.ft__pill--lg svg { color: #0A1628; transition: transform .3s; }
.ft__pill--lg:hover { filter: brightness(1.06); }
.ft__pill--lg:hover svg { transform: translateX(3px); }
.ft__ico { width: 52px; height: 52px; min-height: 52px; padding: 0; color: #E8D5A0; }
.ft__ico:hover { color: #fff; }
.ft__bottom { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 32px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.07); }
.ft__copy { margin: 0; font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #7F8BA0; }
.ft__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.ft__legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: #A9B4C6; text-decoration: none; transition: color .25s; }
.ft__legal a:hover { color: #E8D5A0; }
.ft__top { width: 48px; height: 48px; min-height: 48px; padding: 0; }
.ft__top svg { transition: transform .3s; }
.ft__top:hover svg { transform: translateY(-4px); }
@media (max-width: 760px) {
  .ft__center { padding: 96px 16px 40px; }
  .ft__title { font-size: clamp(32px, 9vw, 44px); }
  .ft__pill--lg { min-height: 56px; padding: 0 22px; font-size: 14px; width: 100%; max-width: 360px; }
  .ft__aurora { filter: blur(48px); animation: none; opacity: .8; }
  .ft__pill, .ft__marquee { backdrop-filter: none; }
  .ft__grid { background-size: 40px 40px; }
  .ft__giant { bottom: 90px; }
  .ft__marquee { padding: 16px 0; transform: translateY(-50%) rotate(-2deg); }
  .ft__mi { font-size: 11px; gap: 28px; padding-right: 28px; }
  .ft__pill { font-size: 13px; padding: 0 16px; }
  .ft__bottom { flex-direction: column; text-align: center; padding: 16px 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft__aurora, .ft__track, .ft__giant { animation: none !important; }
  .ft__rv, .ft__giant { opacity: 1; transform: none; }
  .ft__giant { transform: translateX(-50%); }
}
/* esconde o rodape antigo da Home caso ainda exista */
.ft ~ .foot { display: none; }
/* logos do Google Ads e da Meta no dourado da Royal, como os outros icones */
.mnu__ico--logo { width: 19px; height: 19px; }

/* drop menu: respiro na borda direita e quebra de linha nas descricoes */
.mnu__panel { width: 380px; padding: 12px; }
.mnu__panel--wide { width: 700px; }
.mnu .mnu__item { padding: 12px 18px 12px 12px; }
.mnu__item span { flex: 1; min-width: 0; }
.mnu__item small { line-height: 1.4; overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 1100px) { .mnu__panel--wide { width: min(700px, calc(100vw - 48px)); } }

/* ===== PC: texto minimo 14px (gerado) ===== */
@media (min-width: 1024px) {
  .mnu__item small { font-size: max(14px, 12.5px); }
  .ft__mi { font-size: max(14px, 13px); }
  .ft__note { font-size: max(14px, 13px); }
  .ft__copy { font-size: max(14px, 11px); }
  .ft__legal a { font-size: max(14px, 13px); }
}
