/* ============================================================
   SOLSTICE MARITIME TRADING LLC — Custom Styles
   Brand colors (from Illustrator source):
   Deep green #144832 · Mint #88D3B1 · Ink #101816
   ============================================================ */

:root {
  --green-900: #0d3122;
  --green-800: #144832;
  --green-700: #1c5c42;
  --green-600: #2a7a58;
  --mint:      #88d3b1;
  --mint-200:  #c4e9d7;
  --mint-050:  #eef8f2;
  --ink:       #101816;
  --paper:     #ffffff;
  --paper-alt: #f5f9f6;
  --line:      #e4ede8;
  --muted:     #5c6b63;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --shadow-sm: 0 2px 10px rgba(20, 72, 50, .06);
  --shadow-md: 0 14px 40px rgba(20, 72, 50, .10);
  --radius:    18px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 4000;
  background: var(--green-800);
  color: #fff;
  padding: .8rem 1.3rem;
  border-radius: 0 0 12px 0;
  font-family: var(--font-head);
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible,
.navbar-toggler:focus-visible,
.footer-logo-trigger:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
  border-radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display, .navbar-brand {
  font-family: var(--font-head);
  color: var(--green-800);
  letter-spacing: -.01em;
}

a { text-decoration: none; transition: color .25s var(--ease); }

::selection { background: var(--mint); color: var(--green-900); }

/* ---------- Reusable ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-alt { background: var(--paper-alt); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--mint);
  display: inline-block;
}

.section-title {
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.lead-text { color: var(--muted); font-size: 1.06rem; }

/* Buttons */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 100px;
  padding: .85rem 2rem;
  transition: all .3s var(--ease);
}
.btn-brand {
  background: var(--green-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-brand:hover {
  background: var(--green-900);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-brand {
  border: 1.5px solid var(--green-800);
  color: var(--green-800);
  background: transparent;
}
.btn-outline-brand:hover {
  background: var(--green-800);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 1.1rem 0;
}
.navbar-brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; transition: height .35s var(--ease); }
.navbar .nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--green-800);
  margin: 0 .35rem;
  position: relative;
  padding: .4rem .3rem;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .3rem; bottom: .1rem;
  width: 0; height: 2px;
  background: var(--mint);
  transition: width .3s var(--ease);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: calc(100% - .6rem); }

.navbar.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: .65rem 0;
}
.navbar.scrolled .brand-logo { height: 34px; }

.navbar-toggler { border: none; padding: .25rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(8rem, 16vh, 12rem) 0 clamp(5rem, 10vh, 8rem);
  background:
    radial-gradient(1100px 600px at 85% -10%, var(--mint-050) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--paper-alt) 100%);
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  right: -6%; top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 720px);
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.hero-tag {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: clamp(.8rem, 1.6vw, .95rem);
  color: var(--green-600);
  margin-bottom: 1.6rem;
}
.hero-tag span { color: var(--mint); margin: 0 .5rem; }

/* Key phrase — no highlight, inherits heading color */
.hero h1 .hl { color: inherit; }

.hero-statement {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: var(--green-800);
  border-left: 3px solid var(--mint);
  padding-left: 1.1rem;
  margin: 2rem 0 2.4rem;
  max-width: 620px;
}
.hero-lead { max-width: 640px; color: var(--muted); font-size: 1.1rem; }

/* ---------- Stat / trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-item { padding: 2rem .5rem; text-align: center; }
.trust-item i {
  font-size: 1.7rem;
  color: var(--green-900);
  background: var(--mint);
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--ease);
}
.trust-item:hover i { transform: translateY(-4px) scale(1.05); }
.trust-item span {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-800);
  margin-top: .85rem;
  font-size: .95rem;
  letter-spacing: .02em;
}

/* ---------- Icon blocks ---------- */
.icon-badge {
  width: 76px; height: 76px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: var(--green-900);
  font-size: 2.1rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 10px 24px rgba(136, 211, 177, .45);
  transition: all .35s var(--ease);
}

/* Service cards */
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--mint);
}
.service-card:hover .icon-badge {
  background: var(--green-800);
  color: var(--mint);
  box-shadow: 0 12px 28px rgba(20, 72, 50, .28);
  transform: translateY(-2px) rotate(-4deg);
}
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.service-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.service-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--mint);
  letter-spacing: .1em;
}

/* ---------- What we do / Approach split ---------- */
.feature-media {
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  padding: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.feature-media .isotype {
  position: absolute;
  right: -10%; bottom: -12%;
  width: 70%;
  opacity: .12;
}
.feature-media h3 { color: #fff; }
.feature-media .kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: #fff;
  position: relative;
  z-index: 1;
}
.feature-media .kicker em { color: var(--mint); font-style: normal; }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .55rem 0;
  color: var(--ink);
}
.check-list li i { color: var(--green-600); font-size: 1.25rem; margin-top: .15rem; }

/* ---------- Industries ---------- */
.industry-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  height: 100%;
  transition: all .3s var(--ease);
}
.industry-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.industry-card i {
  font-size: 1.7rem;
  color: var(--green-900);
  background: var(--mint);
  width: 54px; height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform .3s var(--ease);
}
.industry-card:hover i { transform: scale(1.08); }
.industry-card span {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-800);
  font-size: 1.02rem;
}

/* ---------- CTA / Contact ---------- */
.cta {
  position: relative;
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #fff;
  border-radius: 28px;
  padding: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.cta-watermark {
  position: absolute;
  right: -5%; bottom: -20%;
  width: 45%;
  opacity: .1;
  pointer-events: none;
}
.cta h2 { color: #fff; font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta p { color: rgba(255,255,255,.82); }
.cta .btn-brand { background: var(--mint); color: var(--green-900); }
.cta .btn-brand:hover { background: #fff; color: var(--green-900); }
.cta .btn-ghost {
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
}
.cta .btn-ghost:hover { background: rgba(255,255,255,.12); color:#fff; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,.72); padding: 4rem 0 2rem; }
.footer img { height: 120px; margin-bottom: 1.2rem; }
.footer h5 {
  font-family: var(--font-head);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--mint); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .55rem; }
.footer-address {
  font-style: normal;
  color: rgba(255,255,255,.72);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.footer-tags { list-style: none; padding: 0; margin: 0; }
.footer-tags li {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--mint);
  margin-bottom: .35rem;
  padding-left: 1.1rem;
  position: relative;
}
.footer-tags li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* Contact list in CTA */
.cta-contact { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.cta-contact li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  color: rgba(255,255,255,.9);
  margin-bottom: .9rem;
  font-size: .98rem;
  line-height: 1.5;
}
.cta-contact li i { color: var(--mint); font-size: 1.2rem; margin-top: .1rem; }
.cta-contact a { color: rgba(255,255,255,.9); }
.cta-contact a:hover { color: var(--mint); }

/* Contact form card */
.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.contact-form .form-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--green-800);
  margin-bottom: .35rem;
}
.contact-form .form-label span { color: #c0392b; }
.contact-form .form-control,
.contact-form .form-select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .98rem;
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(136,211,177,.35);
  outline: none;
}
.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.contact-form textarea.form-control { resize: vertical; min-height: 120px; }
.form-note { color: var(--muted); font-size: .85rem; }

/* Honeypot: visually hidden, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Submit feedback */
.form-status {
  margin-top: 1.1rem;
  font-size: .95rem;
  font-weight: 500;
  display: none;
}
.form-status.is-error,
.form-status.is-success { display: block; }
.form-status.is-error {
  color: #c0392b;
  background: #fdecea;
  border-radius: 10px;
  padding: .8rem 1rem;
}
.form-status.is-success {
  color: var(--green-800);
  background: var(--mint-050);
  border: 1px solid var(--mint);
  border-radius: 10px;
  padding: .8rem 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 3rem; padding-top: 1.6rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Legal pages ---------- */
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(8rem, 14vh, 10rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(900px 400px at 90% -20%, var(--mint-050) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--paper-alt) 100%);
  border-bottom: 1px solid var(--line);
}
.legal-hero > .container { position: relative; z-index: 1; }
/* Green + white gulls on the right, 150% size */
.legal-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3%;
  transform: translateY(-50%);
  width: 46%;
  height: 100%;
  background-image: url("../assets/birds-green.svg"), url("../assets/birds-white.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: right center, calc(100% - 14px) calc(50% - 14px);
  background-size: 150%, 150%;
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 575.98px) {
  .legal-hero::after { width: 70%; opacity: .1; }
}
.legal-hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: .6rem 0 .4rem;
}
.legal-hero p { color: var(--muted); margin: 0; }

.legal-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 5vw, 4rem); }

.legal-nav { position: sticky; top: 96px; align-self: start; }
.legal-nav .legal-nav-title {
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 1rem;
}
.legal-nav a {
  display: block;
  padding: .55rem .9rem;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  border-left: 2px solid transparent;
  transition: all .25s var(--ease);
}
.legal-nav a:hover,
.legal-nav a.active {
  color: var(--green-800);
  background: var(--mint-050);
  border-left-color: var(--mint);
}

.legal-doc { margin-bottom: 3.5rem; scroll-margin-top: 96px; }
.legal-doc:last-child { margin-bottom: 0; }
.legal-doc > h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  padding-bottom: .8rem;
  border-bottom: 3px solid var(--mint);
  display: inline-block;
  margin-bottom: .5rem;
}
.legal-doc .eff { color: var(--muted); font-size: .9rem; margin: 0 0 1.6rem; }
.legal-doc h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-800);
  margin: 1.8rem 0 .6rem;
}
.legal-doc p { color: var(--ink); margin-bottom: 1rem; }
.legal-doc ul { color: var(--ink); padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-doc ul li { margin-bottom: .45rem; }
.legal-doc address {
  font-style: normal;
  color: var(--ink);
  line-height: 1.7;
  background: var(--paper-alt);
  border-left: 3px solid var(--mint);
  padding: 1rem 1.3rem;
  border-radius: 0 10px 10px 0;
}
.legal-doc strong { color: var(--green-800); }

@media (max-width: 767.98px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav {
    position: static;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    background: #fff;
  }
}

/* Independent legal page: single centered column */
.legal-article { max-width: 820px; margin: 0 auto; }
.legal-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--green-700);
  margin-bottom: 1.6rem;
}
.legal-back:hover { color: var(--green-900); }

/* ---------- Splash (first visit of the day) ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1000px 520px at 50% 32%, var(--mint-050) 0%, transparent 62%),
    #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.splash.is-hiding { opacity: 0; visibility: hidden; }
.splash-seen #splash { display: none; }

/* Green + white gulls behind the logo — 70% height, 20% alpha */
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/birds-green.svg"), url("../assets/birds-white.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, calc(50% - 14px) calc(50% - 14px);
  background-size: auto 70%, auto 70%;
  opacity: .2;
  pointer-events: none;
  z-index: 0;
}
.splash-inner { position: relative; z-index: 1; text-align: center; padding: 1.5rem; }
.splash-logo {
  /* logo.svg has only a viewBox (no intrinsic px size); a definite width
     prevents it collapsing to 0 inside the flex overlay.
     min(40vw, 52.8vh) keeps width ≤ 40vw AND height ≤ 50vh (aspect ≈ 1.056). */
  width: min(40vw, 52.8vh);
  height: auto;
  max-width: 40vw;
  max-height: 50vh;
  display: block;
  margin: 0 auto;
  animation: splashPop 1s var(--ease) both;
}
body.splash-lock { overflow: hidden; }

@keyframes splashPop {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; }
}

/* ---------- Decorative gulls on white sections ---------- */
.section--deco { position: relative; overflow: hidden; }
.section--deco > .container { position: relative; z-index: 1; }
.deco-birds {
  position: absolute;
  width: min(30vw, 340px);
  opacity: .05;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.deco-tr { top: 6%;  right: -3%; }
.deco-tl { top: 8%;  left: -4%;  transform: scaleX(-1); }
.deco-br { bottom: 4%; right: -3%; }
.deco-bl { bottom: 6%; left: -4%;  transform: scaleX(-1); }

/* Gulls on legal pages' white content area */
.legal-section { position: relative; overflow: hidden; }
.legal-section > .container { position: relative; z-index: 1; }
.legal-section::after {
  content: "";
  position: absolute;
  bottom: 4%; right: -3%;
  width: min(28vw, 300px);
  aspect-ratio: 439 / 336;
  background: url("../assets/birds-green.svg") no-repeat center / contain;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}

/* Footer logo → replays the intro splash */
.footer-logo-trigger { display: inline-block; cursor: pointer; }
.footer-logo-trigger img { transition: transform .3s var(--ease); }
.footer-logo-trigger:hover img { transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-top: .8rem;
    box-shadow: var(--shadow-md);
  }
  .navbar .nav-link { margin: .2rem 0; }
}
@media (max-width: 575.98px) {
  .hero-statement { font-size: 1.1rem; }
  .brand-logo { height: 34px; }
}
