/* cume.pt — home template (Amazon-style grid) */
:root {
  --ht-green: #578f5c;
  --ht-green-dark: #3d6b41;
  --ht-green-hero: #4a7d4f;
  --ht-blue: #1f5bff;
  --ht-page-bg: #eaeded;
  --ht-card-bg: #ffffff;
  --ht-text: #0f1111;
  --ht-muted: #565959;
  --ht-font: "TildaSans", Arial, sans-serif;
  --ht-max: 1500px;
  --ht-card-gap: 20px;
  --ht-block-gap: 1rem;
}

body.ht-body {
  background: var(--ht-page-bg);
}

body.ht-body section {
  padding: 0;
}

body.ht-body .ht-main-section {
  padding: var(--ht-block-gap) 0;
  background: #fff;
}

body.ht-body .timeline.ht-main-section {
  background: var(--ht-page-bg);
}

body.ht-body .timeline .section-head {
  margin-bottom: 1.25rem;
}

/* Hero — full width, cards overlap bottom */
.ht-hero-wrap {
  position: relative;
  background: var(--ht-page-bg);
}

.ht-hero {
  position: relative;
  min-height: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--ht-green-hero) 0%, #6fa874 45%, var(--ht-green) 100%);
  overflow: hidden;
}

.ht-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 640px);
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1.35rem;
  color: #fff;
}

.ht-hero__eyebrow {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 600;
  margin-bottom: 0.35rem;
  opacity: 0.95;
}

.ht-hero__title {
  font-size: clamp(1.65rem, 4.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.ht-hero__sub {
  font-size: clamp(0.9rem, 1.9vw, 1.05rem);
  font-weight: 300;
  line-height: 1.4;
  opacity: 0.92;
  max-width: 480px;
}

.ht-hero__cta {
  display: inline-flex;
  margin-top: 0.75rem;
  min-height: 44px;
  padding: 0 1.5rem;
  background: #fff;
  color: var(--ht-green-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  align-items: center;
  transition: opacity 0.2s, transform 0.2s;
}

.ht-hero__cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  color: var(--ht-green-dark);
}

/* Decorative floats (Amazon-style product scatter) */
.ht-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ht-hero__float {
  position: absolute;
  width: clamp(60px, 10vw, 100px);
  height: clamp(60px, 10vw, 100px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ht-hero__float img,
.ht-hero__float svg {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.ht-hero__float--1 { top: 8%; right: 6%; transform: rotate(8deg); }
.ht-hero__float--2 { top: 6%; right: 26%; transform: rotate(-6deg); width: clamp(52px, 8vw, 88px); height: clamp(52px, 8vw, 88px); }
.ht-hero__float--3 { bottom: 10%; right: 12%; transform: rotate(4deg); }
.ht-hero__float--4 { top: 28%; right: 40%; transform: rotate(-10deg); width: clamp(56px, 9vw, 92px); height: clamp(56px, 9vw, 92px); }
.ht-hero__float--5 { bottom: 12%; right: 32%; transform: rotate(12deg); }

@media (max-width: 900px) {
  .ht-hero__decor { opacity: 0.45; }
}

/* Card grid — below hero, no overlap */
.ht-grid-wrap {
  position: relative;
  z-index: 5;
  margin-top: 0;
  padding: var(--ht-block-gap);
}

.ht-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ht-card-gap);
  max-width: var(--ht-max);
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .ht-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .ht-grid { grid-template-columns: 1fr; }
}

/* Card */
.ht-card {
  background: var(--ht-card-bg);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(15, 17, 17, 0.08);
}

.ht-card__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ht-text);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.ht-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ht-card__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ht-blue);
}

.ht-card__link:hover {
  color: #0d6efd;
  text-decoration: underline;
  opacity: 1;
}

/* Single feature card */
.ht-card--feature .ht-card__visual {
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, #e8f0e9 0%, #d4e4d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.ht-card--feature .ht-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2x2 grid card */
.ht-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  flex: 1;
}

.ht-quad__item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.2s;
}

.ht-quad__item:hover {
  opacity: 0.88;
}

.ht-quad__img {
  aspect-ratio: 1;
  background: var(--ht-page-bg);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-quad__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-quad__label {
  font-size: 0.78rem;
  color: var(--ht-text);
  margin-top: 0.35rem;
  line-height: 1.3;
  font-weight: 400;
}

/* Card compact — unused in v1 secondary row removed */

/* Geo strip — between grid and Como funciona */
.ht-geo-strip {
  margin: 0;
  background: #fff;
  border-top: 1px solid #d5d9d9;
  border-bottom: 1px solid #d5d9d9;
}

.ht-geo-strip .geo-strip__cities {
  justify-content: center;
}

/* Template badge */
.ht-template-badge {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 999;
  background: var(--ht-text);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  opacity: 0.85;
  pointer-events: none;
}

/* Footer on gray bg */
body.ht-body .footer {
  margin-top: 0;
}

body.ht-body .ht-contact {
  padding: var(--ht-block-gap) 0 2rem;
  background: #fff;
}

body.ht-body .ht-contact .contact-head {
  margin-bottom: 1.25rem;
}

body.ht-body .ht-contact .contact-head .section-title {
  margin-bottom: 0;
}

body.ht-body .ht-contact .contact-form {
  padding: 0 1.5rem 1.5rem;
}

/* Category picker in contact form */
.form-categories {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.form-categories__legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 0;
}

.form-categories__hint {
  font-size: 14px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 1rem;
}

.form-categories__group {
  margin-bottom: 1rem;
}

.form-categories__group:last-child {
  margin-bottom: 0;
}

.form-categories__group-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ht-green, #578f5c);
  margin: 0 0 0.5rem;
}

.form-categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem;
}

@media (max-width: 520px) {
  .form-categories__list {
    grid-template-columns: 1fr;
  }

  .form-cat-option {
    gap: 1rem;
  }
}

.form-cat-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}

.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(--ht-green, #578f5c);
}

.form-cat-option span {
  flex: 1;
  min-width: 0;
}

/* FAQ on homepage — accordion uses .faq-* from main.css */
.ht-faq {
  padding: var(--ht-block-gap) 0 1.5rem;
  background: #fff;
}

.ht-faq .section-head {
  margin-bottom: 1.5rem;
}

.ht-faq .faq-list {
  margin: 0 auto;
}

/* ——— Mobile optimizations ——— */
@media (max-width: 768px) {
  .ht-hero__decor {
    display: none;
  }

  .ht-hero__inner {
    width: 100%;
    padding: 1rem 1rem 1.25rem;
    text-align: center;
  }

  .ht-hero__sub {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .ht-hero__cta {
    width: 100%;
    justify-content: center;
  }

  .ht-grid-wrap {
    padding: 0.75rem;
  }

  .ht-card {
    min-height: 0;
    padding: 1rem;
  }

  .ht-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
  }

  .ht-card--feature .ht-card__visual {
    min-height: 200px;
  }

  .ht-geo-strip .geo-strip__inner {
    align-items: flex-start;
  }

  .ht-geo-strip .geo-strip__cities {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }

  .ht-geo-strip .geo-strip__cities a {
    flex-shrink: 0;
    white-space: nowrap;
  }

  body.ht-body .ht-contact .contact-form {
    padding: 0 1rem 1.25rem;
  }

  body.ht-body .ht-main-section {
    padding: 1.25rem 0;
  }
}

@media (max-width: 480px) {
  .ht-quad {
    gap: 0.5rem;
  }

  .ht-quad__label {
    font-size: 0.72rem;
  }

  .ht-card__link {
    font-size: 0.85rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .ht-quad__item {
    min-height: 44px;
  }
}
