/* ==========================================================================
   Tips2Pass — visual design system
   Warm, light, and friendly by design — a deliberate contrast to Prep4Exams'
   cooler indigo/emerald corporate look. Same backend, same component
   inventory (buttons, cards, forms, cart, reviews, FAQ, etc. all still work
   sitewide), but its own palette, type, and a restructured header/homepage/
   exam page. Typography: Poppins (headings) + Nunito Sans (UI/body) + Space
   Mono (exam codes, transaction IDs).
   ========================================================================== */

:root {
  --ink: #2e2620;
  --ink-soft: #7a6a58;
  --terracotta: #e2622e;
  --terracotta-deep: #bf4e20;
  --teal: #1f6e68;
  --teal-deep: #154e4a;
  --gold: #f2b705;
  --paper: #fbf6ee;
  --paper-alt: #f3e7d6;
  --card: #ffffff;
  --line: #e8dac4;
  --danger: #c0392b;
  --shadow-sm: 0 1px 2px rgba(46, 38, 32, 0.07), 0 1px 1px rgba(46, 38, 32, 0.05);
  --shadow-md: 0 10px 26px rgba(46, 38, 32, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: 'Poppins', 'Nunito Sans', sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--font-mono); }
img { max-width: 100%; display: block; }
ul { padding-left: 1.25em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep);
  background: #e4f1ef; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-dark { background: var(--teal); color: #fff; }
.btn-dark:hover { background: var(--teal-deep); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--terracotta); color: var(--terracotta-deep); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Top utility bar — new: a thin strip above the main header carrying
   support contact + account links, so the main header row below can stay
   uncluttered with just brand / nav / search / cart. Not present on
   Prep4Exams (a deliberate structural difference, not just a re-theme). */
.site-topbar { background: var(--teal); color: #fff; font-size: .82rem; padding: 8px 0; }
.site-topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.site-topbar a { color: #fff; opacity: .92; }
.site-topbar a:hover { opacity: 1; text-decoration: underline; }
.site-topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Header */
.site-header { background: var(--card); color: var(--ink); position: sticky; top: 0; z-index: 40; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.brand:hover { text-decoration: none; opacity: .92; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px; background: var(--terracotta);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .92rem;
}
.nav-main { display: flex; gap: 6px; align-items: center; }
.nav-main a { color: var(--ink-soft); font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 999px; }
.nav-main a:hover, .nav-main a.active { color: var(--teal-deep); background: var(--paper-alt); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-link { position: relative; color: var(--ink-soft); display: inline-flex; align-items: center; }
.icon-link:hover { color: var(--terracotta); }
.icon-svg { width: 22px; height: 22px; display: block; }
.cart-badge {
  position: absolute; top: -8px; right: -10px; background: var(--gold); color: #3a2a00;
  font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.search-form { display: flex; flex: 1; max-width: 380px; }
.search-form input {
  flex: 1; border: 1.5px solid var(--line); border-right: none; background: var(--paper);
  border-radius: 999px 0 0 999px; padding: 9px 14px; font-size: .88rem; font-family: var(--font-body);
}
.search-form button {
  border: none; border-radius: 0 999px 999px 0; background: var(--terracotta); color: #fff;
  padding: 0 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mobile-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.4rem; cursor: pointer; }

/* Hero — light warm gradient instead of Prep4Exams' dark indigo panel */
.hero { background: linear-gradient(165deg, #fdeedd 0%, #fbf6ee 65%); color: var(--ink); padding: 60px 0 52px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--ink); font-size: 2.5rem; }
.hero p.lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 520px; }
.hero-search { display: flex; gap: 0; margin-top: 24px; max-width: 480px; box-shadow: var(--shadow-md); border-radius: 999px; }
.hero-search input { flex: 1; border: none; padding: 15px 20px; border-radius: 999px 0 0 999px; font-size: 1rem; font-family: var(--font-body); }
.hero-search button { border: none; background: var(--terracotta); color: #fff; padding: 0 26px; border-radius: 0 999px 999px 0; font-weight: 700; cursor: pointer; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--teal-deep); }
.hero-stats div span { color: var(--ink-soft); font-size: .82rem; }
.hero-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.hero-panel h3 { color: var(--ink); }
.hero-panel ul { list-style: none; padding: 0; margin: 0; }
.hero-panel li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
.hero-panel li:first-child { border-top: none; }
.check-dot { color: var(--terracotta); font-weight: 800; }

/* "How it works" — new 3-step section, not present on Prep4Exams */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card { text-align: center; padding: 6px; }
.step-number {
  width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
}
.step-card h3 { margin-bottom: 6px; }
.step-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.card-link { display: block; }
.card-link:hover { text-decoration: none; }
.card-link:hover .card { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vendor-card { text-align: center; }
.vendor-badge {
  width: 56px; height: 56px; border-radius: 16px; background: var(--paper-alt);
  color: var(--teal-deep); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.vendor-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.muted { color: var(--ink-soft); font-size: .88rem; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--paper-alt); color: var(--ink-soft); }
.badge-featured { background: #fff1e6; color: var(--terracotta-deep); }
.badge-new { background: #e4f1ef; color: var(--teal-deep); }

.exam-card { display: flex; flex-direction: column; gap: 10px; }
.exam-card .exam-code { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft); }
.exam-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.exam-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.exam-card .price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--terracotta-deep); }
.exam-card .price-was { text-decoration: line-through; color: #b3a58e; font-size: .85rem; }

/* Exam list rows — vendor page */
.exam-list { display: flex; flex-direction: column; gap: 12px; }
.exam-row-link { display: block; }
.exam-row-link:hover { text-decoration: none; }
.exam-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 22px; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.exam-row-link:hover .exam-row { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--terracotta); }
.exam-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exam-row-code {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--teal-deep);
  letter-spacing: .01em;
}
.exam-row-main h3 { font-size: .92rem; font-weight: 500; color: var(--ink-soft); margin: 0; }
.exam-row-view { flex-shrink: 0; pointer-events: none; }
.exam-row-link:hover .exam-row-view { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

@media (max-width: 640px) {
  .exam-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .exam-row-view { align-self: stretch; text-align: center; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--ink-soft); padding: 16px 0; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { margin: 0 6px; }

/* Detail layout (used by non-exam detail pages that keep the old 2:1 split) */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.detail-main .card { margin-bottom: 20px; }
.stat-strip { display: flex; gap: 24px; flex-wrap: wrap; margin: 18px 0; }
.stat-strip div strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.stat-strip div span { color: var(--ink-soft); font-size: .8rem; }

/* Exam page — full-width stacked layout matching Prep4Exams' structure:
   a centered hero card up top with the pricing options shown as a row of
   cards (not a sidebar), then the description/questions/reviews below,
   full width. Same layout as Prep4Exams, themed in Tips2Pass's own
   terracotta/teal palette instead of Prep4Exams' indigo/emerald. */
.exam-hero { text-align: center; }
.exam-hero-title { font-size: 1.7rem; color: var(--terracotta-deep); margin: 4px 0 10px; line-height: 1.3; }

/* Pricing box — a full-width bar near the top of the exam page: one card
   per purchase option (PDF / Test Engine / PDF + Test Engine), each with
   its own price and its own "Add to Cart" button. */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.pricing-card {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 30px 22px 24px; text-align: center; background: var(--card);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card-featured { border-color: var(--teal); background: #f4faf9; }
.pricing-card .badge-featured { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.pricing-card h3 { margin: 6px 0 8px; font-size: 1.02rem; }
.pricing-meta { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 14px; }
.pricing-price { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--terracotta-deep); margin-bottom: 18px; }
.pricing-card form { margin: 0; }

/* Old horizontal trust-strip class kept for any page still using it */
.trust-strip {
  list-style: none; padding: 0; margin: 26px 0 0; display: flex; justify-content: center;
  gap: 28px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft);
}
.trust-strip li { display: flex; align-items: center; gap: 6px; }

.exam-description h2 { margin-top: 0; }
.exam-description { font-size: 1.02rem; line-height: 1.75; }

/* 24/7 support · money back · free updates — full-bleed 3-column strip */
.trust-banner { background: var(--teal-deep); color: #fff; padding: 36px 0; }
.trust-banner-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.trust-banner-inner > div { padding: 0 20px; border-left: 1px solid rgba(255,255,255,.18); }
.trust-banner-inner > div:first-child { border-left: none; }
.trust-banner-inner h3 { color: #fff; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 10px; }
.trust-banner-inner p { color: #d6ece9; font-size: .87rem; margin: 0; line-height: 1.6; }

/* Sample questions */
.sample-question { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 18px; overflow: hidden; }
.sample-question-head { background: var(--teal); color: #fff; font-weight: 700; padding: 12px 18px; }
.sample-question-body { padding: 18px; }
.sample-options { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.sample-options li { font-size: .92rem; }
.sample-options li::first-letter,
.sample-options li p:first-child::first-letter { font-weight: 800; }
.sample-answer { margin-top: 14px; padding: 12px 14px; background: #e4f1ef; border-radius: var(--radius-sm); color: var(--teal-deep); }

.sample-question-text p:first-child, .sample-options li p:first-child, .sample-explanation p:first-child { margin-top: 0; }
.sample-question-text p:last-child, .sample-options li p:last-child, .sample-explanation p:last-child { margin-bottom: 0; }

/* Tables */
table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.plain th { color: var(--ink-soft); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], textarea, select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .94rem; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--terracotta); }
textarea { resize: vertical; min-height: 100px; }
.contact-columns { max-width: 860px; margin: 0 auto; }

.auth-columns { max-width: 860px; margin: 0 auto; }
.auth-columns h1 { margin-bottom: 24px; }
.auth-columns .card h2 { margin-top: 0; }
#forgot-password-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 18px; }
.alert-success { background: #e4f1ef; color: var(--teal-deep); }
.alert-error { background: #fbe6e2; color: var(--danger); }
.alert-info { background: var(--paper-alt); color: var(--ink-soft); }
.field-error { color: var(--danger); font-size: .8rem; margin-top: 4px; }

/* Reviews */
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review:last-child { border-bottom: none; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.review-name { font-weight: 700; }
.review-date { color: var(--ink-soft); font-size: .78rem; }
.review-reply { margin-left: 26px; padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 12px; }

/* Testimonial cards */
.testimonial { display: flex; flex-direction: column; gap: 10px; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; }
.testimonial-name { font-weight: 700; font-size: .9rem; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; cursor: pointer; font-weight: 700; }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--ink-soft); }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { display: none; padding: 0 4px 16px; color: var(--ink-soft); }
.faq-item.open .faq-a { display: block; }

/* Cart */
.cart-table th, .cart-table td { vertical-align: middle; }
.cart-item-name { font-weight: 700; }
.cart-item-opt { color: var(--ink-soft); font-size: .82rem; }
.cart-summary { background: var(--paper-alt); border-radius: var(--radius); padding: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.summary-row.total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* Certificates gallery */
.cert-item img { border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--teal-deep); color: #cfe7e3; padding: 52px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #cfe7e3; font-size: .88rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.payment-badges { display: flex; gap: 8px; }
.payment-badges span { background: rgba(255,255,255,.1); border-radius: 6px; padding: 4px 8px; font-size: .74rem; }

/* Empty states */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state h3 { color: var(--ink); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span { padding: 8px 13px; border-radius: 8px; border: 1px solid var(--line); font-size: .88rem; }
.pagination a:hover { background: var(--paper-alt); text-decoration: none; }
.pagination .current { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-banner-inner { grid-template-columns: 1fr; gap: 20px; }
  .trust-banner-inner > div { border-left: none; border-top: 1px solid rgba(255,255,255,.18); padding: 16px 0 0; }
  .trust-banner-inner > div:first-child { border-top: none; padding-top: 0; }
}
@media (max-width: 640px) {
  .site-topbar-links { display: none; }
  .nav-main, .search-form, .hero-stats { display: none; }
  .mobile-toggle { display: block; }

  .nav-main.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    padding: 6px 24px 16px;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--line);
    z-index: 39;
  }
  .nav-main.nav-open a {
    padding: 12px 2px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink-soft);
  }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .pricing-card { padding: 18px 16px 16px; }
  .pricing-price { font-size: 1.25rem; margin-bottom: 12px; }
  .exam-hero-title { font-size: 1.25rem; }
  h1 { font-size: 1.8rem; }
  .hero { padding: 44px 0 52px; }
}
