/* ============================================================
   LUNCHBOX.KIDS — CONTACT
   Loads AFTER styles.css + home.css
   Cream base. Two audiences, visually distinguished:
     · parents/fans  → teal + mint accent
     · brands/partners → periwinkle accent
   ============================================================ */

/* ---- HERO ---- */
.contact-hero { background: var(--cream); padding-bottom: 56px; }
.contact-hero .sec-head { margin-bottom: 32px; }
.contact-intro {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 48px;
  align-items: start;
}
.contact-intro h1 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--navy);
  text-wrap: balance;
}
.contact-intro h1 .up { font-style: normal; }
.contact-intro h1 .alt { color: var(--peri-dark); font-style: italic; }
.contact-intro .lede { max-width: 420px; padding-top: 10px; }
@media (max-width: 860px) {
  .contact-intro { grid-template-columns: 1fr; gap: 22px; align-items: start; }
}

/* ---- SPLIT: the two audiences ---- */
.contact-split-section { background: var(--cream); padding-top: 8px; padding-bottom: 104px; }
.contact-split {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; gap: 24px; }
}

.contact-card {
  position: relative;
  border-radius: 20px;
  padding: 44px 40px 40px;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* PARENTS / FANS — cream (brand base), teal accents */
.contact-card.for-parents {
  background: var(--cream);
  border-color: rgba(41,177,143,.3);
}

/* BRANDS / PARTNERS — periwinkle-soft (brand token) */
.contact-card.for-brands {
  background: var(--peri-soft);
  border-color: rgba(86,84,191,.3);
}

/* card header */
.cc-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.cc-badge {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.cc-badge svg { width: 27px; height: 27px; }
.for-parents .cc-badge { background: var(--teal); color: var(--cream); }
.for-brands .cc-badge { background: var(--peri-dark); color: var(--cream); }

.cc-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.for-parents .cc-kicker { color: var(--teal); }
.for-brands .cc-kicker { color: var(--peri-dark); }

.cc-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -.8px;
  color: var(--navy);
}

.cc-copy {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 24px;
  max-width: 42ch;
}

/* "good to include" chips */
.cc-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.cc-list li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--ink-mid);
  background: rgba(18,52,87,.05);
  border: 1px solid var(--rule);
  padding: 7px 12px;
  border-radius: 100px;
}
.for-brands .cc-list li { background: rgba(248,244,236,.6); border-color: rgba(86,84,191,.2); }

/* ---- FORM ---- */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cf-field input,
.cf-field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid rgba(18,52,87,.16);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .18s, box-shadow .18s, background .18s;
  resize: vertical;
}
.for-parents .cf-field input,
.for-parents .cf-field textarea { background: var(--cream); }
.for-brands .cf-field input,
.for-brands .cf-field textarea { background: rgba(248,244,236,.7); border-color: rgba(86,84,191,.22); }
.cf-field textarea { min-height: 108px; line-height: 1.6; }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(18,52,87,.38); }
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 6px 22px -16px rgba(18,52,87,.5);
  background: var(--cream);
}
.for-parents .cf-field input:focus,
.for-parents .cf-field textarea:focus { border-color: var(--teal); }
.for-brands .cf-field input:focus,
.for-brands .cf-field textarea:focus { border-color: var(--peri-dark); }

.cf-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cf-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cf-note .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.for-parents .cf-note .dot { background: var(--teal); }
.for-brands .cf-note .dot { background: var(--peri-dark); }

.contact-form .cta-btn { padding: 11px 11px 11px 22px; font-size: 11px; }
.for-brands .contact-form .cta-btn { background: var(--peri-dark); }
.for-brands .contact-form .cta-btn:hover { background: #46449c; }
.for-brands .contact-form .cta-btn .disc { background: var(--peri); color: var(--peri-dark); }
.for-brands .contact-form .cta-btn:hover .disc { background: var(--cream); }

/* submitted state — swap form for a friendly confirmation */
.contact-form.submitted { display: none; }
.cc-success {
  display: none;
  margin-top: auto;
  padding: 26px;
  border-radius: 16px;
  background: rgba(18,52,87,.04);
  border: 1px dashed rgba(18,52,87,.22);
}
.contact-form.submitted + .cc-success { display: block; }
.cc-success .s-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 6px;
}
.cc-success p { font-family: var(--sans); font-size: 13.5px; color: var(--ink-mid); line-height: 1.6; }
.for-parents .cc-success { border-color: rgba(41,177,143,.4); }
.for-brands .cc-success { border-color: rgba(86,84,191,.4); }

/* ---- direct-line strip under each card ---- */
.cc-direct {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--ink-mid);
}
.cc-direct a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.for-parents .cc-direct a:hover { color: var(--teal); }
.for-brands .cc-direct a:hover { color: var(--peri-dark); }
.for-brands .cc-direct { border-top-color: rgba(86,84,191,.2); }

@media (max-width: 480px) {
  .contact-card { padding: 30px 24px 28px; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ---- closing: other ways ---- */
.contact-other {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  padding-top: 64px;
  padding-bottom: 80px;
}
.contact-other-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.contact-other h3 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 46px;
  letter-spacing: -.6px;
  color: var(--navy);
}
.contact-other p { font-family: var(--sans); font-size: 14px; color: var(--ink-mid); margin-top: 4px; }
.contact-socials { display: flex; gap: 12px; }
.contact-socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--mint);
  transition: background .18s, color .18s, transform .18s, border-color .18s;
}
.contact-socials a:hover { background: var(--peri-dark); color: var(--mint); transform: translateY(-3px); border-color: var(--peri-dark); }
.contact-socials a svg { width: 20px; height: 20px; }
