/* ================================
   Base & Reset
================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --primary: #0f766e;
  --primary-soft: #ccfbf1;
  --primary-dark: #0b4f49;
  --accent: #f97316;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --transition-fast: 0.15s ease-out;
  --max-width: 1080px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ================================
   Layout
================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding-bottom: 3rem;
}

section {
  padding: 3rem 0;
}

/* ================================
   Header & Navigation
================================== */

header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast),
    transform var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary);
  background: #ecfeff;
}

.nav-links a.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 600;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: #ecfeff;
  border-color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.42);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: rgba(15, 118, 110, 0.3);
}

.btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary-dark);
}

/* ================================
   Hero (Home)
================================== */

.hero {
  padding: 3rem 0 3.5rem;
  background: radial-gradient(circle at top left, #e0f2fe, #f9fafb);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.eyebrow span {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.highlight {
  color: var(--primary-dark);
}

.hero-lead {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.hero-note {
  font-size: 0.83rem;
  color: var(--muted);
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-card-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.hero-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card-list {
  margin: 0.75rem 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-card-badge {
  margin-top: 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  background: #fefce8;
  border: 1px solid #facc15;
  font-size: 0.82rem;
  color: #854d0e;
}

/* Stats */

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.stat {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ================================
   Sections & Cards
================================== */

.section-header {
  text-align: left;
  margin-bottom: 1.9rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}

.section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Two-column layout */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 1.6rem;
  align-items: flex-start;
}

/* Resources grid */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.resource-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1rem;
  border: 1px solid var(--border);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.resource-item h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.resource-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.resource-item:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

/* Highlight box */

.highlight-box {
  border-radius: var(--radius-md);
  background: #fefce8;
  border: 1px solid #facc15;
  padding: 0.8rem 0.9rem;
  font-size: 0.87rem;
  color: #854d0e;
}

/* Pills & badges */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.8rem;
  background: #e5e7eb;
  color: #111827;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #ecfeff;
  color: var(--primary-dark);
  border: 1px solid rgba(34, 197, 235, 0.35);
}

/* ================================
   Commitments & Steps
================================== */

.commitments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.commitment {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border);
}

.commitment-label {
  font-size: 0.8rem;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.commitment-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.commitment p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Step list */

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-list li {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content {
  font-size: 0.9rem;
  color: var(--muted);
}

.step-content span {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

/* ================================
   Healthy Man Cooking Styles
================================== */

.cook-hero {
  padding: 3rem 0 3rem;
  background: radial-gradient(circle at top left, #fffbeb, #ffffff);
}

.cook-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
}

.cook-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.recipe-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.recipe-steps {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ================================
   FAQ
================================== */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem 1rem;
}

.faq-item h4 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ================================
   Forms (Join Page)
================================== */

.form-card {
  margin-top: 0.5rem;
}

form {
  margin-top: 0.4rem;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.form-group small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.7);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row-inline {
  display: flex;
  gap: 0.75rem;
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 0.25rem;
}

/* ================================
   Footer
================================== */

.footer {
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-dark);
}

/* ================================
   Responsive
================================== */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    position: static;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 2.3rem;
  }

  .section-header {
    text-align: left;
  }

  .form-row-inline {
    flex-direction: column;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
