/* Sea Pharmaceuticals — static rebuild of the original Wix design */

:root {
  --navy: #0d2a75;
  --navy-deep: #08215f;
  --header-top: #4c639b;
  --header-bottom: #2d4688;
  --nav-text: #1a2df3;
  --nav-active: #fff09a;
  --panel: rgba(9, 38, 140, 0.62);
  /* Wix repeater items: --bg-overlay-color rgba(var(--color_14), 0.55-0.57), color_14 = 20,76,201 */
  --card: rgba(20, 76, 201, 0.56);
  --contact-blue: #4f80ea;
  --white: #fff;
  /* Wix fonts and their open-licensed stand-ins (Wix's Monotype fonts can't be
     self-hosted): Futura Book -> Jost, Proxima Nova -> Figtree, Avenir 35 Light ->
     Nunito Sans 300. Work Sans is the real font Wix uses. Wix's "bold" Futura is a
     browser-synthesized bold that renders like Jost 450; its bold
     "worksans-extralight" is Work Sans 300. */
  --font-display: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-ui: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --font-release: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-arial: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-avenir: "Nunito Sans", "Avenir", sans-serif;
  /* Small tracking so Jost wraps lines where Futura Book does. */
  --futura-tracking: 0.004em;
  --futura-bold: 450;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-display);
  letter-spacing: var(--futura-tracking);
  color: var(--white);
  background: var(--navy-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ---------- Header ---------- */

.site-header {
  border-top: 9px solid var(--navy);
  border-bottom: 9px solid var(--navy);
  background: linear-gradient(to bottom, var(--header-top), var(--header-bottom));
  position: relative;
  z-index: 10;
}

/* Matches the Wix layout: content sits in a centered ~1486px column with the logo
   pinned to its left edge and the nav centered on the page. */
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1486px;
  min-height: 134px;
  margin: 0 auto;
}

.logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
}

.logo img { width: 156px; height: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 188px;
  height: 62px;
  padding: 11px;
  background: var(--white);
  border: 1px solid #3448c9;
  color: var(--nav-text);
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.15s;
}

.site-nav a span,
.site-nav a { position: relative; }

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background:
    linear-gradient(var(--nav-active), var(--nav-active)) center / calc(100% - 24px) calc(100% - 24px) no-repeat,
    var(--white);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background: var(--white);
}

/* ---------- Main / page backgrounds ---------- */

.site-main {
  flex: 1 0 auto;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.page-home .site-main {
  background-image: url("/assets/img/bg-ocean.jpg");
  background-position: center;
}

.page-about .site-main,
.page-news .site-main,
.page-team-3 .site-main,
.page-release .site-main,
.page-not-found .site-main { background-image: url("/assets/img/bg-open-ocean-horizon.jpg"); }

/* The horizon image shows sky in its top third; mimic the Wix layout, which
   leaves a band of sky visible above the content panel. */
.page-about .site-main,
.page-news .site-main,
.page-release .site-main { padding-top: 210px; padding-bottom: 12px; }

/* On these pages Wix sizes the ocean image to the content area (not the window). */
.page-about .site-main,
.page-news .site-main,
.page-release .site-main { background-attachment: scroll; background-position: center; }

/* ---------- Home ---------- */

.home-hero {
  max-width: 1381px;
  margin: 0 auto;
}

.home-hero img { width: 100%; }

/* ---------- Content panel (About, News, releases) ---------- */

.panel {
  background: var(--panel);
  max-width: 1037px;
  margin: 0 auto;
  padding: 4px 18px 26px;
  font-size: 21px;
  line-height: 1.33;
  font-weight: var(--futura-bold);
}

.panel h1 {
  font-size: 40px;
  font-weight: var(--futura-bold);
  text-align: center;
  margin: 0;
  line-height: 54px;
}

.panel p { margin: 0; }

.panel ul { margin: 1.1em 0 0; padding-left: 38px; }
.panel ul ul { margin: 0; list-style: circle; }

/* About */
.overview .concept { margin-bottom: 0; }

/* News — Wix sets each date inline before its title, so long titles wrap back
   under the date. */
.news { max-width: 980px; }
.news-list { margin-top: 18px; }
.news-list .date { display: inline-block; margin-right: 40px; }
.news-head .date { min-width: 116px; }
.news-item { margin-top: 36px; }
.news-item:first-of-type { margin-top: 0; }
.news-item .title { text-decoration: underline; }
.news-item .pdf { display: inline-block; margin: 2px 0 0 274px; }
.news-item .pdf img { width: 40px; }

/* Audio player styled after the Wix music player */
.audio-card {
  display: flex;
  width: 302px;
  height: 70px;
  margin: 12px 0 0 156px;
  background: var(--white);
  color: #0b2b71;
  letter-spacing: normal;
}
.audio-card img { width: 70px; height: 70px; object-fit: cover; }
.audio-body { flex: 1; padding: 8px 14px 0 14px; min-width: 0; }
.audio-title {
  font-family: var(--font-release);
  font-size: 18px;
  font-weight: 200;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.audio-play {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: #0b2b71;
  cursor: pointer;
}
.audio-play svg { fill: currentColor; display: block; margin: auto; }
.audio-play .icon-pause,
.audio-card.playing .audio-play .icon-play { display: none; }
.audio-card.playing .audio-play .icon-pause { display: block; }
.audio-bar {
  flex: 1;
  height: 3px;
  background: #d4d9e3;
  cursor: pointer;
  position: relative;
}
.audio-bar::before { content: ""; position: absolute; inset: -8px 0; }
.audio-progress { width: 0; height: 100%; background: #0b2b71; }
.audio-time {
  flex: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #5a6d96;
}

/* Press releases */
.release {
  max-width: 980px;
  font-family: var(--font-release);
  font-size: 18px;
  line-height: 31.5px;
  font-weight: 300;
  letter-spacing: normal;
  padding: 4px 20px 40px;
}
.release h1 {
  font-family: var(--font-display);
  letter-spacing: var(--futura-tracking);
  font-size: 30px;
  font-weight: var(--futura-bold);
  line-height: 40.5px;
  text-align: justify;
  margin: 0 0 6px;
  padding: 0 80px 0 60px;
}
/* Wix styles these labels like body text; the April release sizes "About" up. */
.release h2 { font-size: 22px; font-weight: 300; margin: 24px 0 4px; }
.release h3 { font-size: 18px; font-weight: 300; margin: 14px 0 0; }
#release-14-nov-2024 h2 { font-size: 18px; }
/* The November title is indented and justified; April's is flush left. The April
   release also separates its paragraphs and bullet groups with a blank line. */
#release-6-apr-2025 h1 { padding: 0; margin-bottom: 18px; }
#release-6-apr-2025 > p,
#release-6-apr-2025 > ul,
#release-6-apr-2025 .release-fine > p { margin-bottom: 31.5px; }
#release-6-apr-2025 > ul li { margin-bottom: 0; }
.release ul ul { list-style: circle; margin: 0; padding-left: 16px; }
.release p { margin: 0; }
.release-fine { font-size: 16px; }
.release .lead { font-size: 20px; }
.release ul { margin: 0 0 16px; padding-left: 28px; }
.release li { margin-bottom: 6px; }
.release .meta { display: flex; flex-wrap: wrap; gap: 4px 120px; }
.release a { word-break: break-word; }
.release .back { margin: 28px 0 0; }

/* ---------- Team ---------- */

.team {
  max-width: 1340px;
  margin: 0 auto;
  padding: 20px 20px 24px;
}

.team-head { text-align: center; }
.team-head h1 {
  font-size: 56px;
  font-weight: 400;
  margin: 0 0 4px;
  line-height: 1.33;
}
.team-head p {
  font-size: 20px;
  font-weight: var(--futura-bold);
  margin: 0;
  display: inline-block;
  text-align: left;
}

.page-team-3 .site-main { background-position: center; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 299px);
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
  align-items: start;
}

.team-col { display: grid; gap: 30px; }

.card {
  background: var(--card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 18px 19px 10px;
  font-size: 22px;
  line-height: 1.33;
}

.card h2 {
  font-family: var(--font-arial);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0 0 12px;
}

.card ul { list-style: none; margin: 0 0 6px; padding: 0; }
.card li { margin: 0; }
.card .gap { height: 0.4em; }
.card a { text-decoration: underline; }

.team-notes {
  font-family: var(--font-arial);
  letter-spacing: normal;
  text-align: center;
  font-size: 20px;
  margin: 48px 0 0;
  line-height: 28px;
}

/* Wix "FadeIn" entrance animation on the card contents: 1200ms, played once when
   each card scrolls into view. html.js is set in <head>, so without JS nothing hides. */
@keyframes motion-fadeIn { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js .card > * {
    animation: motion-fadeIn 1200ms 1ms cubic-bezier(0.445, 0.05, 0.55, 0.95) backwards paused;
  }
  .js .card.in-view > * { animation-play-state: running; }
}

/* ---------- Contact ---------- */

/* Wix uses a fixed 645px contact section; the photo continues behind the page below it. */
body.page-contact { background: var(--navy-deep) url("/assets/img/contact-columbia.jpg") center / cover fixed; }
.page-contact .site-main { flex: 0 0 auto; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 645px;
}

.contact-photo {
  background: url("/assets/img/contact-columbia.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 56px;
}

.contact-box {
  background: var(--navy);
  width: 100%;
  max-width: 489px;
  padding: 30px 24px 52px;
  text-align: center;
}

.contact-box h1 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #a7c0f6;
  margin: 0 0 54px;
}

.contact-box a {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-block;
}

.contact-box .rule {
  width: 40px;
  height: 3px;
  background: #9dbdf4;
  margin: 12px auto 0;
}

.contact-form-wrap {
  background: var(--contact-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 56px;
}

.contact-form-wrap > div { width: 100%; max-width: 487px; }

.contact-form {
  width: 100%;
  max-width: 487px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 17px;
}

.contact-form .full { grid-column: 1 / -1; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  color: #000;
  border: 0;
  background: #fff;
  padding: 3px 3px 3px 12px;
  border-radius: 0;
}

.contact-form ::placeholder { color: #0f0f0f; opacity: 1; }

.contact-form input { height: 34px; }
.contact-form textarea { height: 148px; resize: vertical; padding: 10.5px 10px 3px 16px; }

.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--navy); }

.contact-form button {
  height: 45px;
  border: 0;
  background: #0f0f0f;
  color: #fff;
  font-family: var(--font-avenir);
  font-weight: 300;
  font-size: 18px;
  line-height: 25.2px;
  letter-spacing: normal;
  cursor: pointer;
}

.contact-form button:disabled { opacity: 0.6; cursor: wait; }

.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { text-align: center; font-size: 17px; margin: 0; }
.form-status:empty { display: none; }

.contact-social { display: flex; justify-content: center; margin-top: 22px; }
.contact-social img { width: 29px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 404 ---------- */

.page-not-found .panel { margin-top: 210px; margin-bottom: 120px; text-align: center; padding: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 9px solid var(--navy);
  border-bottom: 13px solid var(--navy);
  background: linear-gradient(to bottom, var(--header-top), var(--header-bottom));
  text-align: center;
  padding: 2px 0 4px;
  font-family: var(--font-ui);
  letter-spacing: normal;
  font-size: 14px;
  line-height: 25px;
}

.footer-linkedin img { width: 39px; height: 39px; margin: 0 auto; }
.site-footer p { margin: 2px 0 0; }
.site-footer p a { text-decoration: underline; }

/* ---------- Page transitions ----------
   Recreates the Wix "SlideVertical" transition (600ms): the page content slides
   while the header and footer stay put. Moving to a page later in the menu slides
   up; moving back slides down. Uses cross-document View Transitions; browsers
   without support simply navigate without animation. */

@view-transition { navigation: auto; }

.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
.site-main { view-transition-name: page; }

::view-transition-group(site-header),
::view-transition-group(site-footer) { z-index: 2; }

/* Header/footer don't animate; the new nav highlight appears immediately, as on Wix. */
::view-transition-old(site-header),
::view-transition-old(site-footer) { display: none; }
::view-transition-new(site-header),
::view-transition-new(site-footer) { animation: none; }

::view-transition-group(*) {
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
}

::view-transition-group(page) { overflow: clip; }

::view-transition-old(page),
::view-transition-new(page) {
  height: 100%;
  object-fit: none;
  object-position: top;
  mix-blend-mode: normal;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
  animation-fill-mode: both;
}

::view-transition-old(page) { animation-name: vt-out-up; }
::view-transition-new(page) { animation-name: vt-in-up; }
html:active-view-transition-type(backward)::view-transition-old(page) { animation-name: vt-out-down; }
html:active-view-transition-type(backward)::view-transition-new(page) { animation-name: vt-in-down; }

@keyframes vt-out-up { to { transform: translateY(-100%); } }
@keyframes vt-in-up { from { transform: translateY(100%); } }
@keyframes vt-out-down { to { transform: translateY(100%); } }
@keyframes vt-in-down { from { transform: translateY(-100%); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1500px) {
  .logo img { width: 133px; }
}

@media (max-width: 1300px) {
  .site-nav a { width: 150px; }
}

@media (max-width: 1100px) {
  .site-nav a { width: 116px; font-size: 14px; letter-spacing: 0.06em; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 299px)); }
}

@media (max-width: 960px) {
  .header-inner { min-height: 90px; flex-wrap: wrap; justify-content: flex-start; padding-right: 12px; }
  .logo { position: static; transform: none; }
  .logo img { width: 110px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-basis: 100%; padding: 0 16px 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav a { width: 100%; height: 50px; }

  .site-main { background-attachment: scroll; }

  .page-about .site-main,
  .page-news .site-main,
  .page-release .site-main { padding-top: 90px; }

  .panel { font-size: 18px; margin: 0 16px; padding: 4px 14px 22px; }
  .panel h1 { font-size: 30px; }
  .release { font-size: 16px; padding: 16px 16px 28px; }
  .release h1 { font-size: 24px; }
  .release .meta { gap: 4px 24px; }

  .news-head { display: none; }
  .news-list .date { display: block; }
  .news-item .pdf, .audio-card { margin-left: 0; }

  .team-head h1 { font-size: 36px; }
  .team-grid { grid-template-columns: 1fr; }

  .contact { grid-template-columns: 1fr; min-height: 0; }
  .contact-photo { min-height: 360px; }
  .contact-box h1 { font-size: 28px; margin-bottom: 30px; }
}

@media (max-width: 480px) {
  .contact-form { grid-template-columns: 1fr; }
}
