@import url("footer.css");
@import url("header.css");

/* cume.pt — layout aligned with live Tilda site */
:root {
  --blue: #1f5bff;
  --green: #578f5c;
  --black: #000000;
  --footer: #111111;
  --gray-1: #efefef;
  --gray-2: #f3f3f3;
  --gray-3: #f0f0f0;
  --text: #000000;
  --text-muted: #222222;
  --border: #eeeeee;
  --font: "TildaSans", Arial, sans-serif;
  --max: 1200px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: #ffffff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { opacity: 0.85; }

.container { width: min(100% - 2.5rem, var(--max)); margin: 0 auto; }
.container-narrow { width: min(100% - 2.5rem, 760px); margin: 0 auto; }
section { padding: 60px 0; }

/* Typography (Tilda scale) */
.t-title { font-weight: 600; color: var(--text); }
.t-title-md { font-size: clamp(2rem, 4vw, 52px); line-height: 1.23; }
.t-title-xs { font-size: clamp(1.75rem, 3.5vw, 42px); line-height: 1.23; }
.t-name { font-weight: 600; color: var(--text); }
.t-name-md { font-size: 20px; line-height: 1.35; }
.t-name-lg { font-size: 22px; line-height: 1.35; }
.t-name-xl { font-size: 24px; line-height: 1.35; }
.t-name-sm { font-size: 18px; line-height: 1.35; }
.t-descr { font-weight: 300; color: var(--text); }
.t-descr-lg { font-size: clamp(1rem, 2vw, 22px); line-height: 1.55; }
.t-descr-xs { font-size: 16px; line-height: 1.55; }
.t-text-xs { font-size: 15px; line-height: 1.55; font-weight: 300; }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .section-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-head .section-title { margin-bottom: 0; }
.section-head .section-descr {
  margin-top: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  padding: 0 60px;
  min-height: 60px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #ffffff; }
.btn-green { background: var(--green); color: #ffffff; }
.btn-black { background: var(--black); color: #ffffff; }
.btn-sm { min-height: 50px; padding: 0 44px; font-size: 15px; }

/* Hero cover */
.hero-cover {
  position: relative;
  min-height: 500px;
  color: #ffffff;
  overflow: hidden;
  padding: 0;
}
.hero-cover__bg {
  position: absolute;
  inset: 0;
  background: center 30% / cover no-repeat url("hero-cover.jpg");
  background-attachment: fixed;
}
.hero-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,1));
}
.hero-cover__inner {
  position: relative;
  z-index: 1;
  padding: 14px 0 32px;
}
.hero-cover__top {
  max-width: 66.666%;
  margin-bottom: 2rem;
}
.hero-cover h1 {
  font-size: clamp(1.75rem, 4vw, 52px);
  font-weight: 600;
  line-height: 1.23;
  color: #ffffff;
  margin-bottom: 1rem;
}
.hero-cover__sub {
  font-size: clamp(1rem, 2vw, 22px);
  font-weight: 300;
  line-height: 1.55;
  color: #ffffff;
  margin-bottom: 1.35rem;
  max-width: 560px;
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.hero-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.hero-card__icon {
  width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.hero-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}
.hero-card__desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: #ffffff;
}

/* Icon sets for dark / light hero */
.hero-card__icon--light { display: none; }
.hero-cover--light .hero-card__icon--dark { display: none; }
.hero-cover--light .hero-card__icon--light { display: block; }

.hero-cover__eyebrow { display: none; }

.hero-light-grid {
  display: block;
}

/* —— Light hero variant —— */
.hero-cover--light {
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
  min-height: auto;
}
.hero-cover--light .hero-cover__bg,
.hero-cover--light .hero-cover__overlay {
  display: none;
}
.hero-cover--light .hero-cover__inner {
  padding: 32px 0 40px;
}
.hero-cover--light .hero-light-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: 2rem;
}
.hero-cover--light .hero-cover__top {
  max-width: none;
  margin-bottom: 0;
}
.hero-cover--light .hero-cover__eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.hero-cover--light h1 {
  color: var(--text);
}
.hero-cover--light .hero-cover__sub {
  color: #333333;
}
.hero-cover--light .hero-cards {
  gap: 1rem;
}
.hero-cover--light .hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.hero-cover--light .hero-card__title {
  color: var(--text);
}
.hero-cover--light .hero-card__desc {
  color: #444444;
}

/* Hero quiz wireframe */
.hero-quiz { display: none; }
.hero-cover--light .hero-quiz {
  display: block;
}
.hero-quiz__card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.hero-quiz__progress {
  margin-bottom: 1.25rem;
}
.hero-quiz__step {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.hero-quiz__bar {
  height: 4px;
  background: #e8edf2;
  border-radius: 2px;
  overflow: hidden;
}
.hero-quiz__bar-fill {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.hero-quiz__question {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-quiz__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0;
}
.hero-quiz__options--stack {
  grid-template-columns: 1fr;
}
.hero-quiz__panel {
  display: none;
  margin-bottom: 1.25rem;
}
.hero-quiz__panel.is-active {
  display: block;
}
.hero-quiz__form {
  display: grid;
  gap: 0.75rem;
}
.hero-quiz__field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #475569;
}
.hero-quiz__field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f8fafc;
}
.hero-quiz__field input:focus {
  outline: none;
  border-color: var(--green);
  background: #ffffff;
}
.hero-quiz__consent {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}
.hero-quiz__error {
  display: none;
  margin: 0;
  padding: 0.75rem;
  font-size: 13px;
}
.hero-quiz__error.show { display: block; }
.hero-quiz__actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.hero-quiz__back {
  flex: 0 0 auto;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border: 1px solid #d8e0ea;
  border-radius: 30px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
}
.hero-quiz__back:hover {
  border-color: #94a3b8;
}
.hero-quiz__next {
  flex: 1;
  min-height: 48px;
  background: var(--green);
  color: #ffffff;
}
.hero-quiz__next:hover {
  opacity: 0.92;
}
.hero-quiz__success {
  text-align: center;
  padding: 0.5rem 0 1rem;
}
.hero-quiz__success p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: #444444;
}
.hero-quiz__card.is-complete .hero-quiz__progress,
.hero-quiz__card.is-complete .hero-quiz__panel,
.hero-quiz__card.is-complete .hero-quiz__actions,
.hero-quiz__card.is-complete .hero-quiz__note {
  display: none;
}
.hero-quiz__card.is-complete .hero-quiz__success {
  display: block;
}
.hero-quiz__success[hidden] {
  display: none;
}
.hero-quiz__option {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 0.85rem 0.75rem;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hero-quiz__option:hover {
  border-color: #b8c9b9;
  background: #f3f7f4;
}
.hero-quiz__option.is-selected {
  border-color: var(--green);
  background: #eef5ef;
  color: #2d4a30;
  box-shadow: inset 0 0 0 1px var(--green);
}
.hero-quiz__note {
  margin-top: 0.85rem;
  font-size: 12px;
  font-weight: 300;
  color: #64748b;
  text-align: center;
}
.hero-quiz__note[hidden] { display: none; }
.hero-quiz__back[hidden] { display: none; }
.hero-quiz__next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.hero-quiz__next[hidden] { display: none; }

/* Breadcrumb (janelas-pvc and legacy pages) */
.page-breadcrumb {
  width: min(100% - 2.5rem, var(--max));
  margin: 1.25rem auto 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.page-breadcrumb a { color: var(--text-muted); }
.page-breadcrumb a:hover { color: var(--green); opacity: 1; }
.page-breadcrumb span { margin: 0 0.35rem; }

/* Geo strip */
.geo-strip {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.1rem 0;
}
.geo-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: #334155;
  text-align: center;
}
.geo-strip__label {
  font-weight: 600;
  color: var(--text);
}
.geo-strip__cities {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}
.geo-strip__cities span,
.geo-strip__cities a {
  position: relative;
  color: inherit;
  text-decoration: none;
}
.geo-strip__cities a:hover {
  color: var(--green);
}
.geo-strip__cities span:not(:last-child)::after,
.geo-strip__cities a:not(:last-child)::after {
  content: "·";
  margin-left: 1.25rem;
  color: #cbd5e1;
  font-weight: 400;
}

/* Stats */
.stats { background: var(--gray-1); padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-value {
  font-size: clamp(2rem, 4vw, 52px);
  font-weight: 600;
  line-height: 1.23;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

/* Timeline — Como funciona */
.timeline { padding: 60px 0; }
.timeline-list { max-width: 760px; margin: 0 auto; list-style: none; padding: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-circle {
  width: 28px;
  height: 28px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  flex-shrink: 0;
}
.timeline-circle--done {
  border-color: var(--green);
  background: var(--green);
  position: relative;
}
.timeline-circle--done::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 8px;
  background: #e8e8e8;
  margin-top: 0.35rem;
}
.timeline-item:last-child .timeline-line { display: none; }
.timeline-item--done .timeline-line { background: var(--green); opacity: 0.35; }
.timeline-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.timeline-item--done .timeline-title { margin-bottom: 0; }
.timeline-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text);
}

/* CTA bands */
.cta-band {
  background: var(--gray-2);
  padding: 45px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
}
.cta-band-text {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.55;
  flex: 1;
}

/* Articles */
.articles { padding: 60px 0; }
.articles-blocktitle {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.article-item + .article-item { border-top: 1px solid var(--border); }
.article-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
}
.article-link:hover { color: var(--green); opacity: 1; }
.article-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.article-icon svg { width: 100%; height: 100%; display: block; }

/* FAQ */
.faq { background: #ffffff; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 0.15em;
  background: center / 24px 24px 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='%23222222' stroke-width='1' 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;
}
.faq-item.open .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='%23222222' stroke-width='1' stroke-linecap='square' d='M1 12h22'/%3E%3C/svg%3E");
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

/* Contact form */
.contact { background: var(--gray-3); padding: 105px 0; }
.contact-head { text-align: center; margin-bottom: 3.5rem; }
.contact-head .section-title { margin-bottom: 0.75rem; }
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 0;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label:not(.form-cat-option) {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-group input:not([type="checkbox"]):not([type="radio"]),
.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: #ffffff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(0,0,0,0.5); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Category checkboxes — flex row so gap works (homepage + category forms) */
label.form-cat-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  margin-bottom: 0;
}
label.form-cat-option input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--green);
}
label.form-cat-option span {
  flex: 1;
  min-width: 0;
}

.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-consent {
  font-size: 14px;
  font-weight: 300;
  margin: 1rem 0 1.25rem;
  line-height: 1.55;
}
.form-error {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 15px;
}
.form-error.show { display: block; }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.show { display: block; }
.form-success h3 { font-size: 24px; font-weight: 600; margin-bottom: 0.75rem; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top svg { width: 18px; height: 18px; }

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 85;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid var(--border);
}
.sticky-cta .btn { width: 100%; min-height: 50px; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--black);
  color: #ffffff;
  padding: 1.25rem 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text { font-size: 14px; opacity: 0.85; max-width: 640px; line-height: 1.55; }
.cookie-text a { color: #8ab4ff; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.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;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-cover__bg { background-attachment: scroll; }
  .hero-cover__top { max-width: 100%; }
  .hero-cover--light .hero-cover__inner {
    padding: 0.75rem 0 1.5rem;
  }
  .hero-cover--light .hero-light-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .hero-cover--light .hero-cover__eyebrow {
    margin-bottom: 0.5rem;
  }
  .hero-cards { grid-template-columns: 1fr; gap: 1.5rem; }
  .geo-strip__inner { flex-direction: column; gap: 0.5rem; }
  .geo-strip__cities span:not(:last-child)::after,
  .geo-strip__cities a:not(:last-child)::after { display: none; }
  .geo-strip__cities { gap: 0.35rem 0.85rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; }
  .sticky-cta { display: block; }
  .scroll-top { bottom: 5rem; }
  .contact { padding: 60px 0; }
  .contact-form { padding: 1.25rem; }
  .btn { width: 100%; padding: 0 30px; }
  .article-link { font-size: 1rem; }
  .article-icon { width: 24px; height: 24px; }
  .faq-question { font-size: 18px; }
  label.form-cat-option { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cover__bg { background-attachment: scroll; }
}
