/* ============================================
   DIÁRIO FLOR&SER — Design System Global
   Atmosfera: Tranquilo & Sóbrio
   Sentimento: Paz, Calma, Harmonia, Saúde
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Primary Palette */
  --primary: #3A5D8C;
  --primary-light: #4a6fa3;
  --primary-dark: #2d4a70;
  --primary-rgb: 58, 93, 140;

  --secondary: #3C92A6;
  --secondary-light: #4da8be;
  --secondary-dark: #30778a;
  --secondary-rgb: 60, 146, 166;

  --accent: #F2D399;
  --accent-light: #f5dfb3;
  --accent-dark: #e6c070;
  --accent-rgb: 242, 211, 153;

  --dark: #593202;
  --dark-light: #7a4a10;
  --dark-rgb: 89, 50, 2;

  --warm: #A68256;
  --warm-light: #c49e6e;
  --warm-dark: #8a6b44;
  --warm-rgb: 166, 130, 86;

  --white: #FFFFFF;
  --off-white: #FAFAF7;
  --cream: #FDF8F0;
  --light-gray: #F0EDE8;
  --mid-gray: #C4BFB6;
  --text-gray: #6B6560;
  --text-dark: #2D2A26;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-warm: linear-gradient(135deg, var(--accent) 0%, var(--warm) 100%);
  --gradient-hero: linear-gradient(160deg, #3A5D8C 0%, #3C92A6 40%, #4da8be 100%);
  --gradient-subtle: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'DM Sans', 'Inter', sans-serif;

  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --fs-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --fs-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --fs-2xl: clamp(1.4rem, 1.2rem + 1vw, 1.875rem);
  --fs-3xl: clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem);
  --fs-4xl: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  --fs-5xl: clamp(2.2rem, 1.6rem + 3vw, 3.75rem);

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(var(--secondary-rgb), 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;

  /* Layout */
  --max-width: 1280px;
  --content-width: 780px;
  --sidebar-width: 340px;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-dark);
  background-color: var(--off-white);
  overflow-x: hidden;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

a:hover {
  color: var(--primary);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  font-size: var(--fs-base);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--fs-base);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--primary);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  margin-bottom: var(--sp-md);
  color: var(--text-gray);
  line-height: var(--lh-relaxed);
}

::selection {
  background: rgba(var(--secondary-rgb), 0.2);
  color: var(--primary-dark);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--mid-gray);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--warm);
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── HEADER / NAVIGATION ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--primary-rgb),0.08);
  transition: all var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
}

.logo img {
  height: 65px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--secondary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
}

.nav-links {
  display: flex;
  gap: var(--sp-xl);
}

.nav-links a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--sp-sm) 0;
  transition: color var(--duration-normal) var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-admin-link {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--secondary);
  padding: var(--sp-sm) var(--sp-md);
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-admin-link:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-sm);
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  transition: color var(--duration-normal) var(--ease-out);
}

.mobile-nav a:hover {
  color: var(--secondary);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px 28px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.4);
  color: var(--dark);
}

.btn-sm {
  padding: 8px 18px;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--fs-base);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(var(--primary-rgb), 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.card-body {
  padding: var(--sp-lg);
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--secondary);
  background: rgba(var(--secondary-rgb), 0.1);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  margin: var(--sp-sm) 0;
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--secondary);
}

.card-excerpt {
  font-size: var(--fs-sm);
  color: var(--text-gray);
  line-height: var(--lh-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--sp-md);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  font-size: var(--fs-xs);
  color: var(--mid-gray);
}

.card-meta svg {
  width: 14px;
  height: 14px;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── TAGS ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--secondary);
  background: rgba(var(--secondary-rgb), 0.08);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.tag:hover, .tag.active {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-1px);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

/* ── FORMS ── */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  margin-bottom: var(--sp-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--fs-base);
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--lh-relaxed);
}

/* ── ADSENSE SLOTS ── */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: var(--fs-sm);
  text-align: center;
  padding: var(--sp-md);
  overflow: hidden;
}

/* Production classes — no borders, no background, centered */
.ad-slot.center {
  margin: 0 auto;
  border: none;
  background: none;
  padding: 0;
}

/* Placeholder styling (dev only) */
.ad-slot[id] {
  background: var(--light-gray);
  border: 1px dashed var(--mid-gray);
  border-radius: var(--radius-md);
  min-height: 100px;
}

/* ── Dimension-restricted ad classes ── */
.leaderboard,
.ad-leaderboard {
  width: 970px;
  max-width: 100%;
  height: 90px;
  margin: 0 auto;
}

.medium_rectangle,
.ad-medium-rect {
  width: 300px;
  height: 250px;
  margin: 0 auto;
}

.half_page,
.ad-half-page {
  width: 300px;
  height: 600px;
  margin: 0 auto;
}

.ad-slot-horizontal {
  width: 100%;
  min-height: 90px;
  margin: var(--sp-2xl) 0;
}

.ad-slot-sidebar {
  width: 100%;
  min-height: 250px;
  margin-bottom: var(--sp-xl);
}

.ad-slot-in-article {
  width: 100%;
  min-height: 120px;
  margin: var(--sp-xl) 0;
}

/* Ensure ad images are responsive and borderless */
.ad-slot img {
  max-width: 100%;
  height: auto;
  border: none;
  background: none;
}

.ad-slot a {
  display: block;
  line-height: 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: var(--sp-4xl) 0 var(--sp-xl);
  margin-top: var(--sp-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-3xl);
  margin-bottom: var(--sp-3xl);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-top: var(--sp-md);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand .logo-text span {
  color: var(--accent);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-lg);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  padding: var(--sp-xs) 0;
  transition: color var(--duration-normal) var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: all var(--duration-normal) var(--ease-out);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ── PAGE TRANSITIONS ── */
.page-content {
  padding-top: var(--header-height);
  min-height: 100vh;
  animation: fadeIn var(--duration-slow) var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in {
  animation: fadeIn var(--duration-slow) var(--ease-out);
}

.animate-fade-up {
  animation: fadeInUp var(--duration-slow) var(--ease-out);
}

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, var(--cream) 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── TOAST NOTIFICATIONS ── */
.toast-container {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  animation: slideInRight var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  min-width: 280px;
}

.toast-success { background: #2D875F; }
.toast-error { background: #C0392B; }
.toast-info { background: var(--secondary); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 900;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-2xl);
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-gray);
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 62px;
  }

  .container {
    padding: 0 var(--sp-md);
  }

  .nav-links,
  .nav-admin-link {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-md);
    text-align: center;
  }

  .back-to-top {
    bottom: var(--sp-md);
    right: var(--sp-md);
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-sm);
  }
}
/* ── FLOTATING COOKIE TOAST (LGPD) ── */
.cookie-floating-toast {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  left: auto;
  width: calc(100% - 2*var(--sp-lg));
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.cookie-floating-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-floating-toast.fade-out {
  transform: translateY(20px);
  opacity: 0;
}
.cookie-floating-toast .cookie-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--text-gray);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--duration-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-floating-toast .cookie-close:hover {
  opacity: 1;
  color: var(--primary);
}
.cookie-floating-toast .cookie-close svg {
  width: 20px;
  height: 20px;
}
.cookie-floating-toast .cookie-banner-content p {
  color: var(--text-dark);
  font-size: var(--fs-xs);
  margin-bottom: 0;
  padding-right: 20px; /* space for X */
  line-height: var(--lh-relaxed);
}
.cookie-floating-toast .cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  margin-top: var(--sp-sm);
}


.cookie-modal {
  max-width: 500px !important;
}
.cookie-option {
  text-align: left;
  background: var(--off-white);
  padding: var(--sp-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-sm);
}
.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.cookie-option p {
  font-size: var(--fs-xs) !important;
  color: var(--text-gray);
  margin-bottom: 0 !important;
}
