/* Campanha Aécio Neves 456 — Peça seu Material */

:root {
  --brand-blue: #003BFF;
  --brand-blue-mid: #0066F2;
  --brand-blue-deep: #0006AC;
  --brand-blue-royal: #0014E4;
  --brand-blue-night: #00026E;
  --brand-lime: #D2FF00;
  --brand-lime-2: #96FF00;
  --brand-white: #FFFFFF;
  --brand-gray: #E8E8E8;

  --c-ink: #FFFFFF;
  --c-muted: rgba(255, 255, 255, 0.86);
  --c-text: #00026E;
  --c-text-muted: #5a6280;
  --c-line: rgba(255, 255, 255, 0.22);
  --c-line-light: rgba(0, 2, 110, 0.12);
  --c-accent: var(--brand-lime);
  --c-accent-2: var(--brand-lime-2);

  --grad-royal: linear-gradient(155deg, var(--brand-blue-royal) 0%, var(--brand-blue-mid) 48%, var(--brand-blue) 100%);
  --grad-footer: linear-gradient(160deg, var(--brand-blue-night) 0%, var(--brand-blue-deep) 100%);

  --ff: "Montserrat", system-ui, sans-serif;
  --container: 1280px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 32px rgba(0, 2, 110, 0.08);
  --shadow-form: 0 16px 48px rgba(0, 2, 110, 0.1);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: var(--brand-lime);
  color: var(--brand-blue-night);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: #f4f6ff;
  -webkit-font-smoothing: antialiased;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-blue-deep); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.hd__num {
  color: var(--brand-lime);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* Header */
.hd {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--grad-footer);
  border-bottom: 1px solid var(--c-line);
}

.hd__inner {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
  padding-block: 0.75rem;
}

.hd__brand { display: inline-flex; text-decoration: none; }

.hd__logo { width: min(100%, 210px); }

/* Hero */
.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--grad-royal);
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  text-align: center;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/hero/bg.png") center / cover no-repeat;
}

.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 2, 110, 0.18);
}

.lp-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-hero h1 {
  margin: 0;
  color: var(--c-ink);
  font-size: clamp(3.4rem, 11vw, 6.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-shadow:
    0 1px 0 #00026E,
    0 2px 10px rgba(0, 2, 110, 0.7),
    0 10px 28px rgba(0, 2, 110, 0.45);
}

.lp-hero p {
  margin: 1rem auto 0;
  max-width: 32ch;
  color: var(--c-ink);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 600;
  text-shadow:
    0 1px 0 #00026E,
    0 2px 10px rgba(0, 2, 110, 0.7);
}

.cta-word {
  color: var(--brand-lime);
}

.section__title .cta-word {
  display: inline;
  padding: 0.05em 0.18em;
  border-radius: 0.28em;
  background: var(--brand-lime);
  color: var(--brand-blue-night);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Page sections */
.page {
  padding-block: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.section__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-blue-night);
}

/* Material grid */
.material-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.material-card {
  display: flex;
  flex-direction: column;
  background: var(--brand-white);
  border: 2px solid var(--brand-gray);
  border-radius: var(--radius-lg);
  padding: 0 0 1.15rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.material-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 2, 110, 0.12);
}

.material-card.is-active {
  border-color: var(--brand-lime);
  box-shadow: 0 0 0 1px var(--brand-lime), var(--shadow-card);
}

.material-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #eef0f6;
}

.material-card__name {
  margin: 1rem 1.15rem 0.25rem;
  min-height: 2.5em;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-blue-night);
}

.material-card__desc {
  margin: 0 1.15rem 0.85rem;
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

.material-card__counter {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: auto 1.15rem 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--c-line-light);
}

.material-card__counter-label {
  margin-right: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.counter-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.counter-btn:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.counter-btn:active { transform: scale(0.94); }

.counter-btn--minus {
  background: var(--brand-blue);
  color: var(--brand-white);
}

.counter-btn--plus {
  background: var(--brand-lime);
  color: var(--brand-blue-night);
}

.counter-btn--plus:hover { background: var(--brand-lime-2); }

.material-card__qty {
  min-width: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-blue-night);
}

/* Summary bar */
.summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: var(--grad-footer);
  color: var(--c-ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.summary-bar strong {
  color: var(--brand-lime);
  font-weight: 700;
}

.summary-bar__count {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Delivery form */
.delivery-form {
  position: relative;
  background: var(--brand-white);
  border: 1px solid var(--c-line-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-form);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

fieldset.form-field {
  border: 0;
  margin: 0;
  padding: 0;
}

.form-field--full { grid-column: 1 / -1; }

.form-field > label:not(.form-consent),
.form-legend {
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-blue-night);
}

.required {
  color: var(--brand-blue);
  margin-left: 0.1rem;
}

.form-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1.1rem;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-blue-night);
  background: #f3f6ff;
  box-shadow: inset 0 0 0 1.5px #d9e0f4;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-input::placeholder {
  color: #8b93b0;
  font-weight: 500;
  opacity: 1;
}

.form-input:hover {
  background: #eef3ff;
  box-shadow: inset 0 0 0 1.5px #b8c6f0;
}

.form-input:focus {
  outline: none;
  background: var(--brand-white);
  box-shadow:
    inset 0 0 0 2px var(--brand-blue),
    0 0 0 4px rgba(0, 59, 255, 0.16);
}

.delivery-form.is-submitted .form-input:invalid:not(:focus) {
  box-shadow: inset 0 0 0 2px #c23b4a;
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Time pills */
.form-pills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.form-pills input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-pills label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand-blue-night);
  background: #f3f6ff;
  box-shadow: inset 0 0 0 1.5px #d9e0f4;
  cursor: pointer;
  user-select: none;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}

.form-pills label:hover {
  background: #e8eeff;
  box-shadow: inset 0 0 0 1.5px var(--brand-blue-mid);
}

.form-pills input:checked + label {
  background: var(--brand-lime);
  color: var(--brand-blue-night);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(210, 255, 0, 0.35);
}

.form-pills input:focus-visible + label {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Privacy checkbox */
.form-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.15rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: #f3f6ff;
  box-shadow: inset 0 0 0 1.5px #d9e0f4;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.form-consent label {
  font: inherit;
  color: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.form-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.form-check__box {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 6px;
  background: var(--brand-white);
  box-shadow: inset 0 0 0 1.5px #c5d0ee;
  cursor: pointer;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-check:checked + .form-check__box {
  background: var(--brand-lime);
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2300026E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.2 6.4 11.4 12.8 4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem;
}

.form-check:focus-visible + .form-check__box {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.form-consent a {
  color: var(--brand-blue-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover { color: var(--brand-blue); }

.form-consent:hover {
  box-shadow: inset 0 0 0 1.5px #b8c6f0;
}

/* Submit */
.form-actions {
  margin-top: 1.25rem;
}

.btn-submit {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-blue-night);
  background: var(--brand-lime);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(210, 255, 0, 0.3), 0 8px 24px rgba(0, 2, 110, 0.18);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn-submit:hover {
  background: var(--brand-lime-2);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(210, 255, 0, 0.4), 0 12px 28px rgba(0, 2, 110, 0.22);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-submit:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.form-status {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.form-status.is-success {
  background: #eefadc;
  color: var(--brand-blue-night);
}

.form-status.is-error {
  background: #fde8ea;
  color: #8a1f2a;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

/* Footer */
.ft {
  background: var(--grad-footer);
  border-top: 1px solid var(--c-line);
  padding-block: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.25rem);
  color: var(--c-ink);
  font-size: 0.875rem;
}

.ft__grid {
  display: grid;
  grid-template-columns: minmax(8rem, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.ft__logo { width: min(100%, 188px); }

.ft__title {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.ft__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft__list li { margin: 0; }

.ft__list a {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.ft__list a:hover { color: var(--c-accent-2); }

.ft__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.75rem;
}

.ft__cnpj { margin: 0; max-width: 72ch; }

.ft__legal .muted { margin: 0; }

.ft__legal a {
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ft__legal a:hover { color: var(--c-accent); }

.ft__campaign-legal {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
}

.ft__campaign-legal p { margin: 0; }

.ft__credit {
  margin-top: 0.45rem !important;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-muted);
}

/* Responsive */
@media (min-width: 1100px) {
  .hd__inner { min-height: 4.35rem; }

  .page {
    padding-block: 3.5rem;
    gap: 4rem;
  }

  .section__title {
    font-size: 2rem;
    margin-bottom: 1.6rem;
  }

  .material-grid { gap: 1.5rem; }

  .material-card {
    padding: 0 0 1.25rem;
  }

  .material-card__name {
    margin-left: 1.3rem;
    margin-right: 1.3rem;
    font-size: 1.2rem;
  }

  .material-card__desc {
    margin-left: 1.3rem;
    margin-right: 1.3rem;
  }

  .material-card__counter {
    margin-left: 1.3rem;
    margin-right: 1.3rem;
  }

  .counter-btn {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.4rem;
  }

  .material-card__qty {
    min-width: 1.85rem;
    font-size: 1.3rem;
  }

  .delivery-form { padding: 2.35rem; }

  .form-input,
  .btn-submit { min-height: 3.5rem; }
}

@media (max-width: 960px) {
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }

  .form-pills label {
    flex: 1 1 calc(50% - 0.25rem);
    text-align: center;
  }

  .ft__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "contact social";
  }

  .ft__brand { grid-area: brand; }
  .ft__contact { grid-area: contact; }
  .ft__social { grid-area: social; }

  .ft__list--social {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }

  .ft__list--social a {
    justify-content: center;
    min-height: 44px;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--c-ink);
  }

  .ft__list--social a:hover {
    background: var(--c-accent);
    color: var(--brand-blue-night);
  }
}

@media (max-width: 540px) {
  .material-grid { grid-template-columns: 1fr; }
  .material-card__name { min-height: 0; }
  .material-card__image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .ft__grid { grid-template-columns: 1fr; }

  .ft__list--social {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
  }

  .ft__list--social a {
    border: 0;
    border-radius: 4px;
    justify-content: flex-start;
    min-height: 2rem;
    padding: 0;
    background: transparent;
  }

  .ft__legal { flex-direction: column; align-items: flex-start; }
  .ft__campaign-legal { text-align: left; }
}
