/* ---------- Sojourn marketing site ---------- */
/* Palette mirrors portal.sojournapi.com for product cohesion. */

:root {
  --primary: #0177b5;
  --primary-hover: #006bff;
  --primary-dark: #004863;
  --success: #01aa34;
  --bg: #edf6f6;
  --surface: #ffffff;
  --neutral: #f8f8f8;
  --border: #d9e4ea;
  --text: #1a2330;
  --text-muted: #5a6975;
  --text-soft: #7a8895;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 47, 0.05);
  --shadow-md: 0 6px 24px rgba(16, 32, 47, 0.08);

  --max-width: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 1rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text); }
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 56ch; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section + .section { border-top: 1px solid var(--border); }
.section--tint { background: var(--surface); }

/* Section with a photographic background, treated like the closing band:
   50% black overlay (matches portal.sojournapi.com convention). */
.section--banner {
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    var(--banner-image) center / cover no-repeat;
}
.section--banner h2,
.section--banner h3,
.section--banner h4 { color: #fff; }
.section--banner p,
.section--banner .lede { color: rgba(255, 255, 255, 0.94); }
/* col-cards inside a banner section keep their normal interior colors —
   the white-overlay treatment is only for section-level lede / headings. */
.section--banner .col-card { color: var(--text); }
.section--banner .col-card h2,
.section--banner .col-card h3,
.section--banner .col-card h4 { color: var(--primary-dark); }
.section--banner .col-card p,
.section--banner .col-card .muted,
.section--banner .col-card .lede { color: var(--text-muted); }
.section--banner + .section { border-top: none; }

/* ---------- Utility bar (top) ---------- */
.utility-bar {
  background: var(--primary-dark);
  color: #cfe2ee;
  font-size: 0.85rem;
}
.utility-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 38px;
  gap: 24px;
}
.utility-bar a { color: #ffffff; }
.utility-bar a:hover { color: #cfe2ee; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.brand:hover { text-decoration: none; opacity: 0.85; }
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
}
.site-nav .nav-cta:hover { background: var(--primary-hover); color: #fff; }

/* Hamburger toggle — hidden on desktop, visible below 760px */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-header .container { position: relative; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 8px 0 16px;
  }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a {
    display: block;
    padding: 16px var(--gutter);
    font-size: 1.05rem;
  }
  .site-nav .nav-cta {
    margin: 14px var(--gutter) 4px;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}
.btn--secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn--secondary:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--primary);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--primary-hover); text-decoration: underline; }

/* ---------- Hero ---------- */
/* Mirroring portal.sojournapi.com: the hero JPEG is the pre-darkened
   "full-dark" variant, so no CSS overlay is applied on top. */
.hero,
.page-hero {
  position: relative;
  color: #fff;
  background: url("/assets/images/hero.jpg") center / cover no-repeat;
  background-attachment: scroll;
}
.hero { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 112px); }
.hero h1,
.page-hero h1 { color: #fff; max-width: 22ch; }
.hero p.lede,
.page-hero p.lede {
  margin-top: 1rem;
  font-size: 1.2rem;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.94);
}
.hero p.lede a,
.page-hero p.lede a { color: #fff; text-decoration: underline; }
.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* Buttons inside hero — secondary swaps to a translucent light treatment */
.hero .btn--secondary,
.page-hero .btn--secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero .btn--secondary:hover,
.page-hero .btn--secondary:hover {
  background: #fff;
  color: var(--primary-dark);
}
.hero .btn--ghost,
.page-hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover { color: rgba(255, 255, 255, 0.85); }

/* ---------- Two-column grid ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .three-col { grid-template-columns: 1fr; }
}

.col-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.col-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.4em;
}
.col-card .col-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.col-card ul {
  padding: 0;
  list-style: none;
  margin: 0 0 24px;
}
.col-card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
}
.col-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 16px; height: 16px;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17l-3.88-3.88L3.7 13.7 9 19l11-11-1.42-1.41z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17l-3.88-3.88L3.7 13.7 9 19l11-11-1.42-1.41z'/></svg>") center / contain no-repeat;
}

/* ---------- Numbered steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-family: "Lora", Georgia, serif;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}
.step h4 { margin: 0 0 8px; color: var(--primary-dark); }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Closing band ---------- */
/* Mirroring portal.sojournapi.com: the kitchen banner uses a flat 50% black
   overlay (#00000080) — no blue tint. */
.closing {
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/images/kitchen.jpg") center / cover no-repeat;
}
.closing h2 {
  color: #fff;
  font-style: italic;
  font-weight: 400;
  max-width: 24ch;
  margin: 0 auto 28px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.closing .btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.closing .btn--secondary:hover {
  background: #fff;
  color: var(--primary-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #cfe2ee;
  padding: 56px 0 32px;
}
.site-footer a { color: #ffffff; }
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.site-footer h5 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.95rem; }
.site-footer .footer-brand {
  margin-bottom: 16px;
  line-height: 1;
}
.site-footer .footer-brand img {
  height: 60px;
  width: auto;
  display: block;
  /* Logo prints red; against navy footer, knock it slightly toward white for cohesion */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.site-footer .footer-tagline {
  color: #a6c3d4;
  font-size: 0.95rem;
  max-width: 36ch;
}
.site-footer .footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #a6c3d4;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .site-footer .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Page-specific helpers ---------- */
.page-hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 7vw, 88px);
}
.page-hero .hero-tag { margin-bottom: 16px; }

.content-block {
  max-width: 760px;
  margin: 0 auto;
}
.content-block h2 { margin-top: 1.5em; }
.content-block h2:first-child { margin-top: 0; }
.content-block ul { padding-left: 1.2em; }
.content-block li { margin-bottom: 8px; }

.callout {
  background: rgba(1, 119, 181, 0.05);
  border-left: 3px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.97rem;
  color: var(--text-muted);
}

/* ---------- Legal pages (privacy, terms) ---------- */
.legal { font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.legal p { margin: 0 0 1.1em; }
.legal h2 {
  font-size: 1.35rem;
  margin: 2.2em 0 0.6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  color: var(--primary-dark);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.2em; }
.legal h3 {
  font-size: 1.05rem;
  margin: 1.6em 0 0.4em;
  color: var(--primary-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.legal ul { padding-left: 1.4em; margin: 0 0 1.1em; }
.legal li { margin-bottom: 0.5em; }
.legal .muted em {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}

/* ---------- Onboard page (single-purpose) ---------- */
.onboard-shell {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.onboard-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.onboard-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.onboard-main {
  padding: clamp(40px, 6vw, 72px) 0;
}
.onboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.onboard-card h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 0.4em; }
.onboard-card .lede { margin-bottom: 28px; }
.onboard-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 60px 24px;
  text-align: center;
  background: var(--neutral);
  color: var(--text-muted);
}
.onboard-placeholder code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

/* ---------- Small helpers ---------- */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
