/* ==========================================================================
   Micah Metabolic — shared styles
   Palette pulled from the guide PDFs (guides/*.html) so the site matches
   the brand used in the lead-magnet itself.
   ========================================================================== */

:root {
  --navy: #1F3A5F;
  --navy-deep: #142943;
  --teal: #2E8B8B;
  --teal-dark: #226868;
  --coral: #E07856;
  --coral-dark: #C15F3F;
  --cream: #F4F1EC;
  --white: #FFFFFF;
  --dark: #2B2B2B;
  --gray: #5A5A5A;
  --line: rgba(31, 58, 95, 0.14);
  --shadow: 0 20px 50px rgba(31, 58, 95, 0.14);
  --content-edge-x: clamp(20px, 6vw, 80px);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---- Site header --------------------------------------------------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 20px var(--content-edge-x);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: clamp(0.86rem, 3.6vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.wordmark span {
  color: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.98rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--navy);
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--teal-dark);
}

/* ---- Hero banner ----------------------------------------------------- */

.hero-banner {
  width: 100%;
  line-height: 0;
  background: var(--cream);
}

.hero-banner img {
  width: 100%;
  height: auto;
}

.hero-banner-desktop {
  display: none;
}

.hero-banner-mobile {
  display: block;
}

@media (min-width: 768px) {
  .hero-banner-desktop {
    display: block;
  }

  .hero-banner-mobile {
    display: none;
  }
}

/* ---- Signup section --------------------------------------------------- */

.section-signup {
  padding: clamp(44px, 7vw, 76px) var(--content-edge-x);
  background: var(--cream);
}

.signup-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}

.signup-eyebrow {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.signup-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
}

.signup-sub {
  margin: 0 auto 28px;
  max-width: 46ch;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.12rem);
  line-height: 1.5;
  color: var(--gray);
}

.email-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid var(--navy);
}

.email-shell input {
  flex: 1 1 55%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 17px 22px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  outline: none;
}

.email-shell input[name="name"] {
  flex-basis: 34%;
  border-left: 1px solid var(--line);
}

.email-shell input::placeholder {
  color: rgba(90, 90, 90, 0.65);
}

.email-shell button {
  flex: 0 0 auto;
  padding: 0 30px;
  border: 0;
  background: var(--coral);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.email-shell button:hover {
  background: var(--coral-dark);
}

.email-shell button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.signup-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.signup-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--gray);
}

.signup-status--success {
  color: var(--teal-dark);
  font-weight: 600;
}

.signup-status--error {
  color: var(--coral-dark);
  font-weight: 600;
}

.signup-fineprint {
  margin: 18px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(90, 90, 90, 0.85);
}

.signup-fineprint a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 640px) {
  .email-shell {
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .email-shell input {
    flex-basis: 100%;
  }

  .email-shell input[name="name"] {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .email-shell button {
    flex-basis: 100%;
    padding: 15px;
  }
}

/* ---- "What's inside" highlights --------------------------------------- */

.section-highlights {
  padding: clamp(40px, 6vw, 68px) var(--content-edge-x);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.highlights-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.highlights-inner h2 {
  margin: 0 0 30px;
  text-align: center;
  font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

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

.highlight-item {
  text-align: center;
  padding: 22px 14px;
}

.highlight-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

.highlight-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.highlight-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--gray);
}

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

/* ---- Generic content page (contact / legal / 404) --------------------- */

.content-page {
  padding: clamp(44px, 7vw, 84px) var(--content-edge-x);
  background: var(--cream);
  min-height: 50vh;
}

.content-page-inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 52px);
}

.content-page-inner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.content-page-updated {
  margin: 0 0 28px;
  font-size: 0.86rem;
  color: var(--gray);
}

.content-page-inner h2 {
  margin: 32px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.content-page-inner p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
}

.content-page-inner ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--dark);
  line-height: 1.7;
}

.content-page-inner a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.content-page-lede {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 24px;
}

/* Contact form */

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--dark);
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  justify-self: start;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button[type="submit"]:hover {
  background: var(--coral-dark);
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.contact-form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--gray);
}

.contact-form-status--success {
  color: var(--teal-dark);
  font-weight: 600;
}

.contact-form-status--error {
  color: var(--coral-dark);
  font-weight: 600;
}

/* 404 page */

.error-code {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  margin: 0 0 8px;
}

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(244, 241, 236, 0.88);
  padding: 36px var(--content-edge-x) 32px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-footer-links a,
.site-footer-links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: rgba(244, 241, 236, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer-links a:hover,
.site-footer-links button:hover {
  color: var(--white);
  border-bottom-color: var(--coral);
}

.site-footer-links a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--coral);
}

.site-footer-tagline {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(244, 241, 236, 0.68);
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px var(--content-edge-x);
    justify-content: center;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.88rem;
  }
}
