/*
Theme Name: JUMMA Portfolio
Theme URI: https://casae.dev/
Author: Casae
Description: Tema leve e responsivo para o portfólio JUMMA, inspirado na identidade visual do projeto de produção de melancia.
Version: 1.2.0
License: GPL-2.0-or-later
Text Domain: jumma
*/

:root {
  --jumma-green: #173d0d;
  --jumma-green-2: #285c16;
  --jumma-leaf: #6f914b;
  --jumma-light: #f4f5ee;
  --jumma-card: #ffffff;
  --jumma-text: #172015;
  --jumma-muted: #6c7567;
  --jumma-border: #dfe5d9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--jumma-light);
  color: var(--jumma-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: relative;
  overflow: hidden;
  background: var(--jumma-green);
  color: #fff;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(111,145,75,.14);
  pointer-events: none;
}

.site-header::before {
  width: 420px;
  height: 420px;
  left: -180px;
  top: -250px;
}

.site-header::after {
  width: 500px;
  height: 500px;
  right: -250px;
  bottom: -360px;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 58px 32px 64px;
}

.brand {
  display: inline-block;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: .95;
  text-transform: uppercase;
}

.tagline {
  margin: 18px 0 0;
  max-width: 680px;
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255,255,255,.82);
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.site-nav {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu li {
  margin: 0;
  padding: 0;
}

.primary-menu a {
  display: inline-block;
  padding: 8px 0;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: #fff;
  border-bottom-color: var(--jumma-leaf);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

.content-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.section-heading {
  margin: 0 0 34px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--jumma-green-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--jumma-card);
  border: 1px solid var(--jumma-border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(23,61,13,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(23,61,13,.13);
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e5e8df;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-no-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8ece2, #dce3d4);
  color: var(--jumma-green-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-body {
  padding: 20px 21px 22px;
}

.card-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 700;
}

.card-title a:hover { color: var(--jumma-green-2); }

.card-date {
  display: block;
  margin-top: 10px;
  color: var(--jumma-muted);
  font-size: 13px;
}

.single-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.single-header {
  margin-bottom: 34px;
}

.single-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  text-transform: uppercase;
}

.single-meta {
  margin-top: 12px;
  color: var(--jumma-muted);
}

.featured-large {
  margin-bottom: 36px;
  overflow: hidden;
  border-radius: 20px;
}

.entry-content {
  max-width: 820px;
  font-size: 18px;
}

.entry-content h2,
.entry-content h3 {
  color: var(--jumma-green);
}

.entry-content a {
  color: var(--jumma-green-2);
  text-decoration: underline;
}

.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--jumma-border);
  border-radius: 8px;
  background: #fff;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--jumma-green);
  color: rgba(255,255,255,.82);
  text-align: center;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 46px 32px;
}

.footer-brand {
  margin: 0;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-text {
  margin: 8px 0 0;
  font-size: 14px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .header-top { align-items: center; }
  .menu-toggle { display: block; flex: 0 0 auto; }
  .site-nav {
    display: none;
    margin-top: 24px;
    padding-top: 14px;
  }
  .site-header.menu-open .site-nav { display: block; }
  .primary-menu {
    display: block;
  }
  .primary-menu li {
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .primary-menu a {
    display: block;
    padding: 13px 0;
  }
}

@media (max-width: 1150px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .header-inner,
  .content-wrap,
  .footer-inner { padding-left: 20px; padding-right: 20px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 560px) {
  .header-inner { padding-top: 42px; padding-bottom: 48px; }
  .content-wrap { padding-top: 42px; padding-bottom: 56px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .card-image { aspect-ratio: 16 / 10; }
  .site-nav a { margin-bottom: 8px; }
}
