/* ONESEA Solutions — Home page styles.
   Ported from the Claude Design export (index.html <style> block).
   Base resets (html/body/#root/a) are sitewide, in tokens.css. */

.os-bullet-link { transition: opacity .18s ease; }
.os-bullet-link:hover { color: inherit !important; opacity: 0.75; text-decoration: underline; text-underline-offset: 4px; }
/* Home enlarges the nav logo 30% (56px sitewide default -> 73px) over the
   full-bleed video hero; chrome.css has the fixed-header/dropdown/login
   rules shared with every page. */
#root [data-nav-fixed] nav img { height: 73px !important; align-self: flex-start !important; }

/* ===== Login portal modal ===== */
.os-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,20,45,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.os-modal.is-open { opacity: 1; }
.os-modal__card { position: relative; box-sizing: border-box; width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 44px 40px 40px; box-shadow: 0 30px 70px rgba(0,20,45,0.4); transform: translateY(14px) scale(0.98); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.os-modal.is-open .os-modal__card { transform: none; }
.os-modal__close { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: #8a949c; cursor: pointer; border-radius: 8px; }
.os-modal__close:hover { background: #f5f7f9; color: var(--onesea-navy); }
.os-modal__badge { width: 56px; height: 56px; border-radius: 14px; background: rgba(239,0,138,0.08); color: var(--onesea-pink); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.os-modal__card h2 { font-family: var(--font-sans); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--onesea-navy); margin: 0 0 8px; }
.os-modal__card p { font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: var(--onesea-ink); margin: 0 0 24px; }
.os-modal__form { display: flex; flex-direction: column; gap: 16px; }
.os-modal__form label { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--onesea-navy); display: flex; flex-direction: column; gap: 8px; }
.os-modal__form input { font-family: var(--font-sans); font-size: 15px; color: var(--onesea-navy); padding: 13px 16px; border: 1px solid #E5E7EB; border-radius: 12px; outline: none; }
.os-modal__form input:focus { border-color: var(--onesea-pink); box-shadow: 0 0 0 3px rgba(239,0,138,0.14); }
.os-modal__submit { margin-top: 6px; font-family: var(--font-sans); font-weight: 700; font-size: 16px; color: #fff; background: var(--onesea-pink); border: 0; border-radius: 100px; padding: 15px 24px; cursor: pointer; }
.os-modal__note { font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: #8a949c; text-align: center; margin-top: 4px; }

/* Home-only nav tweak: 73px logo also applies once scrolled (chrome.css's
   sitewide .os-nav-scrolled rules don't touch logo height). */
#root [data-nav-fixed].os-nav-scrolled nav img { height: 73px !important; }
#root [data-hero-content] { padding-top: 150px !important; }

/* --- Cinematic hero: video crossfade + sequential captions --- */
[data-hero-video] { transition: opacity .7s ease; will-change: opacity; }
.hero-cap {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
  pointer-events: none;
}
.hero-cap.hero-cap-in { opacity: 1; transform: none; }

/* .os-reveal/.os-in/.os-zoom/.os-card and the generic button hover-lift
   moved to components.css (sitewide) — .os-mcard (media cards) stays here,
   it's home-page-only content. */
@media (prefers-reduced-motion: no-preference) {
  .os-mcard {
    transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
  }
  .os-mcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0,45,87,.16) !important;
  }
}
/* .os-media-tab moved to components.css (sitewide) — Media page uses it too. */
[data-media-card] { transition: opacity .35s ease; }

/* Services — alternating editorial */
.srv-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
}
.srv-img {
  position: absolute; left: 0; top: -6%;
  width: 100%; height: 112%;
  object-fit: cover;
  --py: 0px; --sc: 1;
  transform: translate3d(0, var(--py), 0) scale(var(--sc));
  transition: transform .4s ease;
}
.srv-img-wrap:hover .srv-img { --sc: 1.05; }
.srv-learn .arrow { transition: transform .25s cubic-bezier(.22,1,.36,1); }
.srv-learn:hover .arrow { transform: translateX(6px); }
.os-js [data-srv-row] .srv-img-wrap {
  clip-path: inset(0 0 100% 0 round 18px);
  transition: clip-path .8s cubic-bezier(.22,1,.36,1);
}
.os-js [data-srv-row].in .srv-img-wrap { clip-path: inset(0 0 0 0 round 18px); }
.os-js [data-srv-row] .srv-content {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease .2s, transform .7s cubic-bezier(.22,1,.36,1) .2s;
}
.os-js [data-srv-row].in .srv-content { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .os-js [data-srv-row] .srv-img-wrap { clip-path: none; transition: none; }
  .os-js [data-srv-row] .srv-content { opacity: 1; transform: none; transition: none; }
  .srv-img { transition: none; }
}

/* Company Profile — editorial */
.cp-stage { position: relative; }
.cp-img { position: absolute; overflow: hidden; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,45,87,0.18); will-change: transform; }
.cp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-img-main { top: 0; left: 0; width: 74%; height: 340px; z-index: 1; }
.cp-img-float { bottom: 0; right: 0; width: 46%; height: 240px; z-index: 3; border: 5px solid #fff; }
.cp-img-small { top: 46%; left: 6%; width: 30%; height: 168px; z-index: 2; border: 5px solid #fff; }

.cp-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cp-hl {
  background: #fff; border: 1px solid rgba(0,45,87,0.10); border-radius: 16px;
  padding: 26px 24px 28px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.cp-hl:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,45,87,0.12); }
.cp-hl-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: rgba(239,0,138,0.08); color: var(--onesea-pink); margin-bottom: 16px;
}
.cp-hl-title { font-family: var(--font-sans); font-weight: 700; font-size: 19px; color: var(--onesea-navy); margin: 0 0 8px; letter-spacing: -0.01em; }
.cp-hl-body { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6; color: var(--onesea-ink); margin: 0; }

.cp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 80px;
}
.cp-stat-num { font-family: var(--font-sans); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--onesea-navy); }
.cp-stat-label { font-family: var(--font-sans); font-weight: 500; font-size: 15px; line-height: 1.4; color: var(--onesea-ink); margin-top: 12px; max-width: 200px; }

@media (max-width: 900px) {
  .cp-stage { min-height: 380px !important; margin-bottom: 40px; }
  .cp-stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .cp-stat-num { font-size: 44px; }
}

/* Why ONESEA — expanding panels */
.why-row { align-items: stretch; }
/* Pinned scroll sequence */
.pin-panel .pin-content { width: 100%; }
.pin-track { position: relative; height: 300vh; }
@supports (height: 100dvh) { .pin-stage { height: 100dvh; } }
.pin-stage {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
}
.pin-panel {
  position: absolute !important; inset: 0;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; will-change: transform, opacity;
  backface-visibility: hidden;
}
.pin-panel:first-child { opacity: 1; }
.pin-on .pin-panel .pin-content > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.pin-on .pin-panel.is-active .pin-content > * { opacity: 1; transform: none; }
.pin-on .pin-panel.is-active .pin-content > *:nth-child(1) { transition-delay: .08s; }
.pin-on .pin-panel.is-active .pin-content > *:nth-child(2) { transition-delay: .2s; }
.pin-on .pin-panel.is-active .pin-content > *:nth-child(3) { transition-delay: .32s; }
.pin-dots {
  position: absolute; right: 34px; top: 50%; transform: translateY(-50%);
  z-index: 20; display: flex; flex-direction: column; gap: 12px;
}
.pin-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background-color .3s ease, transform .3s ease;
}
.pin-dot.is-active { background: var(--onesea-pink); transform: scale(1.35); }
@media (max-width: 860px) {
  .pin-track { height: auto !important; position: static !important; }
  .pin-stage { position: static !important; height: auto !important; overflow: visible !important; }
  .pin-panel {
    position: relative !important; inset: auto !important; height: auto !important;
    width: 100% !important; max-width: 100% !important; box-sizing: border-box;
    opacity: 1 !important; transform: none !important;
    display: block !important;
  }
  .pin-panel .pin-content {
    display: block !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box;
  }
  .pin-panel .pin-content > * {
    opacity: 1 !important; transform: none !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    margin-bottom: 24px !important;
  }
  .pin-panel .pin-content > *:last-child { margin-bottom: 0 !important; }
  .pin-panel .pin-content img[src*="world-map"] {
    position: static !important; width: 100% !important; max-width: 100% !important; height: auto !important;
    transform: none !important; margin-top: 16px !important;
  }
  .pin-dots { display: none !important; }
}
.why-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  transition: flex-grow .78s cubic-bezier(.22,1,.36,1);
}
.why-row:hover .why-panel { flex-grow: 1; }
.why-panel:hover, .why-panel:focus-visible { flex-grow: 3.4; }
.why-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.why-panel:hover .why-img, .why-panel:focus-visible .why-img { transform: scale(1.05); }
.why-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,20,45,0.15) 0%, rgba(0,20,45,0.35) 45%, rgba(0,20,45,0.82) 100%);
}
.why-num {
  position: absolute; top: 2px; left: 18px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 130px;
  line-height: 1;
  color: #fff;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.why-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 30px 28px;
  display: flex;
  flex-direction: column;
}
.why-kicker {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  color: var(--onesea-pink);
  margin-bottom: 12px;
}
.why-icon {
  display: block;
  color: #fff;
  margin-bottom: 14px;
}
.why-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.why-desc {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: 440px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .55s cubic-bezier(.22,1,.36,1), opacity .45s ease .12s, margin-top .45s ease;
}
.why-panel:hover .why-desc, .why-panel:focus-visible .why-desc {
  opacity: 1;
  max-height: 200px;
  margin-top: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .why-panel, .why-img, .why-desc, .why-title { transition: none; }
}

/* Carousel arrows */
.os-media-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,45,87,0.18);
  background: #fff;
  color: var(--onesea-navy);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.os-media-arrow:hover { background: var(--onesea-pink); border-color: var(--onesea-pink); color: #fff; }
.os-media-arrow:disabled { opacity: 0.35; cursor: default; }
.os-media-arrow:disabled:hover { background: #fff; color: var(--onesea-navy); border-color: rgba(0,45,87,0.18); }

/* Footer styling (padding/grid/mobile stacking) is sitewide, in chrome.css
   — footer.php is shared by every page via get_footer(). */

/* ============================================================
   MOBILE / TABLET RESPONSIVE PASS (desktop unchanged)
   Nav-burger icon + dropdown/drawer rules live in chrome.css and
   mobile-nav.css (sitewide) — this file keeps only home-page layout.
   ============================================================ */
@media (max-width: 1180px) {
  html, body { overflow-x: hidden; max-width: 100%; }
}

@media (max-width: 860px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  #root section [style*="grid-template-columns"],
  #root .pin-content { grid-template-columns: 1fr !important; gap: 28px !important; }
  #root .cp-stats { grid-template-columns: 1fr 1fr !important; }
  #root .cf-grid { grid-template-columns: 1fr !important; }
  #root [data-pin-seq] { overflow-x: clip; }
  #root [data-pin-seq] section { overflow: hidden !important; }
  #root [data-pin-seq] .pin-content { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  #root [data-pin-seq] .pin-content > * { min-width: 0 !important; max-width: 100% !important; }
  #root [data-pin-seq] .pin-content p { max-width: 100% !important; }
  #root [data-pin-seq] img[src*="world-map"] { width: 100% !important; max-width: 100% !important; }
  #root section { padding-left: 22px !important; padding-right: 22px !important; }
  #root .why-row { flex-direction: column !important; height: auto !important; gap: 14px !important; }
  #root .why-panel {
    flex: none !important; height: auto !important; min-height: 320px !important;
    justify-content: flex-end !important;
  }
  #root .why-body { position: relative !important; }
  #root .why-desc { max-height: none !important; opacity: 1 !important; overflow: visible !important; margin-top: 12px !important; }
  #root .why-num { font-size: 100px !important; }
  #root [data-srv-row] > * { order: 0 !important; }
  #root .cp-stage { min-height: 300px !important; }
  #root [data-hero] { height: auto !important; min-height: 78svh !important; }
  #root img, #root video, #root svg { max-width: 100%; }
  #root input, #root select, #root textarea { width: 100% !important; max-width: 100% !important; box-sizing: border-box; font-size: 16px !important; }
  #root button, #root a[href] { min-height: 44px; }
  #root .os-mcard { flex: 0 0 86vw !important; }
  #root .os-mcard > div:first-child { height: auto !important; aspect-ratio: 16 / 10; }
  #root h1 { font-size: clamp(28px, 8vw, 40px) !important; line-height: 1.1 !important; }
  #root h3 { font-size: clamp(19px, 5vw, 24px) !important; }
  #root .cp-img-main, #root .cp-img-float, #root .cp-img-small { height: auto !important; aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  #root section { padding-top: 60px !important; padding-bottom: 60px !important; }
  #root h1 { font-size: 38px !important; }
  #root h2 { font-size: 30px !important; line-height: 1.12 !important; }
  #root .cp-stat-num { font-size: 38px !important; }
  #root .os-mcard { flex: 0 0 100% !important; }
}

@media (min-width: 641px) and (max-width: 860px) {
  #root .os-mcard { flex: 0 0 calc((100% - 28px) / 2) !important; }
}

@media (max-width: 767px) {
  #root img, #root video { max-width: 100%; }
  #root [data-media-viewport] {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #root [data-media-viewport]::-webkit-scrollbar { display: none; }
  #root [data-media-track] { transform: none !important; }
  #root .os-mcard { flex: 0 0 86% !important; scroll-snap-align: center; }
  #root [data-media-prev], #root [data-media-next] { display: none !important; }
}

/* Button/eyebrow component styles moved to assets/css/components.css
   (shared with single.php, not just the home page). */
