/*
Theme Name: Feijão das Promos
Theme URI: https://feijaodaspromos.com.br/
Author: Feijão das Promos
Description: Tema WordPress leve e editável para os grupos de promoções Feijão das Promos.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: feijao-das-promos
*/

:root {
  --fdp-background: #0b0b0e;
  --fdp-foreground: #fbfaf5;
  --fdp-card: #131316;
  --fdp-secondary: #1d1d20;
  --fdp-muted: #a4a3a9;
  --fdp-border: #27272c;
  --fdp-primary: #fa751d;
  --fdp-primary-dark: #250d01;
  --fdp-radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--fdp-foreground);
  background: var(--fdp-background);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.fdp-site { min-height: 100vh; background: var(--fdp-background); }
.fdp-container { width: min(100% - 32px, 1024px); margin-inline: auto; }
.fdp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.fdp-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(39,39,44,.75);
  background: rgba(11,11,14,.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.fdp-header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.fdp-brand { display: inline-flex; align-items: center; }
.fdp-brand img { display: block; width: auto; max-width: 180px; height: 44px; object-fit: contain; }
.fdp-header__button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 10px 14px;
  border-radius: 10px; color: var(--fdp-primary-dark); background: var(--fdp-primary);
  font-size: .9rem; font-weight: 700; transition: filter .2s, transform .2s;
}
.fdp-header__button:hover { filter: brightness(1.1); }
.fdp-header__button:active, .fdp-button:active, .fdp-social:active { transform: scale(.98); }

.fdp-hero { position: relative; overflow: hidden; padding: 140px 0 32px; text-align: center; }
.fdp-hero__glow {
  position: absolute; top: -125px; left: 50%; width: 680px; height: 300px; transform: translateX(-50%);
  border-radius: 50%; opacity: .22; background: radial-gradient(closest-side, var(--fdp-primary), transparent); filter: blur(52px); pointer-events: none;
}
.fdp-hero__content { position: relative; max-width: 760px; margin: 0 auto; }
.fdp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid color-mix(in srgb, var(--fdp-primary) 45%, transparent);
  border-radius: 999px; color: var(--fdp-primary); background: color-mix(in srgb, var(--fdp-primary) 10%, transparent);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.fdp-hero__logo { display: block; width: min(100%, 340px); height: 85px; margin: 28px auto 0; object-fit: contain; }
.fdp-hero h1 { margin: 26px 0 0; font-family: Sora, Arial, sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.05em; }
.fdp-accent { position: relative; color: var(--fdp-primary); white-space: nowrap; }
.fdp-accent::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 8px; border-top: 2px solid #fbfaf5; border-radius: 50%; content: ""; transform: rotate(-1deg); opacity: .85; }
.fdp-hero__description { max-width: 610px; margin: 20px auto 0; color: var(--fdp-muted); font-size: 1.1rem; line-height: 1.6; }

.fdp-groups { padding: 32px 0 96px; scroll-margin-top: 80px; }
.fdp-group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fdp-card { display: flex; flex-direction: column; min-height: 282px; padding: 28px; border: 1px solid var(--fdp-border); border-radius: var(--fdp-radius); background: var(--fdp-card); transition: border-color .2s, transform .2s; }
.fdp-card:hover { border-color: color-mix(in srgb, var(--fdp-group-color) 55%, var(--fdp-border)); transform: translateY(-2px); }
.fdp-card--inactive { opacity: .52; }
.fdp-card__title { display: flex; align-items: center; gap: 12px; font-family: Sora, Arial, sans-serif; font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.fdp-card__icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--fdp-group-color); background: color-mix(in srgb, var(--fdp-group-color) 15%, transparent); }
.fdp-card__description { margin: 16px 0 auto; color: var(--fdp-muted); font-size: .94rem; line-height: 1.6; }
.fdp-card__actions { display: grid; gap: 8px; margin-top: 24px; }
.fdp-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 1px solid transparent; border-radius: 12px; font-size: .94rem; font-weight: 700; transition: filter .2s, transform .2s; }
.fdp-button:hover { filter: brightness(1.12); }
.fdp-button--primary { color: var(--fdp-primary-dark); background: var(--fdp-group-color); }
.fdp-button--secondary { color: var(--fdp-group-color); border-color: color-mix(in srgb, var(--fdp-group-color) 50%, transparent); background: color-mix(in srgb, var(--fdp-group-color) 8%, transparent); }
.fdp-button--disabled { cursor: not-allowed; color: color-mix(in srgb, var(--fdp-group-color) 70%, #000); background: color-mix(in srgb, var(--fdp-group-color) 40%, transparent); }
.fdp-button--disabled.fdp-button--outline { border-color: color-mix(in srgb, var(--fdp-group-color) 40%, transparent); color: color-mix(in srgb, var(--fdp-group-color) 70%, #fff); background: color-mix(in srgb, var(--fdp-group-color) 8%, transparent); }

.fdp-section { border-top: 1px solid var(--fdp-border); border-bottom: 1px solid var(--fdp-border); background: rgba(29,29,32,.36); padding: 80px 0; scroll-margin-top: 80px; }
.fdp-section--faq { padding: 96px 0; border-top: 0; background: transparent; }
.fdp-section__head { max-width: 650px; margin: 0 auto; text-align: center; }
.fdp-kicker { margin: 0; color: var(--fdp-primary); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.fdp-section h2 { margin: 6px 0 0; font-family: Sora, Arial, sans-serif; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -.04em; }
.fdp-section__text { margin: 14px auto 0; color: var(--fdp-muted); line-height: 1.6; }
.fdp-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.fdp-social { display: grid; width: 48px; height: 48px; place-items: center; border: 1px dashed var(--fdp-border); border-radius: 12px; color: var(--fdp-muted); transition: transform .2s, filter .2s; }
.fdp-social--active { border: 0; color: var(--fdp-primary-dark); background: var(--fdp-primary); }
.fdp-social--active:hover { filter: brightness(1.1); }
.fdp-faq { max-width: 768px; margin: 32px auto 0; }
.fdp-faq__item { margin-bottom: 12px; border: 1px solid var(--fdp-border); border-radius: 12px; background: var(--fdp-card); }
.fdp-faq__button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 0; color: var(--fdp-foreground); background: transparent; text-align: left; font-family: Sora, Arial, sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; }
.fdp-faq__button:hover { color: var(--fdp-primary); }
.fdp-faq__symbol { flex: 0 0 auto; color: var(--fdp-primary); font-size: 1.45rem; font-family: Arial, sans-serif; font-weight: 400; transition: transform .2s; }
.fdp-faq__button[aria-expanded="true"] .fdp-faq__symbol { transform: rotate(45deg); }
.fdp-faq__answer { display: none; padding: 0 24px 20px; color: var(--fdp-muted); line-height: 1.65; }
.fdp-faq__answer.is-open { display: block; }
.fdp-faq__answer > :first-child { margin-top: 0; }
.fdp-faq__answer > :last-child { margin-bottom: 0; }

.fdp-footer { border-top: 1px solid var(--fdp-border); padding: 64px 0; text-align: center; }
.fdp-footer .fdp-brand { justify-content: center; }
.fdp-footer__description { margin: 16px 0 0; color: var(--fdp-muted); font-size: .94rem; }
.fdp-footer__copyright { margin: 18px 0 0; color: color-mix(in srgb, var(--fdp-muted) 70%, transparent); font-size: .78rem; }

@media (max-width: 680px) {
  .fdp-container { width: min(100% - 32px, 1024px); }
  .fdp-header { height: 56px; }
  .fdp-brand img { max-width: 155px; height: 36px; }
  .fdp-header__button { min-height: 40px; padding: 9px 12px; font-size: .8rem; }
  .fdp-hero { padding: 84px 0 20px; }
  .fdp-eyebrow, .fdp-hero__description { display: none; }
  .fdp-hero__logo { width: min(100%, 218px); height: 62px; margin-top: 5px; }
  .fdp-hero h1 { margin-top: 12px; font-size: 1.3rem; letter-spacing: -.035em; }
  .fdp-accent::after { bottom: -7px; height: 5px; border-top-width: 1.5px; }
  .fdp-groups { padding: 22px 0 56px; }
  .fdp-group-grid { grid-template-columns: 1fr; gap: 10px; }
  .fdp-card { min-height: auto; padding: 16px; }
  .fdp-card:hover { transform: none; }
  .fdp-card__title { font-size: 1rem; }
  .fdp-card__icon { flex-basis: 36px; width: 36px; height: 36px; }
  .fdp-card__description { display: none; }
  .fdp-card__actions { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .fdp-button { min-height: 44px; padding: 9px 8px; font-size: .75rem; }
  .fdp-section { padding: 48px 0; }
  .fdp-section--faq { padding: 48px 0; }
  .fdp-section__text { display: none; }
  .fdp-socials { margin-top: 24px; }
  .fdp-social { width: 46px; height: 46px; }
  .fdp-faq { margin-top: 26px; }
  .fdp-faq__button { padding: 18px; font-size: .92rem; }
  .fdp-faq__answer { padding: 0 18px 18px; font-size: .94rem; }
  .fdp-footer { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
