/* ==========================================================================
   Associação PG — Components
   ========================================================================== */

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled {
  opacity: .4;
  pointer-events: none;
}

.btn--primary {
  background: var(--color-brand-orange);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-brand-orange-dark);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn--secondary {
  background: var(--color-brand-blue);
  color: #fff;
}
.btn--secondary:hover {
  background: #175E9A;
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
}
.btn--outline:hover {
  background: var(--color-brand-blue);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn--outline-light:hover {
  background: #fff;
  color: var(--color-brand-navy);
}

.btn--ghost {
  background: transparent;
  color: var(--color-brand-navy);
}
.btn--ghost:hover { background: var(--color-offwhite); }

.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* ===== PILL / TAG ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pill--orange { background: var(--color-brand-orange-soft); color: var(--color-brand-orange-dark); }
.pill--navy { background: var(--color-brand-navy-soft); color: var(--color-brand-navy); }
.pill--success { background: var(--color-success-soft); color: var(--color-success); }

/* ===== BENEFIT CARD ===== */
.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand-orange);
}
.benefit-card__icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  background: var(--color-brand-orange-soft);
  border-radius: var(--r-md);
}
.benefit-card__icon img { width: 44px; height: 44px; }
.benefit-card h3 { margin: 0; color: var(--color-brand-navy); }
.benefit-card p { margin: 0; color: var(--text-body); font-size: var(--fs-body); }
.benefit-card__more {
  margin-top: auto;
  color: var(--color-brand-orange);
  font-weight: var(--fw-bold);
  text-decoration: none;
  font-size: var(--fs-caption);
}

/* ===== PLAN CARD ===== */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-7) var(--space-6) var(--space-6);
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border: 2px solid var(--color-brand-orange);
  box-shadow: var(--shadow-lg);
}
.plan__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand-orange);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan__label {
  color: var(--color-brand-orange);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.plan__title {
  margin: 4px 0 var(--space-4);
  color: var(--color-brand-navy);
  font-size: 28px;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--color-brand-navy);
}
.plan__currency { font-size: 24px; font-weight: var(--fw-bold); }
.plan__amount { font-size: 56px; font-weight: var(--fw-bold); line-height: 1; }
.plan__period { font-size: var(--fs-body); color: var(--text-muted); margin-left: var(--space-2); }
.plan__note { font-size: var(--fs-caption); color: var(--text-muted); margin-top: var(--space-2); margin-bottom: var(--space-5); }
.plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.plan__list li {
  display: flex;
  gap: var(--space-3);
  font-size: 15px;
  color: var(--text-body);
  padding-left: 28px;
  position: relative;
}
.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--color-brand-orange);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}
.plan .btn { width: 100%; }

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.testimonial__quote {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-brand-navy);
  position: relative;
  margin: 0;
}
.testimonial__quote::before {
  content: "“";
  display: block;
  font-size: 48px;
  line-height: 1;
  color: var(--color-brand-orange);
  font-weight: bold;
  margin-bottom: var(--space-2);
}
.testimonial__person {
  display: flex; gap: var(--space-3); align-items: center;
}
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-brand-orange-soft);
  color: var(--color-brand-orange);
  display: grid; place-items: center;
  font-weight: var(--fw-bold);
  overflow: hidden;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { color: var(--color-brand-navy); font-weight: var(--fw-bold); }
.testimonial__city { color: var(--text-muted); font-size: var(--fs-caption); }

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-item > summary {
  list-style: none;
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  font-weight: var(--fw-bold);
  color: var(--color-brand-navy);
  font-size: 17px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  width: 24px; height: 24px;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222D59' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] > summary::after { transform: rotate(180deg); }
.faq-item__body {
  padding: 0 var(--space-4) var(--space-5) 0;
  color: var(--text-body);
  font-size: 16px;
  line-height: var(--lh-relaxed);
  max-width: 75ch;
}

/* ===== FORM ===== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field > label {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  color: var(--color-brand-navy);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text-body);
  font-family: inherit;
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { height: auto; padding: var(--space-3) var(--space-4); min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-brand-orange);
  box-shadow: var(--shadow-ring);
}
.field .error {
  display: flex; align-items: center; gap: 6px;
  color: var(--color-danger);
  font-size: var(--fs-label);
}
.field--invalid input, .field--invalid textarea {
  border-color: var(--color-danger);
}

/* ===== SECTION ===== */
.section {
  padding-block: clamp(56px, 7vw, 96px);
}
.section--alt { background: var(--color-offwhite); }
.section--navy {
  background: var(--color-brand-navy);
  color: #fff;
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--orange { background: var(--color-brand-orange); color: #fff; }
.section--orange h1, .section--orange h2, .section--orange h3 { color: #fff; }

.section__header {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section__header p {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
}
.section--navy .section__header p { color: rgba(255,255,255,.85); }

/* ===== GRIDS ===== */
.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
}

/* ===== COOKIES BANNER ===== */
.cookies {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: 560px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  z-index: 100;
  transform: translateY(200%);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
.cookies.is-visible { transform: translateY(0); opacity: 1; }
.cookies p { font-size: var(--fs-caption); color: var(--text-body); margin: 0 0 var(--space-4); }
.cookies__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
