/*
Theme Name: MillionToysBook (OnePress Child)
Theme URI: https://www.milliontoysbook.com/
Template: onepress
Description: Child theme for milliontoysbook.com — homepage rebuild for conversion (book hero + lead capture + Book schema). Safe from OnePress updates.
Version: 0.1.0
Author: Valentine Moroz
Text Domain: onepress-child
*/

/* --- Homepage rebuild ----------------------------------------------------- */

.mtb-home { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.mtb-home section { padding: 64px 0; }
.mtb-home .mtb-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.mtb-hero { background: linear-gradient(180deg,#fffdf6 0%, #fff 100%); }
.mtb-hero .mtb-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.mtb-hero h1 { font-size: 46px; line-height: 1.12; margin: 0 0 18px; color: #1a1a1a; font-weight: 800; letter-spacing: -0.01em; }
.mtb-hero .mtb-sub { font-size: 18px; line-height: 1.55; color: #333; margin: 0 0 26px; }
.mtb-hero .mtb-byline { font-size: 14px; color: #666; margin: -8px 0 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.mtb-hero .mtb-trust { font-size: 13px; color: #666; margin-top: 14px; }
.mtb-hero-cover img { width: 100%; max-width: 480px; height: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.18); border-radius: 4px; display: block; margin: 0 auto; }

/* Buttons */
.mtb-buy { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.mtb-btn { display: inline-block; padding: 14px 26px; font-size: 16px; font-weight: 700; text-decoration: none; border-radius: 6px; transition: transform 0.08s ease, background 0.15s ease; line-height: 1.2; }
.mtb-btn:hover { transform: translateY(-1px); text-decoration: none; }
.mtb-btn-amazon { background: #FF9900; color: #111 !important; border: 1px solid #e88a00; }
.mtb-btn-amazon:hover { background: #ffb84d; color: #111 !important; }
.mtb-btn-shop { background: #2c3e50; color: #fff !important; }
.mtb-btn-shop:hover { background: #34495e; color: #fff !important; }
.mtb-btn-ghost { background: transparent; color: #fff !important; border: 1.5px solid #fff; }
.mtb-btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff !important; }

/* Lead magnet */
.mtb-leadmagnet { background: #fff8e7; text-align: center; }
.mtb-leadmagnet h2 { font-size: 32px; margin: 0 0 12px; color: #1a1a1a; }
.mtb-leadmagnet > .mtb-container > p { max-width: 640px; margin: 0 auto 26px; font-size: 17px; line-height: 1.55; color: #444; }
.mtb-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 580px; margin: 0 auto; }
.mtb-form input[type=text], .mtb-form input[type=email] { flex: 1 1 200px; padding: 13px 14px; font-size: 15px; border: 1px solid #d4c89a; border-radius: 6px; background: #fff; box-sizing: border-box; }
.mtb-form input:focus { outline: none; border-color: #d04d2a; box-shadow: 0 0 0 3px rgba(208,77,42,0.15); }
.mtb-form button { padding: 13px 24px; background: #d04d2a; color: #fff; border: 0; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.mtb-form button:hover { background: #b73e1e; }
.mtb-leadmagnet .mtb-fine { font-size: 12px; color: #888; margin-top: 14px; }
.mtb-form-notice { max-width: 580px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.mtb-form-notice.ok  { background: #e6f5e6; color: #1e6b1e; }
.mtb-form-notice.err { background: #fde7e9; color: #c0392b; }

/* What kids learn */
.mtb-learn { background: #fff; text-align: center; }
.mtb-learn h2 { font-size: 32px; margin: 0 0 36px; }
.mtb-learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mtb-learn-card { padding: 22px 16px; }
.mtb-learn-card .mtb-emoji { font-size: 36px; line-height: 1; display: block; margin-bottom: 10px; }
.mtb-learn-card h3 { font-size: 18px; margin: 0 0 6px; color: #d04d2a; }
.mtb-learn-card p { font-size: 15px; color: #444; line-height: 1.5; margin: 0; }

/* Story snippet */
.mtb-story { background: #f8f6ef; }
.mtb-story .mtb-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.mtb-story h2 { font-size: 30px; margin: 0 0 14px; }
.mtb-story blockquote { font-size: 19px; line-height: 1.55; color: #2a2a2a; font-style: italic; margin: 0 0 14px; padding-left: 18px; border-left: 4px solid #d04d2a; }
.mtb-story p { font-size: 15px; color: #555; margin: 8px 0; }

/* Reviews */
.mtb-reviews { background: #fff; text-align: center; }
.mtb-reviews h2 { font-size: 32px; margin: 0 0 24px; }
.mtb-reviews .mtb-stars { color: #FF9900; font-size: 22px; letter-spacing: 2px; margin-bottom: 18px; }

/* Final CTA */
.mtb-cta { background: #2c3e50; color: #fff; text-align: center; }
.mtb-cta h2 { color: #fff; font-size: 34px; margin: 0 0 14px; }
.mtb-cta p { font-size: 17px; margin: 0 0 26px; opacity: 0.92; max-width: 620px; margin-left: auto; margin-right: auto; }
.mtb-cta .mtb-buy { justify-content: center; }

/* Mobile */
@media (max-width: 768px) {
  .mtb-home section { padding: 48px 0; }
  .mtb-hero .mtb-grid, .mtb-story .mtb-grid { grid-template-columns: 1fr; gap: 32px; }
  .mtb-hero h1 { font-size: 32px; }
  .mtb-hero-cover { order: -1; }
  .mtb-hero-cover img { max-width: 320px; }
  .mtb-learn-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mtb-leadmagnet h2, .mtb-learn h2, .mtb-story h2, .mtb-reviews h2, .mtb-cta h2 { font-size: 26px; }
}

/* --- FAQ page override styles -------------------------------------------- */
.mtb-faq { max-width: 760px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.mtb-faq-intro { font-size: 16px; color: #555; margin-bottom: 32px; }
.mtb-faq-item { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #e8e0c8; }
.mtb-faq-item:last-child { border-bottom: 0; }
.mtb-faq-item h2 { font-size: 20px; margin: 0 0 10px; color: #1a1a1a; font-weight: 700; line-height: 1.3; }
.mtb-faq-a { font-size: 15px; line-height: 1.65; color: #333; }
.mtb-faq-a a { color: #d04d2a; text-decoration: underline; }
.mtb-faq-a strong { color: #1a1a1a; }

/* --- Top social-proof bar (all pages) ------------------------------------- */
.mtb-proofbar {
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mtb-proofbar-sep { opacity: 0.5; margin: 0 6px; }
@media (max-width: 540px) {
  .mtb-proofbar-hide-sm { display: none; }
  .mtb-proofbar { font-size: 11px; padding: 6px 12px; }
}

/* --- Mobile sticky buy bar (all pages) ----------------------------------- */
.mtb-stickybar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 10px 12px;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mtb-stickybar-title {
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  min-width: 0;
}
.mtb-stickybar-btn {
  flex: 0 0 auto;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  white-space: nowrap;
}
.mtb-stickybar-amazon { background: #FF9900; color: #111 !important; }
.mtb-stickybar-shop   { background: #2c3e50; color: #fff !important; }
.mtb-stickybar-btn:hover { text-decoration: none; }

@media (max-width: 820px) {
  .mtb-stickybar { display: flex; }
  body { padding-bottom: 64px; }
}
@media (max-width: 380px) {
  .mtb-stickybar-title { font-size: 11px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
}
