/* =========================
   PimpMy - Minimal CSS
   For: header + hero + newsletter + footer
   ========================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #0e0e0e;
  background: #fff;
}

/* Layout wrapper */
.wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* =========================
   Header
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid #eee;
}

.site-header .wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand img {
  width: 28px;
  height: 42px;
  object-fit: cover;
  border-radius: 2px;
}

.site-header nav a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

.site-header nav a:hover { text-decoration: underline; }

/* =========================
   Hero
   ========================= */
.hero {
  min-height: 60vh;              /* controls height */
  display: flex;
  align-items: center;  
  padding: 48px 0 32px;
}

.hero.bg {
  position: relative;
  isolation: isolate;
  background: url("assets/hero-bg.png") center / cover no-repeat;
}

/* Overlay without making text transparent */
.hero.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 20% 10%,
    rgba(0,0,0,0.22) 0%,
    rgba(0,0,0,0.42) 60%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 36px;
  align-items: center;
}

.hero-media img {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: block;
  margin: 0 auto;
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow: 6px 8px 18px rgba(0,0,0,0.45);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  text-shadow:
    2px 3px 6px rgba(0,0,0,0.55),
    0 0 8px rgba(0,0,0,0.45);
}

.tagline {
  margin: 0;
  font-size: 1.08rem;
  color: #fff;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #111;
  background: transparent;
  color: #111;
}

.btn.primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn.primary:hover { background: #222; }

/* =========================
   Newsletter / MailerLite embed
   ========================= */
.newsletter {
  padding: 28px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fbfbfb;
}

.newsletter h2 {
  margin: 0 0 12px;
}

.newsletter .aside {
  margin: 12px 0;
  color: #555;
  font-size: 0.95rem;
}

/* Row with email + button */
.newsletter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.form-control {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 240px;
  font-size: 0.98rem;
}

/* Opt-in line */
.nl-optin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #555;
  font-size: 0.86rem;
}

/* Success box shown by your success function */
.ml-form-successBody {
  text-align: left;
  background: #e8fff1;
  border: 1px solid #3fbf7f;
  color: #125233;
  padding: 12px 14px;
  border-radius: 6px;
}

.ml-form-successContent h4 {
  margin: 0 0 4px;
}

.ml-form-successContent p {
  margin: 0;
}

/* Keep MailerLite embed from doing weird centering */
.ml-form-embedContainer,
.ml-form-embedWrapper,
.ml-form-embedBody,
.ml-form-embedContent,
.ml-form-embedContainer form {
  width: 100%;
  max-width: 560px;
}

/* Force MailerLite form left alignment */

.ml-form-embedContainer,
.ml-form-embedWrapper,
.ml-form-embedBody,
.ml-form-embedContent,
.ml-form-embedContainer form {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start !important;
}

.newsletter-row.left-align {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: wrap;
}

.nl-optin.left-align {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start !important;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  padding: 18px 0;
  border-top: 1px solid #eee;
  background: #fff;
}

.foot-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   Responsive
   ========================= */

/* Tablets and down */
@media (max-width: 960px) {
  .hero-grid { 
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .hero {
    min-height: 70vh;
    padding: 36px 0 26px;
  }

  .hero-media img {
    max-width: 320px;
    margin: 0 auto 16px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .hero {
    min-height: 45vh;        /* THIS is your "50-ish height" zone */
    padding: 28px 0 20px;
  }

  .hero-media img {
    max-width: 240px;        /* width limit preserves the effect */
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .tagline {
    font-size: 1rem;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .hero {
    min-height: 40vh;
  }

  .hero-media img {
    max-width: 220px;
  }
}

/* Realign image on mobile (right-centric) */
/* Mobile hero background positioning */
@media (max-width: 768px) {
  .hero.bg {
    background-position: 70% center !important;
  }
}

