/* =====================================================

   CRIADOURO DE AVES - CSS PRINCIPAL

   ===================================================== */

:root {

  --green-50: #f0fdf4;

  --green-100: #dcfce7;

  --green-200: #bbf7d0;

  --green-300: #86efac;

  --green-400: #4ade80;

  --green-500: #22c55e;

  --green-600: #16a34a;

  --green-700: #15803d;

  --green-800: #166534;

  --green-900: #14532d;

  --gold: #f59e0b;

  --slate-50: #f8fafc;

  --slate-100: #f1f5f9;

  --slate-200: #e2e8f0;

  --slate-500: #64748b;

  --slate-600: #475569;

  --slate-700: #334155;

  --slate-800: #1e293b;

  --white: #ffffff;

  --shadow: 0 4px 20px rgba(0,0,0,.08);

  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);

  --radius: 16px;

  --radius-sm: 10px;

}



* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {

  font-family: 'Inter', system-ui, -apple-system, sans-serif;

  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #ecfdf5 100%);

  color: var(--slate-800);

  min-height: 100vh;

  line-height: 1.6;

}

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

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

ul { list-style: none; }



.container {

  width: min(1200px, 92%);

  margin: 0 auto;

}



/* ===== HEADER ===== */

.header {

  position: sticky;

  top: 0;

  z-index: 100;

  background: rgba(255,255,255,.9);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--green-100);

  box-shadow: 0 2px 12px rgba(0,0,0,.04);

}

.header-inner {

  display: flex;

  align-items: center;

  justify-content: space-between;

  min-height: 72px;

  gap: 16px;

}

.logo {

  display: flex;

  align-items: center;

  gap: 10px;

}

.logo-icon {

  width: 44px;

  height: 44px;

  border-radius: 50%;

  background: linear-gradient(135deg, var(--green-500), var(--green-700));

  display: grid;

  place-items: center;

  font-size: 22px;

  box-shadow: 0 4px 12px rgba(22,163,74,.3);

}

.logo-text strong {

  display: block;

  color: var(--green-700);

  font-size: 1.05rem;

}

.logo-text small {

  color: var(--green-700);

  opacity: .75;

  font-size: .72rem;

}

.nav {

  display: flex;

  align-items: center;

  gap: 22px;

}

.nav a {

  font-weight: 500;

  color: var(--slate-700);

  transition: color .2s;

}

.nav a:hover,

.nav a.active { color: var(--green-600); }

.menu-toggle {

  display: none;

  border: none;

  background: var(--green-50);

  color: var(--green-800);

  font-size: 1.4rem;

  width: 42px;

  height: 42px;

  border-radius: 10px;

  cursor: pointer;

}



/* ===== BUTTONS ===== */

.btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  border: none;

  border-radius: 999px;

  padding: 12px 22px;

  font-weight: 700;

  cursor: pointer;

  transition: .2s ease;

  text-align: center;

}

.btn:hover { transform: translateY(-1px); }

.btn-sm { padding: 8px 14px; font-size: .9rem; }

.btn-primary {

  background: var(--green-600);

  color: white;

  box-shadow: 0 6px 18px rgba(22,163,74,.25);

}

.btn-primary:hover { background: var(--green-700); }

.btn-white {

  background: white;

  color: var(--green-800);

  box-shadow: var(--shadow);

}

.btn-whatsapp {

  background: #25d366;

  color: white;

}

.btn-whatsapp:hover { background: #1ebe5a; }

.btn-outline {

  background: transparent;

  border: 2px solid var(--green-600);

  color: var(--green-700);

}

.btn-danger {

  background: #dc2626;

  color: white;

}

.btn-secondary {

  background: var(--slate-100);

  color: var(--slate-700);

}



/* ===== HERO ===== */

.hero {

  position: relative;

  background: linear-gradient(135deg, #166534, #15803d 40%, #059669);

  color: white;

  padding: 70px 0 90px;

  overflow: hidden;

}

.hero::before {

  content: "";

  position: absolute;

  inset: 0;

  background:

    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 30%),

    radial-gradient(circle at 80% 70%, rgba(255,255,255,.1), transparent 35%);

}

.hero .container { position: relative; z-index: 1; }

.hero-grid {

  display: grid;

  grid-template-columns: 1.2fr .8fr;

  gap: 40px;

  align-items: center;

}

.hero-badge {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: rgba(255,255,255,.12);

  border: 1px solid rgba(255,255,255,.18);

  padding: 8px 14px;

  border-radius: 999px;

  margin-bottom: 18px;

  font-size: .9rem;

}

.hero h1 {

  font-size: clamp(2.2rem, 5vw, 3.5rem);

  line-height: 1.1;

  margin-bottom: 16px;

}

.hero h1 span { color: #fde047; }

.hero p {

  font-size: 1.1rem;

  color: #dcfce7;

  max-width: 520px;

  margin-bottom: 28px;

}

.hero-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

}

.hero-art {

  width: 100%;

  aspect-ratio: 1;

  max-width: 360px;

  margin: 0 auto;

  border-radius: 50%;

  background: rgba(255,255,255,.12);

  border: 1px solid rgba(255,255,255,.2);

  display: grid;

  place-items: center;

  font-size: 8rem;

  position: relative;

}

.hero-art .badge {

  position: absolute;

  width: 64px;

  height: 64px;

  border-radius: 50%;

  display: grid;

  place-items: center;

  font-size: 1.6rem;

  box-shadow: var(--shadow-lg);

}

.hero-art .b1 { top: 10px; right: 10px; background: #facc15; }

.hero-art .b2 { bottom: 16px; left: 8px; background: #86efac; }



/* ===== SECTIONS ===== */

.section { padding: 64px 0; }

.section-alt { background: linear-gradient(180deg, #fff, #f0fdf4); }

.section-title {

  text-align: center;

  margin-bottom: 36px;

}

.section-title h2 {

  font-size: clamp(1.8rem, 3vw, 2.3rem);

  color: var(--green-700);

  margin-bottom: 8px;

}

.section-title p { color: var(--slate-500); }



/* ===== FEATURES ===== */

.features {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;

  margin-top: -40px;

  position: relative;

  z-index: 2;

}

.feature-card {

  background: white;

  border: 1px solid var(--green-100);

  border-radius: var(--radius);

  padding: 22px 16px;

  text-align: center;

  box-shadow: var(--shadow);

}

.feature-icon {

  width: 52px;

  height: 52px;

  margin: 0 auto 12px;

  border-radius: 14px;

  background: var(--green-100);

  display: grid;

  place-items: center;

  font-size: 1.4rem;

}

.feature-card h3 { font-size: .98rem; margin-bottom: 4px; }

.feature-card p { color: var(--slate-500); font-size: .85rem; }



/* ===== CARDS ===== */

.grid-3 {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;

}

.grid-4 {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;

}

.card {

  background: white;

  border: 1px solid var(--green-100);

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);

  transition: .25s ease;

}

.card:hover {

  transform: translateY(-6px);

  box-shadow: var(--shadow-lg);

  border-color: var(--green-300);

}

.card-img {

  position: relative;

  height: 220px;

  background: linear-gradient(135deg, var(--green-100), var(--green-200));

  overflow: hidden;

}

.card-img img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform .4s;

}

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

.card-img .placeholder {

  width: 100%;

  height: 100%;

  display: grid;

  place-items: center;

  font-size: 4rem;

  opacity: .45;

}

.card-body { padding: 16px 18px 20px; }

.card-body h3 {

  font-size: 1.1rem;

  margin-bottom: 4px;

  color: var(--slate-800);

}

.card-body .meta {

  color: var(--slate-500);

  font-size: .9rem;

  margin-bottom: 8px;

}

.card-body .price {

  color: var(--green-700);

  font-weight: 800;

  font-size: 1.05rem;

}

.badge {

  display: inline-block;

  font-size: .72rem;

  font-weight: 700;

  padding: 4px 10px;

  border-radius: 999px;

}

.badge-destaque {

  background: #fde68a;

  color: #92400e;

}

.badge-vendido {

  background: #fecaca;

  color: #991b1b;

}

.badge-ok {

  background: var(--green-100);

  color: var(--green-800);

}

.badge-sexo {

  background: #dbeafe;

  color: #1d4ed8;

}

.badge-femea {

  background: #fce7f3;

  color: #be185d;

}

.card-badges {

  position: absolute;

  top: 12px;

  left: 12px;

  display: flex;

  gap: 6px;

  flex-wrap: wrap;

}



/* ===== PAGE HEADER ===== */

.page-header {

  background: linear-gradient(135deg, #166534, #15803d);

  color: white;

  padding: 48px 0 36px;

}

.page-header h1 {

  font-size: clamp(1.8rem, 3vw, 2.4rem);

  margin-bottom: 6px;

}

.page-header p { color: #dcfce7; }

.page-header a {

  color: #dcfce7;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  margin-bottom: 12px;

  font-size: .95rem;

}

.page-header a:hover { color: white; }



/* ===== DETAIL ===== */

.detail-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 36px;

}

.detail-image {

  border-radius: var(--radius);

  overflow: hidden;

  background: linear-gradient(135deg, var(--green-100), var(--green-200));

  min-height: 360px;

  box-shadow: var(--shadow);

}

.detail-image img {

  width: 100%;

  height: 420px;

  object-fit: cover;

}

.detail-image .placeholder {

  height: 420px;

  display: grid;

  place-items: center;

  font-size: 6rem;

  opacity: .4;

}

.thumbs {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 10px;

  margin-top: 12px;

}

.thumbs img {

  width: 100%;

  height: 80px;

  object-fit: cover;

  border-radius: 10px;

  border: 2px solid var(--green-200);

}

.price-box {

  background: var(--green-50);

  border: 1px solid var(--green-200);

  border-radius: var(--radius-sm);

  padding: 16px;

  margin: 16px 0;

}

.price-box small { color: var(--green-700); display: block; }

.price-box strong {

  color: var(--green-700);

  font-size: 1.8rem;

}

.info-list {

  display: grid;

  gap: 10px;

  margin: 18px 0;

}

.info-item {

  background: var(--slate-50);

  border-radius: 12px;

  padding: 12px 14px;

  display: flex;

  gap: 12px;

  align-items: center;

}

.info-item strong { display: block; }

.info-item span { color: var(--slate-500); font-size: .8rem; }



/* ===== CTA ===== */

.cta {

  background: linear-gradient(135deg, #166534, #059669);

  color: white;

  text-align: center;

  padding: 64px 0;

}

.cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }

.cta p { color: #dcfce7; max-width: 620px; margin: 0 auto 24px; }



/* ===== FOOTER ===== */

.footer {

  background: linear-gradient(135deg, #14532d, #166534 50%, #065f46);

  color: white;

  padding-top: 56px;

}

.footer-grid {

  display: grid;

  grid-template-columns: 1.3fr 1fr 1fr 1fr;

  gap: 28px;

  padding-bottom: 36px;

}

.footer-brand {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 12px;

}

.footer-col p,

.footer-col li {

  color: #bbf7d0;

  font-size: .92rem;

  margin-bottom: 8px;

}

.footer-col h4 {

  color: #86efac;

  margin-bottom: 14px;

}

.footer-col a:hover { color: white; }

.footer-bottom {

  border-top: 1px solid rgba(255,255,255,.12);

  padding: 18px 0;

  text-align: center;

  color: #86efac;

  font-size: .9rem;

}



/* ===== WHATSAPP FLOAT ===== */

.whatsapp-float {

  position: fixed;

  right: 22px;

  bottom: 22px;

  width: 58px;

  height: 58px;

  border-radius: 50%;

  background: #25d366;

  color: white;

  display: grid;

  place-items: center;

  font-size: 1.7rem;

  box-shadow: 0 8px 24px rgba(37,211,102,.4);

  z-index: 200;

  transition: .2s;

}

.whatsapp-float:hover {

  transform: scale(1.08);

  background: #1ebe5a;

}



/* ===== FORMS / ADMIN ===== */

.admin-body {

  background: #f8fafc;

  min-height: 100vh;

}

.admin-layout {

  display: grid;

  grid-template-columns: 250px 1fr;

  min-height: 100vh;

}

.admin-sidebar {

  background: white;

  border-right: 1px solid var(--slate-200);

  padding: 22px 16px;

  position: sticky;

  top: 0;

  height: 100vh;

}

.admin-brand {

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 8px 10px 20px;

  border-bottom: 1px solid var(--slate-200);

  margin-bottom: 16px;

}

.admin-menu a {

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 12px 14px;

  border-radius: 12px;

  color: var(--slate-600);

  margin-bottom: 4px;

  font-weight: 500;

}

.admin-menu a:hover,

.admin-menu a.active {

  background: var(--green-50);

  color: var(--green-700);

}

.admin-content { padding: 24px; }

.admin-top {

  background: white;

  border: 1px solid var(--slate-200);

  border-radius: var(--radius);

  padding: 16px 20px;

  margin-bottom: 20px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;

}

.stats {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 16px;

  margin-bottom: 22px;

}

.stat-card {

  background: white;

  border: 1px solid var(--slate-200);

  border-radius: var(--radius);

  padding: 18px;

}

.stat-card strong {

  display: block;

  font-size: 1.8rem;

  color: var(--slate-800);

}

.stat-card span { color: var(--slate-500); font-size: .9rem; }



.panel {

  background: white;

  border: 1px solid var(--slate-200);

  border-radius: var(--radius);

  padding: 20px;

  box-shadow: var(--shadow);

}

.table-wrap { overflow-x: auto; }

table {

  width: 100%;

  border-collapse: collapse;

}

th, td {

  text-align: left;

  padding: 12px 10px;

  border-bottom: 1px solid var(--slate-100);

  font-size: .94rem;

}

th {

  color: var(--slate-500);

  font-size: .82rem;

  text-transform: uppercase;

  letter-spacing: .03em;

}

.form-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;

}

.form-group { margin-bottom: 14px; }

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

.form-group label {

  display: block;

  font-weight: 600;

  margin-bottom: 6px;

  color: var(--slate-700);

  font-size: .92rem;

}

.form-group input,

.form-group select,

.form-group textarea {

  width: 100%;

  border: 1px solid #cbd5e1;

  border-radius: 12px;

  padding: 12px 14px;

  font: inherit;

  outline: none;

  background: white;

}

.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus {

  border-color: var(--green-500);

  box-shadow: 0 0 0 3px rgba(34,197,94,.15);

}

.form-group textarea { min-height: 110px; resize: vertical; }

.form-actions {

  display: flex;

  gap: 10px;

  flex-wrap: wrap;

  margin-top: 8px;

}

.alert {

  padding: 12px 14px;

  border-radius: 12px;

  margin-bottom: 16px;

  font-weight: 500;

}

.alert-success {

  background: #dcfce7;

  color: #166534;

  border: 1px solid #bbf7d0;

}

.alert-error {

  background: #fee2e2;

  color: #991b1b;

  border: 1px solid #fecaca;

}

.login-wrap {

  min-height: 100vh;

  display: grid;

  place-items: center;

  padding: 24px;

  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);

}

.login-card {

  width: min(420px, 100%);

  background: white;

  border: 1px solid var(--green-100);

  border-radius: 20px;

  padding: 32px 28px;

  box-shadow: var(--shadow-lg);

}

.login-card h1 {

  text-align: center;

  color: var(--green-700);

  margin-bottom: 8px;

}

.login-card p {

  text-align: center;

  color: var(--slate-500);

  margin-bottom: 22px;

}

.empty {

  text-align: center;

  padding: 50px 20px;

  color: var(--slate-500);

}

.empty .icon { font-size: 4rem; margin-bottom: 12px; }

.actions {

  display: flex;

  gap: 8px;

  justify-content: flex-end;

}

.actions a, .actions button {

  border: none;

  background: var(--slate-100);

  color: var(--slate-700);

  border-radius: 8px;

  padding: 8px 10px;

  cursor: pointer;

  font: inherit;

}

.actions .edit { background: #dbeafe; color: #1d4ed8; }

.actions .delete { background: #fee2e2; color: #b91c1c; }

.check-row {

  display: flex;

  gap: 18px;

  flex-wrap: wrap;

  align-items: center;

}

.check-row label {

  display: flex;

  align-items: center;

  gap: 8px;

  font-weight: 600;

  cursor: pointer;

}

.muted { color: var(--slate-500); font-size: .9rem; }

.mt-2 { margin-top: 8px; }

.mt-3 { margin-top: 16px; }

.mt-4 { margin-top: 24px; }

.mb-3 { margin-bottom: 16px; }

.text-center { text-align: center; }



/* ===== UPLOAD ADMIN ===== */

.upload-preview {

  display: flex;

  flex-direction: column;

  gap: 10px;

  max-width: 280px;

}

.upload-preview img {

  width: 100%;

  height: 180px;

  object-fit: cover;

  border-radius: 12px;

  border: 1px solid var(--slate-200);

  background: var(--slate-50);

}

.check-remove {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: .9rem;

  color: #b91c1c;

  font-weight: 600;

}

.gallery-admin {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));

  gap: 12px;

}

.gallery-admin-item {

  background: var(--slate-50);

  border: 1px solid var(--slate-200);

  border-radius: 12px;

  padding: 8px;

}

.gallery-admin-item img {

  width: 100%;

  height: 100px;

  object-fit: cover;

  border-radius: 8px;

  margin-bottom: 8px;

}

.gallery-admin-item label {

  display: flex;

  align-items: center;

  gap: 6px;

  font-size: .82rem;

  color: #b91c1c;

  font-weight: 600;

  cursor: pointer;

}

input[type="file"] {

  width: 100%;

  border: 1px dashed #86efac;

  background: #f0fdf4;

  border-radius: 12px;

  padding: 14px;

  font: inherit;

  cursor: pointer;

}

input[type="file"]:hover {

  border-color: var(--green-500);

  background: #ecfdf5;

}



/* ===== RESPONSIVE ===== */

@media (max-width: 980px) {

  .hero-grid,

  .detail-grid,

  .footer-grid,

  .admin-layout,

  .form-grid,

  .grid-3,

  .grid-4,

  .features,

  .stats {

    grid-template-columns: 1fr 1fr;

  }

  .admin-layout { grid-template-columns: 1fr; }

  .admin-sidebar {

    position: relative;

    height: auto;

  }

  .hero-art { display: none; }

}

@media (max-width: 720px) {

  .menu-toggle { display: grid; place-items: center; }

  .nav {

    display: none;

    position: absolute;

    top: 72px;

    left: 0;

    right: 0;

    background: white;

    border-bottom: 1px solid var(--green-100);

    flex-direction: column;

    align-items: stretch;

    padding: 12px 16px 18px;

    gap: 4px;

  }

  .nav.open { display: flex; }

  .nav a {

    padding: 12px 10px;

    border-radius: 10px;

  }

  .nav a:hover { background: var(--green-50); }

  .features,

  .grid-3,

  .grid-4,

  .footer-grid,

  .stats,

  .form-grid,

  .detail-grid {

    grid-template-columns: 1fr;

  }

  .hero { padding: 50px 0 70px; }

  .section { padding: 48px 0; }

  .card-img { height: 200px; }

}


/* Botão flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    background-color: #20b859;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Animação de pulsação (opcional) */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

