/* ==========================================================================
   Tan Physics Advertorial — styles.css
   Mobile-first, responsive, PageSpeed-optimized
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --black: #000;
  --gold: #c48a3c;
  --light-gold: #e6caa7;
  --orange: #d86c4a;
  --green: #00b67a;
  --white: #fff;
  --brown: #3b2a23;
  --crystal-cut: #f9f4ec;
  --page-bg: #f3f4f6;
  --text-primary: #2b2b2b;
  --text-secondary: #4a4a4a;
  --link-blue: #263c61;
  --highlight-bg: #fff3cd;
  --warning-red: #f00;
  --pink-border: #da4b8b;
  --content-padding: 16px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--link-blue); text-decoration: underline; }
a:hover { opacity: .85; }

/* ---------- Skip Link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Publication Bar ---------- */
.pub-header {
  background: var(--light-gold);
  padding: 12px 15px;
  text-align: left;
}

.pub-header__brand {
  font-family: 'Bitter', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: .5px;
  line-height: 24px;
}

/* ---------- Page Grid (article + sidebar) ---------- */
.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 100%;
  margin: 12px auto 30px;
  padding: 0 var(--content-padding);
}

.page-grid__main {
  background: var(--white);
  min-width: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: rgb(26, 48, 83);
  font-family: 'Bitter', serif;
  padding: 16px var(--content-padding) 8px;
}

.breadcrumb__icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
  margin-right: 12px;
  flex-shrink: 0;
}

.breadcrumb a { color: rgb(26, 48, 83); text-decoration: none; font-family: 'Bitter', serif; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 6px; color: rgb(26, 48, 83); }

/* ---------- Article Header ---------- */
.article-header {
  padding: 8px var(--content-padding) 0;
}

.article-header h1 {
  font-family: 'Bitter', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-style: italic;
  color: #457584;
  margin-bottom: 12px;
}

.article-meta__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.article-meta__views { display: inline-flex; align-items: center; gap: 4px; }

/* Author + social share on same row */
.article-author-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.article-author {
  font-size: 12px;
  color: var(--black);
  line-height: 18px;
}

.article-author strong { color: var(--black); }

/* ---------- Social Share ---------- */
.social-share {
  display: flex;
  gap: 5px;
  list-style: none;
}

.social-share img {
  width: 30px;
  height: 30px;
}

/* ---------- Article Body ---------- */
.article-body {
  padding: 0 var(--content-padding);
  font-family: 'Bitter', serif;
  font-size: 20px;
  line-height: 28px;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--text-primary);
}

.article-body em { font-style: italic; }
.article-body strong { font-weight: 700; }

/* ---------- Section Headings ---------- */
.section-heading {
  font-family: 'Bitter', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
  color: var(--text-primary);
  margin: 36px 0 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.section-heading--highlight {
  background-color: #f7e57c;
  padding: 10px 14px;
}

.sub-heading {
  font-family: 'Bitter', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 14px;
}

/* ---------- Subtitle / Hook ---------- */
.subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 21px;
  font-weight: 600;
  font-style: normal;
  line-height: 26px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* ---------- As Seen On ---------- */
.as-seen-on {
  margin: 24px 0;
  text-align: center;
}

/* ---------- Banner Images ---------- */
.banner-img {
  width: 100%;
  height: auto;
  margin: 32px 0;
  border-radius: 4px;
}

/* ---------- Video Blocks ---------- */
.video-block {
  margin: 24px 0;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.video-block video {
  width: 100%;
  display: block;
}

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: var(--highlight-bg);
  padding: 20px;
  border-radius: 4px;
  margin: 20px 0;
}

/* ---------- Warning Box ---------- */
.warning-box {
  border: 2px dashed var(--warning-red);
  padding: 20px;
  margin: 24px 0;
  text-align: center;
  border-radius: 4px;
}

.warning-box p {
  color: var(--warning-red);
  font-weight: 700;
  font-size: 16px;
}

/* ---------- Three Pillars ---------- */
.pillar {
  margin: 20px 0;
  padding-left: 0;
}

.pillar__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pillar__text {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- Timeline ---------- */
.timeline {
  margin: 24px 0;
}

.timeline__step {
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.timeline__label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 6px;
}

.timeline__title {
  font-family: 'Bitter', serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* ---------- Stats ---------- */
.stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.stat {
  text-align: center;
  padding: 16px;
  background: var(--crystal-cut);
  border-radius: 4px;
}

.stat__number {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat__text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--crystal-cut);
  padding: 20px;
  border-radius: 4px;
  margin: 20px 0;
  border-left: 4px solid var(--gold);
}

.testimonial__quote {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.testimonial__author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- Pricing ---------- */
.pricing {
  text-align: center;
  margin: 28px 0;
}

.pricing__old {
  font-size: 24px;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.pricing__new {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin: 8px 0;
}

.pricing__savings {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---------- CTA Button ---------- */
.cta-btn {
  display: block;
  width: 100%;
  padding: 18px 32px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin: 24px auto;
  max-width: 500px;
  letter-spacing: .5px;
}

.cta-btn:hover {
  background: #c45e3e;
  transform: translateY(-1px);
  opacity: 1;
}

.cta-btn:active { transform: translateY(0); }

/* ---------- Guarantee ---------- */
.guarantee {
  background: var(--crystal-cut);
  border: 2px solid var(--gold);
  padding: 24px;
  border-radius: 4px;
  margin: 28px 0;
  text-align: center;
}

.guarantee__title {
  font-family: 'Bitter', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ---------- Path Choice ---------- */
.path-choice {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.path {
  padding: 20px;
  border-radius: 4px;
}

.path--negative {
  background: #fef3f3;
  border: 1px solid #e0c0c0;
}

.path--positive {
  background: #f0f9f0;
  border: 2px solid var(--green);
}

.path__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

/* ---------- PS Sections ---------- */
.ps-section {
  margin: 16px 0;
  padding: 0;
}

.ps-section strong { color: var(--text-primary); }

/* ---------- Comments Section ---------- */
.comments-section {
  margin: 40px 0 0;
  padding: 0 var(--content-padding);
}

/* Social share row — centered above comments */
.social-share--centered {
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.social-share--centered img {
  width: 48px;
  height: 48px;
}

/* Fake comment input */
.comment-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 16px;
}

.comment {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.comment--reply {
  margin-left: 32px;
  grid-template-columns: 40px 1fr;
}

.comment__avatar {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

.comment--reply .comment__avatar {
  width: 40px;
  height: 40px;
}

.comment__name {
  font-weight: 700;
  font-size: 14px;
  color: #365899;
  margin-bottom: 4px;
}

.comment__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.comment__photo {
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}

.comment__meta {
  font-size: 12px;
  color: #365899;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment__likes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.comment__likes img {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Results Showcase ---------- */
.results-showcase {
  margin: 0;
  padding: 0;
}

.results-showcase__intro {
  text-align: center;
  margin-bottom: 32px;
}

.results-showcase__intro h2 {
  font-family: 'Bitter', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.result-card {
  margin-bottom: 32px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--crystal-cut);
}

.result-card img {
  width: 100%;
  height: auto;
}

.result-card__body {
  padding: 20px;
}

.result-card__location {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
}

.result-card__quote {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
}

.result-card__cta {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

/* ---------- CTA Text Link ---------- */
.cta-text-link {
  text-align: center;
  margin: 24px 0 8px;
}

.cta-text-link a {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: underline;
}

.limited-qty {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #e74c3c;
  margin-bottom: 16px;
}

/* ---------- Internet-Only Offer Box ---------- */
.internet-offer-box {
  text-align: center;
  border: 2px solid var(--text-primary);
  padding: 24px var(--content-padding);
  margin: 32px 0 16px;
}

.internet-offer-box__title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.internet-offer-box img {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.internet-offer-box__label {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.internet-offer-box__price {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0;
}

/* ---------- Reader Offer Bar ---------- */
.reader-offer-bar {
  text-align: center;
  background: #fef9c3;
  border: 1px solid #c48a3c;
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.reader-offer-bar__label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #c0392b;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px var(--content-padding) 80px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}

.site-footer__inner {
  max-width: 100%;
}

.site-footer p { margin-bottom: 12px; color: #999; }

.footer-links {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  list-style: none;
}

.footer-links a {
  color: #999;
  font-size: 12px;
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 16px;
  color: #bbb;
}

/* ---------- Signoff ---------- */
.signoff {
  text-align: left;
  margin: 24px 0;
  font-size: inherit;
  color: var(--text-primary);
}

.signoff strong {
  display: block;
  font-family: 'Bitter', serif;
  font-size: 16px;
  color: var(--text-primary);
  margin-top: 4px;
}

/* ---------- Bullet List ---------- */
.article-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-body ul li {
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* ---------- Featured Testimonial (with photo) ---------- */
.featured-testimonial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
  background: var(--crystal-cut);
  border-radius: 4px;
  overflow: hidden;
}

.featured-testimonial img {
  width: 100%;
  height: auto;
}

.featured-testimonial__content {
  padding: 20px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  display: none;
}

.sidebar__inner {
  background: var(--white);
  padding: 12px 10px 24px;
  border-radius: 1px;
}

.sidebar__block {
  margin-bottom: 20px;
}

.sidebar__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.sidebar__img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.sidebar__disclaimer {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
}

/* Sidebar result cards (compact) */
.sidebar .result-card {
  margin-bottom: 20px;
  border-radius: 2px;
}

.sidebar .result-card__body {
  padding: 12px 10px;
}

.sidebar .result-card__quote {
  font-size: 13px;
  line-height: 1.5;
}

.sidebar .result-card__cta {
  font-size: 13px;
}

/* ---------- Sticky Bottom CTA Bar ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--white);
  padding: 10px;
  text-align: center;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: .35s;
  box-shadow: 0 -2px 8px rgba(0,0,0,.1);
}

.sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta .cta-btn {
  margin: 0 auto;
  max-width: 400px;
  font-size: 16px;
  padding: 12px 24px;
}

/* ==========================================================================
   Responsive — Small screens (max 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .article-header h1 { line-height: 36px; }
  .article-body { font-size: 19px; line-height: 27px; }
  .subtitle { font-size: 17px; }
  .section-heading { font-size: 23px; line-height: 28px; }
  .social-share img { width: 25px; height: 25px; }
}

/* ==========================================================================
   Responsive — Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  :root { --content-padding: 24px; }

  .article-header h1 { font-size: 32px; }

  .section-heading { font-size: 30px; }

  .stats { flex-direction: row; }

  .stat { flex: 1; }

  .article-author-row .social-share img { width: 36px; height: 36px; }

  .comment { grid-template-columns: 60px 1fr; }
  .comment__avatar { width: 60px; height: 60px; border-radius: 4px; }
  .comment--reply { margin-left: 48px; }

  .cta-btn { padding: 20px 40px; }

  .path-choice { flex-direction: row; }
  .path { flex: 1; }

  .featured-testimonial { grid-template-columns: 280px 1fr; }
}

/* ==========================================================================
   Responsive — Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --content-padding: 20px; }

  .pub-header { padding: 12px 0; }
  .pub-header__brand { max-width: 60%; margin: 0 auto; }

  .page-grid {
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.2fr);
    max-width: 60%;
    margin-top: 30px;
    padding: 0;
  }

  .sidebar {
    display: block;
    padding-right: 10px;
  }

  .article-header h1 { font-size: 38px; line-height: 50px; }

  .section-heading { font-size: 30px; line-height: 30px; margin: 44px 0 24px; }

  .cta-btn {
    font-size: 24px;
    width: auto;
    display: inline-block;
  }

  .cta-btn-wrap { text-align: center; }

  .pricing__new { font-size: 56px; }

  .stat__number { font-size: 48px; }

  .sticky-cta .cta-btn {
    font-size: 20px;
    padding: 14px 32px;
  }

  .site-footer { padding-left: 0; padding-right: 0; }
  .site-footer__inner { max-width: 60%; margin: 0 auto; }
}
