/* =====================================
   COMPONENTS — Buttons, Cards, Forms, FAQ
   ===================================== */

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn--primary {
  background: var(--color-secondary);
  color: var(--color-text);
}
.btn--primary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}


/* --- Premium Button Variant for Paid Audits --- */

.btn--premium:hover::after {
  transform: translateX(100%);
}

/* --- Subtle Premium Button --- */
.btn--premium {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 121, 140, 0.25);
  transition: all 0.25s ease;
}

.btn--premium:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 6px 14px rgba(225, 0, 106, 0.25);
  transform: translateY(-2px);
}

.btn--premium:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* --- Full Audit Button (Outline Style) --- */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid var(--color-primary);
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 121, 140, 0.15);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 5px 14px rgba(0, 121, 140, 0.25);
  transform: translateY(-2px);
}

.btn--outline:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.section--panel { background: var(--color-panel); }
.section--white { background: var(--color-white); }

.tier-card .subtle-hint{
  margin: 0.75rem 0 1rem;
}

/* Generic card */
.card, .why-card, .testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover, .why-card:hover, .testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Tier cards (used on home + services) */
.tier-card {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: left;

  /* makes button sit at bottom nicely */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.tier-card.highlight {
  border: 2px solid var(--color-accent);
}

.tier-card ul{
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.tier-card .subtle-hint{
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}


.tier-card .btn{
  margin-top: auto;
  align-self: flex-start;
}

.tier-card h3{
  margin: 0 0 0.5rem;
}



.tier-card li + li{
  margin-top: 0.35rem;
}

.tier-card .price {
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.1;
}


.tiers-callout{
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  max-width: 70ch;
  text-align: center;
  color: var(--color-muted);
  line-height: 1.6;
}
.tiers-callout strong{
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.tiers-callout span{
  display: block;
}


/* === Score Squares === */
.score-square {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}
.score-square.good { background: #2ecc71; }
.score-square.warn { background: #f1c40f; color: #222; }
.score-square.bad  { background: #e74c3c; }

/* ===== FAQ ===== */
.faq {
  background: var(--color-white);
  padding: var(--section-space) 1rem;
}

.faq h2 {
  text-align: center;
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-accent);
}

.faq-answer {
  padding: 1rem 1.5rem;
  color: var(--color-text);
}

.faq-answer[hidden] {
  display: none;
}


.faq-helper {
  background: var(--color-panel);
  padding: var(--section-space) 1rem;
  text-align: center;
}

.faq-question:focus,
.faq-question:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.faq-question:hover,
.faq-question:focus,
.faq-question:focus-visible {
  background: var(--color-accent);
}

.faq-item.active .faq-question {
  background: var(--color-accent);
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
  padding: 1rem 1.5rem;
  z-index: 9999;
  display: none;
  animation: slideUp 0.4s ease-out forwards;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner__content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__content p {
  flex: 1 1 600px;
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.cta-banner {
  text-align: center;
  padding: var(--section-space) 1rem;
}

.cta-banner h2 {
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--color-text);
}

.cta-banner .cta-buttons {
  display: flex;
  justify-content: center;  /* THIS centres them */
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-banner .btn {
  min-width: 200px; /* optional, makes them feel balanced */
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}


.easter-egg-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
}

.easter-egg-trigger:hover {
  background: rgba(72, 61, 129, 0.08);
}

.easter-egg-trigger:focus,
.easter-egg-trigger:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}