/* ==========================================================================
   ShipShape CBT · holding page
   Palette sampled from the ShipShape CBT logo
   ========================================================================== */

:root {
  --steel-900: #2F4858;   /* body text, footer */
  --steel-800: #3E6A82;   /* headings, hover */
  --steel-700: #4F7F99;   /* buttons, links */
  --steel-600: #6D96AA;   /* wordmark colour in the logo */
  --sky-300:   #8CBBD7;   /* sail, waves */
  --sky-100:   #D6E8F1;
  --mint-300:  #B0D7D4;   /* brain */
  --mint-100:  #E5F4F1;   /* logo background */
  --mint-50:   #F2F9F7;
  --sand-300:  #C9C5B2;   /* hull / wave accent */
  --sand-100:  #EEEBE0;
  --sand-50:   #F8F6F0;
  --ink-700:   #4A5D6B;
  --ink-500:   #7A8A96;
  --line:      #D8E6EA;
  --white:     #FFFFFF;
  --danger:    #B4232C;
  --success:   #1E7F4F;

  --font-display: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(47, 72, 88, .05), 0 2px 6px rgba(47, 72, 88, .05);
  --shadow-md: 0 14px 36px -14px rgba(47, 72, 88, .28);
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--steel-800); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; color: var(--steel-800); }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; 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(--steel-900); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  font-family: var(--font-display); line-height: 1.2;
}
.btn:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 3px; }
.btn--primary { background: var(--steel-700); color: var(--white); box-shadow: 0 8px 20px -10px rgba(79, 127, 153, .9); }
.btn--primary:hover { background: var(--steel-800); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: var(--white); color: var(--steel-700); border-color: var(--sky-300); }
.btn--ghost:hover { background: var(--sky-100); color: var(--steel-800); border-color: var(--steel-600); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Header ----------------------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--steel-600); text-decoration: none; }
.brand:hover { color: var(--steel-700); }
.brand__mark { width: 64px; height: auto; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; line-height: 1; }
.brand__name em { font-style: normal; }

.header-email { color: var(--steel-700); text-decoration: none; font-size: .95rem; font-weight: 500; }
.header-email:hover { color: var(--steel-800); text-decoration: underline; }
@media (max-width: 560px) { .header-email { display: none; } .brand__mark { width: 52px; } .brand__name { font-size: 1.2rem; } }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 420px at 90% 10%, rgba(140, 187, 215, .35), transparent 65%),
    radial-gradient(600px 400px at 5% 100%, rgba(201, 197, 178, .28), transparent 60%),
    linear-gradient(180deg, var(--mint-100) 0%, var(--mint-50) 100%);
}
.hero__inner {
  position: relative; display: grid; gap: 36px; align-items: center;
  padding: clamp(40px, 7vw, 88px) 0 clamp(96px, 12vw, 150px);
}
@media (min-width: 880px) { .hero__inner { grid-template-columns: 7fr 5fr; gap: 48px; } }

.hero__logo { order: -1; justify-self: center; width: min(240px, 60vw); }
@media (min-width: 880px) { .hero__logo { order: 0; width: min(100%, 440px); justify-self: end; } }
.hero__logo img { width: 100%; filter: drop-shadow(0 18px 30px rgba(47, 72, 88, .12)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--sky-100); box-shadow: var(--shadow-sm);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-700);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-300); box-shadow: 0 0 0 4px rgba(140, 187, 215, .3); }

.hero h1 {
  color: var(--steel-800); font-size: clamp(2.2rem, 4.4vw, 3.3rem); font-weight: 600; letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero h1 br { display: none; }
@media (min-width: 640px) { .hero h1 br { display: inline; } }
.lede { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--ink-700); max-width: 580px; margin-bottom: 32px; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 879px) { .hero__copy { text-align: center; } .hero__actions { justify-content: center; } .lede { margin-inline: auto; } }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: clamp(40px, 7vw, 90px); display: block; }
.hero__wave path { fill: var(--white); }

/* Section helpers --------------------------------------------------------- */
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -.015em; margin-bottom: 14px; }
.section-title--center { text-align: center; }
.section-intro { text-align: center; color: var(--ink-700); max-width: 580px; margin: 0 auto 44px; }

/* Credentials ------------------------------------------------------------ */
.credentials { background: var(--white); padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }

.cred-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cred-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px 28px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cred-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sky-100); }
.cred-card__logo {
  height: 84px; display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.cred-card__logo img { max-height: 56px; width: auto; max-width: 100%; }
.cred-card__title { font-size: 1.15rem; }
.cred-card__body { color: var(--ink-700); font-size: .97rem; margin: 0; }

/* Pillars ---------------------------------------------------------------- */
.pillars { padding: clamp(48px, 7vw, 88px) 0; background: var(--sand-50); border-top: 1px solid var(--sand-100); border-bottom: 1px solid var(--sand-100); }
.pillar-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillar h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.pillar p { color: var(--ink-700); margin: 0; font-size: .97rem; }
.pillar__icon {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: var(--mint-100); color: var(--steel-700); border: 1px solid var(--mint-300);
}
.pillar__icon svg { width: 24px; height: 24px; }

/* Contact ---------------------------------------------------------------- */
.contact {
  padding: clamp(56px, 8vw, 100px) 0;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(140, 187, 215, .25), transparent 60%),
    var(--mint-100);
}
.contact__inner { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 5fr 6fr; gap: 72px; } }

.contact__copy p { color: var(--ink-700); }
.contact__note { font-size: .95rem; padding: 14px 16px; background: var(--white); border-left: 3px solid var(--sky-300); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.contact__urgent { font-size: .95rem; color: var(--ink-700) !important; }

.contact__form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); border: 1px solid var(--line); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--steel-900); }
.field__optional { font-weight: 400; color: var(--ink-500); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--steel-900);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--steel-600); box-shadow: 0 0 0 4px rgba(140, 187, 215, .3); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field__error { margin: 0; font-size: .88rem; color: var(--danger); }

.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--steel-700); }
.field--check label { font-weight: 400; font-size: .93rem; color: var(--ink-700); }
.field--check .field__error { grid-column: 1 / -1; }

/* Honeypot: hidden from humans, visible to bots. Not display:none (some bots skip those). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.turnstile-slot:empty { display: none; }

.form__status { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; }
.form__status--success { background: #E6F4EC; color: var(--success); border: 1px solid #BFE3CD; }
.form__status--error { background: #FBEAEB; color: var(--danger); border: 1px solid #F2C2C6; }
.form__noscript { font-size: .92rem; color: var(--ink-700); margin: 0; }

/* Privacy ---------------------------------------------------------------- */
.privacy { padding: clamp(40px, 6vw, 64px) 0; }
.privacy__inner { max-width: 760px; }
.privacy h2 { font-size: 1.4rem; margin-bottom: 12px; }
.privacy p { color: var(--ink-700); font-size: .97rem; margin: 0; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--steel-900); color: rgba(255, 255, 255, .8); padding: 44px 0; font-size: .93rem; }
.site-footer__inner { display: grid; gap: 8px; text-align: center; justify-items: center; }
.site-footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--white); margin: 0; }
.site-footer__brand em { font-style: normal; color: var(--sky-300); }
.site-footer__meta { margin: 0; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.site-footer__meta a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer__meta a:hover { color: var(--white); text-decoration: underline; }
.site-footer__legal { margin: 6px 0 0; color: rgba(255, 255, 255, .55); font-size: .85rem; }

/* Spinner inside submit button ------------------------------------------- */
.btn.is-loading .btn__label::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: var(--white); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
