/* The Solution Jar Inc — Marketing Page */

:root {
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --cobalt: #b32624;
  --cobalt-light: #e8a5a4;
  --mint: #e8b84a;
  --mint-light: #f5e6c8;
  --bg: #faf9f7;
  --bg-alt: #fff;
  --border: #e8e6e3;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.2s ease;
  --animate-duration: 0.6s;
  --animate-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

/* Offset scroll targets so sticky header doesn't cover content */
section[id] {
  scroll-margin-top: 6rem; /* ~96px, matches header height */
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--animate-duration) var(--animate-ease),
    transform var(--animate-duration) var(--animate-ease);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children (cards, steps) */
.card-grid .card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.card-grid .card.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.card-grid .card.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.card-grid .card.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.card-grid .card.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.steps .step.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.steps .step.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.steps .step.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.steps .step.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo img {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-primary {
  background: var(--cobalt);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #9a1f1d;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* Hero */
.hero {
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 20px;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 0 24px;
}

.philosophy-intro {
  max-width: 720px;
  margin: 0 0 48px;
}

.philosophy-intro p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.philosophy-intro p:last-child {
  margin-bottom: 0;
}

.philosophy-intro strong {
  color: var(--ink);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-light);
  color: var(--cobalt);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.card p {
  font-size: 16px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* Image cards */
.card-image {
  padding: 0;
  overflow: hidden;
}

.card-image-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-image:hover .card-image-wrap img {
  transform: scale(1.03);
}

.card-body {
  padding: 24px;
}

.card-tags {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--cobalt);
}

.step-num {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--cobalt);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.step p {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* CTA */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%);
  color: white;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
}

.cta-content p {
  margin: 0;
  opacity: 0.9;
  font-size: 17px;
}

.cta .btn-primary {
  background: var(--mint);
  color: var(--ink);
}

.cta .btn-primary:hover {
  background: #f0c85a;
}

/* Footer */
.footer {
  padding: 32px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    background: white;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content p {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .section {
    padding: 56px 0;
  }

  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}
