/* ============================================================
   A HORTA DE LUIS & MARIA — style.css
   Premium warm gardening magazine aesthetic
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --green-dark:   #2D5016;
  --green-mid:    #4A7C2E;
  --green-light:  #7AAD4A;
  --green-pale:   #C8E6A3;
  --earth-dark:   #8B6914;
  --earth-mid:    #D4A843;
  --earth-light:  #E8C97A;
  --earth-pale:   #F5E8C0;
  --cream:        #F5F1E8;
  --cream-dark:   #EDE7D9;
  --white:        #FFFFFF;
  --night:        #1A2332;
  --night-mid:    #2C3E50;
  --blue:         #1B6CA8;
  --blue-light:   #4A9FD4;
  --blue-pale:    #E0F0FA;
  --amber:        #C67C0D;
  --amber-light:  #F0A94D;
  --amber-pale:   #FDF3E3;
  --red:          #C0392B;
  --red-pale:     #FDECEA;

  --text-primary:   #1A1A0F;
  --text-secondary: #4A4A35;
  --text-muted:     #7A7A65;
  --border:         #DDD8CC;
  --shadow-sm:  0 2px 8px rgba(45,80,22,0.10);
  --shadow-md:  0 4px 20px rgba(45,80,22,0.15);
  --shadow-lg:  0 8px 40px rgba(45,80,22,0.20);

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --top-nav-h: 68px;
  --bottom-nav-h: 72px;
  --touch-min: 44px;

  --transition: 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--cream);
  padding-bottom: var(--bottom-nav-h);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); font-size: 1rem; }
a { color: var(--green-dark); }
input, select, textarea { font-family: var(--font-body); font-size: 1rem; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; }

/* ── Skip Link ── */
.skip-link {
  position: fixed; top: -100%; left: 0;
  background: var(--green-dark); color: #fff;
  padding: 12px 24px; z-index: 9999;
  font-size: 1rem;
  &:focus { top: 0; }
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ============================================================
   TOP NAV (desktop)
   ============================================================ */
.top-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--green-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  height: var(--top-nav-h);
}
.top-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-icon { font-size: 1.8rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--earth-light);
}
.brand-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.top-nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.top-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.top-nav-link:hover,
.top-nav-link.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.top-nav-link.active {
  background: var(--earth-mid);
  color: var(--green-dark);
  font-weight: 700;
}

/* ============================================================
   BOTTOM NAV (mobile)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--white);
  border-top: 2px solid var(--green-pale);
  display: flex;
  height: var(--bottom-nav-h);
  box-shadow: 0 -4px 24px rgba(45,80,22,0.15);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  min-height: var(--touch-min);
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
  padding: 6px 2px;
}
.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--green-dark);
}
.bottom-nav-item.active {
  color: var(--green-dark);
  background: var(--green-pale);
  border-radius: 0;
}
.bn-icon { font-size: 1.4rem; line-height: 1; }
.bn-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; }

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section Heroes ── */
.section-hero {
  padding: 48px 24px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.section-hero--green  { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%); color: #fff; }
.section-hero--earth  { background: linear-gradient(135deg, var(--earth-dark) 0%, var(--earth-mid) 100%); color: #fff; }
.section-hero--amber  { background: linear-gradient(135deg, #8B4513 0%, var(--amber) 100%); color: #fff; }
.section-hero--night  { background: linear-gradient(135deg, var(--night) 0%, var(--night-mid) 100%); color: #fff; }
.section-hero--blue   { background: linear-gradient(135deg, #0D4A7A 0%, var(--blue) 100%); color: #fff; }

.section-hero-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.section-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 20px;
}

/* ── Section Headers (in-page) ── */
.section-header { padding: 32px 0 16px; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--green-dark);
  margin-bottom: 4px;
}
.section-sub { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,45,8,0.3) 0%,
    rgba(20,45,8,0.65) 60%,
    rgba(20,45,8,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 24px 20px;
  max-width: 700px;
}
.hero-date {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.hero-btn-primary {
  background: var(--earth-mid);
  color: var(--green-dark);
}
.hero-btn-secondary {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* ============================================================
   WEATHER WIDGET
   ============================================================ */
.weather-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.weather-main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, var(--blue) 0%, #2980B9 100%);
  color: #fff;
}
.weather-icon-big { font-size: 4rem; }
.weather-temp { font-size: 3rem; font-family: var(--font-head); font-weight: 700; }
.weather-desc { font-size: 1.1rem; opacity: 0.9; margin-top: 4px; }
.weather-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.weather-detail {
  background: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.weather-detail-icon { font-size: 1.3rem; flex-shrink: 0; }
.weather-detail-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.weather-detail-value { font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.weather-forecast {
  display: flex;
  overflow-x: auto;
  gap: 0;
  background: var(--cream);
  padding: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.weather-forecast::-webkit-scrollbar { display: none; }
.forecast-day {
  flex: 0 0 auto;
  min-width: 90px;
  text-align: center;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
}
.forecast-day:last-child { border-right: none; }
.forecast-day-name { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.forecast-icon { font-size: 1.8rem; margin-bottom: 6px; }
.forecast-temps { font-size: 0.88rem; }
.forecast-max { font-weight: 700; color: var(--text-primary); }
.forecast-min { color: var(--text-muted); }
.weather-alert {
  margin: 0 20px 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid;
}
.weather-alert--frost  { background: #EDF5FF; border-color: #5B9BD5; color: #1A3A5C; }
.weather-alert--rain   { background: #EEF4FF; border-color: var(--blue); color: #1A3366; }
.weather-alert--heat   { background: var(--amber-pale); border-color: var(--amber); color: #7A4500; }
.weather-alert--wind   { background: var(--earth-pale); border-color: var(--earth-mid); color: #5A3A00; }

/* ── Skeleton Loading ── */
.skeleton-loading { padding: 28px; }
.skeleton-row {
  height: 20px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 12px;
}
.skeleton-row.short { width: 60%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   TODAY CARD
   ============================================================ */
.today-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.today-card-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 24px 28px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}
.today-moon { font-size: 2.5rem; }
.today-card-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.today-card-phase { opacity: 0.85; font-size: 0.95rem; margin-top: 4px; }
.today-card-body { padding: 24px 28px; }
.today-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.today-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
}
.badge--semear   { background: #E8F5E9; color: #2D6A2F; border: 1.5px solid #81C784; }
.badge--plantar  { background: #E3F2FD; color: #1565C0; border: 1.5px solid #64B5F6; }
.badge--colher   { background: #FFF3E0; color: #E65100; border: 1.5px solid #FFB74D; }
.badge--tarefa   { background: #F3E5F5; color: #6A1B9A; border: 1.5px solid #CE93D8; }

.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.today-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
}
.today-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.today-list li {
  background: var(--cream);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.88rem;
}

/* ============================================================
   DICA DO DIA
   ============================================================ */
.dica-card {
  background: linear-gradient(135deg, var(--earth-pale), var(--cream));
  border: 2px solid var(--earth-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.dica-label {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--earth-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.dica-text {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.dica-refresh {
  background: var(--earth-dark);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: var(--touch-min);
  transition: background var(--transition), transform 0.2s;
}
.dica-refresh:hover { background: var(--earth-mid); transform: scale(1.03); }

/* ============================================================
   QUICK LINKS
   ============================================================ */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.quick-link-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s;
  min-height: 120px;
  box-shadow: var(--shadow-sm);
}
.quick-link-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ql-icon { font-size: 2.2rem; }
.ql-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
}
.ql-desc { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   SHARE BAR
   ============================================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.share-label { font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); margin-right: 4px; }
.share-btn {
  min-height: var(--touch-min);
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.share-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-sm); }
.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.facebook { background: #1877F2; color: #fff; }
.share-btn.copy     { background: var(--cream-dark); color: var(--text-primary); border: 1.5px solid var(--border); }

/* ============================================================
   CALENDAR
   ============================================================ */
.btn-hoje {
  background: var(--earth-mid);
  color: var(--green-dark);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: var(--touch-min);
  margin-top: 12px;
  transition: background var(--transition), transform 0.2s;
}
.btn-hoje:hover { background: var(--earth-light); transform: scale(1.03); }

.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 24px 0;
}
.month-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s, box-shadow 0.2s;
}
.month-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.month-card.is-current { outline: 3px solid var(--earth-mid); }
.month-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.month-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,40,8,0.85) 0%, rgba(20,40,8,0.3) 60%, transparent 100%);
}
.month-card-body {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #fff;
}
.month-card-num { font-size: 2.5rem; font-family: var(--font-head); font-weight: 800; opacity: 0.6; }
.month-card-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.month-card-preview { font-size: 0.82rem; opacity: 0.85; display: flex; flex-wrap: wrap; gap: 4px; }
.month-card-preview span {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Month calendar grid */
.month-panel { padding-bottom: 60px; }
.month-panel.hidden { display: none; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid var(--green-mid);
  color: var(--green-dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 24px 0 16px;
  min-height: var(--touch-min);
  transition: background var(--transition);
}
.back-btn:hover { background: var(--green-pale); }

.month-calendar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.month-cal-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.month-cal-title { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--green-dark); }
.month-cal-sub { color: var(--text-muted); font-size: 0.95rem; }

.cal-grid {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--green-dark);
  color: #fff;
}
.cal-weekday {
  text-align: center;
  padding: 10px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--border);
}
.cal-day {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 6px;
  min-height: 64px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: var(--cream); }
.cal-day.today { background: var(--earth-pale); }
.cal-day.today .cal-day-num { 
  background: var(--earth-mid); 
  color: var(--green-dark);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.cal-day.empty { background: var(--cream-dark); cursor: default; opacity: 0.5; }
.cal-day-num { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; display: inline-block; }
.cal-day-moon { font-size: 0.85rem; position: absolute; top: 6px; right: 6px; }

/* Day panel */
.day-panel {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-end;
  background: rgba(0,0,0,0.5);
}
.day-panel.hidden { display: none; }
.day-panel-inner {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 24px 40px;
  position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.day-panel-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--cream-dark);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-weight: 700;
}
.day-panel-date {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.day-panel-moon {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.day-panel-section { margin-bottom: 20px; }
.day-panel-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.day-panel-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   PLANTS SECTION
   ============================================================ */
.search-bar { padding: 24px 0 8px; }
.search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237A7A65' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 16px center;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text-primary);
}
.search-input:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(74,124,46,0.15);
}

.tab-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 0 20px;
}
.tab-btn {
  min-height: var(--touch-min);
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--green-mid); color: var(--green-dark); }
.tab-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.plants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}
.plant-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s;
  box-shadow: var(--shadow-sm);
  min-height: 140px;
}
.plant-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.plant-emoji { font-size: 2.5rem; }
.plant-name { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--green-dark); }
.plant-cat { font-size: 0.75rem; color: var(--text-muted); }
.plant-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.plant-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.pb-sun  { background: #FFF9E6; color: #856A00; border: 1px solid #F0D060; }
.pb-water{ background: #E8F4FD; color: #1565C0; border: 1px solid #90CAF9; }
.pb-season{ background: #F3E5F5; color: #6A1B9A; border: 1px solid #CE93D8; }

/* Plant Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.modal-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--cream-dark);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.plant-modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.plant-modal-emoji { font-size: 3.5rem; }
.plant-modal-title { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--green-dark); }
.plant-modal-cat { color: var(--text-muted); font-size: 1rem; }
.plant-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.plant-detail-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.plant-detail-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.plant-detail-value { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.plant-section { margin-bottom: 20px; }
.plant-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.companion-list { display: flex; flex-wrap: wrap; gap: 6px; }
.companion-tag {
  background: #E8F5E9;
  color: #2D6A2F;
  border: 1px solid #A5D6A7;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
}
.avoid-tag {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
}
.tips-text {
  background: var(--earth-pale);
  border-left: 4px solid var(--earth-mid);
  padding: 14px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   RECEITAS
   ============================================================ */
.receitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}
.receita-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.receita-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.receita-card-header {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.receita-icon { font-size: 2.5rem; flex-shrink: 0; }
.receita-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.receita-cat {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.rc-Herbicidas { background: #E8F5E9; color: #2E7D32; }
.rc-Pesticidas  { background: #FFF3E0; color: #E65100; }
.rc-Adubos      { background: #F3E5F5; color: #6A1B9A; }
.receita-card-body { padding: 0 20px 20px; }
.receita-target { font-size: 0.85rem; color: var(--text-muted); }
.receita-target strong { color: var(--text-primary); }

/* Recipe Modal Content */
.receita-modal-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; color: var(--green-dark); }
.receita-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.receita-section { margin-bottom: 20px; }
.receita-section h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.ingredientes-list { list-style: none; }
.ingredientes-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 1rem;
  display: flex;
  gap: 8px;
}
.ingredientes-list li::before { content: '•'; color: var(--green-mid); font-weight: 700; }
.preparacao-list { list-style: none; counter-reset: steps; }
.preparacao-list li {
  counter-increment: steps;
  padding: 10px 0 10px 44px;
  border-bottom: 1px solid var(--cream-dark);
  position: relative;
  font-size: 0.95rem;
  line-height: 1.55;
}
.preparacao-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  background: var(--green-dark);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  top: 10px;
}
.precaucao-box {
  background: var(--red-pale);
  border-left: 4px solid var(--red);
  padding: 14px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  color: #7A1A12;
}

/* ============================================================
   DIÁRIO
   ============================================================ */
.diario-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin: 24px 0 20px;
}
.form-title { font-family: var(--font-head); font-size: 1.3rem; color: var(--green-dark); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--cream);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(74,124,46,0.12);
}
.form-textarea { resize: vertical; min-height: 90px; }

.btn-primary {
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  min-height: var(--touch-min);
  transition: background var(--transition), transform 0.2s;
}
.btn-primary:hover { background: var(--green-mid); transform: scale(1.02); }

.diario-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-btn {
  min-height: var(--touch-min);
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}
.filter-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.diario-timeline { padding-bottom: 40px; }
.diario-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  line-height: 2;
}
.diario-entry {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}
.diario-entry-dot {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.dot-plantacao { background: #E8F5E9; }
.dot-colheita  { background: #FFF3E0; }
.dot-nota      { background: #E3F2FD; }
.dot-tarefa    { background: #F3E5F5; }

.diario-entry-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.diario-entry-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.diario-entry-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.diario-entry-meta { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 6px; }
.diario-entry-nota { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.5; }
.diario-entry-delete {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.4;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  display: flex; align-items: center; justify-content: center;
}
.diario-entry-delete:hover { opacity: 1; color: var(--red); }

/* ============================================================
   LUNAR
   ============================================================ */
.lunar-widget {
  background: linear-gradient(135deg, var(--night), #2C3E50);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #fff;
  text-align: center;
  margin: 24px 0;
  box-shadow: var(--shadow-lg);
}
.lunar-phase-icon { font-size: 5rem; margin-bottom: 16px; display: block; }
.lunar-phase-name { font-family: var(--font-head); font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.lunar-phase-desc { opacity: 0.85; font-size: 1rem; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.lunar-day-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.lunar-recommendation {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 0.95rem;
  margin-top: 16px;
  line-height: 1.6;
}

.lunar-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding-bottom: 40px;
}
.lunar-grid-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--green-dark);
}
.lunar-nav-btn {
  background: var(--cream-dark);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  min-width: 44px; min-height: 44px;
  transition: background var(--transition);
}
.lunar-nav-btn:hover { background: var(--green-pale); }
.lunar-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 0;
}
.lunar-day-cell {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 8px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.lunar-day-cell:hover { box-shadow: var(--shadow-md); transform: scale(1.05); }
.lunar-day-cell.today { outline: 2px solid var(--earth-mid); }
.lunar-day-cell.empty { background: transparent; box-shadow: none; cursor: default; }
.lunar-cell-num { font-size: 0.85rem; font-weight: 700; }
.lunar-cell-phase { font-size: 1rem; }
.lunar-cell-type {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 4px;
}
.lt-raiz   { background: #F5E6D0; color: #7A4500; }
.lt-folha  { background: #E8F5E9; color: #2D6A2F; }
.lt-flor   { background: #FCE4EC; color: #880E4F; }
.lt-fruto  { background: #FFF3E0; color: #E65100; }


/* ============================================================
   COMPOSTAGEM
   ============================================================ */
.compost-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}
.compost-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.compost-step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.compost-step-body h4 { font-family: var(--font-head); font-size: 1.1rem; color: var(--green-dark); margin-bottom: 6px; }
.compost-step-body p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.materials-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.materials-col h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid;
}
.materials-green h3 { color: #2D6A2F; border-color: #81C784; }
.materials-brown h3 { color: #795548; border-color: #A1887F; }
.materials-list { list-style: none; }
.materials-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.92rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.materials-list li::before { content: '✓'; font-weight: 700; }
.materials-green .materials-list li::before { color: #2D6A2F; }
.materials-brown .materials-list li::before { color: #795548; }

.faq-list { margin: 20px 0 40px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--touch-min);
  gap: 10px;
}
.faq-question::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 20px 18px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   REGA
   ============================================================ */
.rega-calc {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin: 24px 0;
}
.rega-calc h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--blue); margin-bottom: 20px; }
.rega-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.rega-result {
  background: var(--blue-pale);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}
.rega-result h4 { font-family: var(--font-head); font-size: 1.2rem; color: var(--blue); margin-bottom: 12px; }
.rega-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.rega-result-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.rega-result-val { font-size: 1.8rem; font-weight: 800; color: var(--blue); font-family: var(--font-head); }
.rega-result-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.rega-tip {
  margin-top: 16px;
  background: #E3F2FD;
  border-left: 4px solid var(--blue);
  padding: 14px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  color: #0D4070;
}

/* ============================================================
   RECURSOS
   ============================================================ */
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 24px 0 40px;
}
.recurso-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.recurso-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.recurso-icon { font-size: 3rem; margin-bottom: 12px; }
.recurso-title { font-family: var(--font-head); font-size: 1.2rem; color: var(--green-dark); margin-bottom: 8px; }
.recurso-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: var(--touch-min);
  transition: background var(--transition), transform 0.2s;
  width: 100%;
  justify-content: center;
}
.btn-download:hover { background: var(--green-mid); transform: scale(1.02); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--night);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 800;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  body { padding-bottom: 0; padding-top: var(--top-nav-h); }
  .top-nav { display: block; }
  .bottom-nav { display: none; }
  .toast { bottom: 24px; }
  .quick-links-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .materials-grid { grid-template-columns: 1fr 1fr; }
  .compost-steps { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .quick-links-grid { grid-template-columns: repeat(5, 1fr); }
  .month-grid { grid-template-columns: repeat(4, 1fr); }
  .plants-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .today-grid { grid-template-columns: repeat(4, 1fr); }
  .compost-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  html { font-size: 17px; }
  .hero { height: 55vh; min-height: 360px; }
  .hero-title { font-size: 1.9rem; }
  .plants-grid { grid-template-columns: repeat(2, 1fr); }
  .receitas-grid { grid-template-columns: 1fr; }
  .month-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: 1fr; }
  .top-nav-links { display: none; }
  .recursos-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Utility ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* ============================================================
   CHATBOT STYLES
   ============================================================ */
.chat-fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9998;
  background: var(--green-dark, #2D5016);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-size: 1.1rem;
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,.3); }
.chat-fab-icon { font-size: 1.4rem; }
@media (max-width: 600px) {
  .chat-fab { bottom: 80px; right: 14px; padding: 12px 18px; font-size: 1rem; }
  .chat-fab-label { display: none; }
  .chat-fab { border-radius: 50%; width: 56px; height: 56px; justify-content: center; padding: 0; }
  .chat-fab-icon { font-size: 1.6rem; }
}

.chat-panel {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity .25s, transform .25s;
}
.chat-panel.hidden { display: none; }
@media (max-width: 600px) {
  .chat-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%; max-width: 100%;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    border-radius: 20px 20px 0 0;
  }
}

.chat-header {
  background: var(--green-dark, #2D5016);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 10px; }
.chat-avatar { font-size: 2rem; }
.chat-header-left small { opacity: .8; font-size: .8rem; }
.chat-close {
  background: none; border: none; color: #fff; font-size: 1.4rem;
  cursor: pointer; width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
}
.chat-close:hover { background: rgba(255,255,255,.15); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream, #F5F1E8);
}

.chat-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.55;
  word-wrap: break-word;
}
.chat-bubble p { margin: 0 0 8px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble.bot {
  background: #fff;
  color: var(--text, #2c2c2c);
  border: 1px solid #e0ddd4;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  background: var(--green-dark, #2D5016);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble .chat-fontes {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e8e4db;
  font-size: .82rem;
  color: #7a7260;
}
.chat-bubble .chat-section-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat-bubble .chat-section-link {
  background: var(--green-light, #4A7C2E);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.chat-bubble .chat-section-link:hover { opacity: .85; }

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 8px;
}
.chat-suggestions button {
  background: #fff;
  border: 1.5px solid var(--green-light, #4A7C2E);
  color: var(--green-dark, #2D5016);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.chat-suggestions button:hover {
  background: var(--green-dark, #2D5016);
  color: #fff;
}

.chat-typing {
  align-self: flex-start;
  display: flex; gap: 5px; padding: 12px 18px;
  background: #fff; border-radius: 16px; border: 1px solid #e0ddd4;
}
.chat-typing span {
  width: 8px; height: 8px; background: #aaa; border-radius: 50%;
  animation: chatTyping .9s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-bar {
  padding: 12px;
  background: #fff;
  border-top: 1px solid #e8e4db;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1.5px solid #d5d0c5;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream, #F5F1E8);
  outline: none;
  min-height: 44px;
}
.chat-input:focus { border-color: var(--green-light, #4A7C2E); }
.chat-send {
  background: var(--green-dark, #2D5016);
  color: #fff;
  border: none;
  border-radius: 12px;
  width: 48px;
  min-height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-send:hover { background: var(--green-light, #4A7C2E); }
