/* Rohi MEAL System — marketing site styles */

:root {
  --color-brand-900: #2A0C0D;
  --color-brand-800: #411314;
  --color-brand-700: #522324;
  --color-accent: #f57c00;
  --color-accent-dark: #d96700;
  --color-ink: #1c1414;
  --color-ink-soft: #5a4c4c;
  --color-paper: #ffffff;
  --color-paper-alt: #faf4f2;
  --color-border: #ece0dd;
  --shadow-card: 0 12px 32px rgba(42, 12, 13, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(42, 12, 13, 0.14);
  --radius: 16px;
  --container-width: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 124, 0, 0.35);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(245, 124, 0, 0.4);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--large {
  padding: 16px 34px;
  font-size: 16px;
}

.btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand__name {
  font-weight: 800;
  font-size: 18px;
  color: var(--color-brand-800);
}

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

.nav a:not(.btn) {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-ink-soft);
  transition: color 0.15s ease;
}

.nav a:not(.btn):hover {
  color: var(--color-brand-800);
}

.nav .btn--primary {
  box-shadow: none;
  background: var(--color-brand-800);
}

.nav .btn--primary:hover {
  background: var(--color-brand-900);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--color-brand-800);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 12, 13, 0.75) 0%, rgba(42, 12, 13, 0.88) 60%, var(--color-brand-900) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 720px;
}

.eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
}

.hero__lead {
  color: #f3e7e4;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sections */

.section {
  padding: 96px 0;
}

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

.section__title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  text-align: center;
  margin: 0 0 16px;
  color: var(--color-brand-900);
}

.section__subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--color-ink-soft);
  font-size: 17px;
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pillar__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-brand-900);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 20px;
}

.pillar h3 {
  margin: 0 0 10px;
  font-size: 19px;
  color: var(--color-ink);
}

.pillar p {
  margin: 0;
  font-size: 15px;
  color: var(--color-ink-soft);
}

/* Modules */

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--color-paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.module-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.module-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-accent-dark);
}

.module-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.module-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--color-ink-soft);
}

/* Steps */

.steps {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

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

.step--reverse .step__image {
  order: 2;
}

.step--reverse .step__body {
  order: 1;
}

.step__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.step__number {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.step__body h3 {
  margin: 0 0 14px;
  font-size: 24px;
  color: var(--color-brand-900);
}

.step__body p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 16px;
}

/* Access callout */

.access-callout {
  text-align: center;
}

.access-callout .section__subtitle {
  margin-bottom: 0;
}

/* CTA */

.cta {
  background: linear-gradient(135deg, var(--color-brand-800) 0%, var(--color-brand-900) 100%);
  padding: 88px 0;
}

.cta__inner {
  text-align: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(26px, 3.5vw, 34px);
  margin: 0 0 14px;
}

.cta p {
  color: #f3e7e4;
  font-size: 17px;
  margin: 0 0 32px;
}

/* Footer */

.site-footer {
  background: var(--color-brand-900);
  padding: 40px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand--footer .brand__name {
  color: #fff;
}

.site-footer__copy {
  color: #cbb9b6;
  font-size: 14px;
  margin: 0;
}

.site-footer__link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}

.site-footer__link:hover {
  text-decoration: underline;
}

/* Scroll-reveal animation */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .step,
  .step--reverse {
    grid-template-columns: 1fr;
  }

  .step--reverse .step__image,
  .step--reverse .step__body {
    order: initial;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav .btn {
    margin-top: 16px;
    align-self: flex-start;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .modules {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 560px;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
