/*--------------------------------------------------
  PALETA
--------------------------------------------------*/

:root {
  --bg: #FFF8EA;
  --surface: #FFFDF9;

  --primary: #028391;
  --accent: #F85525;
  --accent-light: #FAA968;

  --text: #01204E;
  --border: #FAA968;
}

/*--------------------------------------------------
  BASE
--------------------------------------------------*/

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-align: justify;
}

h1,
h2,
h3 {
  color: var(--primary);
}

a {
  color: var(--accent);
  text-decoration: underline;
}

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

/*--------------------------------------------------
  NAVBAR
--------------------------------------------------*/

.navbar {
  background: var(--primary);
  border-bottom: 4px solid var(--accent);
  padding: 0.6rem 0;
}

.navbar-brand {
  color: white !important;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.navbar-nav {
  margin-left: auto !important;
  margin-right: 0;
  gap: 0.3rem;
}

.navbar-collapse {
  justify-content: flex-end;
}

.navbar-nav .nav-link {
  color: white !important;
  padding: 0.45rem 0.8rem;
  transition: 0.2s ease;
}

.navbar-nav .nav-link {
  color: white !important;
  padding: 0.45rem 0.8rem;
  transition: 0.2s ease;
  border-radius: 999px;
}

.navbar-nav .nav-link:hover {
  background: var(--accent);
  color: white !important;
  border-radius: 999px;
}

.navbar-nav .nav-link.active {
  background: rgba(255,255,255,0.2);
  color: white !important;
  border-radius: 999px;
}

/*--------------------------------------------------
  CARDS
--------------------------------------------------*/

.cards-home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 700px) {
  .cards-home {
    grid-template-columns: 1fr;
  }
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.card-link:hover {
  text-decoration: none;
  color: inherit;
}

.garden-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  overflow: hidden;
  height: 100%;
}

.card-content {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 1rem;
  align-items: center;
}

.card-img {
  line-height: 0;
}

.card-img img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  border: 1px solid var(--border);
}

.card-img p {
  margin: 0;
}

.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.card-text h3 {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1;
  color: var(--primary);
}

/*--------------------------------------------------
  DEFINICIÓ
--------------------------------------------------*/

.definition-box {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

.definition-box h1 {
  font-size: 1rem;
  margin-top: 0;
  color: var(--primary);
}

.definition-box p {
  margin: 0.4rem 0;
  line-height: 1.5;
}

/*--------------------------------------------------
  BLOG
--------------------------------------------------*/

.quarto-category {
  background: var(--accent-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
}

.quarto-category:hover {
  background: var(--accent);
  color: white;
}

.quarto-listing-filter {
  font-family: inherit;
}

.quarto-title-meta-heading {
  display: none;
}