/* ---------- Design tokens (matched to the original Lovable build) ---------- */
:root {
  --background: 40 25% 97%;
  --foreground: 220 20% 12%;
  --primary: 195 35% 28%;
  --primary-foreground: 40 25% 97%;
  --secondary: 40 15% 92%;
  --secondary-foreground: 220 20% 12%;
  --muted: 40 12% 93%;
  --muted-foreground: 220 10% 46%;
  --accent: 38 65% 52%;
  --accent-foreground: 220 20% 12%;
  --border: 40 15% 88%;
  --card: 0 0% 100%;
  --radius: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1em;
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: hsl(var(--secondary-foreground));
  transition: color 0.15s ease;
}
.main-nav a:not(.btn):hover { color: hsl(var(--primary)); }
.main-nav a.active { color: hsl(var(--primary)); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: hsl(var(--foreground));
  margin: 4px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--secondary)); }
.btn-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: 0 0 0 0 hsl(var(--accent) / 0.5);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px hsl(var(--accent) / 0.55);
  opacity: 1;
}
.btn-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: hsl(var(--foreground));
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
  background: hsl(var(--background));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.jpg") center / cover no-repeat;
  opacity: 0.5;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { color: hsl(var(--primary)); font-style: italic; }
.hero-sub {
  font-size: 1.2rem;
  color: hsl(var(--secondary-foreground));
  max-width: 640px;
  margin: 0 auto 1em;
}
.hero-note {
  font-size: 0.98rem;
  color: hsl(var(--muted-foreground));
  max-width: 620px;
  margin: 0 auto 2em;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 3.5em;
}

/* ---------- Logo marquee ---------- */
.logo-strip { padding: 8px 0 4px; overflow: hidden; }
.logo-strip-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.2em;
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track { display: flex; gap: 64px; padding-right: 64px; }
.marquee span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  color: hsl(var(--muted-foreground) / 0.6);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: hsl(var(--secondary) / 0.5); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5em; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-head p { color: hsl(var(--muted-foreground)); font-size: 1.08rem; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
}
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.card p { color: hsl(var(--muted-foreground)); font-size: 0.96rem; margin: 0; }

/* ---------- Numbered steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step { position: relative; }
.step-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: hsl(var(--accent));
  margin-bottom: 0.3em;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.step p { color: hsl(var(--muted-foreground)); font-size: 0.96rem; }

/* ---------- Callout / closing statement ---------- */
.callout {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  max-width: 760px;
  margin: 0 auto;
  color: hsl(var(--foreground));
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: calc(var(--radius) + 8px);
  padding: 64px 32px;
}
.cta-band h2 { color: hsl(var(--primary-foreground)); }
.cta-band p { color: hsl(var(--primary-foreground) / 0.85); max-width: 520px; margin: 0 auto 1.8em; }
.cta-band .btn-primary {
  background: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 80px 0 56px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); max-width: 820px; margin: 0 auto; }
.page-hero p { max-width: 640px; margin: 0.6em auto 0; font-size: 1.1rem; color: hsl(var(--muted-foreground)); }

/* ---------- Prose (long-form philosophy copy) ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: hsl(var(--secondary-foreground));
}
.prose p { margin-bottom: 1.4em; }

/* ---------- Placements list ---------- */
.placements {
  list-style: none;
  padding: 0;
  margin: 0 auto 3em;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.placements li {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 600;
  text-align: center;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 760px; margin: 0 auto; border-top: 1px solid hsl(var(--border)); }
.accordion-item { border-bottom: 1px solid hsl(var(--border)); }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.accordion-trigger .chevron { transition: transform 0.2s ease; flex-shrink: 0; margin-left: 16px; }
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.accordion-panel p { padding: 0 4px 22px; color: hsl(var(--muted-foreground)); margin: 0; }

/* ---------- Form ---------- */
.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 6px);
  padding: 40px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.98rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid hsl(var(--primary) / 0.4);
  outline-offset: 1px;
}
.file-drop {
  border: 1.5px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}
.file-drop.has-file { border-color: hsl(var(--primary)); color: hsl(var(--foreground)); }
.field-hint { font-size: 0.82rem; color: hsl(var(--muted-foreground)); margin-top: 6px; }
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
.form-status.success { display: block; background: hsl(150 40% 92%); color: hsl(150 40% 22%); }
.form-status.error { display: block; background: hsl(0 60% 94%); color: hsl(0 55% 32%); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.7em; }
.footer-grid a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 24px;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sticky mobile apply bar ---------- */
.sticky-apply {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: hsl(var(--background) / 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid hsl(var(--border));
}
.sticky-apply .btn { width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 72px 0 0 0; background: hsl(var(--background)); flex-direction: column; padding: 24px; gap: 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 48px; }
  section { padding: 64px 0; }
  .form-card { padding: 28px 22px; }
  .sticky-apply.show { display: block; }
  body { padding-bottom: 68px; }
}
