@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --cedar-red: #B91C1C;
  --cedar-red-dark: #7F0F10;
  --cedar-red-light: #DC2626;
  --cedar-orange: #EA580C;
  --cedar-gold: #FBBF24;
  --cedar-gold-light: #FDE68A;
  --cedar-cream: #FFF7ED;
  --cedar-white: #FFFFFF;
  --cedar-text: #1C1917;
  --cedar-muted: #78716C;
  --cedar-shadow: 0 10px 40px rgba(127, 15, 16, 0.18);
  --cedar-radius: 16px;
  --cedar-wa: #25D366;
}

.cedar-catalog * { box-sizing: border-box; }

.cedar-catalog {
  font-family: 'Montserrat', sans-serif;
  color: var(--cedar-text);
  overflow-x: hidden;
}

.cedar-catalog a { text-decoration: none; }
.cedar-catalog a:focus-visible {
  outline: 2px solid var(--cedar-gold);
  outline-offset: 3px;
}

.cedar-catalog h1,
.cedar-catalog h2,
.cedar-catalog h3,
.cedar-catalog .cedar-display {
  font-family: 'Cinzel', serif;
}

/* ── HERO ── */
.cedar-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #7F0F10 0%, var(--cedar-red) 35%, var(--cedar-orange) 100%);
  overflow: hidden;
}

.cedar-hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('https://cedardoces.com.br/wp-content/uploads/cedar-catalog/hero-brand.png') center/cover no-repeat;
  opacity: 0.13;
  filter: blur(7px) saturate(1.2);
  mix-blend-mode: overlay;
}

.cedar-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(251,191,36,0.15) 0%, transparent 60%);
}

.cedar-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cedar-hero-badge {
  display: inline-block;
  background: rgba(251,191,36,0.2);
  border: 1px solid var(--cedar-gold);
  color: var(--cedar-gold-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cedar-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--cedar-white);
  line-height: 1.1;
  margin: 0 0 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cedar-hero h1 span { color: var(--cedar-gold); }

.cedar-hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 520px;
}

.cedar-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cedar-catalog .cedar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s ease,
              background 0.4s ease,
              border-color 0.4s ease,
              color 0.3s ease;
}

.cedar-catalog .cedar-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cedar-catalog .cedar-btn:hover svg { transform: scale(1.15) rotate(-8deg); }

/* brilho que atravessa no hover */
.cedar-catalog .cedar-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.cedar-catalog .cedar-btn:hover::after { left: 140%; }

.cedar-catalog .cedar-btn:active { transform: translateY(-1px) scale(0.985); }

.cedar-catalog a.cedar-btn-wa,
.cedar-catalog a.cedar-btn-wa:visited {
  background: linear-gradient(135deg, #2BE071 0%, #25D366 45%, #10A64B 100%);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(16,166,75,0.38);
}

.cedar-catalog a.cedar-btn-wa:hover,
.cedar-catalog a.cedar-btn-wa:focus {
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16,166,75,0.5);
}

.cedar-catalog a.cedar-btn-outline,
.cedar-catalog a.cedar-btn-outline:visited {
  background: rgba(255,255,255,0.07);
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cedar-catalog a.cedar-btn-outline:hover,
.cedar-catalog a.cedar-btn-outline:focus {
  background: #fff;
  border-color: #fff;
  color: var(--cedar-red-dark) !important;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.cedar-hero-visual {
  position: relative;
  padding: 0 46px 62px 0;
}

/* moldura principal */
.cedar-hero-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #2A0A0A;
  box-shadow: 0 28px 70px rgba(0,0,0,0.42),
              0 0 0 1px rgba(255,255,255,0.12) inset,
              0 0 0 6px rgba(255,255,255,0.06);
  transition: box-shadow 0.6s ease;
  will-change: transform;
}

.cedar-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cedar-hero-frame:hover img { transform: scale(1.06); }

.cedar-hero-frame:hover {
  box-shadow: 0 36px 90px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,255,255,0.16) inset,
              0 0 0 6px rgba(251,191,36,0.22);
}

/* brilho que passa pela moldura */
.cedar-hero-glow {
  position: absolute;
  top: 0;
  left: -140%;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: cedarSheen 5.5s ease-in-out infinite;
}

@keyframes cedarSheen {
  0%, 62% { left: -140%; }
  92%, 100% { left: 150%; }
}

/* card de destaque sobreposto */
.cedar-hero-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  max-width: 250px;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.92);
  box-shadow: 0 20px 46px rgba(0,0,0,0.4);
  animation: cedarFloat 6.5s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cedar-hero-accent img {
  display: block;
  width: 100%;
  height: auto;
}

.cedar-hero-accent:hover { transform: translateY(-8px) rotate(-1.5deg); }

/* selo dourado */
.cedar-hero-seal {
  position: absolute;
  top: -18px;
  right: 8px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(140deg, #FDE68A 0%, var(--cedar-gold) 45%, #C98A05 100%);
  color: #5A2D02;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(180,120,0,0.45);
  animation: cedarPulse 3.2s ease-in-out infinite;
}

.cedar-hero-seal strong {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  line-height: 1;
}

.cedar-hero-seal small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

@keyframes cedarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes cedarPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

/* ── STATS BAR ── */
.cedar-stats {
  background: var(--cedar-red-dark);
  padding: 28px 24px;
}

.cedar-stats-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.cedar-stat {
  color: #fff;
}

.cedar-stat strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--cedar-gold);
}

.cedar-stat span {
  font-size: 13px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── SECTIONS ── */
.cedar-section {
  padding: 80px 24px;
}

.cedar-section-alt {
  background: var(--cedar-cream);
}

.cedar-section-red {
  background: linear-gradient(180deg, var(--cedar-red-dark) 0%, var(--cedar-red) 100%);
  color: #fff;
}

.cedar-container {
  max-width: 1320px;
  margin: 0 auto;
}

.cedar-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.cedar-section-header .cedar-label {
  display: inline-block;
  color: var(--cedar-orange);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cedar-section-red .cedar-section-header .cedar-label { color: var(--cedar-gold); }

.cedar-section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin: 0 0 12px;
  color: var(--cedar-red-dark);
}

.cedar-section-red .cedar-section-header h2 { color: #fff; }

.cedar-section-header p {
  color: var(--cedar-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.cedar-section-red .cedar-section-header p { color: rgba(255,255,255,0.8); }

/* ── PRODUCT GRID ── */
.cedar-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cedar-catalog .cedar-filter-btn {
  position: relative;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(185,28,28,0.35);
  background: #fff;
  color: var(--cedar-red);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(127,15,16,0.07);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease,
              color 0.3s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.cedar-catalog .cedar-filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cedar-red);
  box-shadow: 0 8px 20px rgba(127,15,16,0.16);
}

.cedar-catalog .cedar-filter-btn.active {
  background: linear-gradient(135deg, var(--cedar-red-light), var(--cedar-red-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(127,15,16,0.32);
}

.cedar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.cedar-card {
  background: #fff;
  border-radius: var(--cedar-radius);
  overflow: hidden;
  box-shadow: var(--cedar-shadow);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(40px);
}

.cedar-card.cedar-visible {
  opacity: 1;
  transform: translateY(0);
}

.cedar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(127,15,16,0.25);
}

.cedar-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
}

.cedar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cedar-card:hover .cedar-card-img img {
  transform: scale(1.08);
}

.cedar-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--cedar-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cedar-card-body {
  padding: 20px;
}

.cedar-card-body h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--cedar-red-dark);
  line-height: 1.3;
}

.cedar-card-body p {
  font-size: 13px;
  color: var(--cedar-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.cedar-catalog a.cedar-card-wa,
.cedar-catalog a.cedar-card-wa:visited {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(135deg, #2BE071 0%, #25D366 45%, #10A64B 100%);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 14px rgba(16,166,75,0.26);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.cedar-catalog a.cedar-card-wa svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cedar-catalog a.cedar-card-wa::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.cedar-catalog a.cedar-card-wa:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16,166,75,0.4);
}

.cedar-catalog a.cedar-card-wa:hover::after { left: 140%; }
.cedar-catalog a.cedar-card-wa:hover svg { transform: scale(1.15) rotate(-8deg); }
.cedar-catalog a.cedar-card-wa:active { transform: translateY(-1px) scale(0.99); }

/* ── FEATURED ── */
.cedar-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.cedar-featured-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--cedar-shadow);
}

.cedar-featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.cedar-featured-card .cedar-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(127,15,16,0.92) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.cedar-featured-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.cedar-featured-card p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin: 0 0 16px;
}

/* ── ABOUT ── */
.cedar-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cedar-about-grid img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--cedar-shadow);
}

.cedar-about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.cedar-about-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.cedar-about-list li::before {
  content: '✦';
  color: var(--cedar-gold);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── INFO CARDS ── */
.cedar-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cedar-info-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--cedar-radius);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

.cedar-info-card:hover { transform: translateY(-4px); }

.cedar-info-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cedar-info-card h3 {
  color: var(--cedar-gold);
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.cedar-info-card p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ── CTA BANNER ── */
.cedar-cta {
  background: linear-gradient(135deg, var(--cedar-orange), var(--cedar-red));
  padding: 64px 24px;
  text-align: center;
}

.cedar-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 12px;
}

.cedar-cta p {
  color: rgba(255,255,255,0.9);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

/* ── SCROLL ANIMATIONS ── */
.cedar-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cedar-reveal.cedar-visible {
  opacity: 1;
  transform: translateY(0);
}

.cedar-reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.cedar-reveal-left.cedar-visible {
  opacity: 1;
  transform: translateX(0);
}

.cedar-reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.cedar-reveal-right.cedar-visible {
  opacity: 1;
  transform: translateX(0);
}

.cedar-delay-1 { transition-delay: 0.1s; }
.cedar-delay-2 { transition-delay: 0.2s; }
.cedar-delay-3 { transition-delay: 0.3s; }
.cedar-delay-4 { transition-delay: 0.4s; }

/* ── FLOATING WA ── */
.cedar-catalog a.cedar-fab-wa,
.cedar-catalog a.cedar-fab-wa:visited {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #2BE071, #10A64B);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(16,166,75,0.45);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  animation: cedarFabPulse 2.6s infinite;
}

.cedar-catalog a.cedar-fab-wa:hover {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 14px 36px rgba(16,166,75,0.6);
}

.cedar-catalog a.cedar-fab-wa svg { width: 28px; height: 28px; fill: #fff; }

@keyframes cedarFabPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 50px rgba(37,211,102,0.8), 0 0 0 12px rgba(37,211,102,0.15); }
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .cedar-hero-inner,
  .cedar-about-grid,
  .cedar-featured { grid-template-columns: 1fr; }
  .cedar-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cedar-info-grid { grid-template-columns: 1fr; }
  .cedar-hero { min-height: auto; }
  .cedar-hero-inner { padding: 60px 20px; }
  .cedar-hero-visual { padding: 0 30px 48px 0; margin-top: 20px; }
  .cedar-hero-seal { width: 76px; height: 76px; top: -14px; }
  .cedar-hero-seal strong { font-size: 1rem; }
}

@media (max-width: 576px) {
  .cedar-grid { grid-template-columns: 1fr; }
  .cedar-stats-inner { grid-template-columns: 1fr 1fr; }
  .cedar-hero-btns { flex-direction: column; }
  .cedar-btn { justify-content: center; }
  .cedar-hero-visual { padding: 0 0 40px 0; }
  .cedar-hero-accent { width: 40%; right: -6px; }
  .cedar-hero-seal { width: 66px; height: 66px; right: 0; }
  .cedar-hero-seal strong { font-size: 0.9rem; }
  .cedar-hero-seal small { font-size: 8px; }
}

/* ── ENCAIXE COM TEMA/RODAPÉ ── */
body.cedar-catalog-page main.site-main,
body.cedar-catalog-page .site-main,
body.cedar-catalog-page .page-content,
body.cedar-catalog-page div[data-elementor-type="wp-page"],
body.cedar-catalog-page .cedar-catalog-section,
body.cedar-catalog-page .cedar-catalog-section > .elementor-container,
body.cedar-catalog-page .cedar-catalog-section .elementor-widget-wrap,
body.cedar-catalog-page .cedar-catalog-section .elementor-widget,
body.cedar-catalog-page .cedar-catalog-section .elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
}

body.cedar-catalog-page .elementor-location-footer { margin-top: 0 !important; }

.cedar-catalog > section:last-of-type,
.cedar-catalog .cedar-cta {
  margin-bottom: 0 !important;
}

.cedar-catalog { display: flow-root; }

/* evita botão de WhatsApp duplicado (plugin + catálogo) */
body.cedar-catalog-page .btn-whatsapp-pulse { display: none !important; }
