/* ============ Design tokens ============ */
:root {
  --green: #81c763;
  --green-dark: #5fa542;
  --green-deep: #3f7a2c;
  --green-soft: #eef8e8;
  --teal: #00c7c4;
  --teal-dark: #00a3a1;
  --teal-soft: #e3faf9;
  --ink: #10241a;
  --ink-soft: #3a4a41;
  --muted: #6d7d74;
  --line: #e4ece1;
  --bg-soft: #f6faf4;
  --white: #ffffff;
  --footer-bg: #0f1917;

  --font-head: "Fredoka", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;

  --shadow-sm: 0 2px 10px rgba(16, 36, 26, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 36, 26, 0.1);
  --shadow-lg: 0 24px 60px rgba(16, 36, 26, 0.16);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Buttons ============ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  font-family: var(--font-body);
}
.btn::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn--primary {
  background: var(--green);
  color: #0f2a08;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--green-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }

/* ============ Top bar ============ */
.topbar {
  background: var(--green);
  color: #0f2a08;
  font-size: 13.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 24px;
  gap: 16px;
}
.topbar__contacts { display: flex; gap: 22px; }
.topbar__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; opacity: .9; }
.topbar__link:hover { opacity: 1; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social a {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.35);
  transition: background .18s ease;
}
.topbar__social a:hover { background: rgba(255,255,255,.6); }

/* ============ Scroll progress ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  z-index: 200;
  transition: width .1s linear;
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  box-shadow: 0 2px 12px rgba(15, 42, 8, .12);
  transition: padding .25s ease, box-shadow .25s ease;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 24px;
  transition: padding .25s ease;
}
.nav--scrolled .nav__inner { padding: 12px 24px; }
.nav--scrolled .brand__logo { height: 46px; }
.nav--scrolled.nav .brand__logo--flat { height: 38px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__logo {
  height: 64px; width: auto; display: block;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: height .25s ease;
}
.brand__logo--flat { border-radius: 0; box-shadow: none; height: 52px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) {
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,.9);
  position: relative;
  padding: 4px 0;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0; background: #fff;
  transition: width .2s ease;
}
.nav__links a:not(.btn):hover { color: #fff; }
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__cta {
  white-space: nowrap;
  flex-shrink: 0;
  background: #fff;
  color: var(--green-deep);
}
.nav__cta:hover { background: var(--green-soft); color: var(--green-deep); }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav__toggle span { width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: .2s ease; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 100px;
  background: linear-gradient(180deg, var(--green-soft) 0%, #ffffff 78%);
}
.hero__blob {
  position: absolute; inset: -20% -10% auto auto;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(129,199,99,.35), rgba(129,199,99,0) 70%);
  border-radius: 50%;
  z-index: 0;
  animation: blobDrift 14s ease-in-out infinite;
}
.hero__blob--2 {
  inset: auto auto -30% -12%;
  width: 520px; height: 520px;
  background: radial-gradient(circle at 60% 40%, rgba(0,199,196,.4), rgba(0,199,196,0) 70%);
  animation: blobDrift2 12s ease-in-out infinite;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-24px, 18px) scale(1.06); }
  66% { transform: translate(16px, -14px) scale(.96); }
}
@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -35px) scale(1.12); }
  50% { transform: translate(20px, 30px) scale(.92); }
  75% { transform: translate(-45px, -10px) scale(1.05); }
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero__copy, .hero__art { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-dark);
  box-shadow: 0 0 0 rgba(0,199,196,.5);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(0,199,196,.45); }
  70% { box-shadow: 0 0 0 6px rgba(0,199,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,199,196,0); }
}
.eyebrow--center { display: flex; margin: 0 auto 12px; width: fit-content; }
.hero h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(100deg, var(--green-deep), var(--teal-dark) 60%, var(--green-deep));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s linear infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero__lede { font-size: 17.5px; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; gap: 14px; margin: 28px 0 40px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 26px; color: var(--ink); }
.hero__stats span { font-size: 13px; color: var(--muted); }

.hero__art { position: relative; height: 380px; }
.hero__card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  width: 230px;
  animation: float 5s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero__card:hover { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-lg); z-index: 2; }
.hero__card strong { display: block; font-size: 14.5px; color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.hero__card span { font-size: 12.5px; color: var(--muted); }
.hero__card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
}
.hero__card--1 { top: 4%; right: 6%; }
.hero__card--2 { top: 42%; right: 22%; animation-delay: 1.2s; }
.hero__card--2 .hero__card__icon { background: linear-gradient(145deg, var(--teal), var(--teal-dark)); }
.hero__card--3 { top: 76%; right: 2%; animation-delay: 2.4s; }
.hero__card--3 .hero__card__icon { background: linear-gradient(145deg, var(--green-dark), var(--teal-dark)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ Sections generic ============ */
section { padding: 96px 0; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 38px);
  max-width: 700px;
  margin: 0 auto 16px;
}
.section-title--left { text-align: left; margin: 0 0 18px; }
.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 52px;
  font-size: 16.5px;
}

.grid { display: grid; gap: 28px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid > *, .about__inner > *, .contact__grid > *, .footer__inner > * { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ============ Services ============ */
.services { background: var(--white); }
.card--service {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.card--service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  background: #fff;
  border-color: var(--green);
}
.card__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform .3s ease;
}
.card--service:hover .card__icon { transform: scale(1.1) rotate(-6deg); }
.card--service:nth-child(2) .card__icon,
.card--service:nth-child(4) .card__icon {
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
}
.card--service h3 { font-size: 19px; margin-bottom: 8px; }
.card--service p { color: var(--muted); font-size: 14.8px; margin: 0; }

/* ============ About ============ */
.about { background: var(--bg-soft); }
.about__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.about__badge strong { font-family: var(--font-head); font-size: 24px; color: var(--green-deep); }
.about__badge span { font-size: 12.5px; color: var(--muted); max-width: 150px; }
.about__copy p { color: var(--ink-soft); font-size: 16px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat strong { display: block; font-family: var(--font-head); font-size: 24px; color: var(--ink); }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ============ Portfolio ============ */
.portfolio { background: var(--white); }
.app-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
.app-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.app-card__media { overflow: hidden; background: #fff; }
.app-card > img,
.app-card__media > img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: #fff;
  transition: transform .4s ease;
}
.app-card:hover > img,
.app-card:hover .app-card__media > img { transform: scale(1.08); }
.app-card__body { padding: 20px 22px 24px; }
.app-card__body h3 { font-size: 18px; margin-bottom: 4px; }
.app-card__body p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.app-card__links { display: flex; gap: 10px; flex-wrap: wrap; }
.app-card__links a {
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-deep);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.app-card__links a:hover { background: var(--green); border-color: var(--green); color: #0f2a08; }

/* ============ CTA banner ============ */
.cta-banner {
  padding: 0;
  background: linear-gradient(120deg, var(--green-deep), var(--green) 55%, var(--teal-dark));
}
.cta-banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 56px 24px;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: 27px; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,.9); margin: 0; }

/* ============ Contact ============ */
.contact { background: var(--bg-soft); }
.contact__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
}
.contact__info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.info-card:hover {
  transform: translateY(-3px) translateX(2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--green);
}
.info-card__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.info-card:hover .info-card__icon { transform: scale(1.1); }
.info-card strong { display: block; font-size: 14px; margin-bottom: 2px; }
.info-card span, .info-card a { font-size: 14px; color: var(--muted); }
.info-card a:hover { color: var(--green-deep); }
.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: 1;
  min-height: 220px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 220px; border: 0; }

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact__form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  resize: vertical;
  transition: border-color .18s ease, background .18s ease;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}
.form-note {
  font-size: 12.5px; color: var(--muted); text-align: center; margin: 0;
  transition: all .2s ease;
}
.form-note--success {
  font-size: 14px; font-weight: 600; color: var(--green-deep);
  background: var(--green-soft); border: 1px solid var(--green);
  border-radius: 10px; padding: 12px 16px;
}
.form-note--error {
  font-size: 14px; font-weight: 600; color: #b3261e;
  background: #fdecea; border: 1px solid #f3b8b3;
  border-radius: 10px; padding: 12px 16px;
}

/* ============ Footer ============ */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.75); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 24px 48px;
}
.brand--footer .brand__logo { height: 56px; }
.footer__brand p { font-size: 14px; margin: 16px 0 20px; max-width: 320px; color: rgba(255,255,255,.6); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease;
}
.footer__social a:hover { background: var(--green); color: #0f2a08; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.footer__col a, .footer__col span { font-size: 14px; color: rgba(255,255,255,.65); }
.footer__col a:hover { color: var(--green); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}

/* ============ WhatsApp FAB ============ */
.whatsapp-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform .18s ease;
}
.whatsapp-fab::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulseRing 2.4s ease-out infinite;
  z-index: -1;
}
.whatsapp-fab:hover { transform: scale(1.08); }
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ============ Reveal animation ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
.grid > [data-reveal]:nth-child(1) { transition-delay: 0s; }
.grid > [data-reveal]:nth-child(2) { transition-delay: .08s; }
.grid > [data-reveal]:nth-child(3) { transition-delay: .16s; }
.grid > [data-reveal]:nth-child(4) { transition-delay: .24s; }
.grid > [data-reveal]:nth-child(5) { transition-delay: .32s; }
.grid > [data-reveal]:nth-child(6) { transition-delay: .4s; }
.grid > [data-reveal]:nth-child(7) { transition-delay: .48s; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { margin-bottom: 40px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar__contacts a:nth-child(2) { display: none; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.nav--open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .nav.nav--open .nav__links a:not(.btn) { color: var(--ink-soft); }
  .nav.nav--open .nav__links a:not(.btn)::after { background: var(--green); }
  .nav.nav--open .nav__links a:not(.btn):hover { color: var(--ink); }
  .nav.nav--open .nav__cta {
    margin-top: 4px;
    background: var(--green);
    color: #0f2a08;
  }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; padding: 56px 24px 32px; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
