/* ============================================================
   Office Koda Solution — Stylesheet
   Mobile-first · Bilingual PT/JA · Cloudflare Pages
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --navy:        #172554;
  --navy-dark:   #0b122c;
  --navy-mid:    #1e3a8a;

  --gold:        #0798d8;
  --gold-light:  #12afea;

  --white:       #ffffff;
  --bg:          #f7f8fb;
  --bg-card:     #ffffff;
  --text:        #18181b;
  --text-mid:    #52525b;
  --text-muted:  #a1a1aa;
  --border:      #e4e4e7;
  --border-dark: #d4d4d8;

  --font-body:   'Noto Sans JP', 'Inter', -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  /* Bordas menores — mais sério, menos SaaS */
  --radius-sm:   3px;
  --radius:      5px;
  --radius-lg:   10px;

  /* Sombras discretas */
  --shadow-sm:   0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:   0 4px 20px rgba(0,0,0,.10);

  --nav-h:       60px;
  --max-w:       1160px;
  --col-gap:     clamp(1rem, 3vw, 2rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}
section { padding-block: clamp(3rem, 8vw, 6rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  border: 2px solid #19304d;
  color: #19304d;
}
.btn-outline:hover { background: #19304d; color: var(--white); }
.btn-ghost {
  color: var(--navy);
  padding-inline: .25rem;
  border-bottom: 2px solid transparent;
}
.btn-ghost:hover { border-bottom-color: var(--gold); }
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- NAV — white & clean ---------- */
/* Faixa de marca Brasil-Japão no topo do site */
.page-body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0;
  height: 4px; z-index: 1000;
  background: linear-gradient(90deg, #009c3b 0 28%, #ffdf00 28% 50%, #0798d8 50% 72%, #bc002d 72% 100%);
}
.nav {
  position: fixed;
  top: 4px; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  display: block;
  width: clamp(150px, 18vw, 210px);
  height: auto;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  background: transparent url("/assets/images/icon_logo_koda.svg") center / contain no-repeat;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark svg { display: none; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.nav-logo-tagline {
  font-size: .6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: .125rem;
}
.nav-link {
  color: var(--text-mid);
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-link.active { color: var(--navy); font-weight: 600; }

.nav-lang {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: .5rem;
  padding-left: .75rem;
  border-left: 1px solid var(--border);
}
.lang-btn {
  font-size: 0;
  font-weight: 600;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  letter-spacing: .04em;
  transition: all .15s;
  background: transparent;
}
.lang-btn[data-lang] {
  display: block !important;
}
.lang-btn::before {
  display: block;
  font-size: 1.1rem;
  line-height: 34px;
}
.lang-btn[data-lang="pt"]::before { content: "🇧🇷"; }
.lang-btn[data-lang="ja"]::before { content: "🇯🇵"; }
.lang-btn:hover { color: var(--text); background: var(--bg); }
.lang-btn.active {
  color: var(--white);
  background: #eef8fe;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.nav-cta { margin-left: .5rem; padding: .5rem 1.125rem; font-size: .875rem; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + 4px); left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1rem, 5vw, 2rem);
  z-index: 800;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-mid);
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-nav a:hover { color: var(--navy); }
.mobile-nav-lang {
  display: flex;
  gap: .5rem;
  padding-top: 1rem;
  margin-top: auto;
}
.mobile-nav-cta {
  margin-top: 1rem;
  background: var(--navy) !important;
  color: var(--white) !important;
  text-align: center;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 1rem !important;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Page offset for fixed nav */
.page-body { padding-top: calc(var(--nav-h) + 4px); }

/* ---------- HERO ---------- */
.hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0 54%, rgba(232,247,255,.95) 54% 100%),
    var(--white);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
  min-height: calc(100vh - var(--nav-h));
}
.hero-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-left {
  padding-bottom: clamp(1rem, 3vw, 2rem);
  transform: translateY(-10vh);
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-h1 .line-dark { display: block; color: #18181b; }
.hero-h1 .line-green { display: block; color: var(--navy-mid); }
.hero-sub {
  color: var(--text-mid);
  font-size: clamp(.9375rem, 2vw, 1.0625rem);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 0; }

/* Right side — photo */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  min-height: clamp(520px, 76vh, 760px);
}
.hero-photo {
  width: auto;
  max-width: none;
  max-height: clamp(600px, 90vh, 860px);
  display: block;
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: bottom;
  transform: translateX(-22%);
}
/* Floating service cards */
.hero-float {
  position: absolute;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 15px;
  padding: .7rem .82rem;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
  z-index: 2;
  width: clamp(174px, 14.5vw, 228px);
  display: flex;
  align-items: center;
  gap: .68rem;
  animation: floatSoft 6s ease-in-out infinite;
}
.hero-float-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.hero-float-icon i {
  font-size: 1.1rem;
  line-height: 1;
}
.hero-float-icon-blue { background: #eef4ff; color: #2563eb; }
.hero-float-icon-green { background: #eafaf2; color: #059669; }
.hero-float-icon-amber { background: #fff8e8; color: #f59e0b; }
.hero-float-icon-cyan { background: #eaf9ff; color: #0891b2; }
.hero-float-copy {
  color: #183153;
  font-size: clamp(.72rem, .78vw, .84rem);
  font-weight: 720;
  line-height: 1.22;
  letter-spacing: 0;
}
.hero-float-1 { top: 2.5%; left: -11.2rem; animation-delay: -.8s; }
.hero-float-2 { top: 32%; right: -2.7rem; animation-delay: -2.1s; }
.hero-float-3 { bottom: 28%; left: -4.2rem; animation-delay: -3.3s; }
.hero-float-4 { bottom: 11%; right: -.8rem; animation-delay: -1.5s; }

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (min-width: 768px) {
  .hero-layout { grid-template-columns: 1fr 1fr; }
  .hero-photo { max-width: none; }
}
@media (max-width: 767px) {
  .hero-float { display: none; }
  .hero {
    background: var(--white);
    min-height: auto;
  }
  .hero-left {
    transform: none;
    padding-bottom: 2rem;
  }
  .hero-right { min-height: auto; }
  .hero-photo { max-width: 340px; max-height: 560px; margin-inline: auto; transform: none; }
}

/* ---------- SERVICES ---------- */
.services { background: var(--white); }
.services-head {
  text-align: left;
  margin-bottom: 3rem;
}
.services-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.svc-card {
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all .2s ease;
}
.svc-card:hover {
  background: #f9fcff;
  box-shadow: inset 0 3px 0 var(--gold);
  transform: none;
}
.svc-icon-wrap {
  width: 42px; height: 42px;
  background: #eef8fe;
  border: 1px solid #d3edf9;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.svc-icon-wrap i { color: #0b8fc9 !important; font-size: 1.15rem !important; }
.svc-icon-wrap svg { color: #0b8fc9; }
.svc-card h3 {
  font-size: 1.125rem;
  color: #19304d;
  margin-bottom: .5rem;
}
.svc-card .svc-ja {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  letter-spacing: .04em;
}
.svc-card p { font-size: .9375rem; color: var(--text-mid); line-height: 1.65; }
.svc-card-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: #19304d;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
  padding-bottom: 1px;
}
.svc-card-link:hover { border-color: var(--gold); color: var(--gold); }

@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- WHY SECTION ---------- */
.why { background: #19304d; }
.why .section-title { color: var(--white); }
.why .eyebrow { color: #80d8ff; }
.why .section-sub { color: rgba(255,255,255,.7); }
.why-head { margin-bottom: 3rem; }
.why-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
}
.why-item {
  display: block;
}
.why-num {
  width: auto; height: auto;
  background: transparent;
  border: 0;
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: rgba(128,216,255,.36);
  line-height: .9;
  margin-bottom: 1rem;
  letter-spacing: -.05em;
}
.why-item h4 { font-size: 1rem; color: var(--white); margin-bottom: .5rem; }
.why-item p { font-size: .92rem; color: rgba(255,255,255,.68); line-height: 1.7; }

@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- GUIDES PREVIEW ---------- */
.guides-preview { background: var(--bg); }
.guides-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.guides-grid {
  display: grid;
  gap: 1.25rem;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-dark); }
.guide-card-img {
  aspect-ratio: 16/9;
  background: var(--navy);
  overflow: hidden;
  position: relative;
}
.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.guide-card:hover .guide-card-img img { transform: scale(1.025); }
/* Capas ilustrativas dos guias (ícone temático sobre fundo azul claro) */
.guide-cover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef3fb 0%, #dbe6f7 100%);
  color: var(--navy);
  overflow: hidden;
}
.guide-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(var(--navy) 1px, transparent 1px);
  background-size: 16px 16px; opacity: .06;
}
.guide-cover i {
  font-size: 3.25rem; color: var(--gold);
  position: relative; z-index: 2;
  transition: transform .25s ease;
}
.guide-cover i.ghost {
  position: absolute; right: -1.2rem; bottom: -2rem;
  font-size: 9rem; color: var(--navy); opacity: .10;
  z-index: 1; line-height: 1;
}
.guide-card:hover .guide-cover i:not(.ghost) { transform: scale(1.08); }
.guide-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.guide-card-cat {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .625rem;
}
.guide-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.guide-card p {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}
.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--text-muted);
}
.guide-card-footer a {
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: color .15s;
}
.guide-card-footer a:hover { color: var(--gold); }

@media (min-width: 640px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .guides-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- ABOUT PREVIEW ---------- */
.about-preview {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.about-preview::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  background: url("/assets/images/icon_logo_koda.svg") center / min(78vw, 860px) no-repeat;
  opacity: .035;
  filter: grayscale(1);
  pointer-events: none;
}
.about-preview .container {
  position: relative;
  z-index: 1;
}
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  overflow: visible;
  background: transparent;
  max-width: 236px;
  margin-inline: auto;
  justify-self: center;
}
.about-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.about-text .section-sub { margin-bottom: 1.5rem; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.about-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: .8125rem;
  font-weight: 500;
  padding: .375rem .875rem;
  border-radius: 100px;
}

@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 2fr 3fr; } }

/* ---------- OPENING GALLERY ---------- */
.opening-gallery {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  overflow: hidden;
}
.opening-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
.opening-gallery-head .section-title {
  max-width: 620px;
  margin-bottom: 0;
}
.opening-gallery-wrap {
  position: relative;
}
.opening-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 30vw);
  gap: clamp(.875rem, 1.8vw, 1.25rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, calc((100vw - var(--max-w)) / 2));
  scrollbar-width: none;
  padding: .25rem max(1.25rem, calc((100vw - var(--max-w)) / 2));
  margin-inline: min(-1.25rem, calc((var(--max-w) - 100vw) / 2));
}
.opening-gallery-track::-webkit-scrollbar { display: none; }
.opening-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(26, 42, 68, .08);
  box-shadow: 0 18px 38px rgba(26, 42, 68, .09);
  scroll-snap-align: start;
  transition: transform .22s ease, box-shadow .22s ease;
}
.opening-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(26, 42, 68, .13);
}
.opening-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(26, 42, 68, .12);
  box-shadow: 0 14px 34px rgba(26, 42, 68, .18);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.gallery-arrow:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-50%) scale(1.04);
}
.gallery-arrow i { font-size: 1.35rem; }
.gallery-arrow-prev { left: clamp(.5rem, 2vw, 1rem); }
.gallery-arrow-next { right: clamp(.5rem, 2vw, 1rem); }

@media (min-width: 768px) {
  .opening-gallery-track { grid-auto-columns: minmax(280px, 26vw); }
}

@media (min-width: 1200px) {
  .opening-gallery-track { grid-auto-columns: 340px; }
}

@media (max-width: 767px) {
  .opening-gallery-head { align-items: flex-start; }
  .opening-gallery-track { grid-auto-columns: minmax(245px, 72vw); }
  .gallery-arrow {
    width: 40px;
    height: 40px;
  }
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: #e9f8ff;
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.cta-banner .section-title { color: var(--navy); margin-bottom: .75rem; }
.cta-banner p { color: var(--text-mid); margin-bottom: 2rem; }
.cta-banner .btn-group { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-banner .btn-white {
  background: #25d366;
  color: var(--white);
  border: 1px solid #25d366;
}
.cta-banner .btn-white:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: var(--white);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.footer-logo-img {
  display: block;
  width: min(220px, 100%);
  height: auto;
}
.footer-logo-mark {
  width: 34px;
  height: 34px;
  background: transparent url("/assets/images/icon_logo_koda_w.svg") center / contain no-repeat;
  color: var(--white);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-logo-mark svg { display: none; }
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.footer-logo-name {
  color: var(--white);
  font-size: .98rem;
  font-weight: 700;
}
.footer-logo-tagline {
  color: rgba(255,255,255,.48);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand-desc { font-size: .875rem; line-height: 1.65; margin-bottom: 1.25rem; }
.footer-social {
  display: flex;
  gap: .75rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all .15s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-col a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  margin-bottom: .625rem;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}
.footer-bridge {
  color: rgba(255,255,255,.46);
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.footer-bridge-icon {
  flex-shrink: 0;
  color: rgba(255,255,255,.52);
}
.footer-bridge .sep {
  color: var(--gold);
  margin-inline: .35rem;
}
.footer-bottom a:hover { color: var(--gold); }

@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  margin-bottom: .875rem;
}
.page-hero p {
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin-inline: auto;
  font-size: 1rem;
}

/* ---------- SERVICES PAGE ---------- */
.svc-page-grid { display: grid; gap: 2rem; }
.svc-page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
}
.svc-page-card-body { padding: 2rem; }
.svc-page-card h2 { font-size: 1.375rem; color: var(--navy); margin-bottom: .25rem; }
.svc-page-card .svc-ja { font-size: .875rem; color: var(--gold); margin-bottom: 1rem; letter-spacing: .04em; }
.svc-page-card p { color: var(--text-mid); font-size: .9375rem; line-height: 1.75; margin-bottom: 1rem; }
.svc-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.svc-list-item {
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: .8125rem;
  padding: .3125rem .75rem;
  border-radius: 100px;
  color: var(--text-mid);
}

/* Painel visual ilustrativo de cada serviço */
.svc-visual {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.1rem;
  min-height: 280px; padding: 2.5rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  color: #fff;
}
.svc-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .07;
}
.svc-visual .svc-visual-main {
  font-size: 4.5rem; color: var(--gold-light);
  position: relative; z-index: 2; line-height: 1;
}
.svc-visual .svc-visual-ghost {
  position: absolute; right: -1.5rem; bottom: -2.2rem;
  font-size: 11rem; color: #fff; opacity: .06;
  z-index: 1; line-height: 1;
}
.svc-visual .svc-visual-cap {
  position: relative; z-index: 2;
  font-size: .9rem; font-weight: 600; letter-spacing: .14em;
  color: rgba(255,255,255,.55);
}
.svc-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .svc-page-card { grid-template-columns: 1fr 1fr; }
  .svc-page-card-body { padding: 2.5rem; }
}

/* ---------- KAISHA GAIYOU ---------- */
.kaisha-section { background: var(--white); }
.kaisha-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
.kaisha-table tr { border-bottom: 1px solid var(--border); }
.kaisha-table tr:last-child { border-bottom: none; }
.kaisha-table th {
  text-align: left;
  width: 35%;
  min-width: 120px;
  padding: 1rem 1.25rem 1rem 0;
  font-weight: 600;
  color: var(--navy);
  vertical-align: top;
  white-space: nowrap;
  font-size: .875rem;
}
.kaisha-table td {
  padding: 1rem 0;
  color: var(--text-mid);
  vertical-align: top;
  line-height: 1.65;
}
.kaisha-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .5rem 1.75rem;
  overflow-x: auto;
}
.kaisha-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.kaisha-map iframe { width: 100%; height: 100%; border: none; }

/* ---------- ABOUT PAGE ---------- */
.about-full-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-content h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; }
.about-content p { color: var(--text-mid); margin-bottom: 1rem; line-height: 1.8; }
.about-content strong { color: var(--text); }
.about-values {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.about-value {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
}
.about-value-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.about-value-icon svg { color: var(--gold); }
.about-value h4 { font-size: .9375rem; color: var(--navy); margin-bottom: .25rem; }
.about-value p { font-size: .875rem; color: var(--text-mid); margin: 0; line-height: 1.6; }

/* Variante de 3 colunas para a grade de serviços (reuso em Valores) */
@media (min-width: 768px) {
  .services-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .about-full-grid { grid-template-columns: 1fr 1.75fr; }
  .about-values { grid-template-columns: 1fr 1fr; }
}

/* ---------- CONTACT TILES (reutilizável) ---------- */
.contact-tiles {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.contact-tile {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-dark);
}
.contact-tile-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: #eef8fe; border: 1px solid #d3edf9;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-tile-icon i { color: #0b8fc9; font-size: 1.2rem; }
.contact-tile-label {
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem;
}
.contact-tile-value {
  font-size: .9375rem; font-weight: 600; color: var(--navy);
  word-break: break-word;
}

/* ---------- ASSINATURA — Ponte Brasil ⇄ Japão ---------- */
.sig-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #eef8fe; border: 1px solid #d3edf9; color: var(--navy);
  padding: .4rem 1rem; border-radius: 100px;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  width: fit-content;
}
.sig-badge .sig-bridge { color: var(--navy); flex-shrink: 0; }
.sig-badge .sep { opacity: .45; }
.sig-badge.on-dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.sig-badge.on-dark .sig-bridge { color: #fff; }

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}
.contact-info h2 { font-size: 1.25rem; color: var(--navy); margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: #eef8fe;
  border: 1px solid #d3edf9;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { color: #0b8fc9; }
.contact-item h4 { font-size: .8125rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.contact-item a, .contact-item p { font-size: .9375rem; color: var(--text); font-weight: 500; line-height: 1.5; }
.contact-item a:hover { color: var(--gold); }
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,46,74,.08);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-notice {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-top: .75rem;
  line-height: 1.6;
}

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }

/* ---------- GUIDES INDEX ---------- */
.guides-index { background: var(--bg); }
.guides-index-grid {
  display: grid;
  gap: 1.25rem;
}
.guides-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-size: .8125rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-dark);
  color: var(--text-mid);
  background: var(--white);
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

@media (min-width: 640px) { .guides-index-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .guides-index-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- ARTICLE PAGE ---------- */
.article-wrap { background: var(--white); }
.article-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.article-header { margin-bottom: 2rem; }
.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.article-meta-cat {
  background: var(--navy);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 100px;
}
.article-body h2 {
  font-size: 1.375rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--border);
}
.article-body h3 {
  font-size: 1.125rem;
  color: var(--navy);
  margin: 1.75rem 0 .75rem;
}
.article-body p { color: var(--text-mid); margin-bottom: 1rem; line-height: 1.8; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { color: var(--text-mid); margin-bottom: .5rem; line-height: 1.7; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--navy); border-bottom: 1px solid var(--gold); transition: color .15s; }
.article-body a:hover { color: var(--gold); }
.article-note {
  background: rgba(201,168,76,.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
  overflow-x: auto;
  display: block;
}
.article-table th {
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .8125rem;
}
.article-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.article-table tr:nth-child(even) td { background: var(--bg); }
.article-disclaimer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 2.5rem;
}
.article-disclaimer strong { color: var(--text-mid); }
.article-cta {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}
.article-cta h3 { color: var(--white); margin-bottom: .5rem; font-size: 1.125rem; }
.article-cta p { color: rgba(255,255,255,.65); font-size: .9rem; margin-bottom: 1.25rem; }

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.sidebar-card h4 {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-links { display: flex; flex-direction: column; gap: .5rem; }
.sidebar-links a {
  font-size: .875rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--navy); }
.sidebar-links a::before { content: '→'; color: var(--gold); font-size: .875rem; flex-shrink: 0; }
.sidebar-contact-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: .9375rem;
  padding: .875rem;
  border-radius: var(--radius);
  transition: all .2s;
}
.sidebar-contact-btn:hover { background: var(--gold-light); }

@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 1fr 300px; }
  .article-sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--text-muted);
  padding-block: 1rem;
}
.breadcrumb a { color: var(--text-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb-sep { color: var(--border-dark); }
.breadcrumb-current { color: var(--text-mid); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* Language display — PT visível por padrão, JS adiciona lang-active */
[data-lang="ja"] { display: none; }
[data-lang="pt"] { display: block; }
span[data-lang="pt"],
a[data-lang="pt"] { display: inline; }

[data-lang].lang-active { display: block; }
span[data-lang].lang-active,
a[data-lang].lang-active { display: inline; }
.d-flex[data-lang].lang-active { display: flex; }
.d-grid[data-lang].lang-active { display: grid; }

/* Quando JS define <html lang="ja">, oculta os elementos PT */
:lang(ja) [data-lang="pt"] { display: none !important; }
:lang(ja) span[data-lang="pt"],
:lang(ja) a[data-lang="pt"] { display: none !important; }

.lang-btn[data-lang],
:lang(ja) .lang-btn[data-lang] {
  display: block !important;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-mid); }
