/* landing.css - Clean external stylesheet for the weight-loss landing page */

/* Preheader icon sizing and mobile alignment tweaks */
.preheader img {
  height: 3em !important;  /* Desktop icon size */
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .preheader {
    font-size: 0.875rem;   /* Smaller font for tablet */
    line-height: 1.2;      /* Tighter line spacing */
    align-items: center;    /* Ensure icon stays inline */
    flex-wrap: nowrap;
  }
  .preheader img {
    height: 2em !important; /* Tablet icon size */
  }
}

@media (max-width: 768px) {
  .preheader {
    font-size: 0.75rem;     /* Smaller preheader on mobile */
    line-height: 1.2;
    align-items: center;
    flex-wrap: nowrap;
  }
  .preheader img {
    height: 2em !important; /* Mobile icon size */
  }
}

/* Reset & Global Styles */
html {
  font-size: 18px; /* Base font size for accessibility */
}
body {
  margin: 0;
  padding: 0;
  background: #d3d8de;
  font-family: Arial, sans-serif;
  color: #000;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 960px; /* Width increased by 20% */
  margin: 0 auto;
  background: #fff;
  padding: 40px 80px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Center hero image (purple-peel-exploit.png) */
header > img {
  display: block;
  margin: 20px auto;
  width: 75%; /* Scaled down by 25% */
  height: auto;
  border-radius: 8px;
}

/* Section Spacing */
header,
section,
footer {
  margin-bottom: 30px;
}

/* Headings */
h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-align: center;
}

/* Preheader with inline icon */
.preheader {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #000;
  margin-bottom: 1rem;
  border: 1px dotted #000;
  padding: 0.5em;
}
.preheader img {
  order: -1;
  height: 3em !important;  /* Desktop icon size enforced */
  width: auto !important;
  margin-right: 0.5em;
  vertical-align: middle;
  flex-shrink: 0;      /* Prevent shrinking */
}

/* Paragraphs */
p {
  font-size: 1rem;
  margin: 1rem 0;
}

/* Highlighted Text */
.highlight {
  background: #fffae6;
  padding: 12px;
  margin: 20px 0;
  display: block;
  font-size: 1rem;
  border-radius: 4px;
}

/* Video Wrapper */
.video-wrapper {
  text-align: center;
  margin: 20px 0;
}
.video-wrapper img {
  max-width: 75%; /* scale down by 25% */
  width: 75%;
  border-radius: 8px;
  height: auto;
}

/* Call-to-Action Wrapper */
.cta-wrapper {
  text-align: center;
  margin: 20px 0;
}

/* CTA Button */
.cta {
  display: inline-block;
  background: #3d56b0;
  color: #fff;
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
}

/* Testimonials */
.testimonials {
  font-style: italic;
  font-size: 1rem;
  margin-top: 50px;
}

/* Urgency Banner */
.urgency {
  background: #fffae6;
  color: #000;
  text-align: center;
  padding: 12px;
  margin: 20px 0;
  font-size: 1rem;
}

/* References */
.references {
  font-size: 0.875rem;
  color: #666;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
}
footer p {
  font-size: 0.75rem;
  margin: 0.5rem 0;
}
footer p:first-of-type {
  font-size: 1rem;
}
footer .policy-links {
  font-size: 0.875rem;
  margin: 0.5rem 0 1rem;
}

/* Tablet adjustments (<=1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 30px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .cta {
    padding: 14px 28px;
    font-size: 1.25rem;
  }
  .video-wrapper img {
    width: 90%;
    max-width: none;
  }
  header > img {
    width: 50%; /* hero image smaller on tablet */
  }
  .preheader img {
    height: 2em;
  }
}

/* Mobile adjustments (<=768px) */
@media (max-width: 768px) {
  html {
    font-size: 20px;
  }
  .container {
    padding: 20px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .cta {
    padding: 12px 24px;
    font-size: 1.25rem;
  }
  .cta-wrapper {
    margin: 30px 0 10px;
  }
  .video-wrapper img {
    width: 100%;
  }
  header > img {
    width: 60%; /* hero image responsive on mobile */
  }
  .preheader {
    flex-direction: row;
    align-items: center;
    line-height: 1.2; /* tighter line spacing */
    font-size: 0.875rem; /* smaller font for mobile preheader */
  }
  .preheader img {
    height: 2em;
  }
}
  .container {
    padding: 20px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .cta {
    padding: 12px 24px;
    font-size: 1.25rem;
  }
  .cta-wrapper {
    margin: 30px 0 10px;
  }
  .video-wrapper img {
    width: 100%;
  }
  header > img {
    width: 60%; /* hero image responsive on mobile */
  }
  .preheader img {
    height: 2em;
  }
}

/* Larger devices (>=1440px) slight scaling */
@media (min-width: 1440px) {
  .container {
    max-width: 1100px;
  }
}

/* Tablet adjustments (≤1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 15px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .cta {
    padding: 14px 28px;
    font-size: 1rem;
  }
  .video-wrapper img {
    width: 90%;
  }
  .preheader {
    font-size: 0.875rem;   /* smaller preheader text */
    line-height: 1.2;      /* tighter wrap */
    flex-wrap: nowrap;     /* keep icon & text on one line */
  }
  .preheader img {
    height: 2em !important;  /* tablet icon size */
  }
}

/* Mobile adjustments (≤768px) */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .cta {
    padding: 12px 24px;
    font-size: 1rem;
  }
  .cta-wrapper {
    margin: 30px 0 10px;
  }
  .video-wrapper img {
    width: 100%;
  }
  .preheader {
    font-size: 0.75rem;    /* even smaller for phones */
    line-height: 1.2;      /* tighter wrap */
    flex-wrap: nowrap;
    align-items: center;   /* vertical center */
  }
  .preheader img {
    height: 2em !important; /* mobile icon size */
    margin-right: 0.5em;
    margin-bottom: 0;
  }
}
