/* ============================================
   Casa das Arvores - CSS Principal
   Fontes: Open Sans, Poppins
   ============================================ */

/* --- Fonts --- */
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-extrabold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 1.6; color: #212121; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Variables --- */
:root {
    --green-primary: #5DC269;
    --green-dark: #4AAF55;
    --brown-dark: #2D2418;
    --brown-card: #3F3221;
    --dark-bg: #161616;
    --gold: #ECB339;
    --footer-bg: #161616;
    --text-dark: #212121;
    --white: #fff;
    --container: 1200px;
    --header-h: 72px;
}

/* --- Container --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER
   ============================================ */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #eee; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 400; color: var(--text-dark); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--green-primary); }
.btn-enter { font-size: 14px; padding: 8px 20px; border: 1px solid var(--text-dark); border-radius: 3px; transition: all 0.2s; }
.btn-enter:hover { background: var(--green-primary); color: var(--white); border-color: var(--green-primary); }

/* Mobile menu button */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-dark); transition: 0.2s; }

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; height: 640px; overflow: hidden; }
.hero-slides-track { display: flex; height: 100%; transition: transform 0.6s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 24px; pointer-events: none; }
.hero-title { font-family: 'Poppins', sans-serif; color: var(--white); font-size: 60px; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,0.85); border: none; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #333; padding: 0; transition: background 0.2s; }
.hero-arrow:hover { background: var(--white); }
.hero-arrow--prev { left: 32px; }
.hero-arrow--next { right: 32px; }
.hero-arrow svg { width: 20px; height: 20px; }

/* ============================================
   BENEFIT CARDS
   ============================================ */
.benefits { position: relative; z-index: 5; margin-top: -80px; background: var(--brown-dark); }
.benefits-grid { display: flex; }
.benefit-card { background: transparent; padding: 50px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.benefit-card:nth-child(2) { background: var(--brown-card); }
.benefit-card-icon { width: 80px; height: 80px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 16px; margin-bottom: 20px; }
.benefit-card-icon img { width: 100%; height: 100%; filter: brightness(0) invert(0.85); }
.benefit-card-title { color: var(--white); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.benefit-card-text { color: var(--white); font-size: 16px; line-height: 1.4; }

/* ============================================
   INSTITUTIONAL SECTION
   ============================================ */
.institutional { padding: 60px 0; background: var(--white); }
.institutional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.institutional-image { width: 100%; }
.institutional-image img { width: 100%; border-radius: 4px; }
.institutional-title { font-size: 20px; font-weight: 400; color: var(--text-dark); margin-bottom: 20px; line-height: 1.3; }
.institutional-text { font-size: 16px; color: var(--text-dark); line-height: 1.7; }
.institutional-text p { margin-bottom: 16px; }

/* ============================================
   CTA SPECIES
   ============================================ */
.cta-species { background: var(--dark-bg); padding: 32px 0; }
.cta-species-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-species-title { color: var(--white); font-size: 24px; font-weight: 400; margin-bottom: 4px; }
.cta-species-text { color: var(--white); font-size: 16px; }
.btn-solid { display: inline-block; padding: 12px 28px; background: var(--green-primary); border: none; color: var(--white); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 5px; transition: all 0.2s; white-space: nowrap; }
.btn-solid:hover { background: var(--green-dark); }
.btn-gold { display: inline-block; padding: 12px 28px; background: var(--gold); border: none; color: var(--white); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 5px; transition: all 0.2s; white-space: nowrap; }
.btn-gold:hover { background: #D4A030; }

/* ============================================
   STATS
   ============================================ */
.stats { position: relative; min-height: 574px; padding: 80px 0; overflow: hidden; display: flex; align-items: center; }
.stats-bg { position: absolute; inset: 0; }
.stats-bg img { width: 100%; height: 100%; object-fit: cover; }
.stats-bg-overlay { display: none; }
.stats-content { position: relative; z-index: 2; }
.stats-numbers { display: flex; justify-content: center; gap: 300px; margin-bottom: 40px; }
.stat-item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.stat-icon { width: 80px; height: 80px; margin-bottom: 16px; }
.stat-icon img { width: 100%; height: 100%; filter: brightness(0) invert(0.85); }
.stat-value { color: var(--green-primary); font-size: 36px; font-weight: 700; }
.stat-label { color: var(--white); font-size: 18px; font-weight: 700; text-transform: uppercase; margin-top: 4px; }
.stats-cta { text-align: center; max-width: 550px; margin: 0 auto; }
.stats-cta-title { color: var(--white); font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.stats-cta-text { color: var(--white); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }

/* ============================================
   SPECIES LIST (NOSSAS ESPÉCIES)
   ============================================ */
.species-list-page { background: #E8E8E8; padding: 24px 0 48px; }
.species-list-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Search + filter toolbar */
.species-search-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.species-search-box { display: flex; flex: 1; max-width: 790px; border: 1px solid #325B0B; border-radius: 5px; overflow: hidden; }
.species-search-input { flex: 1; padding: 0 16px; height: 52px; border: none; outline: none; font-size: 15px; font-family: inherit; background: var(--white); }
.species-search-btn { width: 54px; display: flex; align-items: center; justify-content: center; background: #325B0B; border: none; cursor: pointer; color: var(--white); }
.species-search-btn:hover { background: #2a4e09; }

/* Toolbar: count */
.species-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.species-count { font-size: 15px; color: #325B0B; margin: 0; }
.species-filter-toggle { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text-dark); font-family: inherit; padding: 6px 0; }
.species-filter-toggle:hover { color: #325B0B; }
.species-filter-toggle.active { color: #325B0B; }

/* Filter panel */
.species-filters { display: none; margin-bottom: 24px; }
.species-filters.open { display: block; }
.species-filter-group { margin-bottom: 16px; max-width: 500px; }
.species-filter-label { display: block; font-size: 15px; font-weight: 700; font-style: italic; color: #325B0B; margin-bottom: 6px; }
.species-filter-select { width: 100%; height: 48px; padding: 0 16px; font-size: 15px; font-family: inherit; border: 1px solid #325B0B; border-radius: 5px; background: var(--white); color: var(--text-dark); appearance: auto; cursor: pointer; }
.species-filter-select:focus { outline: 2px solid #325B0B; outline-offset: -1px; }

/* Grid */
.species-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }

/* Card */
.species-card { display: block; background: var(--white); border-radius: 5px; box-shadow: 0 0 4px rgba(0,0,0,0.15); overflow: hidden; text-decoration: none; transition: box-shadow 0.2s; }
.species-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

/* Card image */
.species-card-img { width: 100%; aspect-ratio: 1; overflow: hidden; background: #f0f0f0; }
.species-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.species-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f0f0f0; }
.species-card-placeholder img { width: 55%; height: 55%; opacity: 0.3; }

/* Card info */
.species-card-info { padding: 12px 10px 16px; text-align: center; }
.species-card-name { font-size: 15px; font-weight: 500; color: #325B0B; line-height: 1.4; margin-bottom: 6px; }
.species-card-separator { display: block; width: 40px; height: 2px; background: #325B0B; margin: 0 auto 6px; }
.species-card-scientific { font-size: 13px; font-weight: 400; color: #325B0B; font-style: italic; line-height: 1.3; }

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

/* Hero */
.sp-hero { background: #1a1a1a; }
.sp-hero-slider { position: relative; overflow: hidden; }
.sp-hero-track { display: flex; transition: transform 0.5s ease; }
.sp-hero-slide { min-width: 100%; height: 540px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #1a1a1a; }
.sp-hero-slide.active { background-size: cover; background-position: center; }
.sp-hero-slide.active::before { content: ''; position: absolute; inset: -20px; background: inherit; background-size: cover; background-position: center; filter: blur(20px) brightness(0.5); transform: translateZ(0); z-index: 0; }
.sp-hero-slide::after { display: none; }
.sp-hero-slide img { position: relative; z-index: 1; height: 100%; width: auto; max-width: 70%; object-fit: contain; display: block; }
.sp-hero-slide--empty { background: #2a2a2a; }
.sp-hero-slide--empty::before { display: none; }
.sp-hero-slide--empty img { width: 120px; height: auto; object-fit: contain; opacity: 0.3; position: static; max-width: none; }

/* Back & Share buttons — inside the central image area */
.sp-hero-btn { position: absolute; top: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.85); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #333; transition: background 0.2s; text-decoration: none; }
.sp-hero-btn:hover { background: var(--white); }
.sp-hero-btn svg { width: 20px; height: 20px; }
.sp-hero-btn--back { left: calc(15% + 12px); }
.sp-hero-btn--share { right: calc(15% + 12px); }

/* Slider arrows */
.sp-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(0,0,0,0.3); border: none; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,0.8); transition: all 0.2s; }
.sp-hero-arrow:hover { background: rgba(0,0,0,0.5); color: var(--white); }
.sp-hero-arrow--prev { left: 12px; }
.sp-hero-arrow--next { right: 12px; }
.sp-hero-arrow svg { width: 24px; height: 24px; }

/* Dots */
.sp-hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.sp-hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; transition: background 0.2s; }
.sp-hero-dot.active { background: var(--white); }

/* Species header (name + scientific name) */
.sp-header { text-align: center; padding: 32px 24px 24px; background: var(--white); }
.sp-name { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 600; color: #325B0B; margin-bottom: 4px; }
.sp-scientific { font-size: 16px; color: #666; font-style: italic; }

/* Content area */
.sp-content { background: var(--white); padding: 0 0 48px; }

/* Field lists */
.sp-fields { list-style: none; padding: 0; margin: 0 0 24px; }
.sp-fields li { position: relative; padding: 5px 0 5px 20px; font-size: 15px; line-height: 1.7; color: #333; }
.sp-fields li::before { content: '•'; position: absolute; left: 0; top: 5px; color: var(--green-primary); font-weight: 700; font-size: 18px; line-height: 1.7; }
.sp-fields li strong { font-weight: 700; color: var(--text-dark); }

/* Vegetation map */
.sp-map { display: flex; align-items: flex-start; gap: 32px; margin: 8px 0 32px; }
.sp-map-legend { flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.sp-map-legend-item { display: flex; align-items: center; gap: 12px; }
.sp-map-legend-dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.sp-map-legend-name { font-size: 15px; font-weight: 600; color: var(--text-dark); white-space: nowrap; }
.sp-map-layers { position: relative; flex: 1; min-width: 0; border: 1px solid #e0e0e0; border-radius: 4px; }
.sp-map-base { width: 100%; height: auto; display: block; }
.sp-map-layer { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Planting environments */
.sp-environments { margin-top: 8px; margin-bottom: 32px; }
.sp-env-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-env-tag { display: inline-block; padding: 6px 16px; background: #f0f7e6; color: #325B0B; font-size: 14px; border-radius: 4px; border: 1px solid #d5e8c0; }

/* Section title */
.sp-section-title { font-size: 18px; font-weight: 400; color: var(--text-dark); margin-bottom: 16px; text-align: center; }

/* References */
.sp-references { margin-top: 24px; margin-bottom: 32px; }
.sp-references-text { font-size: 13px; color: #555; line-height: 1.8; background: #f5f5f5; border-radius: 4px; padding: 20px 24px; }

/* Glossário */
.sp-glossary { margin-top: 32px; }

/* Glossary modal */
.glossary-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 24px; }
.glossary-overlay.open { display: flex; }
.glossary-modal { background: var(--white); border-radius: 8px; max-width: 720px; width: 100%; max-height: 80vh; display: flex; flex-direction: column; }
.glossary-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 16px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.glossary-modal-title { font-size: 24px; font-weight: 700; color: var(--text-dark); }
.glossary-modal-close { background: none; border: none; font-size: 28px; color: #666; cursor: pointer; padding: 0; line-height: 1; }
.glossary-modal-close:hover { color: var(--text-dark); }
.glossary-modal-body { padding: 24px 28px; overflow-y: auto; }
.glossary-modal-body p { font-size: 15px; line-height: 1.6; color: #333; padding: 10px 0; border-bottom: 1px solid #f0f0f0; margin: 0; }
.glossary-modal-body p:last-child { border-bottom: none; }
.glossary-modal-body p strong { color: var(--text-dark); }

/* Related species */
.sp-related { background: #f5f5f5; padding: 48px 0; }
.sp-related-title { font-size: 20px; font-weight: 400; color: var(--text-dark); margin-bottom: 24px; text-align: center; }
.sp-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================
   ABOUT (SOBRE)
   ============================================ */
.about-hero { position: relative; height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-hero-content { position: relative; z-index: 2; text-align: center; }
.about-hero-title { color: var(--white); font-size: clamp(24px, 4vw, 36px); font-weight: 700; letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }

.about-journey { padding: 60px 0; background: var(--white); }
.about-journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-journey-text { font-size: 16px; color: var(--text-dark); line-height: 1.7; }
.about-journey-text p { margin-bottom: 16px; }
.about-journey-heading { font-size: 20px; font-weight: 400; color: var(--text-dark); margin-bottom: 20px; line-height: 1.3; }
.about-journey-subheading { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-top: 28px; margin-bottom: 12px; }
.about-journey-image { width: 100%; }
.about-journey-image img { width: 100%; border-radius: 4px; }

.about-clients { padding: 48px 0; background: var(--white); }
.about-clients-heading { font-size: 24px; font-weight: 400; color: var(--text-dark); margin-bottom: 32px; }
.clients-slider { overflow: hidden; }
.clients-track { display: flex; transition: transform 0.5s ease; gap: 24px; }
.about-client-logo { background: var(--white); display: flex; align-items: center; justify-content: center; height: 120px; width: 268px; min-width: 268px; flex-shrink: 0; }
.about-client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ============================================
   CONTACT (CONTATO)
   ============================================ */
.contact-section { padding: 60px 0 80px; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-heading { font-size: 24px; font-weight: 400; color: var(--text-dark); margin-bottom: 12px; }
.contact-intro { font-size: 16px; color: #555; line-height: 1.7; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon { width: 40px; height: 40px; border-radius: 50%; background: #f0f7e6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 20px; height: 20px; color: #325B0B; }
.contact-item-label { font-size: 13px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-item-value { font-size: 16px; color: var(--text-dark); font-weight: 500; }
.contact-item-note { font-size: 14px; color: #777; margin-top: 2px; }

/* Contact form */
.contact-form-wrapper { background: #f9f9f9; border-radius: 8px; padding: 36px; }
.contact-form-group { margin-bottom: 20px; }
.contact-form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.contact-form-input { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 5px; font-size: 15px; font-family: inherit; color: var(--text-dark); background: var(--white); transition: border-color 0.2s; }
.contact-form-input:focus { outline: none; border-color: #325B0B; }
.contact-form-textarea { resize: vertical; min-height: 120px; }
.contact-form-submit { width: 100%; padding: 14px; font-size: 15px; cursor: pointer; }
.contact-form-feedback { font-size: 14px; margin-top: 12px; text-align: center; }
.contact-form-feedback.success { color: #325B0B; }
.contact-form-feedback.error { color: #c0392b; }

/* ============================================
   LOGIN
   ============================================ */
.login-section { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - var(--header-h)); padding: 48px 24px; background: #f5f5f5; }
.login-card { background: var(--white); border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 48px 40px; width: 100%; max-width: 420px; text-align: center; }
.login-logo { margin-bottom: 24px; }
.login-logo img { height: 48px; margin: 0 auto; }
.login-title { font-size: 18px; font-weight: 400; color: var(--text-dark); margin-bottom: 32px; }
.login-form-group { margin-bottom: 20px; text-align: left; }
.login-form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.login-form-input { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 5px; font-size: 15px; font-family: inherit; color: var(--text-dark); transition: border-color 0.2s; }
.login-form-input:focus { outline: none; border-color: #325B0B; }
.login-form-submit { width: 100%; padding: 14px; font-size: 15px; cursor: pointer; margin-top: 4px; }
.login-form-feedback { font-size: 14px; margin-top: 12px; }
.login-form-feedback.error { color: #c0392b; }
.login-back { display: inline-block; margin-top: 24px; font-size: 14px; color: #777; transition: color 0.2s; }
.login-back:hover { color: var(--text-dark); }

/* ============================================
   ADMIN - SPECIES LIST
   ============================================ */
.admin-species-page { padding: 40px 0 80px; background: var(--white); min-height: 60vh; }
.admin-species-container { max-width: 900px; margin: 0 auto; padding: 0 16px; background: var(--white); border: 1px solid #e0e0e0; border-radius: 4px; min-height: 500px; }

.admin-species-header { display: flex; justify-content: flex-end; padding: 24px 0 16px; }
.admin-add-btn { display: inline-flex; align-items: center; gap: 8px; color: #325B0B; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.admin-add-btn:hover { opacity: 0.7; }

.admin-species-list { display: flex; flex-direction: column; }
.admin-species-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.admin-species-item:last-child { border-bottom: none; }

.admin-species-thumb { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f0f0f0; }
.admin-species-thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-species-name { flex: 1; font-size: 15px; color: var(--text-dark); min-width: 0; }
.admin-species-name em { color: #666; }

.admin-species-actions { display: flex; gap: 12px; flex-shrink: 0; }
.admin-action-btn { background: none; border: none; cursor: pointer; color: #666; padding: 4px; transition: color 0.2s; }
.admin-action-btn:hover { color: var(--text-dark); }
.admin-delete-btn:hover { color: #c0392b; }

/* ============================================
   ADMIN - SPECIES FORM
   ============================================ */
.admin-form-page { padding: 40px 0 80px; background: var(--white); }
.admin-form-container { max-width: 750px; margin: 0 auto; padding: 0 16px; }

.admin-form-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-form-title { font-size: 20px; font-weight: 400; color: var(--text-dark); }
.admin-form-close { font-size: 28px; color: #999; text-decoration: none; line-height: 1; transition: color 0.2s; }
.admin-form-close:hover { color: var(--text-dark); }

.admin-field { margin-bottom: 20px; }
.admin-label { display: block; font-size: 14px; font-weight: 700; font-style: italic; color: #325B0B; margin-bottom: 6px; }
.admin-input, .admin-textarea { width: 100%; padding: 10px 14px; border: 1px solid #ccc; border-radius: 3px; font-size: 15px; font-family: inherit; color: var(--text-dark); background: var(--white); transition: border-color 0.2s; }
.admin-input:focus, .admin-textarea:focus { outline: none; border-color: #325B0B; }
.admin-textarea { resize: vertical; min-height: 80px; }

.admin-checkboxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.admin-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dark); cursor: pointer; }
.admin-checkbox input { accent-color: #325B0B; }

.admin-photos-preview { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.admin-photo-item { position: relative; width: 100px; height: 100px; border-radius: 4px; overflow: hidden; border: 1px solid #e0e0e0; }
.admin-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo-remove { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }

.admin-photo-upload { display: inline-block; }
.admin-photo-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 32px; border: 2px dashed #ccc; border-radius: 8px; cursor: pointer; color: #325B0B; transition: border-color 0.2s; }
.admin-photo-btn:hover { border-color: #325B0B; }
.admin-photo-btn span { font-size: 13px; font-weight: 600; }

.admin-photos-new { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.admin-photos-new .admin-photo-item { border-style: dashed; }

.admin-form-actions { display: flex; justify-content: flex-end; margin-top: 32px; }
.admin-submit-btn { padding: 12px 40px; border: 1px solid var(--text-dark); background: var(--white); color: var(--text-dark); font-size: 15px; font-weight: 600; font-family: inherit; border-radius: 3px; cursor: pointer; transition: all 0.2s; }
.admin-submit-btn:hover { background: var(--text-dark); color: var(--white); }

.admin-form-feedback { font-size: 14px; margin-top: 16px; text-align: center; }
.admin-form-feedback.success { color: #325B0B; }
.admin-form-feedback.error { color: #c0392b; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--footer-bg); color: var(--white); position: relative; }
.footer-inner { background: url('../icons/mapa-mata-atlantica-v6.svg') center center / auto no-repeat; min-height: 745px; padding: 50px 16px 0; }
.footer-logo { padding: 0 0 32px; text-align: center; }
.footer-logo-img { height: 46px; margin: 0 auto; }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.footer-heading { font-size: 18px; font-weight: 400; color: var(--green-primary); margin-bottom: 12px; }
.footer-text { font-size: 16px; line-height: 1.6; margin-bottom: 6px; color: var(--white); }
.footer-contact { display: flex; align-items: center; gap: 8px; }
.footer-icon { width: 16px; height: 16px; color: var(--green-primary); flex-shrink: 0; }
.footer-link { color: var(--white); transition: opacity 0.2s; }
.footer-link:hover { opacity: 0.8; }

/* ============================================
   RESPONSIVE
   ============================================ */
/* Hide mobile-only nav link on desktop */
.nav-link--mobile { display: none; }

@media (max-width: 768px) {
    .main-nav, .btn-enter { display: none !important; }
    .mobile-menu-btn { display: flex; }
    .main-nav.open { display: flex !important; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); padding: 16px 24px; border-bottom: 1px solid #eee; gap: 0; z-index: 99; }
    .main-nav.open .nav-link { padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
    .main-nav.open .nav-link--mobile { display: block; font-weight: 600; }

    .hero { height: 400px; }
    .hero-title { font-size: 32px; }
    .species-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .species-search-box { width: 100%; }
    .benefits-grid { flex-direction: column; }
    .institutional-grid { grid-template-columns: 1fr; }
    .cta-species-inner { flex-direction: column; text-align: center; }
    .stats-numbers { flex-direction: column; gap: 24px; }

    /* Species detail - imagem full width no mobile */
    .sp-hero-slide { height: 300px; }
    .sp-hero-slide img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
    .sp-hero-slide.active::before { display: none; }
    .sp-hero-btn--back { left: 12px; }
    .sp-hero-btn--share { right: 12px; }
    .sp-hero-arrow { width: 36px; height: 36px; }
    .sp-name { font-size: 22px; }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .sp-map { flex-direction: column; }
    .sp-map-legend { padding-top: 0; gap: 12px; }
    .sp-map-legend-name { white-space: normal; }

    .about-hero { height: 200px; }
    .about-journey-grid { grid-template-columns: 1fr; }
    .about-journey-image { order: -1; }
    .about-clients-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrapper { padding: 24px; }
    .login-card { padding: 36px 24px; }
    .footer-columns { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .benefits-grid { gap: 0; }
    .species-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 100; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: transform 0.2s, box-shadow 0.2s; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* --- Utility --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
