/*
Theme Name: True Infopreneur — Pet Book Landing
Theme URI: https://trueinfopreneur.com/
Author: True Infopreneur
Description: A focused, navigation-free Amazon book landing page for So Your Pet Went Viral?
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ti-pet-landing
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ti-blue: #071f9a;
  --ti-bright-blue: #003cff;
  --ti-navy: #062154;
  --ti-teal: #078c76;
  --ti-orange: #ed8100;
  --ti-amazon: #ffb72d;
  --ti-line: #cbd8ed;
  --ti-soft: #f8fbff;
  --ti-copy: #344b83;
  --ti-width: 960px;
  --ti-shadow: 0 18px 45px rgba(6, 33, 84, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ti-copy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ti-bright-blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ti-wrap { width: min(var(--ti-width), calc(100% - 48px)); margin: 0 auto; }
.ti-announcement {
  min-height: 29px; display: flex; align-items: center; justify-content: center;
  padding: 5px 18px; text-align: center; color: white;
  background: linear-gradient(90deg, #07447e, #0061a5 55%, #005494);
  font-size: 13px;
}
.ti-announcement a { color: #79e8ec; margin-left: 12px; text-decoration: underline; }
.ti-brandbar { border-bottom: 1px solid #d9e1ec; background: rgba(255,255,255,.98); }
.ti-brandbar .ti-wrap { display: flex; align-items: center; justify-content: center; min-height: 76px; }
.ti-logo, .custom-logo { width: 174px; height: auto; }
.ti-main { padding: 38px 0 0; }
.ti-product-hero {
  display: grid; grid-template-columns: 365px minmax(0, 1fr) 265px;
  gap: 26px; align-items: start;
}
.ti-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.ti-thumbs { display: flex; flex-direction: column; gap: 10px; }
.ti-thumb {
  width: 74px; height: 104px; padding: 5px; overflow: hidden;
  background: white; border: 1px solid #b9cef3; border-radius: 3px; cursor: pointer;
}
.ti-thumb:hover, .ti-thumb:focus, .ti-thumb.is-active { border: 2px solid #1987ff; padding: 4px; }
.ti-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ti-thumb:nth-child(2) img { transform: perspective(220px) rotateY(-8deg); object-fit: contain; }
.ti-thumb:nth-child(3) img { object-position: 52% 67%; transform: scale(2.45); }
.ti-main-image {
  position: relative; display: flex; align-items: flex-start; justify-content: center;
  min-height: 405px; padding: 0;
}
.ti-main-image img {
  width: 274px; max-height: 410px; object-fit: contain;
  filter: drop-shadow(0 14px 15px rgba(6, 24, 56, .18));
}
.ti-large-link {
  grid-column: 2; display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 10px; color: var(--ti-bright-blue); background: none;
  border: 0; cursor: pointer;
}
.ti-summary h1 {
  margin: -5px 0 5px; color: var(--ti-blue);
  font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 5vw, 59px);
  line-height: .95; letter-spacing: -2.8px; font-weight: 700;
}
.ti-subtitle {
  margin: 0 0 5px; color: var(--ti-orange);
  font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.2;
}
.ti-byline { margin: 4px 0 12px; color: var(--ti-blue); font-weight: 700; font-size: 15px; }
.ti-rule { border: 0; border-top: 1px solid var(--ti-line); margin: 10px 0 11px; }
.ti-intro { margin: 0 0 12px; color: #24469b; font-size: 15px; line-height: 1.45; }
.ti-format-card {
  display: inline-grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center;
  min-width: 165px; padding: 9px 12px; border: 1px solid #0f68ff; border-radius: 3px;
  color: var(--ti-blue);
}
.ti-format-card svg { width: 34px; color: var(--ti-teal); }
.ti-format-card b, .ti-format-card span { display: block; }
.ti-format-card span { font-size: 12px; color: #4f67a1; }
.ti-summary h2, .ti-buybox h2, .ti-section h2, .ti-author h2 {
  color: var(--ti-navy); font-size: 18px; line-height: 1.2; margin: 14px 0 8px;
}
.ti-hero-list { margin: 0; padding-left: 20px; color: #415b99; line-height: 1.55; }
.ti-anchor-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; font-size: 13px; }
.ti-anchor-row span { color: #9aa7c2; }
.ti-buybox {
  padding: 20px 16px 18px; border: 1px solid #b9cef3; border-radius: 4px;
  background: white; box-shadow: 0 3px 12px rgba(0, 55, 150, .03);
}
.ti-buybox h2 { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ti-line); font-size: 20px; }
.ti-buy-feature {
  display: grid; grid-template-columns: 35px 1fr; gap: 10px; align-items: center;
  padding: 8px 0; color: var(--ti-blue);
}
.ti-buy-feature svg { width: 30px; color: var(--ti-teal); }
.ti-amazon-button {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; min-height: 56px; margin: 14px 0 10px; padding: 12px 16px;
  color: #111; background: linear-gradient(#ffc85b, #f2a719); border: 0;
  border-radius: 6px; box-shadow: inset 0 1px rgba(255,255,255,.55);
  font-size: 16px; font-weight: 800; cursor: pointer;
}
.ti-amazon-button:hover, .ti-amazon-button:focus { background: linear-gradient(#ffd276, #eda014); text-decoration: none; }
.ti-amazon-mark { position: relative; font: 700 30px Georgia, serif; line-height: 1; }
.ti-amazon-mark:after {
  content: ''; position: absolute; left: 0; right: -6px; bottom: -4px; height: 5px;
  border-bottom: 2px solid #111; border-radius: 50%;
}
.ti-secure { display: grid; grid-template-columns: 26px 1fr; gap: 8px; color: var(--ti-bright-blue); font-size: 12px; line-height: 1.35; }
.ti-secure svg { width: 25px; }
.ti-benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px;
  padding: 10px 0; border-top: 1px solid var(--ti-line); border-bottom: 1px solid var(--ti-line);
}
.ti-benefit {
  display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center;
  padding: 0 18px; min-height: 56px; border-right: 1px solid var(--ti-line);
}
.ti-benefit:last-child { border-right: 0; }
.ti-benefit svg { width: 45px; color: var(--ti-teal); }
.ti-benefit b { display: block; color: var(--ti-blue); font-size: 14px; }
.ti-benefit span { display: block; color: #5f73a6; font-size: 12px; line-height: 1.35; }
.ti-section { padding: 13px 20px 15px; border-bottom: 1px solid var(--ti-line); }
.ti-section h2 { margin-top: 0; }
.ti-section p { margin: 4px 0; }
.ti-learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 55px; }
.ti-learn-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.ti-check {
  display: grid; place-items: center; width: 21px; height: 21px; margin-top: 2px;
  color: white; background: var(--ti-teal); border-radius: 50%; font-weight: 700;
}
.ti-learn-item b { display: block; color: var(--ti-blue); }
.ti-learn-item span { display: block; color: #5670ab; font-size: 12px; }
.ti-included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ti-included-card {
  display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--ti-line); border-radius: 3px; min-height: 72px;
}
.ti-included-card svg { width: 42px; color: var(--ti-teal); }
.ti-included-card b { display: block; color: var(--ti-blue); }
.ti-included-card span { display: block; color: #5670ab; font-size: 12px; line-height: 1.3; }
.ti-details-author { display: grid; grid-template-columns: 1fr 1fr; }
.ti-details { padding-right: 25px; border-right: 1px solid var(--ti-line); }
.ti-details table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ti-details td { border: 1px solid var(--ti-line); padding: 3px 12px; }
.ti-details td:first-child { width: 34%; color: var(--ti-navy); }
.ti-author { padding-left: 25px; }
.ti-author h2 { margin-top: 0; }
.ti-author-inner { display: grid; grid-template-columns: 82px 1fr; gap: 16px; }
.ti-author img { width: 82px; height: 112px; object-fit: cover; }
.ti-author h3 { margin: 0 0 2px; color: var(--ti-bright-blue); font-size: 18px; }
.ti-author .role { margin: 0 0 7px; color: var(--ti-blue); font-weight: 700; }
.ti-author p { margin: 0; font-size: 12px; line-height: 1.5; }
.ti-faq { padding-bottom: 74px; }
.ti-faq h2 { color: var(--ti-bright-blue); }
.ti-faq-item { border: 1px solid var(--ti-line); border-bottom: 0; }
.ti-faq-item:last-child { border-bottom: 1px solid var(--ti-line); }
.ti-faq-question {
  display: grid; grid-template-columns: 46% 1fr 26px; width: 100%; min-height: 29px;
  padding: 4px 12px; border: 0; background: white; text-align: left; cursor: pointer;
  color: var(--ti-blue); font-size: 12px;
}
.ti-faq-question strong { color: var(--ti-navy); }
.ti-faq-chevron { font-size: 17px; text-align: center; transition: transform .2s ease; }
.ti-faq-item.is-open .ti-faq-chevron { transform: rotate(180deg); }
.ti-faq-answer { display: none; padding: 10px 12px 12px 46%; color: #5670ab; font-size: 12px; }
.ti-faq-item.is-open .ti-faq-answer { display: block; }
.ti-footer {
  background: linear-gradient(115deg, #005888, #003b86 60%, #004d94); color: white;
  min-height: 138px; padding: 21px 0;
}
.ti-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ti-footer-brand { display: flex; align-items: center; gap: 20px; }
.ti-footer .ti-logo { width: 110px; filter: brightness(0) invert(1); }
.ti-footer-tagline { font-size: 10px; opacity: .92; }
.ti-footer-legal { display: flex; gap: 16px; font-size: 11px; }
.ti-footer a { color: white; }
.ti-copyright { margin-top: 14px; font-size: 11px; opacity: .9; }
.ti-modal {
  position: fixed; inset: 0; z-index: 99999; display: none; place-items: center;
  padding: 30px; background: rgba(0, 13, 43, .88);
}
.ti-modal.is-open { display: grid; }
.ti-modal img { max-height: 88vh; width: auto; border-radius: 3px; box-shadow: var(--ti-shadow); }
.ti-modal-close {
  position: fixed; right: 25px; top: 18px; width: 44px; height: 44px; border: 0;
  border-radius: 50%; color: white; background: rgba(255,255,255,.15);
  font-size: 30px; cursor: pointer;
}
@media (max-width: 900px) {
  .ti-product-hero { grid-template-columns: 1fr 1fr; }
  .ti-buybox { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .ti-buybox h2 { grid-column: 1 / -1; }
  .ti-amazon-button, .ti-secure { grid-column: 2; }
  .ti-buy-feature { grid-column: 1; }
  .ti-benefits { grid-template-columns: 1fr 1fr; }
  .ti-benefit:nth-child(2) { border-right: 0; }
  .ti-benefit:nth-child(-n+2) { border-bottom: 1px solid var(--ti-line); }
}
@media (max-width: 680px) {
  .ti-wrap { width: min(100% - 28px, var(--ti-width)); }
  .ti-brandbar .ti-wrap { min-height: 68px; }
  .ti-main { padding-top: 24px; }
  .ti-product-hero { grid-template-columns: 1fr; }
  .ti-gallery { grid-template-columns: 56px minmax(0, 1fr); }
  .ti-thumb { width: 55px; height: 78px; }
  .ti-main-image { min-height: 355px; }
  .ti-main-image img { max-height: 355px; }
  .ti-large-link { grid-column: 2; }
  .ti-summary h1 { font-size: 46px; }
  .ti-buybox { grid-column: auto; display: block; }
  .ti-benefits { grid-template-columns: 1fr; }
  .ti-benefit { border-right: 0; border-bottom: 1px solid var(--ti-line); }
  .ti-benefit:last-child { border-bottom: 0; }
  .ti-section { padding-left: 2px; padding-right: 2px; }
  .ti-learn-grid, .ti-included-grid, .ti-details-author { grid-template-columns: 1fr; }
  .ti-details { padding-right: 0; border-right: 0; }
  .ti-author { padding: 18px 0 0; border-top: 1px solid var(--ti-line); }
  .ti-faq-question { grid-template-columns: 1fr 26px; padding: 10px 12px; }
  .ti-faq-question span:nth-child(2) { display: none; }
  .ti-faq-answer { padding: 0 40px 12px 12px; }
  .ti-footer-row { display: block; }
  .ti-footer-legal { margin-top: 20px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
