:root {
  --green-deep: #1f5c2e;
  --green: #2f7d3c;
  --green-mid: #3f8f4a;
  --lime: #7aaa4a;
  --yellow: #e6b83a;
  --yellow-deep: #d4a62e;
  --ink: #243028;
  --muted: #5c6b60;
  --paper: #fbfcfb;
  --white: #ffffff;
  --line: #e2ebe0;
  --shadow: 0 8px 24px rgba(36, 48, 40, 0.08);
  --radius: 10px;
  --font-display: "Source Sans 3", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--green); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--green-deep); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 112px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand img {
  height: 104px;
  width: auto;
  background: transparent;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 10px;
}
.main-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  white-space: nowrap;
}
.main-nav a.is-active,
.main-nav a:hover {
  background: rgba(42, 138, 58, 0.1);
  color: var(--green-deep);
}
.header-cta-menu { display: none !important; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle i {
  display: block; width: 18px; height: 2px; background: var(--green-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  border: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-yellow {
  background: var(--yellow);
  color: var(--green-deep) !important;
}
.btn-yellow:hover {
  background: var(--yellow-deep);
  color: var(--green-deep) !important;
}
.btn-whatsapp {
  background: #1f7a3a;
  color: #fff !important;
  padding: 0 20px;
  min-height: 46px;
  box-shadow: 0 2px 8px rgba(31, 122, 58, 0.25);
}
.btn-whatsapp:hover {
  background: #186530;
  color: #fff !important;
}
.btn-whatsapp .ph-whatsapp-logo {
  color: #fff;
  font-size: 1.25rem;
}
.btn-green {
  background: var(--green-deep);
  color: #fff !important;
}
.btn-green:hover { background: #174a24; color: #fff !important; }
.btn-green .ph-whatsapp-logo { color: #25d366; }
.btn-ghost-light,
.btn-line-light {
  background: #fff;
  color: var(--green-deep) !important;
  border: 1.5px solid var(--line);
}
.btn-ghost-light:hover,
.btn-line-light:hover {
  background: #f3f7f1;
  color: var(--green-deep) !important;
}
.btn-primary {
  background: var(--green-deep);
  color: #fff !important;
}
.btn .ph,
.btn [class^="ph-"] {
  font-size: 1.15rem;
  line-height: 1;
}

/* Hero: foto em destaque + painel de texto suave */
.hero-soft {
  position: relative;
  min-height: min(74dvh, 640px);
  overflow: hidden;
  background: #e8f0e6;
}
.hero-soft-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mostra a fachada com logo mais à direita do hero */
  object-position: 62% center;
  z-index: 0;
}
.hero-soft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.82) 28%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0) 68%
  );
}
.hero-soft-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding: 56px 20px 72px;
}
.hero-soft-panel {
  width: min(460px, 100%);
  padding: 26px 24px 28px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(226, 235, 224, 0.95);
  box-shadow: var(--shadow);
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.hero-soft-panel h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--green-deep);
  max-width: 18ch;
}
.hero-lead {
  margin: 0 0 24px;
  max-width: 38ch;
  font-size: 1.05rem;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-line-light {
  background: #fff;
  color: var(--green-deep) !important;
  border: 2px solid var(--green-soft);
}
.btn-line-light:hover {
  background: rgba(139, 195, 74, 0.15);
  color: var(--green-deep) !important;
}

/* Trust bar */
.trust-bar {
  max-width: var(--max);
  margin: -28px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 14px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.trust-bar li {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 10px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.3;
}
.trust-bar span {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #eef5ec;
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.trust-bar span i {
  font-size: 1.15rem;
  line-height: 1;
}

/* Sections common */
.section-head {
  margin-bottom: 24px;
}
.section-head h2,
.history-copy h2,
.diff-inner h2,
.structure .section-head h2,
.enroll-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--green-deep);
}
.section-head p { margin: 0; color: var(--muted); max-width: 48ch; }
.section-more {
  text-align: center;
  margin-top: 22px;
  font-weight: 800;
}
.section-more a { color: var(--green-deep); }

/* History */
.history {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.history-media {
  position: relative;
  min-height: 420px;
}
.history-main {
  width: 78%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 380px;
}
.history-side {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: 48%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.history-copy p { color: var(--muted); }
.history-copy blockquote {
  margin: 20px 0 0;
  padding: 14px 0 14px 16px;
  border-radius: 0;
  background: transparent;
  color: var(--green-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
  border: 0;
  border-left: 3px solid var(--yellow);
}

/* Segments */
.segments {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 56px;
}
.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.segment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.segment-photo img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}
.segment-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.segment-meta {
  margin: 0 0 4px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.86rem;
}
.segment-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 700;
}
.segment-body h3 a { color: var(--green-deep); }
.segment-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.segment-link {
  margin-top: auto;
  font-weight: 800;
  color: var(--green-deep);
}

/* Differentials band */
.diff-band {
  background: #1f5c2e;
  color: #fff;
  padding: 48px 20px;
}
.diff-inner { max-width: var(--max); margin: 0 auto; }
.diff-inner h2 { color: #fff; margin-bottom: 22px; }
.diff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
.diff-list li {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-radius: 0;
  padding: 14px 0 4px;
  display: grid;
  gap: 4px;
}
.diff-list strong {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
}
.diff-list em {
  font-style: normal;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
}

/* Structure / gallery */
.structure {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}
.structure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.structure-grid figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.structure-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.structure-grid figcaption {
  padding: 8px 10px 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--green-deep);
}

/* Stats */
.stats-band {
  background: #12361b;
  color: #fff;
  padding: 36px 20px;
}
.stats-band ul {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stats-band strong {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: #fff;
  line-height: 1.25;
  font-weight: 700;
}
.stats-band span {
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  font-size: 0.92rem;
}

/* Enroll banner */
.enroll-banner {
  max-width: var(--max);
  margin: 36px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f7f1;
  border: 1px solid var(--line);
  box-shadow: none;
}
.enroll-copy {
  padding: 32px 28px;
}
.enroll-copy h2 { color: var(--green-deep); }
.enroll-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 40ch;
  font-weight: 500;
}
.enroll-banner img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

/* Page / catalog leftovers */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 10px;
}
.page-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--green-deep);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.page-hero p { color: var(--muted); margin: 0; }
.catalog-tools {
  max-width: var(--max);
  margin: 0 auto 18px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 10px;
}
.catalog-tools input,
.catalog-tools select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.catalog {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px 48px;
}
.catalog .segment-grid,
.moto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.moto-card { /* alias kept for js */ }
.moto-card.is-offpage,
.segment-card.is-offpage { display: none; }
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.filters button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}
.filters button.is-active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.pager {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px;
}
.pager button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}
.pager button:disabled { opacity: 0.45; cursor: default; }
.filter-empty { text-align: center; color: var(--muted); padding: 24px; }

.product-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.product-page > img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  min-height: 360px;
  object-fit: cover;
}
.crumb { color: var(--muted); margin-bottom: 8px; }
.kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.open-badge {
  display: inline-block;
  margin: 12px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240, 196, 58, 0.4);
  color: var(--green-deep);
  font-weight: 700;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  background: linear-gradient(180deg, #143f1f 0%, #0e2a15 100%);
  color: rgba(255,255,255,0.88);
  padding: 48px 20px 20px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 1.2fr;
  gap: 28px;
}
.footer-logo {
  height: 88px;
  width: auto;
  margin-bottom: 12px;
  background: transparent;
  padding: 0;
}
.footer-copy { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.site-footer h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--yellow);
}
.site-footer a {
  display: block;
  color: rgba(255,255,255,0.88);
  margin-bottom: 8px;
}
.site-footer a:hover { color: var(--lime); }
.footer-map {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  min-height: 120px;
}
.footer-map iframe {
  width: 100%;
  height: 120px;
  border: 0;
}
.map-link {
  display: inline-block !important;
  margin-top: 8px;
  font-weight: 700;
  color: var(--yellow) !important;
}
.subfooter {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.subfooter a { display: inline; color: var(--lime); }
.admin-link { opacity: 0.5; }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  z-index: 50;
}
.wa-float i { font-size: 1.85rem; line-height: 1; }
.socials a i { font-size: 1.25rem; }

@media (max-width: 1100px) {
  .segment-grid { grid-template-columns: repeat(2, 1fr); }
  .structure-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-bar ul { grid-template-columns: repeat(2, 1fr); }
  .structure-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .history,
  .enroll-banner,
  .product-page,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-band ul { grid-template-columns: repeat(2, 1fr); }
  .catalog .segment-grid,
  .moto-grid { grid-template-columns: 1fr 1fr; }
  .catalog-tools { grid-template-columns: 1fr; }
  .history-media { min-height: 360px; }
  .main-nav a { font-size: 0.88rem; padding: 8px 8px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .brand img { height: 88px; }
  .topbar { min-height: 96px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 112px;
    left: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    margin: 0;
  }
  .main-nav.is-open { display: flex; }
  .header-cta-menu { display: inline-flex !important; justify-content: center; margin-top: 6px; }
  .trust-bar ul { grid-template-columns: 1fr 1fr; }
  .segment-grid,
  .diff-list,
  .structure-grid,
  .stats-band ul,
  .catalog .segment-grid,
  .moto-grid {
    grid-template-columns: 1fr;
  }
  .structure-grid img { height: 200px; }
  .hero-soft {
    min-height: 68dvh;
  }
  .hero-soft::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.72) 45%,
      rgba(255, 255, 255, 0.88) 100%
    );
  }
  .hero-soft-bg { object-position: 35% center; }
  .hero-soft-panel {
    width: 100%;
    padding: 22px 20px;
  }
  .hero-soft-panel h1 { max-width: none; }
}
