/* Free Visitor Guide Page Styles */
/* px font sizes per site rules (html { font-size: 62.5% } makes rem unreliable) */

/* ============================================================
   HERO STRIP
   ============================================================ */

.fg-hero {
  position: relative;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  margin: 0 0 0;
  max-height: 320px;
}

.fg-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.fg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px;
  text-align: center;
}

.fg-hero-overlay h1 {
  color: #fff;
  font-size: 38px;
  margin: 0 0 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  line-height: 1.15;
}

.fg-hero-overlay .fg-hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 17px;
  margin: 0;
  font-style: italic;
}

@media only screen and (max-width: 640px) {
  .fg-hero img { height: 200px; }
  .fg-hero { max-height: 200px; }
  .fg-hero-overlay h1 { font-size: 26px; }
  .fg-hero-overlay .fg-hero-sub { font-size: 14px; }
}

/* ============================================================
   ACTION BAR
   ============================================================ */

.fg-action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: #f4f7fa;
  border-radius: 0 0 14px 14px;
  margin: 0 0 20px;
  border: 1px solid #e3e8ee;
  border-top: none;
}

.fg-action-bar .fg-action-label {
  font-size: 14px;
  color: #666;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-right: 4px;
}

.fg-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.fg-action-btn:hover { opacity: 0.85; text-decoration: none; }

.fg-action-btn-free {
  background: #27ae60;
  color: #fff;
  border-color: #27ae60;
}

.fg-action-btn-free:hover { color: #fff; }

.fg-action-btn-premium {
  color: #fff;
  border-color: transparent;
}

.fg-action-btn-premium:hover { color: #fff; }

.fg-action-btn-outline {
  background: #fff;
  color: #1a5276;
  border-color: #1a5276;
}

.fg-action-btn-outline:hover { color: #1a5276; }

/* ============================================================
   INTRO TEXT
   ============================================================ */

.fg-intro {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 18px;
  color: #444;
  line-height: 1.65;
}

/* ============================================================
   GUIDEBOOK TOOLBAR — visible on free guide pages.
   The toolbar's "Back" link goes to /products — fine as an upsell.
   ============================================================ */

/* ============================================================
   UPGRADE NUDGE (inline bar above viewer)
   ============================================================ */

.fg-upgrade-nudge {
  background: #fef9e7;
  border: 1px solid #f9ca24;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 15px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fg-upgrade-nudge .fg-nudge-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.fg-upgrade-nudge a {
  font-weight: bold;
  white-space: nowrap;
}

/* ============================================================
   DOWNLOAD SECTION (free summary tab)
   ============================================================ */

.fg-download-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 0;
}

.fg-download-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f0fdf4;
  border: 2px solid #27ae60;
  border-radius: 16px;
  padding: 24px;
  margin: 0 0 24px;
}

.fg-download-box img {
  width: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fg-download-body h3 {
  font-size: 21px;
  color: #1a5276;
  margin: 0 0 8px;
}

.fg-download-body p {
  font-size: 15px;
  color: #555;
  margin: 0 0 14px;
  line-height: 1.5;
}

.fg-download-body ul {
  font-size: 14px;
  color: #555;
  margin: 0 0 14px;
  padding-left: 18px;
}

.fg-download-body ul li { margin: 0 0 4px; }

@media only screen and (max-width: 640px) {
  .fg-download-box { flex-direction: column; align-items: center; text-align: center; }
  .fg-download-box img { width: 100px; }
}

/* ============================================================
   UPSELL SECTION
   ============================================================ */

.fg-upsell-section {
  padding: 40px 0 20px;
  border-top: 2px solid #eee;
  margin-top: 40px;
}

.fg-upsell-section > h2 {
  text-align: center;
  font-size: 27px;
  color: #1a5276;
  margin: 0 0 6px;
}

.fg-upsell-section > .fg-upsell-intro {
  text-align: center;
  font-size: 17px;
  color: #666;
  margin: 0 0 28px;
}

.fg-upsell-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.fg-upsell-card {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 16px;
  padding: 24px 20px;
  flex: 1 1 230px;
  max-width: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fg-upsell-card.fg-card-featured {
  border: 2px solid #1a5276;
  box-shadow: 0 4px 18px rgba(26,82,118,0.14);
}

.fg-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 0 0 14px;
  color: #fff;
}

.fg-card-icon {
  font-size: 32px;
  margin: 0 0 12px;
}

.fg-upsell-card h4 {
  font-size: 19px;
  color: #1a5276;
  margin: 0 0 8px;
  line-height: 1.2;
}

.fg-upsell-card p {
  font-size: 14px;
  color: #555;
  margin: 0 0 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.fg-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
  width: 100%;
}

.fg-card-features li {
  font-size: 13px;
  color: #444;
  padding: 3px 0;
}

.fg-card-features li i {
  color: #27ae60;
  margin-right: 5px;
}

.fg-price {
  font-size: 30px;
  font-weight: bold;
  color: #1a5276;
  margin: 0 0 14px;
  line-height: 1;
}

.fg-price .fg-price-sub {
  font-size: 14px;
  font-weight: normal;
  color: #888;
  display: block;
  margin-top: 2px;
}

.fg-upsell-card .btn {
  width: 100%;
  display: block;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

/* ============================================================
   FREE BADGE
   ============================================================ */

.fg-free-tag {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ============================================================
   PRINT STYLES — hide chrome, show guide only
   ============================================================ */

@media print {
  .fg-action-bar,
  .fg-upgrade-nudge,
  .fg-upsell-section,
  .fg-hero-overlay h1,
  .fg-hero-overlay .fg-hero-sub {
    display: none !important;
  }
}
