/* ═══════════════════════════════════════════════════════
   STB JAPAN — camada compartilhada v2 (fase B)
   Header/footer padronizados com o madeinbrazil.jp,
   tokens novos e superfícies de navegador tematizadas.
   Carregado por TODAS as páginas (home e internas).
   ═══════════════════════════════════════════════════════ */

:root {
  --color-gold: #C9A961;          /* dourado único do site */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection { background: rgba(10, 25, 47, 0.9); color: #fff; }
:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }

html, body { overflow-x: hidden; }

/* ── tipografia do header nas proporções do madeinbrazil.jp ── */
.logo img { height: 54px; }
.header-top-bar { gap: 14px; }
.header-top-bar .company-name-jp {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.85;
}
header nav ul li a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
}
header nav ul li a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease-out);
}
header nav ul li a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ── seletor de idioma: texto simples JP | EN | PT (largura fixa) ── */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.language-switcher a,
.language-switcher .lang-active {
  margin: 0; /* mata o margin-left:12px do switcher legado (style.css) */
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-indent: 0.12em; /* compensa o rastro do letter-spacing p/ centrar de verdade */
  font-weight: 600;
  text-decoration: none;
  color: var(--color-navy);
  opacity: 0.45;
  transition: opacity 0.3s;
  display: inline-block;
  width: 27px;
  text-align: center;
}
.language-switcher a:hover { opacity: 0.85; }
.language-switcher .lang-active { opacity: 1; }
.lang-bar { color: var(--color-navy); opacity: 0.25; font-size: 11px; font-weight: 400; }

/* nome da empresa no lugar do CTA */
.hdr-co {
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #3D4654;
}

/* ── páginas internas: header sempre branco com sombra ── */
body.pg header {
  background-color: var(--color-white);
  box-shadow: 0 2px 12px rgba(10, 25, 47, 0.07);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
body.pg header.scrolled {
  background-color: rgba(241, 242, 244, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(10, 25, 47, 0.06), 0 8px 24px -18px rgba(10, 25, 47, 0.25);
}

/* hero das páginas internas compensa o header fixo */
body.pg .page-hero { margin-top: 0; }

/* ── banda de contato (compartilhada com as internas) ── */
.cta-contact {
  background: #F4F5F7;
  border-top: 1px solid #E4E7EC;
  padding: 90px 0;
  text-align: center;
}
.cta-contact__title {
  font-family: var(--font-heading);
  color: #0A192F;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}
.cta-contact__text { color: #5A6472; line-height: 2; margin-bottom: 34px; font-size: 0.98rem; }
.btn-primary.btn-cta-white { background: #0A192F; border-color: #0A192F; color: #fff; font-weight: 700; }
.btn-primary.btn-cta-white:hover { background: #16305A; border-color: #16305A; color: #fff; }

/* ── botão Made in Brazil (usado na home e nas páginas Tsuru/Casa Valduga) ── */
.btn-mib {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #14573A;
  color: #F5F1E8;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 15px 30px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.btn-mib:hover { background: #0e3f2a; transform: translateY(-2px); }
.btn-mib__arrow { transition: transform 0.3s var(--ease-out); }
.btn-mib:hover .btn-mib__arrow { transform: translate(2px, -2px); }

/* aliases semanticos (hierarquia de headings correta) */
.action-button-container .action-lead { font-family: var(--font-heading); color: var(--color-navy); font-size: 1.15rem; margin-bottom: 20px; line-height: 1.8; }
.business-detail-text h2.division-title { margin-top: 0; }

/* footer: links JA nao quebram no meio da palavra */
.footer-middle nav a { white-space: nowrap; }

/* formulario: envio no vocabulario da casa (ghost navy, preenche no hover) */
.btn-submit { background: transparent; color: var(--color-navy); border: 1px solid var(--color-navy); transition: background 0.3s, color 0.3s; }
.btn-submit:hover { background: var(--color-navy); color: #fff; }

/* ═══ header v2: linha única (padrão madeinbrazil.jp) ═══ */
@media (min-width: 901px) {
  .header-right-wrapper { flex-direction: row; align-items: center; justify-content: flex-end; gap: clamp(22px, 3vw, 46px); }
  header nav { order: 1; }
  .header-top-bar { order: 2; gap: 14px; flex-shrink: 0; }
}
.hv2-cta {
  display: inline-flex; align-items: center;
  white-space: nowrap; flex-shrink: 0;
  background: var(--color-navy); color: #fff;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em;
  padding: 10px 22px; border-radius: 100px; text-decoration: none;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.hv2-cta:hover { background: #16325c; transform: translateY(-1px); }

/* internas: hero compensa o header mais baixo */
body.pg .page-hero { padding-top: 92px; height: calc(250px + 92px); }

/* ═══ footer v2 (padrão madeinbrazil.jp, em navy) ═══ */
.footer2 { background: var(--color-navy); color: #E8EBF0; padding: clamp(70px, 9vh, 110px) 5% 30px; border-top: 1px solid rgba(255,255,255,0.10); }
.footer2 a { text-decoration: none; color: inherit; }
.footer2__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; max-width: 1280px; margin: 0 auto; }
.footer2__logo { width: min(240px, 70%); height: auto; display: block; filter: brightness(0) invert(1); opacity: 0.95; }
.footer2__co { margin-top: 16px; font-size: 12.5px; letter-spacing: 0.1em; opacity: 0.7; }
.footer2__domain { color: var(--color-gold); font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.12em; margin-top: 8px; }
.footer2__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer2__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer2__coltitle { color: var(--color-gold); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; opacity: 0.9; }
.footer2__col a { font-size: 14px; opacity: 0.72; transition: opacity 0.3s, color 0.3s, transform 0.3s var(--ease-out); }
.footer2__col a:hover { opacity: 1; color: var(--color-gold); transform: translateX(4px); }
.footer2__note { font-size: 13px; opacity: 0.55; line-height: 1.8; }
.footer2__partners { display: flex; align-items: center; gap: 16px; margin-top: 14px; background: #fff; border-radius: 12px; padding: 10px 16px; }
.footer2__partners img { height: 26px; width: auto; display: block; }
.footer2__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1280px; margin: 60px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12.5px; opacity: 0.55; flex-wrap: wrap; }
.footer2__tag { letter-spacing: 0.08em; }
@media (max-width: 980px) { .footer2__top { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 640px) { .footer2__cols { grid-template-columns: 1fr 1fr; } }

/* ═══ leitura estruturada (tocoferol) ═══ */
.rsec { border-top: 1px solid var(--color-silver-light); padding-top: 30px; margin-top: 36px; }
.rsec--first { border-top: none; padding-top: 0; margin-top: 0; }
.rsec h2 { font-family: var(--font-heading); color: var(--color-navy); font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.rsec p { line-height: 2; }

/* ═══ faixa de 3 fotos (tsuru) ═══ */
.strip3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0; }
.strip3 img { width: 100%; height: 210px; object-fit: cover; border-radius: 5px; display: block; }
@media (max-width: 640px) { .strip3 { grid-template-columns: 1fr; } .strip3 img { height: 170px; } }

/* ═══ cabeçalho editorial das internas (substitui o page-hero espremido) ═══ */
.phead { background: #F1F1F1; padding: 150px 0 96px; }
.phead .container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.phead__en {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-text-light); margin-bottom: 16px;
}
.phead__title {
  font-family: var(--font-heading); font-weight: 700; color: var(--color-navy);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.35; letter-spacing: 0.01em;
  max-width: 24em; text-wrap: balance;
}
.pmedia { background: transparent; }
.pmedia .container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.pmedia img {
  width: 100%; height: clamp(220px, 30vw, 380px); object-fit: cover;
  border-radius: 6px; display: block; margin-top: -64px;
  box-shadow: 0 24px 50px -24px rgba(10, 25, 47, 0.35);
}
.pmedia + .reading-section, .pmedia + section { padding-top: 72px; }
.phead + .reading-section { padding-top: 64px; }
.phead + .about-subnav { padding-top: 34px; }
@media (max-width: 700px) {
  .phead { padding: 116px 0 72px; }
  .pmedia img { margin-top: -46px; height: 220px; }
}

/* logo de parceiro no corpo do texto, com respiro */
.brand-line { text-align: center; margin: 8px 0 40px; }
.brand-line img { max-width: 190px; width: 55%; height: auto; }

/* ═══ moldura com logo sobreposto (Casa Valduga) ═══ */
.pmedia__frame { position: relative; margin-top: -64px; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(10, 25, 47, 0.35); }
.pmedia__frame > img:first-child { width: 100%; height: clamp(260px, 34vw, 420px); object-fit: cover; display: block; margin-top: 0; box-shadow: none; border-radius: 0; }
.pmedia__veil { position: absolute; inset: 0; background: linear-gradient(rgba(10, 17, 26, 0.52), rgba(43, 11, 20, 0.46)); }
.pmedia .pmedia__frame .pmedia__logo { position: absolute; inset: 0; margin: auto; width: min(440px, 55%); height: auto; max-height: 60%; object-fit: contain; box-shadow: none; border-radius: 0; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.65)); }
@media (max-width: 700px) { .pmedia__frame { margin-top: -46px; } .pmedia__frame > img:first-child { height: 220px; } }

/* ═══ caixa de ação refinada (T-One, tocoferol etc.; caixas creme MIB mantêm o estilo inline) ═══ */
.action-button-container { background: var(--color-off-white); border: 1px solid var(--color-silver-light); border-radius: 6px; padding: clamp(28px, 4vw, 46px); margin-top: 44px; text-align: center; }
.action-button-container .action-lead { margin-bottom: 24px; }

/* ═══ petfood: mais respiro entre categorias e cards ═══ */
.category-title { margin-top: 70px; margin-bottom: 34px; }
.category-section:first-child .category-title { margin-top: 10px; }
.petfood-list-card { margin-bottom: 36px; border-radius: 6px; }
.petfood-content { padding: clamp(22px, 3vw, 34px); }

/* ═══ footer2: respiro (feedback 'informações grudadas') ═══ */
.footer2 { padding: clamp(84px, 10vh, 120px) 5% 34px; }
.footer2__top { gap: 80px; }
.footer2__cols { gap: 48px; }
.footer2__col { gap: 13px; }
.footer2__coltitle { margin-bottom: 16px; }
.footer2__col a { line-height: 1.7; }
.footer2__note { line-height: 2; margin: 4px 0; }
.footer2__co { margin-top: 20px; line-height: 1.9; }
.footer2__domain { margin-top: 10px; }
.footer2__partners { margin-top: 18px; }
.footer2__bottom { margin-top: 76px; padding-top: 28px; }
@media (max-width: 980px) { .footer2__top { gap: 52px; } }

/* ═══ respiro dos textos de leitura (feedback 'grudado') ═══ */
.reading-container p { margin-bottom: 24px; line-height: 2.05; }
.reading-container p:last-child { margin-bottom: 0; }
.reading-container .intro-text { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--color-navy); margin-bottom: 30px; }
.reading-container .image-block { margin: 48px 0; }
.reading-container .image-block img { border-radius: 6px; }
.reading-container .image-caption { margin-top: 12px; font-size: 0.85rem; color: var(--color-text-light); }
.rsec p { margin-bottom: 16px; }
.valduga-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0; }
.valduga-gallery img { width: 100%; height: 320px; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 640px) { .valduga-gallery { grid-template-columns: 1fr; } .valduga-gallery img { height: 220px; } }

/* ═══ CORREÇÃO CRÍTICA: botões sobre fundo claro são navy (o .btn-primary legado é branco-fantasma p/ fundos escuros) ═══ */
.btn-navy,
.reading-section .btn-primary,
.action-button-container .btn-primary,
.page-content .btn-primary,
.home-intro .btn-primary {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: transparent;
}
.btn-navy:hover,
.reading-section .btn-primary:hover,
.action-button-container .btn-primary:hover,
.page-content .btn-primary:hover,
.home-intro .btn-primary:hover {
  background: var(--color-navy);
  color: #fff;
}
/* botão MIB nas caixas creme continua verde (especificidade acima) */
.action-button-container .btn-mib { border: none; background: #14573A; color: #F5F1E8; }
.action-button-container .btn-mib:hover { background: #0e3f2a; color: #F5F1E8; }

/* seções de leitura nunca encostam na banda de contato */
.reading-section { padding-bottom: 100px; }

/* ═══ anatomia de perfil (padrão madeinbrazil.jp) ═══ */
.pprof { max-width: 1280px; margin: 0 auto; padding: 122px 5% 0; }
.pback { display: inline-block; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-light); text-decoration: none; margin-bottom: 26px; transition: color 0.3s; }
.pback:hover { color: var(--color-navy); }
.pfig { margin: 0 0 36px; }
.pfig img { width: 100%; height: clamp(300px, 36vw, 520px); object-fit: cover; border-radius: 6px; display: block; box-shadow: 0 24px 50px -24px rgba(10, 25, 47, 0.35); }
.pid { display: flex; align-items: center; gap: 28px; margin-bottom: 28px; }
.pid__logo { max-height: 62px; max-width: 150px; width: auto; height: auto; flex-shrink: 0; }
.pid__title { font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.25; }
.pid__meta { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-light); margin-top: 10px; }
.plead { max-width: 46em; line-height: 2.05; color: var(--color-text); }
.plead p { margin-bottom: 18px; }
.plead p:last-child { margin-bottom: 0; }
.pchips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 6px; }
.pchips span { border: 1px solid var(--color-silver-light); background: #fff; border-radius: 100px; padding: 7px 16px; font-size: 12.5px; color: var(--color-text); }
.pctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 32px 0 4px; }
.pbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--color-navy); color: #fff; border-radius: 100px; padding: 13px 26px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; transition: background 0.3s, transform 0.3s var(--ease-out); }
.pbtn:hover { background: #16325c; transform: translateY(-1px); }
.pbtn--line { background: transparent; color: var(--color-navy); border: 1px solid var(--color-navy); }
.pbtn--line:hover { background: var(--color-navy); color: #fff; }
.pctas .btn-mib { border-radius: 100px; padding: 13px 26px; font-size: 13.5px; white-space: nowrap; }
.psec { max-width: 1280px; margin: 0 auto; padding: 76px 5% 0; }
.psec__title { font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 28px; }
.psec__note { max-width: 46em; line-height: 2.05; color: var(--color-text-light); margin-top: 26px; }
.psec .strip3 { margin: 0; }
.psec .valduga-gallery { margin: 0; }
.pprof + .reading-section { padding-top: 76px; }
.psec + .cta-contact, .pprof + .cta-contact { margin-top: 96px; }
main > .psec:last-of-type { padding-bottom: 100px; }
@media (max-width: 700px) {
  .pprof { padding-top: 100px; }
  .pfig img { height: 230px; }
  .pid { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ═══ business: blocos com molduras e ritmo ═══ */
.business-detail-img { border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px -20px rgba(10, 25, 47, 0.3); background: transparent; height: 380px; }
.business-detail-block { gap: clamp(40px, 5vw, 72px); }
.business-detail-text .division-label { margin-bottom: 14px; }
.business-detail-text h2.division-title { margin-bottom: 18px; }
.business-list { margin-top: 8px; }

/* ── links externos Made in Brazil no nav ── */
header nav ul { align-items: center; }
.nav-ext-sep { width: 1px; height: 15px; background: #D5DAE1; margin: 0 -12px; flex-shrink: 0; }
header nav ul li a.nav-ext { color: #5A6472; }
header nav ul li a.nav-ext:hover { color: var(--color-navy); }
.nav-ext__m { font-size: 0.7em; margin-left: 4px; opacity: 0.55; position: relative; top: -1px; }
@media (max-width: 992px) {
  .nav-ext-sep { width: 56px; height: 1px; margin: 4px auto; }
}
