/* ============================================================
   Materiais Digitais Oficiais — Marinas por SP
   Marina Helou (4044) & Marina Bragante (40444)
   ============================================================ */

/* ===========================================================
   FONTS
   =========================================================== */
@font-face {
  font-family: 'Financier Display';
  src: url('fonts/Font%20financier/Financier%20Display/Bold/FinancierDisplay-Bold/web/font/FinancierDisplay-Bold.woff2') format('woff2'),
       url('fonts/Font%20financier/Financier%20Display/Bold/FinancierDisplay-Bold/web/font/FinancierDisplay-Bold.woff') format('woff'),
       url('fonts/Font%20financier/Financier%20Display/Bold/FinancierDisplay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Financier Display';
  src: url('fonts/Font%20financier/Financier%20Display/Black/FinancierDisplay-Black/web/font/FinancierDisplay-Black.woff2') format('woff2'),
       url('fonts/Font%20financier/Financier%20Display/Black/FinancierDisplay-Black/web/font/FinancierDisplay-Black.woff') format('woff'),
       url('fonts/Font%20financier/Financier%20Display/Black/FinancierDisplay-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ===========================================================
   DESIGN TOKENS — Identidade Oficial
   =========================================================== */
:root {
  --verde-escuro: #506324;
  --verde-dark: #3A491A;
  --verde-amarelado: #CACB60;
  --verde-dourado-claro: #D4D576;
  --laranja: #F28919;
  --laranja-hover: #D9750E;
  --laranja-light: #FFF0E0;
  --bege-fundo: #FEF6D5;
  --creme-card: #FFFFFF;
  --creme-card-hover: #FDFBF3;
  --creme-preview-bg: #F5EECD;
  --creme-border: #E8DFB8;
  --branco: #FFFFFF;
  --cinza-texto: #2C3518;
  --cinza-muted: #5C6743;
  --preto: #11140A;
  
  --font-display: 'Financier Display', Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1240px;
  --radius-card: 16px;
  --radius-btn: 10px;
  --shadow-sm: 0 2px 8px rgba(80, 99, 36, 0.08);
  --shadow-md: 0 8px 24px rgba(80, 99, 36, 0.12);
  --shadow-lg: 0 16px 40px rgba(58, 73, 26, 0.2);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bege-fundo);
  color: var(--cinza-texto);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  vertical-align: middle;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.mat-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 32px);
}

/* ===========================================================
   HEADER FIXO OFICIAL
   =========================================================== */
.mat-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(254, 246, 213, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--creme-border);
  box-shadow: 0 2px 12px rgba(80, 99, 36, 0.06);
  height: 64px;
}

.mat-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.mat-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mat-header__logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mat-header__logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.mat-header__divider {
  width: 1.5px;
  height: 22px;
  background-color: var(--verde-amarelado);
  opacity: 0.7;
}

.mat-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mat-header__link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--verde-escuro);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mat-header__link:hover {
  background-color: rgba(80, 99, 36, 0.08);
}

.mat-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--laranja);
  color: var(--branco);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: 99px;
  box-shadow: 0 3px 10px rgba(242, 137, 25, 0.3);
  transition: all 0.2s ease;
}

.mat-header__cta:hover {
  background-color: var(--laranja-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(242, 137, 25, 0.4);
}

.mat-header__admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cinza-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.mat-header__admin-link:hover {
  color: var(--verde-escuro);
  background-color: rgba(80, 99, 36, 0.06);
}

/* ===========================================================
   HERO SECTION COM AS MARINAS ENCOSTADAS NA BASE
   =========================================================== */
.mat-hero {
  background: linear-gradient(135deg, var(--verde-dark) 0%, var(--verde-escuro) 60%, #44541e 100%);
  color: #FEF8E2;
  padding: clamp(32px, 4.5vw, 56px) 0 0; /* Encosta perfeitamente na base inferior */
  position: relative;
  overflow: hidden;
}

.mat-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(202, 203, 96, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.mat-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(242, 137, 25, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.mat-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: flex-end;
  gap: clamp(20px, 3.5vw, 40px);
  position: relative;
  z-index: 2;
}

.mat-hero-text-col {
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(32px, 4.5vw, 52px);
}

.mat-hero-visual-col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  line-height: 0;
}

.mat-hero-marinas-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 480px;
  line-height: 0;
}

.mat-hero-cand-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 0;
}

.mat-hero-cand-photo img {
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
  margin: 0;
}

/* Marina Helou */
.mat-cand--helou {
  margin-right: -36px;
  z-index: 2;
}

.mat-cand--helou img {
  height: clamp(240px, 28vw, 360px);
}

/* Marina Bragante (um pouco maior que a Helou) */
.mat-cand--bragante {
  z-index: 1;
}

.mat-cand--bragante img {
  height: clamp(265px, 31vw, 395px);
}

.mat-hero-cand-photo:hover {
  transform: translateY(-4px);
}

.mat-hero-name-tag {
  position: absolute;
  bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.4;
}

.mat-hero-name-tag.helou {
  background: var(--laranja);
  color: #FFFFFF;
}

.mat-hero-name-tag.bragante {
  background: var(--verde-dark);
  color: var(--verde-dourado-claro);
  border: 1px solid rgba(202, 203, 96, 0.5);
}

.mat-hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--laranja);
  color: var(--branco);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mat-hero-badge-alt {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--verde-dourado-claro);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  backdrop-filter: blur(4px);
}

.mat-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.mat-hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.55;
  max-width: 680px;
  color: rgba(254, 246, 213, 0.92);
  margin-bottom: 22px;
}

/* Busca no Hero */
.mat-search-box {
  max-width: 540px;
  position: relative;
  margin-top: 4px;
}

.mat-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mat-search-icon {
  position: absolute;
  left: 16px;
  color: var(--verde-escuro);
  pointer-events: none;
}

.mat-search-input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 48px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background-color: #FFFFFF;
  color: var(--cinza-texto);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  outline: none;
  transition: all 0.2s ease;
}

.mat-search-input:focus {
  border-color: var(--laranja);
  box-shadow: 0 6px 20px rgba(242, 137, 25, 0.25);
}

.mat-search-clear {
  position: absolute;
  right: 14px;
  color: #999;
  padding: 6px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.mat-search-clear.is-active {
  display: flex;
}

.mat-search-clear:hover {
  color: var(--cinza-texto);
  background-color: #eee;
}

/* ===========================================================
   STICKY BAR DE FILTROS POR CATEGORIA
   =========================================================== */
.mat-filter-bar {
  position: sticky;
  top: 64px;
  z-index: 990;
  background-color: var(--bege-fundo);
  padding: 12px 0;
  border-bottom: 1.5px solid var(--creme-border);
  box-shadow: 0 4px 14px rgba(80, 99, 36, 0.05);
}

.mat-filter-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mat-filter-list::-webkit-scrollbar {
  display: none;
}

.mat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--branco);
  color: var(--verde-escuro);
  border: 1.5px solid var(--creme-border);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 14px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mat-filter-btn:hover {
  border-color: var(--verde-escuro);
  background-color: var(--creme-card-hover);
  transform: translateY(-1px);
}

.mat-filter-btn.active {
  background-color: var(--verde-escuro);
  color: var(--branco);
  border-color: var(--verde-escuro);
  box-shadow: 0 3px 10px rgba(80, 99, 36, 0.2);
}

.mat-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--creme-preview-bg);
  color: var(--verde-escuro);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 18px;
}

.mat-filter-btn.active .mat-filter-count {
  background: var(--laranja);
  color: var(--branco);
}

.mat-filter-avatar-cta {
  background-color: var(--laranja);
  color: var(--branco);
  border-color: var(--laranja);
}

.mat-filter-avatar-cta:hover {
  background-color: var(--laranja-hover);
  border-color: var(--laranja-hover);
  color: var(--branco);
}

/* ===========================================================
   FILTRO SECUNDÁRIO POR CANDIDATA
   =========================================================== */
.mat-subfilter-bar {
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mat-candidate-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mat-candidate-pill-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cinza-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.mat-cand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(80, 99, 36, 0.06);
  color: var(--cinza-texto);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.mat-cand-btn:hover {
  background-color: rgba(80, 99, 36, 0.12);
}

.mat-cand-btn.active {
  background-color: var(--verde-escuro);
  color: var(--branco);
  font-weight: 700;
}

.mat-results-stats {
  font-size: 0.86rem;
  color: var(--cinza-muted);
  font-weight: 600;
}

/* ===========================================================
   CONTEÚDO PRINCIPAL / SEÇÕES & GRID
   =========================================================== */
.mat-main-content {
  padding: clamp(24px, 3.5vw, 40px) 0 clamp(48px, 6vw, 72px);
}

.mat-category-section {
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1.5px solid var(--creme-border);
}

.mat-category-section:last-of-type {
  border-bottom: none;
}

.mat-category-section.is-hidden {
  display: none;
}

.mat-category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(18px, 2.5vw, 26px);
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(80, 99, 36, 0.12);
}

.mat-cat-title-wrap {
  max-width: 760px;
}

.mat-cat-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--verde-escuro);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mat-cat-desc {
  font-size: 0.92rem;
  color: var(--cinza-muted);
  line-height: 1.5;
}

.mat-spec-badge {
  display: inline-block;
  background: rgba(80, 99, 36, 0.08);
  color: var(--verde-escuro);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(80, 99, 36, 0.15);
  letter-spacing: 0.4px;
}

/* ===========================================================
   GRID DE CARDS
   =========================================================== */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  align-items: stretch;
}

/* CARD INDIVIDUAL */
.mat-card {
  background: var(--creme-card);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--creme-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.mat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--verde-amarelado);
}

.mat-card.is-hidden {
  display: none !important;
}

/* PREVIEW DO CARD */
.mat-card-preview {
  width: 100%;
  background: var(--creme-preview-bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-bottom: 1px solid var(--creme-border);
  overflow: hidden;
  cursor: pointer;
  height: 250px;
}

.mat-card.aspect-portrait .mat-card-preview {
  height: 290px;
}

.mat-card.aspect-story .mat-card-preview {
  height: 380px;
}

.mat-card-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.1));
}

.mat-card:hover .mat-card-preview img {
  transform: scale(1.04);
}

.mat-badge-dim {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(58, 73, 26, 0.9);
  backdrop-filter: blur(4px);
  color: #FEF8E2;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  z-index: 5;
}

/* BADGE DE CARROSSEL */
.mat-carousel-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--laranja) 0%, var(--laranja-hover) 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(242, 137, 25, 0.4);
  letter-spacing: 0.4px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.mat-cand-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mat-cand-helou {
  background-color: var(--laranja);
  color: var(--branco);
}

.mat-cand-bragante {
  background-color: var(--verde-escuro);
  color: var(--branco);
}

.mat-cand-ambas {
  background-color: var(--verde-dark);
  color: var(--verde-dourado-claro);
}

.mat-cand-silva {
  background-color: #004A3E;
  color: #FEC800;
}

.mat-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 73, 26, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
}

.mat-card-preview:hover .mat-preview-overlay,
.mat-card-preview:focus .mat-preview-overlay {
  opacity: 1;
}

.mat-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: var(--verde-escuro);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(6px);
  transition: transform 0.2s ease;
}

.mat-card-preview:hover .mat-zoom-btn {
  transform: translateY(0);
}

/* CORPO DO CARD */
.mat-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mat-card-category {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--laranja);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.mat-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--verde-escuro);
  margin-bottom: 6px;
  word-break: break-word;
}

.mat-card-info {
  font-size: 0.85rem;
  color: var(--cinza-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
  word-break: break-word;
}

/* BOTÕES DE AÇÃO */
.mat-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  width: 100%;
}

.mat-download-btn,
.mat-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 9px 8px;
  border-radius: var(--radius-btn);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  min-width: 0;
  transition: all 0.2s ease;
}

.mat-download-btn {
  background: var(--verde-escuro);
  color: var(--branco);
  box-shadow: 0 2px 6px rgba(80, 99, 36, 0.15);
}

.mat-download-btn:hover {
  background: var(--verde-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(80, 99, 36, 0.25);
}

.mat-share-btn {
  background: var(--laranja);
  color: var(--branco);
  box-shadow: 0 2px 6px rgba(242, 137, 25, 0.2);
}

.mat-share-btn:hover {
  background: var(--laranja-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 137, 25, 0.35);
}

.mat-download-btn svg,
.mat-share-btn svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* ===========================================================
   ESTADO VAZIO (QUANDO NENHUM MATERIAL É ENCONTRADO)
   =========================================================== */
.mat-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--creme-card);
  border-radius: var(--radius-card);
  border: 1.5px dashed var(--creme-border);
  margin: 20px 0;
  display: none;
}

.mat-empty-state.is-visible {
  display: block;
}

.mat-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--verde-amarelado);
}

.mat-empty-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--verde-escuro);
  margin-bottom: 8px;
}

.mat-empty-desc {
  font-size: 0.95rem;
  color: var(--cinza-muted);
  margin-bottom: 20px;
}

/* ===========================================================
   SEÇÃO DE DICAS DE MOBILIZAÇÃO
   =========================================================== */
.mat-tips-box {
  background: linear-gradient(135deg, var(--verde-dark) 0%, var(--verde-escuro) 100%);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 36px);
  color: #FFFFFF;
  margin-top: clamp(36px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}

.mat-tips-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mat-tips-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--verde-dourado-claro);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mat-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #FEF8E2;
}

.mat-tips-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mat-tips-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--laranja);
}

.mat-tips-item strong {
  color: #FFFFFF;
  display: block;
  margin-bottom: 4px;
}

/* ===========================================================
   LIGHTBOX MODAL & CARROSSEL INTERATIVO
   =========================================================== */
.mat-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 20, 10, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mat-lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mat-lightbox-content {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.mat-lightbox-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 65vh;
}

.mat-lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Botões de Navegação Próximo / Anterior */
.mat-lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mat-lightbox-nav-btn:hover {
  background: var(--laranja);
  transform: translateY(-50%) scale(1.1);
}

.mat-lightbox-nav-btn.prev {
  left: -20px;
}

.mat-lightbox-nav-btn.next {
  right: -20px;
}

.mat-lightbox-nav-btn.is-hidden {
  display: none;
}

/* Indicadores / Paginação do Carrossel */
.mat-lightbox-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.mat-lightbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mat-lightbox-dot.active {
  background: var(--laranja);
  transform: scale(1.3);
}

.mat-lightbox-counter-badge {
  background: rgba(242, 137, 25, 0.9);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.mat-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 680px;
  margin-top: 14px;
  color: #FFFFFF;
  gap: 12px;
  flex-wrap: wrap;
}

.mat-lightbox-info-group {
  display: flex;
  flex-direction: column;
}

.mat-lightbox-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #FEF8E2;
}

.mat-lightbox-slide-title {
  font-size: 0.82rem;
  color: var(--verde-dourado-claro);
  font-weight: 600;
}

.mat-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mat-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  padding: 10px;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.mat-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===========================================================
   MODAL DE COMPARTILHAMENTO
   =========================================================== */
.mat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 20, 10, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mat-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mat-modal-container {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.mat-modal-overlay.is-active .mat-modal-container {
  transform: scale(1) translateY(0);
}

.mat-modal-header {
  background: var(--verde-dark);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mat-modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--verde-dourado-claro);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mat-modal-close {
  color: rgba(255, 255, 255, 0.8);
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mat-modal-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}

.mat-modal-body {
  padding: 20px;
}

.mat-modal-item-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--creme-preview-bg);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--creme-border);
}

.mat-modal-item-preview img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
  flex-shrink: 0;
}

.mat-modal-item-info h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--verde-escuro);
  margin-bottom: 2px;
}

.mat-modal-item-info p {
  font-size: 0.82rem;
  color: var(--cinza-muted);
}

.mat-share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mat-share-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #FFFFFF;
  transition: transform 0.2s, filter 0.2s;
  text-align: left;
}

.mat-share-option-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.mat-share-whatsapp { background: #25D366; }
.mat-share-facebook { background: #1877F2; }
.mat-share-twitter { background: #111111; }
.mat-share-telegram { background: #229ED9; }

.mat-copy-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--bege-fundo);
  color: var(--verde-escuro);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--creme-border);
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 12px;
}

.mat-copy-link-btn:hover {
  background: var(--verde-escuro);
  color: var(--branco);
  border-color: var(--verde-escuro);
}

.mat-modal-tip {
  font-size: 0.82rem;
  color: var(--cinza-muted);
  line-height: 1.45;
  text-align: center;
  background: #FAF6EC;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed var(--creme-border);
}

/* ===========================================================
   TOAST POPUP
   =========================================================== */
.mat-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--verde-dark);
  color: var(--verde-dourado-claro);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 99px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.mat-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===========================================================
   FOOTER OFICIAL
   =========================================================== */
.mat-footer {
  background-color: var(--verde-dark);
  color: #FEF8E2;
  padding: clamp(36px, 5vw, 48px) 0 24px;
}

.mat-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(254, 246, 213, 0.15);
}

.mat-footer__logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.mat-footer__logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.mat-footer__desc {
  font-size: 0.95rem;
  color: var(--verde-dourado-claro);
  font-weight: 600;
  max-width: 600px;
}

.mat-footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.mat-footer__link {
  font-size: 0.88rem;
  color: #FEF8E2;
  font-weight: 600;
  transition: color 0.2s;
}

.mat-footer__link:hover {
  color: var(--laranja);
}

.mat-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mat-footer__social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(254, 246, 213, 0.1);
  color: #FEF8E2;
  transition: all 0.2s;
}

.mat-footer__social-item:hover {
  background-color: var(--laranja);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.mat-footer__social-item svg {
  width: 18px;
  height: 18px;
}

.mat-footer__bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(254, 246, 213, 0.7);
  line-height: 1.6;
}

/* ===========================================================
   RESPONSIVIDADE
   =========================================================== */
@media (max-width: 860px) {
  .mat-hero {
    padding-bottom: 0;
  }
  .mat-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }
  .mat-hero-text-col {
    padding-bottom: 16px;
  }
  .mat-hero-badges-row {
    justify-content: center;
  }
  .mat-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .mat-search-box {
    margin-left: auto;
    margin-right: auto;
  }
  .mat-hero-visual-col {
    margin-top: 0;
  }
  .mat-cand--helou img {
    height: clamp(210px, 45vw, 320px);
  }
  .mat-cand--bragante img {
    height: clamp(235px, 50vw, 355px);
  }
}

@media (max-width: 640px) {
  .mat-header__brand .mat-header__logo-group {
    gap: 6px;
  }
  
  .mat-header__logo {
    height: 24px;
  }
  
  .mat-header__cta span {
    display: none;
  }

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

  .mat-card-preview {
    height: 280px;
  }

  .mat-card.aspect-portrait .mat-card-preview {
    height: 320px;
  }

  .mat-action-row {
    grid-template-columns: 1fr 1fr;
  }

  .mat-download-btn,
  .mat-share-btn {
    font-size: 0.74rem;
    padding: 8px 4px;
  }

  .mat-lightbox-nav-btn.prev {
    left: 4px;
  }
  .mat-lightbox-nav-btn.next {
    right: 4px;
  }
}
