/* ==========================================================================
   Stillbloom — design tokens
   ========================================================================== */
:root {
  --color-primary: #19878e;
  --color-primary-dark: #0f6469;
  --gradient-cta: linear-gradient(120deg, #146d73, #19878e);
  --gradient-text: linear-gradient(100deg, #19878e, #2fd9b0);

  --color-bg: oklch(0.99 0.003 200);
  --color-bg-alt: oklch(0.97 0.01 195);
  --color-pill-bg: oklch(0.95 0.03 195);

  --color-text: oklch(0.22 0.02 220);
  --color-text-secondary: oklch(0.4 0.02 220);
  --color-muted: oklch(0.5 0.01 220);
  --color-muted-2: oklch(0.55 0.01 220);

  --color-border: oklch(0.92 0.01 200);
  --color-border-2: oklch(0.88 0.01 200);

  --color-footer-bg: oklch(0.16 0.015 220);
  --color-footer-text: oklch(0.85 0.005 220);
  --color-footer-muted: oklch(0.65 0.01 220);
  --color-footer-border: oklch(0.28 0.015 220);
  --color-footer-copy: oklch(0.5 0.01 220);

  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --page-padding: 56px;
  --content-max: 1280px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--color-primary); color: #fff; }

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-pill-bg);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: 0 12px 24px -10px oklch(0.5 0.1 195 / 0.55); }

.btn-outline {
  border-color: var(--color-border-2);
  color: oklch(0.25 0.02 220);
  background: transparent;
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-white {
  background: #fff;
  color: #146d73;
  font-weight: 700;
  padding: 16px 32px;
  white-space: nowrap;
}
.btn-white:hover { background: oklch(0.95 0.01 195); color: #146d73; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.25); }

.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, oklch(0.93 0.02 195), oklch(0.93 0.02 195) 12px, oklch(0.96 0.015 195) 12px, oklch(0.96 0.015 195) 24px);
}
.placeholder-box span {
  font-family: monospace;
  font-size: 13px;
  color: oklch(0.45 0.02 195);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--page-padding);
}

.site-header .logo img { height: 28px; }

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: oklch(0.35 0.02 220);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link.active { color: var(--color-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 110px var(--page-padding) 90px;
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-copy { flex: 1; min-width: 340px; }
.hero-copy h1 {
  font-weight: 800;
  font-size: 58px;
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.hero-copy h1 .accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media {
  flex: 1;
  min-width: 320px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 80px var(--page-padding); }
.section-alt { background: var(--color-bg-alt); }

.split {
  display: flex;
  gap: 64px;
  align-items: center;
  flex-wrap: wrap;
}
.split-media {
  flex: 1;
  min-width: 320px;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-copy { flex: 1; min-width: 340px; }
.split-copy h2 {
  font-weight: 800;
  font-size: 36px;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.split-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 20px;
  max-width: 460px;
}
.split-copy p:last-child { margin-bottom: 0; }

.mission {
  padding: 100px var(--page-padding);
  text-align: center;
}
.mission-inner { max-width: 760px; margin: 0 auto; }
.mission h2 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-section { padding: 0 var(--page-padding) 110px; }
.cta-band {
  max-width: 900px;
  margin: 0 auto;
  background: var(--gradient-cta);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cta-band:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px oklch(0.3 0.1 195 / 0.45);
}
.cta-band-copy { max-width: 440px; }
.cta-band h2 {
  font-weight: 800;
  font-size: 30px;
  color: #fff;
  margin: 0 0 12px;
}
.cta-band p {
  font-size: 16px;
  color: oklch(0.95 0.01 195);
  margin: 0;
}

/* ==========================================================================
   Page intro (Careers / Contact headers)
   ========================================================================== */
.page-intro {
  padding: 100px var(--page-padding) 70px;
  text-align: center;
}
.page-intro-inner { max-width: 720px; margin: 0 auto; }
.page-intro h1 {
  font-weight: 800;
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.page-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ==========================================================================
   Culture grid (Careers)
   ========================================================================== */
.culture-section { padding: 0 var(--page-padding) 90px; }
.culture-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.culture-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 32px;
}
.culture-card h3 {
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 12px;
}
.culture-card p {
  font-size: 15px;
  line-height: 1.6;
  color: oklch(0.42 0.02 220);
  margin: 0;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-section { flex: 1; padding: 90px var(--page-padding) 110px; }
.contact-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}
.contact-info { flex: 1; min-width: 280px; }
.contact-info h1 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.contact-info > p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0 0 40px;
  max-width: 400px;
}
.info-blocks { display: flex; flex-direction: column; gap: 24px; }
.info-block .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.info-block .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.info-block address {
  font-style: normal;
  font-size: 16px;
  color: oklch(0.3 0.02 220);
}
.info-block .socials { display: flex; gap: 16px; }
.info-block .socials a { font-size: 15px; font-weight: 600; }

.form-card {
  flex: 1;
  min-width: 340px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px -30px oklch(0.3 0.05 220 / 0.3);
}
.form-fields { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span.field-label { font-size: 13px; font-weight: 600; color: oklch(0.35 0.02 220); }

.field-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin-top: 4px; }
.field input,
.field textarea {
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: oklch(0.6 0.01 220); }
.field input:focus,
.field textarea:focus { border-color: var(--color-primary); }
.field textarea { resize: vertical; }
.field .field-error {
  font-size: 13px;
  color: #c0392b;
  display: none;
}
.field.has-error input,
.field.has-error textarea { border-color: #c0392b; }
.field.has-error .field-error { display: block; }

.form-submit {
  margin-top: 8px;
  width: 100%;
}
.form-submit[disabled] { opacity: 0.7; cursor: not-allowed; }

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}
.form-status.success {
  display: block;
  background: oklch(0.95 0.05 155);
  color: oklch(0.35 0.1 155);
}
.form-status.error {
  display: block;
  background: oklch(0.95 0.05 25);
  color: oklch(0.4 0.15 25);
}

/* ==========================================================================
   Legal pages (Terms / Privacy)
   ========================================================================== */
.legal-section { flex: 1; padding: 80px var(--page-padding) 110px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-inner h1 {
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.legal-updated {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0 0 48px;
}
.legal-inner h2 {
  font-weight: 700;
  font-size: 21px;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.legal-inner p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px var(--page-padding) 40px;
}
.footer-columns {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 24px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-footer-muted);
  margin: 0;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-2);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a,
.footer-contact a,
.footer-contact span {
  color: var(--color-footer-text);
  font-size: 14px;
}
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  max-width: var(--content-max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-footer-border);
  font-size: 13px;
  color: var(--color-footer-copy);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --page-padding: 32px; }
  .hero-copy h1 { font-size: 46px; }
  .culture-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --page-padding: 20px; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 0; width: 100%; }

  .hero { padding: 48px 20px 56px; flex-direction: column; }
  .hero-copy { min-width: 0; width: 100%; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 17px; max-width: none; }
  .hero-media { min-width: 0; width: 100%; }

  .section { padding: 56px 20px; }
  .split { flex-direction: column; }
  .split-media { min-width: 0; max-width: none; width: 100%; }
  .split-copy { min-width: 0; width: 100%; }
  .split-copy p { max-width: none; }

  .mission { padding: 56px 20px; }
  .mission h2 { font-size: 26px; }

  .cta-section { padding: 0 20px 64px; }
  .cta-band { padding: 36px; flex-direction: column; text-align: center; }
  .cta-band-copy { max-width: none; }

  .page-intro { padding: 56px 20px 40px; }
  .page-intro h1 { font-size: 32px; }

  .culture-section { padding: 0 20px 56px; }
  .culture-grid { grid-template-columns: 1fr; }

  .contact-section { padding: 48px 20px 64px; }
  .contact-layout { flex-direction: column; gap: 48px; }
  .contact-info { min-width: 0; width: 100%; }
  .contact-info > p { max-width: none; }
  .form-card { min-width: 0; width: 100%; padding: 28px; box-sizing: border-box; }

  .legal-section { padding: 48px 20px 64px; }
  .legal-inner h1 { font-size: 30px; }

  .footer-columns { flex-direction: column; gap: 40px; }
}

@media (max-width: 375px) {
  .hero-copy h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}

/* ==========================================================================
   Animations (Home page)
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Above-the-fold hero: animates in on load, no scroll trigger needed. */
.hero-animate {
  animation: fadeInUp 0.8s ease both;
}
.hero-animate.hero-animate-delay {
  animation-delay: 0.15s;
}
.hero-media img {
  animation: floatY 6s ease-in-out infinite;
  animation-delay: 1s;
}
.hero-copy h1 .accent {
  background-size: 200% auto;
  animation: gradientShift 6s ease-in-out infinite;
}

/* Below-the-fold sections: fade/rise in as they enter the viewport
   (see assets/js/main.js, which toggles .is-visible via IntersectionObserver). */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-delay-1.is-visible {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate,
  .hero-media img,
  .hero-copy h1 .accent {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn,
  .cta-band {
    transition: none !important;
  }
}
