:root {
  --bg: #ffffff;
  --bg-soft: #f3f6f3;
  --ink: #171917;
  --muted: #5a615a;
  --line: #d8dfd8;
  --green: #1f6b3a;
  --wa: #128c7e;
  --wa-deep: #0e6f64;
  --call: #6b4423;
  --call-deep: #54351b;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --r: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.45;
  color: #171917;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.15;
  color: #171917;
}

p {
  margin: 0;
}

.wrap {
  width: min(920px, calc(100% - 1.25rem));
  margin-inline: auto;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.4rem;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #171917;
}

.top-cta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r);
  border: 0;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-sm {
  min-height: 2.3rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}

.btn-wa {
  background: #128c7e;
  color: #ffffff !important;
}

.btn-wa:hover {
  background: #0e6f64;
}

.btn-call {
  background: #6b4423;
  color: #ffffff !important;
}

.btn-call:hover {
  background: #54351b;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  overflow: hidden;
  background: #1c2820;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 55%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 14, 0.25) 0%, rgba(12, 18, 14, 0.8) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 2rem 0 1.6rem;
}

.hero-copy h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 6.5vw, 2.6rem);
  font-weight: 800;
  max-width: 16ch;
}

.hero-copy p {
  margin-top: 0.65rem;
  margin-bottom: 1.1rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

/* Facts */

.facts {
  background: #f3f6f3;
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.facts-row {
  display: grid;
  gap: 0.45rem;
}

.facts-row p {
  font-size: 0.94rem;
  font-weight: 600;
  color: #171917;
  padding-left: 0.75rem;
  border-left: 3px solid var(--green);
}

@media (min-width: 720px) {
  .facts-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Ads — flex stabil la scroll (fara height:100% pe img / overflow hidden pe card) */

.ads {
  padding: 1.5rem 0 0.75rem;
  background: #ffffff;
}

.ads-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #171917;
  margin-bottom: 1rem;
}

.ad {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid #d8dfd8;
  border-radius: 6px;
  /* important: fara overflow:hidden — taia textul la scroll pe Safari/Chrome */
}

.ad-media {
  flex: 0 0 auto;
  width: 100%;
  height: 200px;
  background: #d5dbd5;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.ad-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ad-body {
  flex: 1 1 auto;
  display: block;
  padding: 1rem 1rem 1.15rem;
  background: #ffffff;
  color: #171917;
  border-top: 3px solid #6b4423;
  border-radius: 0 0 6px 6px;
  /* forțează vizibilitatea la scroll / compositing */
  opacity: 1;
  visibility: visible;
  transform: none;
  content-visibility: visible;
}

.ad-body h3 {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #171917;
  margin: 0 0 0.45rem;
}

.ad-body p {
  display: block;
  color: #5a615a;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.ad-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (min-width: 768px) {
  .ad {
    flex-direction: row;
    align-items: stretch;
    min-height: 220px;
  }

  .ad-media {
    position: relative;
    flex: 0 0 340px;
    width: 340px;
    height: auto;
    min-height: 220px;
    align-self: stretch;
    border-radius: 6px 0 0 6px;
  }

  .ad-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    object-fit: cover;
  }

  .ad-body {
    position: relative;
    z-index: 1;
    border-top: 0;
    border-left: 3px solid #6b4423;
    border-radius: 0 6px 6px 0;
    padding: 1.25rem 1.4rem;
    min-width: 0;
  }
}

/* Bottom */

.bottom {
  padding: 1rem 0 2.5rem;
}

.bottom-box {
  padding: 1.35rem 1.15rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #eef5f0;
}

.bottom-box h2 {
  font-size: clamp(1.2rem, 3.8vw, 1.55rem);
  font-weight: 800;
  color: #171917;
  max-width: 22ch;
}

.bottom-box > p {
  margin: 0.45rem 0 1rem;
  color: #5a615a;
}

/* Footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 5.5rem;
  background: #ffffff;
}

.foot p {
  font-size: 0.88rem;
  color: #5a615a;
}

/* Floating WhatsApp */

.fab-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 3.35rem;
  height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #128c7e;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.35);
}

.fab-wa:hover {
  background: #0e6f64;
}

@media (min-width: 900px) {
  .foot {
    padding-bottom: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
