/* Star Cloud Shipping LLC — one-page site */

:root {
  --navy-900: #0B1B3A;
  --navy-800: #102650;
  --navy-700: #16326A;
  --blue: #3D59CC;          /* logo wordmark */
  --blue-600: #3049B3;
  --sky: #1B8BBA;
  --teal: #33D8DD;          /* hull stripe */
  --teal-700: #0E8F99;
  --coral: #FF4C4C;         /* hull */
  --amber: #FFC06C;         /* containers */
  --ink: #14213D;
  --text: #43506B;
  --muted: #6B7790;
  --line: #E1E7F2;
  --tint: #F3F6FC;
  --white: #FFFFFF;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 58, .06), 0 2px 8px rgba(11, 27, 58, .05);
  --shadow: 0 10px 30px rgba(11, 27, 58, .09);
  --header-h: 76px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Alegreya", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { padding: .6em 1.15em; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(61, 89, 204, .28); }
.btn-primary:hover { background: var(--blue-600); color: var(--white); transform: translateY(-1px); }
.btn-accent { background: var(--teal); color: var(--navy-900); box-shadow: 0 6px 20px rgba(51, 216, 221, .25); }
.btn-accent:hover { background: #5CE3E7; color: var(--navy-900); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11, 27, 58, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); }
.brand img { width: 60px; height: auto; }
.brand-name { font: 800 1.45rem/1 var(--font-brand); letter-spacing: 0; white-space: nowrap; }
.brand:hover { color: var(--blue); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  position: relative; padding: 8px 14px; color: var(--ink); font-weight: 600; font-size: .9688rem; border-radius: 8px;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; position: relative;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { content: ""; left: 0; top: -7px; }
.nav-toggle .bars::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  :root { --header-h: 66px; }
  .brand img { width: 50px; }
  .brand-name { font-size: 1.25rem; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11, 27, 58, .08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin: 16px 0 0; }
}
@media (max-width: 360px) {
  .brand-name span { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #C9D5EE;
  background:
    radial-gradient(1200px 500px at 80% 110%, rgba(51, 216, 221, .14), transparent 60%),
    linear-gradient(180deg, #08142E 0%, #0D2149 55%, #17366F 100%);
  /* the ship's top sits ~18vw above the hero's bottom edge; keep the text clear of it */
  padding: clamp(64px, 10vw, 120px) 0 clamp(260px, calc(18vw + 110px), 580px);
}
.hero-stars {
  position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 22% 42%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 34% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 46% 30%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 58% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 66% 36%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(2px 2px at 74% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 82% 44%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 90% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 6% 50%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 52% 52%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 96% 6%, rgba(255,255,255,.8) 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
.hero-stars::after {
  /* soft cloud bank */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px 90px at 78% 30%, rgba(255, 255, 255, .06), transparent 70%),
    radial-gradient(360px 70px at 20% 62%, rgba(255, 255, 255, .05), transparent 70%);
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.hero-content { position: relative; max-width: 1200px; }
.hero h1 {
  color: var(--white); font-weight: 800; max-width: 15ch;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.1rem); line-height: 1.07; letter-spacing: -.03em;
}
.hero-lead { max-width: 56ch; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: #C9D5EE; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .9688rem; }
.hero-contacts li { display: flex; align-items: center; gap: 8px; }
.hero-contacts .ico { color: var(--teal); }
.hero-contacts a { color: #E3EAF8; }
.hero-contacts a:hover { color: var(--white); text-decoration: underline; }

.hero-scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(250px, 30.6vw, 700px); z-index: -1; }
.hero-scene .beacon { animation: beacon 2.4s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.hero-scene .ship { animation: bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 3px; rotate: -.6deg; }
}
@media (max-width: 760px) {
  /* the scene is cropped to its centre on narrow screens, so bring the ship into view */
  .hero { padding-bottom: 210px; }
  .hero-scene { height: 190px; }
  .hero-scene .ship { transform: translate(440px, 166px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stars, .hero-scene .ship, .hero-scene .beacon { animation: none; }
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: 14px;
}
.eyebrow .num {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px;
  border-radius: 6px; background: rgba(51, 216, 221, .16); color: var(--teal-700); letter-spacing: .04em;
}
.eyebrow-light { color: var(--teal); }
.eyebrow-light .num { color: var(--teal); background: rgba(51, 216, 221, .14); }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.1875rem; color: var(--text); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--sky)); color: var(--white); margin-bottom: 22px;
}
.pillar-icon .ico { width: 26px; height: 26px; }
.pillar-num { position: absolute; top: 22px; right: 26px; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--tint); }
.pillar h3 { font-size: 1.3rem; }
.pillar p { flex: 1; }
.pillar-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }
.pillar-link .ico { width: 1em; height: 1em; transition: transform .2s; }
.pillar:hover .pillar-link .ico { transform: translateX(4px); }

@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-reverse .split-text { order: 2; }
.split-text .btn { margin-top: 12px; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 0; }
}

/* Feature list */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.features h3 { margin-bottom: .25em; font-size: 1.0625rem; }
.features p { margin: 0; font-size: .9688rem; }
.feature-icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 12px; background: rgba(61, 89, 204, .1); color: var(--blue);
}
.feature-icon .ico { width: 22px; height: 22px; }

/* Commercial cards */
.commercial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.card .feature-icon { margin-bottom: 18px; }
.card h3 { font-size: 1.25rem; }
.card p:last-child { margin-bottom: 0; }
.card-lg { background: linear-gradient(180deg, var(--white), var(--tint)); }
.card-lg .feature-icon { background: var(--blue); color: var(--white); }
@media (max-width: 760px) { .commercial-grid { grid-template-columns: 1fr; } }

/* Dark section */
.section-dark {
  position: relative; overflow: hidden; color: #B9C6E2;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(61, 89, 204, .35), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(51, 216, 221, .14), transparent 60%),
    var(--navy-900);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lead { color: #D5DEF0; }
.features-dark li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.features-dark p { color: #B9C6E2; }
.features-dark .feature-icon { background: rgba(51, 216, 221, .14); color: var(--teal); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why { padding-top: 22px; border-top: 2px solid var(--line); }
.why .ico { width: 30px; height: 30px; color: var(--blue); margin-bottom: 16px; }
.why p { margin: 0; font-size: .9688rem; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list h3 { margin-bottom: .15em; font-size: 1rem; }
.contact-list a { font-weight: 600; word-break: break-word; }
.text-link { display: inline-block; margin-top: 6px; font-size: .9375rem; }

/* Contact chart graphic (stands in for the form for now; form styles below are kept for when it returns) */
.contact { align-items: center; }
.contact-visual {
  margin: 0; background: var(--navy-900); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); color: var(--white);
}
.contact-visual .chart { width: 100%; height: auto; }
.chart text { font-family: var(--font); }
.chart-sea-label { fill: #33D8DD; fill-opacity: .5; font-size: 13px; font-weight: 700; font-style: italic; letter-spacing: .5em; }
.chart-city { fill: #FFFFFF; font-size: 15px; font-weight: 800; letter-spacing: .18em; paint-order: stroke; stroke: #0B1B3A; stroke-width: 4px; stroke-linejoin: round; }
.chart-area { fill: #E3EAF8; font-size: 12px; font-weight: 600; paint-order: stroke; stroke: #0B1B3A; stroke-width: 4px; stroke-linejoin: round; }
.chart-pulse { transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.4s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.chart-route { animation: route-flow 1.6s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -15; } }
@media (prefers-reduced-motion: reduce) { .chart-pulse, .chart-route { animation: none; } }
.contact-visual figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  padding: 20px clamp(20px, 3vw, 28px); border-top: 1px solid rgba(255, 255, 255, .08);
}
.contact-visual figcaption strong { display: block; font-size: 1rem; color: var(--white); }
.cv-label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--teal); }

.contact-form {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.contact-form > h3 { font-size: 1.375rem; margin-bottom: 1em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .875rem; color: var(--ink); margin-bottom: 6px; }
.field label span { color: var(--coral); }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #D3DBEA; background: #FBFCFE; color: var(--ink);
  font: 500 1rem/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2314213D' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(61, 89, 204, .15); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--coral); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--muted); margin: 18px 0; }
.form-note a { color: inherit; text-decoration: underline; }
/* Google allows hiding the badge when the reCAPTCHA notice is shown next to the form */
.grecaptcha-badge { visibility: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-ok { color: #0B7A55; }
.form-status.is-error { color: #C62F2F; }

/* Footer */
.site-footer { background: var(--navy-900); color: #9FB0D2; padding: 64px 0 28px; font-size: .9688rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h3 { color: var(--white); font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #D5DEF0; }
.site-footer a:hover { color: var(--teal); }
.brand-light { color: var(--white); margin-bottom: 16px; }
.brand-light:hover { color: var(--white); }
.brand-light .brand-name span { color: var(--teal); }
.footer-brand p { max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .875rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
