@import url("footer.css");
@import url("header.css");

/* cume.pt — category landing pages */
:root {
  --green: #578f5c;
  --green-dark: #3d6b41;
  --green-light: #e8f0e9;
  --text: #1a1a1a;
  --text-muted: #4a5568;
  --cream: #f7f8f6;
  --border: #e2e8e0;
  --font: "TildaSans", Arial, sans-serif;
  --max: 960px;
  --footer: #111111;
  --black: #000000;
  --blue: #1f5bff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--cream);
  font-size: 16px;
  font-weight: 300;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }

/* Breadcrumb */
.cat-breadcrumb {
  width: min(100% - 2rem, var(--max));
  margin: 1.25rem auto 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cat-breadcrumb a { color: var(--text-muted); }
.cat-breadcrumb a:hover { color: var(--green-dark); }
.cat-breadcrumb span { margin: 0 0.35rem; }

/* Hero */
.cat-hero {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
}
.cat-hero__group {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.cat-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.cat-hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.cat-hero__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.cat-section {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.cat-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Benefits grid */
.cat-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.cat-benefit {
  padding: 1.25rem;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.cat-benefit strong {
  display: block;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.cat-benefit p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* List */
.cat-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.cat-list li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.cat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Steps */
.cat-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
.cat-steps li {
  counter-increment: step;
  padding-left: 2.75rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.cat-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-steps li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* CTA (legacy — other category pages) */
.cat-cta {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 3rem;
  background: var(--green-dark);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
}
.cat-cta h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}
.cat-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2.5rem;
  background: #fff;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  transition: opacity 0.2s;
}
.cat-btn:hover {
  opacity: 0.92;
  color: var(--green-dark);
}

/* Contact form on category pages (same structure as main / home-template) */
.cat-page .cat-pedido {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 3rem;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 2.5rem 2rem;
}
.cat-page .cat-pedido__head {
  text-align: center;
  margin-bottom: 2rem;
}
.cat-page .cat-pedido__head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.cat-page .cat-pedido__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.cat-page .contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
}
.cat-page .form-group {
  margin-bottom: 1.25rem;
}
.cat-page .form-group label:not(.form-cat-option) {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.cat-page .form-group input:not([type="checkbox"]):not([type="radio"]),
.cat-page .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  border: 1px solid #dddddd;
  border-radius: 0;
  background: #fff;
}
.cat-page .form-group input::placeholder,
.cat-page .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}
.cat-page .form-group input:focus,
.cat-page .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.cat-page .form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.cat-page .form-consent {
  font-size: 14px;
  font-weight: 300;
  margin: 1rem 0 1.25rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.cat-page .form-consent a {
  text-decoration: underline;
}
.cat-page .btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 2rem;
  border: none;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cat-page .btn-green:hover {
  opacity: 0.92;
}
.cat-page .btn-green:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.cat-page .form-error {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 15px;
}
.cat-page .form-error.show {
  display: block;
}
.cat-page .form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.cat-page .form-success.show {
  display: block;
}
.cat-page .form-success h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}
.cat-page .form-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.cat-page .cat-contact-form.is-hidden {
  display: none;
}

/* Category picker (main / home-template) */
.cat-page .form-categories {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.cat-page .form-categories__legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 0;
}
.cat-page .form-categories__hint {
  font-size: 14px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 1rem;
}
.cat-page .form-categories__group {
  margin-bottom: 1rem;
}
.cat-page .form-categories__group:last-child {
  margin-bottom: 0;
}
.cat-page .form-categories__group-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}
.cat-page .form-categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem;
}
.cat-page .form-cat-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}
.cat-page .form-cat-option input {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--green);
}
.cat-page .form-cat-option span {
  flex: 1;
  min-width: 0;
}

/* Hub page */
.cat-hub {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}
.cat-hub h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}
.cat-hub__lead {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.cat-group {
  margin-bottom: 2.5rem;
}
.cat-group h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.cat-group__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
  color: inherit;
  height: 100%;
}
.cat-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(87, 143, 92, 0.12);
  color: inherit;
}
.cat-card__img {
  margin: -1rem -1.1rem 0.85rem;
  aspect-ratio: 1;
  max-height: 160px;
  background: #eef3ee;
  overflow: hidden;
}
.cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #eef3ee;
}
.cat-card__name {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.cat-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.85rem;
}
.cat-card__btn {
  display: block;
  margin-top: auto;
  padding: 0.55rem 1rem;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}
.cat-card:hover .cat-card__btn {
  background: var(--green-dark);
  color: #fff;
}

/* Container (category pages) */
.cat-page .container {
  width: min(100% - 2.5rem, 1200px);
  margin: 0 auto;
}

.cat-page .footer {
  margin-top: 0;
}

/* Cookie banner (main site) */
.cat-page .cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--black);
  color: #fff;
  padding: 1.25rem 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cat-page .cookie-banner.show {
  transform: translateY(0);
}
.cat-page .cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cat-page .cookie-text {
  font-size: 14px;
  opacity: 0.85;
  max-width: 640px;
  line-height: 1.55;
}
.cat-page .cookie-text a {
  color: #8ab4ff;
}
.cat-page .cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cat-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2rem;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}
.cat-page .btn-primary {
  background: var(--blue);
  color: #fff;
}
.cat-page .btn-sm {
  min-height: 50px;
  padding: 0 44px;
  font-size: 15px;
}
.cat-page .btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1.25rem;
  font-size: 13px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
}

/* Geo strip (category pages) */
.cat-geo-strip {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
}
.cat-geo-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}
.cat-geo-strip__label {
  font-weight: 600;
  color: var(--text);
}
.cat-geo-strip__cities {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
}
.cat-geo-strip__cities a {
  color: inherit;
  text-decoration: none;
}
.cat-geo-strip__cities a:hover {
  color: var(--green-dark);
}
.cat-geo-strip__cities a:not(:last-child)::after {
  content: "·";
  margin-left: 0.85rem;
  color: var(--border);
  pointer-events: none;
}

/* FAQ (category pages) */
.cat-faq__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.cat-faq h2 {
  margin-bottom: 1.5rem;
}
.cat-faq__list {
  max-width: 100%;
}
.cat-faq__item {
  border-top: 1px solid var(--border);
}
.cat-faq__item:last-child {
  border-bottom: 1px solid var(--border);
}
.cat-faq__question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.cat-faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1em;
  background: center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cg stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='square' transform='translate(1 1)'%3E%3Cpath d='M0 11h22'/%3E%3Cpath d='M11 0v22'/%3E%3C/g%3E%3C/svg%3E");
  transition: opacity 0.25s;
}
.cat-faq__item.is-open .cat-faq__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='square' d='M1 12h22'/%3E%3C/svg%3E");
}
.cat-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.cat-faq__answer-inner {
  padding-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .cat-hero, .cat-section { padding: 1.5rem 1.25rem; }
  .cat-geo-strip { padding: 1rem 1.25rem; }
  .cat-geo-strip__inner { flex-direction: column; gap: 0.5rem; }
  .cat-geo-strip__cities a:not(:last-child)::after { display: none; }
  .cat-page .form-categories__list { grid-template-columns: 1fr; }
  .cat-page .form-cat-option { gap: 1rem; }
  .cat-page .cat-pedido { padding: 1.5rem 1.25rem; }
  .cat-page .contact-form { padding: 1.25rem; }
}
