/* ============================================================
   MARKET INSIDER — Email Signup Section
   The Mother Daughter Team™ | motherdaughterteam.ca
   ============================================================ */

/* ============================================================
   SECTION SHELL
   ============================================================ */
.market-insider {
  background: #FFFFFF;
  padding: 96px 60px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(28,28,28,0.10);
}

/* Large editorial watermark behind content */
.market-insider::before {
  content: 'MARKET INSIDER';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(52px, 9vw, 130px);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,180,196,0.13);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* Thin pink top accent rule */
.market-insider::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #E8B4C4 0%, rgba(232,180,196,0.15) 100%);
}

/* ============================================================
   INNER LAYOUT
   ============================================================ */
.mi-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ============================================================
   LEFT COLUMN
   ============================================================ */
.mi-left {}

/* Eyebrow */
.mi-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(28,28,28,0.60);
  margin-bottom: 24px;
}

.mi-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: #E8B4C4;
  flex-shrink: 0;
}

/* Headline */
.mi-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 300;
  color: var(--charcoal, #1C1C1C);
  line-height: 1.1;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.mi-heading em {
  font-style: italic;
  color: #E8B4C4;
}

/* Vertical column divider */
.mi-left::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 0px);
  width: 1px;
  background: rgba(28,28,28,0.07);
}

/* ============================================================
   RIGHT COLUMN
   ============================================================ */
.mi-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Body copy */
.mi-body {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(28,28,28,0.82);
  line-height: 1.82;
  margin-bottom: 10px;
}

/* Secondary descriptor */
.mi-descriptor {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(28,28,28,0.58);
  line-height: 1.65;
  margin-bottom: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(28,28,28,0.08);
}

/* Trust note */
.mi-trust {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(28,28,28,0.52);
  letter-spacing: 0.04em;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mi-trust::before {
  content: '✓';
  color: #E8B4C4;
  font-size: 11px;
}

/* ============================================================
   INLINE EMAIL FORM
   ============================================================ */
.mi-inline-form {
  width: 100%;
}

.mi-form-row {
  display: flex;
  gap: 0;
  max-width: 460px;
}

.mi-email-input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(28,28,28,0.22);
  border-right: none;
  padding: 15px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--charcoal, #1C1C1C);
  outline: none;
  transition: border-color 0.3s;
  min-width: 0;
}

.mi-email-input::placeholder {
  color: rgba(28,28,28,0.32);
  letter-spacing: 0.03em;
}

.mi-email-input:focus {
  border-color: #E8B4C4;
  background: rgba(232,180,196,0.04);
}

.mi-submit {
  background: var(--charcoal, #1C1C1C);
  border: 1px solid var(--charcoal, #1C1C1C);
  color: #F8F4EE;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}

.mi-submit:hover {
  background: #E8B4C4;
  border-color: #E8B4C4;
  color: var(--charcoal, #1C1C1C);
}

/* ============================================================
   ENTRANCE ANIMATION
   ============================================================ */
.mi-animate {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.mi-animate.mi-visible {
  opacity: 1;
  transform: translateY(0);
}

.mi-animate-delay {
  transition-delay: 0.14s;
}

/* ============================================================
   RESPONSIVE — TABLET LANDSCAPE (1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .market-insider {
    padding: 80px 48px;
  }
}

/* ============================================================
   RESPONSIVE — TABLET PORTRAIT (820px)
   Matches site-responsive.css breakpoint
   ============================================================ */
@media (max-width: 820px) {
  .market-insider {
    padding: 72px 32px;
  }
  .mi-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mi-left::after { display: none; }
  .mi-heading { font-size: clamp(30px, 6vw, 46px); }
}

/* ============================================================
   RESPONSIVE — MOBILE (767px)
   Matches site-responsive.css breakpoint
   ============================================================ */
@media (max-width: 767px) {
  .market-insider { padding: 60px 20px; }
  .market-insider::before { font-size: clamp(22px, 7vw, 40px); letter-spacing: 0.08em; }
  .mi-heading { font-size: clamp(28px, 8vw, 40px); }
  .mi-form-row {
    flex-direction: column;
    gap: 8px;
  }
  .mi-email-input {
    border-right: 1px solid rgba(28,28,28,0.22);
    font-size: 16px;
  }
  .mi-submit {
    width: 100%;
    padding: 16px 24px;
  }
}
