/* ============================================================
   HOSHI MEDTECH — GLOBAL STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── VARIABLES ── */
:root {
  --navy:       #021627;
  --navy2:      #062d4f;
  --teal:       #0a6e8a;
  --teal2:      #0d95bb;
  --teal3:      #3dbdd9;
  --red:        #ED6826;
  --red2:       #ED6826;
  --gold:       #c9973a;
  --ice:        #eef4f8;
  --white:      #ffffff;
  --offwhite:   #f7fafc;
  --text:       #0e1e2b;
  --muted:      #5a7080;
  --border:     rgba(10,110,138,.12);
  --border2:    rgba(10,110,138,.25);

  --font-display: 'Playfair Display', serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ice); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ── PAGE TRANSITION ── */
body { opacity: 0; animation: pageEnter .5s var(--ease-out-expo) forwards; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  padding: 8px 5vw;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1001;
}
.topbar a {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  transition: color .2s;
  letter-spacing: .5px;
}
.topbar a:hover { color: #fff; }
.topbar-sep { color: rgba(255,255,255,.15); font-size: 10px; }

/* ── NAV ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 28px rgba(2,22,39,.1); }
.nav-inner {
  display: flex;
  align-items: stretch;
  padding: 0 5vw;
  height: 70px;
}

.logo-img {
  height: 45px;   /* adjust if needed */
  width: auto;
}
/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: 48px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 7px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-bounce);
}
.nav-logo:hover .nav-logo-icon { transform: rotate(-5deg) scale(1.08); }
.nav-logo-icon svg { width: 22px; height: 22px; }
.nav-logo-text .brand {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.3px;
}
.nav-logo-text .sub {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 100%;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item > a.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}
.nav-item > a .chevron {
  width: 10px; height: 10px;
  transition: transform .25s;
}
.nav-item:hover > a .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border2);
  border-top: 3px solid var(--red);
  min-width: 200px;
  box-shadow: 0 12px 40px rgba(2,22,39,.12);
  animation: dropIn .2s var(--ease-out-expo);
  z-index: 100;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: all .18s;
}
.nav-dropdown a:last-child { border: none; }
.nav-dropdown a:hover { background: var(--ice); color: var(--navy); padding-left: 26px; }

/* Nav CTA */
.nav-cta-wrap { display: flex; align-items: center; margin-left: auto; gap: 10px; }
.btn-nav-cta {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  transition: all .2s;
  letter-spacing: .2px;
}
.btn-nav-cta:hover { background: var(--red2); transform: translateY(-1px); }

/* ── SHARED SECTION STYLES ── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
}
.section-title em { font-style: italic; color: var(--teal2); font-weight: 400; }
.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
  margin-top: 14px;
}
.accent-line {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--teal));
  border-radius: 2px;
  margin: 18px 0;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: all .25s var(--ease-out-expo);
  letter-spacing: .2px;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,16,46,.3); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: all .25s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--navy);
  border: none;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: all .25s;
}
.btn-white:hover { background: var(--ice); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.3);
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all .25s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.8); color: #fff; background: rgba(255,255,255,.08); }

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  transition: gap .2s;
}
.read-link:hover { gap: 11px; }
.read-link::after { content: '→'; }

/* ── PAGE BANNER (shared for inner pages) ── */
.page-banner {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
}
.page-banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: bannerZoom 8s ease forwards;
}
@keyframes bannerZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
.page-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,22,39,.95) 0%, rgba(2,22,39,.4) 100%);
}
.page-banner-content {
  position: relative;
  z-index: 2;
  padding: 0 5vw 56px;
  width: 100%;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
  animation: slideUp .6s .1s var(--ease-out-expo) both;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: rgba(255,255,255,.8); }
.breadcrumb-sep { font-size: 10px; }
.page-banner-content h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  animation: slideUp .7s .2s var(--ease-out-expo) both;
}
.page-banner-content h1 em { font-style: italic; color: #8dd8f0; }
.page-banner-content p {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  max-width: 560px;
  margin-top: 12px;
  animation: slideUp .7s .3s var(--ease-out-expo) both;
}

/* ── ANIMATIONS ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Staggered delays */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }
.delay-6 { transition-delay: .6s; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 64px 5vw 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 52px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  line-height: 1.75;
  max-width: 240px;
  margin-top: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img{
  height:50px;   /* adjust based on footer design */
  width:auto;
}
.footer-logo-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
}
.footer-logo-icon svg { width: 20px; height: 20px; }
.footer-logo-text .brand {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.footer-logo-text .sub {
  font-size: 8px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col li {
  font-size: 13px;
  color: rgba(255,255,255,.48);
  transition: color .2s;
  cursor: pointer;
}
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,.48);
  transition: color .2s;
}
.footer-col li:hover, .footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 11.5px;
  color: rgba(255,255,255,.24);
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: rgba(255,255,255,.28);
}

/* ══════════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  transition: border-color .2s;
  z-index: 1010;
}
.nav-hamburger:hover { border-color: var(--teal); }
.ham-line {
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s var(--ease-out-expo);
  transform-origin: center;
}
.nav-hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════ */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  pointer-events: none;
}
.mobile-drawer.open { pointer-events: all; }

/* Overlay backdrop */
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,22,39,.55);
  opacity: 0;
  transition: opacity .35s ease;
  backdrop-filter: blur(3px);
}
.mobile-drawer.open .drawer-backdrop { opacity: 1; }

/* Slide-in panel */
.drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform .38s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.mobile-drawer.open .drawer-panel { transform: translateX(0); }

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  flex-shrink: 0;
}
.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-logo-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
}
.drawer-logo-icon svg { width: 18px; height: 18px; }
.drawer-logo-text .brand {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.drawer-logo-text .sub {
  font-size: 7.5px;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}
.drawer-close {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: background .2s;
  flex-shrink: 0;
}
.drawer-close:hover { background: rgba(255,255,255,.2); }

/* Drawer nav links */
.drawer-nav {
  flex: 1;
  padding: 12px 0;
}
.drawer-nav-item {
  border-bottom: 1px solid var(--border);
}
.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: background .18s, color .18s, padding-left .18s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.drawer-nav-link:hover { background: var(--ice); padding-left: 28px; color: var(--teal); }
.drawer-nav-link.active { color: var(--red); }
.drawer-chevron {
  width: 14px; height: 14px;
  transition: transform .25s;
  flex-shrink: 0;
  color: var(--muted);
}
.drawer-nav-item.expanded .drawer-chevron { transform: rotate(180deg); }

/* Drawer submenu */
.drawer-submenu {
  display: none;
  flex-direction: column;
  background: var(--ice);
  border-top: 1px solid var(--border);
}
.drawer-nav-item.expanded .drawer-submenu { display: flex; }
.drawer-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 36px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: all .18s;
}
.drawer-submenu a:last-child { border: none; }
.drawer-submenu a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.drawer-submenu a:hover { background: #fff; color: var(--navy); padding-left: 42px; }

/* Drawer footer CTA */
.drawer-footer {
  padding: 20px 22px;
  border-top: 1px solid var(--border);
  background: var(--offwhite);
  flex-shrink: 0;
}
.drawer-footer .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 13px;
}
.drawer-contact-info {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════ */

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Hide some nav links but keep key ones */
  .nav-links .nav-item:nth-child(4) { display: none; }
}

/* ── TABLET PORTRAIT + MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
  /* Top bar hidden */
  .topbar { display: none; }

  /* Nav — hide desktop links, show hamburger */
  .nav-inner { padding: 0 4vw; height: 62px; }
  .nav-logo { margin-right: 0; }
  .nav-logo-text .brand { font-size: 15px; }
  .nav-links { display: none; }
  .nav-cta-wrap { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile drawer visible */
  .mobile-drawer { display: block; }

  /* Page banner */
  .page-banner { height: 300px; }
  .page-banner-content h1 { font-size: clamp(28px, 7vw, 44px); }
  .page-banner-content p { font-size: 14px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  .nav-inner { padding: 0 18px; height: 58px; }
  .nav-logo-text .sub { display: none; }
  .nav-logo-icon { width: 34px; height: 34px; }
  .nav-logo-icon svg { width: 18px; height: 18px; }
  .nav-logo-text .brand { font-size: 14px; }

  .page-banner { height: 260px; }
  .page-banner-content { padding: 0 18px 36px; }
  .breadcrumb { font-size: 11px; }

  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
}
