/* ============================================================
   Grupo Sursum — Landing
   Palette: deep teal #001d23 · mint #91f39c · muted #a9c4bc
   Fonts:   Marcellus (display) · Jost (body)
   ============================================================ */

:root {
  --bg:        #001d23;
  --bg-soft:   rgba(145, 243, 156, .03);
  --mint:      #91f39c;
  --mint-soft: rgba(145, 243, 156, .12);
  --ink:       #eefbf1;
  --text:      #d8e9e2;
  --muted:     #a9c4bc;
  --muted-2:   #6fae87;
  --muted-3:   #4f7a68;
  --maxw:      1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: 'Jost', sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--mint); text-decoration: none; }
a:hover { color: #c8ffcf; }

::selection { background: var(--mint); color: var(--bg); }

/* ---------- Keyframes ---------- */
@keyframes marquee   { from { transform: translateX(0); }        to { transform: translateX(-50%); } }
@keyframes floaty    { 0%,100% { transform: translateY(0); }     50% { transform: translateY(-14px); } }
@keyframes ringPulse { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer   { 0% { background-position: 200% 50%; }     100% { background-position: -200% 50%; } }
@keyframes spin      { from { transform: rotate(0); }            to { transform: rotate(360deg); } }

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #48c47a, var(--mint));
  box-shadow: 0 0 12px rgba(145, 243, 156, .6);
  z-index: 100;
  transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 16px;
  padding: 16px 34px;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn--sm { padding: 10px 22px; font-size: 14px; }

.btn--solid {
  background: var(--mint);
  color: var(--bg);
  font-weight: 600;
}
.btn--solid:hover {
  color: var(--bg);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(145, 243, 156, .4);
}
.btn--sm.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(145, 243, 156, .35);
}

.btn--ghost {
  color: var(--ink);
  border: 1px solid rgba(145, 243, 156, .35);
  font-weight: 500;
}
.btn--ghost:hover {
  color: var(--mint);
  border-color: var(--mint);
  background: rgba(145, 243, 156, .06);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(0, 29, 35, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mint-soft);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(1.02);
}
.nav__name {
  font-family: 'Marcellus', serif;
  font-size: 19px;
  letter-spacing: .14em;
  color: var(--ink);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  letter-spacing: .08em;
  font-weight: 500;
}
.nav__link { color: var(--muted); }
.nav__link:hover { color: var(--mint); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 96px 72px 72px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 243, 156, .10), transparent 65%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(145, 243, 156, .3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--mint);
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}
.hero__title {
  font-family: 'Marcellus', serif;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.06;
  margin: 26px 0 0;
  color: var(--ink);
  font-weight: 400;
}
.shimmer {
  background: linear-gradient(90deg, #91f39c, #e2ffe6, #91f39c);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
.hero__rule {
  width: 64px; height: 2px;
  background: var(--mint);
  margin: 28px 0;
}
.hero__lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin: 0;
  font-weight: 300;
  text-align: justify;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero__emblem {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ring {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  animation: ringPulse 3s ease-out infinite;
}
.ring--1 { border: 1px solid rgba(145, 243, 156, .35); }
.ring--2 { border: 1px solid rgba(145, 243, 156, .2); animation-delay: 1.5s; }
.emblem__img {
  width: 380px; height: 380px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(145, 243, 156, .25);
  animation: floaty 6s ease-in-out infinite;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--mint-soft);
  border-bottom: 1px solid var(--mint-soft);
  padding: 16px 0;
  background: var(--bg-soft);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: 'Marcellus', serif;
  font-size: 17px;
  letter-spacing: .18em;
  color: var(--muted-2);
  white-space: nowrap;
}
.marquee__star {
  color: var(--mint);
  display: inline-block;
  animation: spin 7s linear infinite;
}

/* ---------- Section shared ---------- */
.kicker {
  font-size: 13px;
  letter-spacing: .26em;
  color: var(--mint);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Marcellus', serif;
  font-size: clamp(34px, 3.6vw, 48px);
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}

/* ---------- Services ---------- */
.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 72px 60px;
}
.services__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.services__intro {
  max-width: 380px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.service-card {
  border: 1px solid rgba(145, 243, 156, .14);
  border-radius: 18px;
  padding: 32px 28px;
  background: linear-gradient(160deg, rgba(145, 243, 156, .04), rgba(0, 29, 35, 0));
  transition: transform .25s, border-color .25s, background .25s;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(145, 243, 156, .5);
  background: linear-gradient(160deg, rgba(145, 243, 156, .09), rgba(0, 29, 35, 0));
}
.service-card__num {
  font-family: 'Marcellus', serif;
  font-size: 15px;
  color: var(--muted-3);
  letter-spacing: .1em;
}
.service-card__title {
  font-family: 'Marcellus', serif;
  font-size: 24px;
  color: var(--mint);
  margin: 14px 0 10px;
  font-weight: 400;
}
.service-card__desc {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
  font-size: 15.5px;
  text-align: justify;
}

/* ---------- Pillars ---------- */
.pillars {
  border-top: 1px solid var(--mint-soft);
  border-bottom: 1px solid var(--mint-soft);
  background: var(--bg-soft);
  margin-top: 60px;
}
.pillars__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.pillar {
  display: flex;
  flex-direction: column;
  padding: 0 40px;
  border-right: 1px solid rgba(145, 243, 156, .14);
}
.pillar:first-child { padding-left: 0; }
.pillar:last-child  { padding-right: 0; border-right: none; }
.pillar__title {
  display: flex;
  align-items: flex-end;
  height: 64px;
  font-family: 'Marcellus', serif;
  font-size: 52px;
  color: var(--mint);
  line-height: 1;
  white-space: nowrap;
}
.pillar__line {
  height: 2px;
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--mint), rgba(145, 243, 156, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1) .25s;
}
.pillar__desc {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  margin: 18px 0 0;
  text-align: justify;
}

/* ---------- Stats ---------- */
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat__value {
  font-family: 'Marcellus', serif;
  font-size: 56px;
  color: var(--ink);
  line-height: 1;
}
.stat__accent { color: var(--mint); }
.stat__label {
  color: var(--muted-2);
  letter-spacing: .14em;
  font-size: 13px;
  margin-top: 12px;
}

/* ---------- Contact ---------- */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 72px 110px;
}
.contact__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(145, 243, 156, .25);
  border-radius: 28px;
  padding: 80px 64px;
  text-align: center;
  background: radial-gradient(ellipse at 50% -30%, rgba(145, 243, 156, .14), rgba(0, 29, 35, 0) 60%);
}
.contact__title {
  font-family: 'Marcellus', serif;
  font-size: clamp(34px, 4vw, 54px);
  color: var(--ink);
  margin: 20px auto 0;
  max-width: 720px;
  font-weight: 400;
  line-height: 1.15;
}
.contact__lead {
  color: var(--muted);
  font-weight: 300;
  font-size: 18px;
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.7;
  text-align: justify;
}
.contact__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 38px;
  flex-wrap: wrap;
}
.contact__cities {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 36px;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: .18em;
}
.contact__cities-sep {
  color: var(--mint);
  font-size: 10px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--mint-soft);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.footer__name {
  font-family: 'Marcellus', serif;
  letter-spacing: .14em;
  color: var(--ink);
  font-size: 15px;
}
.footer__cities {
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: .14em;
}
.footer__legal {
  color: var(--muted-3);
  font-size: 13px;
  letter-spacing: .06em;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-line.is-visible { transform: scaleX(1); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 72px 40px 56px;
    gap: 56px;
  }
  .hero__emblem { order: -1; }
  .ring, .ring--2, .emblem__img { width: 300px; height: 300px; }
  .services { padding: 80px 40px 48px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pillars__inner { padding: 72px 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 48px 20px; padding: 72px 40px; }
  .contact { padding: 20px 40px 80px; }
}

@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .nav__links { gap: 16px; }
  .nav__link { display: none; }
  .hero { padding: 56px 20px 40px; }
  .ring, .ring--2, .emblem__img { width: 240px; height: 240px; }
  .services { padding: 64px 20px 40px; }
  .services__grid { grid-template-columns: 1fr; }
  .pillars__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 20px;
  }
  .pillar {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid rgba(145, 243, 156, .14);
    padding-bottom: 32px;
  }
  .pillar:last-child { border-bottom: none; padding-bottom: 0; }
  .pillar__title { height: auto; font-size: 46px; }
  .stats { grid-template-columns: 1fr; gap: 40px; padding: 56px 20px; }
  .contact__card { padding: 56px 24px; }
  .contact { padding: 20px 20px 64px; }
  .footer { padding: 28px 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-line { transform: scaleX(1); }
}
