/* ============================================================
   shared.css — Sensei Studio
   Shared Navbar + Footer styles for full-site consistency.
   To use: add class="sensei-nav" to <nav>, "sensei-footer" to <footer>.
   ============================================================ */

/* ── Design tokens (match Tailwind config) ── */
:root {
  --s-black:  #0A0A0A;
  --s-dark:   #141414;
  --s-white:  #FFFFFF;
  --s-light:  #F4F4F5;
  --s-gray:   #E5E5E5;
  --s-red:    #FF0000;
}

/* ── Body layout fix ── */
/* Ensures footer is always pushed to bottom regardless of content length */
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

/* ============================================================
   NAVBAR — nav.sensei-nav
   ============================================================ */
nav.sensei-nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 50;
  width: 100%;
  background-color: rgb(255 255 255 / 0.90) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--s-gray) !important;
  transition: all 0.3s ease;
}

/* Inner container row */
nav.sensei-nav > div {
  width: 100%;
  height: 5rem;          /* h-20 */
  padding: 0 1.5rem;     /* px-6 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
nav.sensei-nav > div > a:first-child {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  text-decoration: none;
}
nav.sensei-nav > div > a:first-child img {
  height: 40px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
nav.sensei-nav > div > a:first-child:hover img {
  transform: scale(1.05);
}

/* Desktop links wrapper */
nav.sensei-nav > div > div:nth-child(2) {
  display: none;
  align-items: center;
  gap: 2rem;
}

/* Individual nav links */
nav.sensei-nav > div > div:nth-child(2) > a {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s-black);
  text-decoration: none;
  transition: color 0.15s ease;
}
nav.sensei-nav > div > div:nth-child(2) > a:hover,
nav.sensei-nav > div > div:nth-child(2) > a.active {
  color: var(--s-red);
}

/* CTA button wrapper */
nav.sensei-nav > div > div:nth-child(3) {
  display: none;
}
nav.sensei-nav > div > div:nth-child(3) > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--s-black);
  color: #fff;
  font-family: 'Syncopate', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
nav.sensei-nav > div > div:nth-child(3) > a:hover {
  background-color: var(--s-red);
  transform: translateY(-2px);
  box-shadow: 8px 8px 0px 0px rgba(255,0,0,1);
}

/* Language Switcher Container */
.nav-cta-container > div.flex,
nav.sensei-nav > div > div:nth-child(3) > div {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important; /* gap-2 */
  border-left: 1px solid #e4e4e7 !important; /* border-zinc-200 */
  padding-left: 1.5rem !important; /* pl-6 */
  margin-left: 0.5rem !important; /* ml-2 */
}

/* Language Switcher Elements */
.nav-cta-container > div.flex span,
.nav-cta-container > div.flex a,
nav.sensei-nav > div > div:nth-child(3) > div span,
nav.sensei-nav > div > div:nth-child(3) > div a {
  font-family: 'Syncopate', sans-serif !important; /* font-sync */
  font-size: 10px !important; /* text-[10px] */
  font-weight: 700 !important; /* font-bold */
  letter-spacing: 0.1em !important; /* tracking-widest */
  text-transform: uppercase !important;
}

.nav-cta-container > div.flex span:first-child,
nav.sensei-nav > div > div:nth-child(3) > div span:first-child {
  color: var(--s-black) !important; /* text-sensei-black */
  cursor: default !important;
}

.nav-cta-container > div.flex span:nth-child(2),
nav.sensei-nav > div > div:nth-child(3) > div span:nth-child(2) {
  color: #d4d4d8 !important; /* text-zinc-300 */
}

.nav-cta-container > div.flex a,
nav.sensei-nav > div > div:nth-child(3) > div a {
  color: #a1a1aa !important; /* text-zinc-400 */
  transition: color 0.15s ease !important;
  text-decoration: none !important;
}

.nav-cta-container > div.flex a:hover,
nav.sensei-nav > div > div:nth-child(3) > div a:hover {
  color: var(--s-red) !important; /* hover:text-sensei-red */
}

/* Hamburger (mobile) — button#open-menu-btn or legacy a:last-child */
nav.sensei-nav > div > a:last-child,
nav.sensei-nav > div > button#open-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  gap: 0.375rem;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 50;
}
nav.sensei-nav > div > a:last-child span,
nav.sensei-nav > div > button#open-menu-btn span {
  display: block;
  height: 2px;
  background-color: var(--s-black);
  transition: background-color 0.15s ease;
}
nav.sensei-nav > div > a:last-child span:nth-child(1),
nav.sensei-nav > div > button#open-menu-btn span:nth-child(1),
nav.sensei-nav > div > a:last-child span:nth-child(2),
nav.sensei-nav > div > button#open-menu-btn span:nth-child(2) { width: 1.5rem; }
nav.sensei-nav > div > a:last-child span:nth-child(3),
nav.sensei-nav > div > button#open-menu-btn span:nth-child(3) { width: 1rem; margin-right: 0.5rem; }
nav.sensei-nav > div > a:last-child:hover span,
nav.sensei-nav > div > button#open-menu-btn:hover span { background-color: var(--s-red); }

/* ── Desktop breakpoint ── */
@media (min-width: 768px) {
  nav.sensei-nav > div               { padding: 0 3rem; }
  nav.sensei-nav > div > div:nth-child(2) { display: flex; }
  nav.sensei-nav > div > div:nth-child(3),
  .nav-cta-container { 
    display: flex !important; 
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }
  /* Hide hamburger on desktop */
  nav.sensei-nav > div > a:last-child,
  nav.sensei-nav > div > button#open-menu-btn { display: none !important; }
}

/* If logo link and hamburger are both anchors,
   hide the hamburger (last-child) on desktop: already handled above */

/* ============================================================
   FOOTER — footer.sensei-footer
   ============================================================ */
footer.sensei-footer {
  background-color: var(--s-black) !important;
  color: #fff;
  padding: 5rem 1.5rem 2.5rem;
  width: 100%;
  margin-top: auto;        /* push footer to bottom */
}

/* Inner container */
footer.sensei-footer > div {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

/* Top grid row */
footer.sensei-footer > div > div:first-child {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #27272a !important;
}

/* Brand column (col-span-2 equivalent) */
footer.sensei-footer > div > div:first-child > div:first-child {
  grid-column: span 1;
}

/* Logo within brand col */
footer.sensei-footer > div > div:first-child > div:first-child > a > img {
  height: 40px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}
footer.sensei-footer > div > div:first-child > div:first-child > a > img:hover {
  transform: scale(1.05);
}

/* Tagline paragraph */
footer.sensei-footer > div > div:first-child > div:first-child > p {
  color: var(--s-gray) !important;
  font-size: 1.125rem;
  font-weight: 300;
  max-width: 24rem;
  line-height: 1.625;
  margin-bottom: 2rem;
}

/* Social icons row */
footer.sensei-footer > div > div:first-child > div:first-child > div {
  display: flex;
  gap: 1rem;
}
footer.sensei-footer > div > div:first-child > div:first-child > div > a {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #3f3f46 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
footer.sensei-footer > div > div:first-child > div:first-child > div > a:hover {
  background-color: var(--s-red) !important;
  border-color: var(--s-red) !important;
}

/* Column headings (Services / Headquarters) */
footer.sensei-footer > div > div:first-child > div:not(:first-child) > h4 {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a1a1aa !important;
  margin-bottom: 1.5rem;
}

/* Services list */
footer.sensei-footer > div > div:first-child > div:not(:first-child) ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: 300;
  color: var(--s-gray);
}
footer.sensei-footer > div > div:first-child > div:not(:first-child) ul a {
  color: var(--s-gray);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.15s ease;
}
footer.sensei-footer > div > div:first-child > div:not(:first-child) ul a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background-color: var(--s-red);
  transition: width 0.3s ease;
}
footer.sensei-footer > div > div:first-child > div:not(:first-child) ul a:hover { color: var(--s-red) !important; }
footer.sensei-footer > div > div:first-child > div:not(:first-child) ul a:hover::after { width: 100%; }

/* Address / HQ */
footer.sensei-footer address {
  font-style: normal;
  font-weight: 300;
  color: var(--s-gray);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
footer.sensei-footer address a {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-block;
  margin-top: 1rem;
}
footer.sensei-footer address a + a { margin-top: 0; }
footer.sensei-footer address a:hover { color: var(--s-red) !important; }

/* Bottom bar */
footer.sensei-footer > div > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: #71717a;
}
footer.sensei-footer > div > div:last-child > div {
  display: flex;
  gap: 1.5rem;
}
footer.sensei-footer > div > div:last-child a {
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s ease;
}
footer.sensei-footer > div > div:last-child a:hover { color: #fff !important; }

/* ── Desktop breakpoint ── */
@media (min-width: 768px) {
  footer.sensei-footer { padding: 5rem 3rem 2.5rem; }
  footer.sensei-footer > div > div:first-child {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
  footer.sensei-footer > div > div:first-child > div:first-child { grid-column: span 1; }
  footer.sensei-footer > div > div:last-child {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ── Utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* Missing Tailwind Utilities for Contact Button Component */
.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.bg-sensei-black {
    background-color: var(--s-black);
}

.bg-sensei-red {
    background-color: var(--s-red);
}

.text-white {
    color: #fff;
}

.translate-y-12 {
    transform: translateY(3rem);
}

.-translate-y-12 {
    transform: translateY(-3rem);
}

.group:hover .group-hover\:-translate-y-12 {
    transform: translateY(-3rem);
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0);
}

/* Ensure the red text is positioned nicely */
.absolute.inset-0 {
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.overflow-hidden { overflow: hidden; }

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
#mobile-menu-overlay {
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  transform: translateX(100%); /* default closed */
}

#mobile-menu-overlay.menu-overlay-open {
  transform: translateX(0);
}

.watermark-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 0.8;
}
