/* ============================================================
   Cards4Ever — styles matched to the live Impacto theme.
   Colors and type sampled from the production site's computed
   styles, so this should read as the same site.
   ============================================================ */

:root {
  --blue:          #2075c7;   /* nav bar, prices, section headings */
  --blue-active:   #0d4db1;   /* active nav item */
  --btn-top:       #2a72c0;   /* blue button gradient top */
  --btn-bottom:    #1d66b4;   /* blue button gradient bottom */
  --btn-shadow:    #195697;   /* blue button text-shadow */
  --black-top:     #313131;   /* black button gradient top */
  --black-bottom:  #242424;
  --callout-blue:  #0698e0;
  --callout-green: #78a401;
  --callout-orange:#e07d06;
  --ink:           #4c4c4c;
  --ink-heading:   #4d4d4d;
  --footer-bg:     #2e2f2d;
  --footer-text:   #aaaaaa;
  --box-bg:        #f0f0f0;
  --box-border:    #dedede;
  --red:           #ff0000;
  --orange:        #f5a623;
  --line:          #e2e2e2;
  --maxw:          1140px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 21px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

img { max-width: 100%; }

h1, h2, h3, h4, h5 {
  font-family: HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink-heading);
  font-weight: 400;
  margin: 0 0 12px;
}
h1 { font-size: 38px; line-height: 1.2; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 21px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */
.site-header { background: #fff; }
.site-header .brand-block {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  min-height: 59px;
  display: flex;
  align-items: center;
}
.brand { display: inline-block; line-height: 0; }
.brand:hover { text-decoration: none; }
.brand img {
  display: block;
  width: 300px;      /* logo is 600x142 — shown at half size for crispness */
  max-width: 100%;
  height: auto;
}
@media (max-width: 480px) {
  .brand img { width: 240px; }
}

/* ---------- nav ---------- */
.main-nav { background: var(--blue); }
.main-nav .wrap { display: flex; flex-wrap: wrap; padding: 0 20px; }
.main-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 46px;
  padding: 0 18px;
  text-shadow: rgba(0,0,0,0.15) 0 1px 1px;
}
.main-nav a:hover { background: #1a1a1a; text-decoration: none; }
.main-nav a.active { background: var(--blue-active); }

/* ---------- main content ---------- */
main.content { padding: 30px 0 50px; }

/* ---------- callouts (st-callout equivalent) ---------- */
.callout {
  border-radius: 6px;
  padding: 18px 24px;
  text-align: center;
  color: #fff;
  margin: 0 auto 26px;
  max-width: 85%;
}
.callout h2, .callout h3, .callout p { color: #fff; margin: 0; }
.callout h2 { font-size: 28px; }
.callout.blue   { background: var(--callout-blue); }
.callout.green  { background: var(--callout-green); }
.callout.orange { background: var(--callout-orange); }

.out-of-stock {
  color: var(--red);
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  margin: 26px 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(to bottom, var(--btn-top) 0%, var(--btn-bottom) 100%);
  color: #fff !important;
  font-size: 19.2px;
  font-weight: 400;
  line-height: 1.3;
  padding: 9.6px 28.8px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-shadow: var(--btn-shadow) 0 1px 0;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.black {
  background: linear-gradient(to bottom, var(--black-top) 0%, var(--black-bottom) 100%);
  color: #f4f4f4 !important;
  font-size: 15px;
  padding: 8px 18px;
  text-shadow: none;
}

/* ---------- product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
  margin-bottom: 30px;
}
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }

.card { text-align: center; }
.card img { display: block; margin: 0 auto 14px; max-width: 250px; }
.card .price { color: var(--blue); font-size: 28px; font-weight: 400; margin: 0 0 4px; }
.card .desc { margin: 0 0 14px; color: var(--ink); }

/* ---------- three-column features ---------- */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}
@media (max-width: 760px) { .three-up { grid-template-columns: 1fr; } }
.three-up h3 { color: var(--blue); margin-top: 0; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* ---------- CTA box ---------- */
.cta {
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: 6px;
  padding: 20px;
}
.cta h3 { color: var(--blue); font-size: 18px; margin: 0 0 12px; }
.cta .btn { margin-right: 10px; }

/* ---------- product / checkout page ---------- */
.product-hero { text-align: center; margin-bottom: 34px; }
.product-hero img { display: block; margin: 0 auto 18px; max-width: 250px; }
.product-hero .price { color: var(--blue); font-size: 28px; margin: 0 0 4px; }
.product-hero .product-desc { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }

.credit-note { text-align: center; margin: 34px 0 26px; }
.credit-note h3 { color: var(--orange); font-weight: 700; font-size: 24px; margin: 0 0 8px; }
.credit-note p { font-weight: 700; color: #6b6b6b; margin: 0; }

#paypal-button-container {
  display: block;
  width: 100%;
  max-width: 300px;
  min-height: 150px;
  margin: 24px auto;
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: visible;
}
/* Global * { box-sizing } and img { max-width } collapse PayPal's iframes. */
#paypal-button-container iframe,
#paypal-button-container img {
  max-width: none;
}
#paypal-button-container * {
  box-sizing: content-box;
}

/* ---------- overlay ---------- */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; }
.overlay-content {
  position: absolute;
  top: 50%; left: 50%;
  width: min(400px, 88vw);
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 24px 20px;
  border-radius: 10px;
  text-align: center;
}
.overlay-content h3 { color: var(--blue); margin: 0 0 14px; font-size: 28px; line-height: 1.25; }
.loading-gif { width: 50px; height: 50px; display: block; margin: 0 auto; }
.overlay-content img.loading-gif { margin: 0 auto; }

/* ---------- confirm / payment-complete ---------- */
.confirm-headline {
  color: var(--blue);
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 18px;
}

/* ---------- order status page ---------- */
#ordertitle { font-size: 38px; margin-bottom: 10px; }
#custname { display: block; margin-bottom: 8px; }
#orderstatus { display: block; margin-bottom: 18px; }
.order-loading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.order-loading-text {
  font-size: 32px;
  line-height: 1.2;
  color: var(--blue);
  font-weight: 400;
}
#orderstatus img.loading-gif { margin: 0; }
#orderdelivered    { color: #32CD32; font-weight: bold; }
#orderverification { color: #F42131; font-weight: bold; }
#orderhold         { color: #F4701F; font-weight: bold; }
#helptitle         { color: #1505F9; font-weight: bold; }

#codestable table { width: 100%; border-collapse: collapse; margin: 18px 0; }
#codestable td {
  border: 1px solid #aaaaaa;
  padding: 4px;
  text-align: center;
  background-color: transparent;
}
#codestable tr { height: 28px; }
#coderow { padding: 0; }
#itcardscan { width: 300px; border: 3px solid; padding: 10px; }

/* ---------- testimonials ---------- */
.testimonials {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 26px 0 34px;
}
.testimonials h3 { color: var(--blue); font-size: 18px; margin: 0 0 18px; }
.testimonials blockquote {
  margin: 0 0 22px;
  padding: 0 0 0 18px;
  border-left: 4px solid #bfc0bb;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 16px;
  color: #f1f1f1;
}
.testimonials cite { font-style: italic; }

/* ---------- site footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 10px 20px 26px;
  font-size: 12px;
}
.site-footer a { color: var(--footer-text); }

/* ---------- FAQ ---------- */
.faq blockquote {
  margin: 26px 0 6px;
  padding: 0;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-heading);
}
.faq p.answer { margin: 0; font-size: 15px; }
