/* Scolaro Solutions — landing mockup
   Palette: blue #164194 · gold #c6ae70 */

:root {
  --blue: #164194;
  --blue-deep: #0f2d6b;
  --gold: #c6ae70;
  --gold-soft: #d4c08a;
  --ink: #161616;
  --muted: #5a5a5a;
  --paper: #f7f6f3;
  --white: #ffffff;
  --line: rgba(22, 22, 22, 0.12);
  --shadow: 0 18px 50px rgba(22, 65, 148, 0.14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "PT Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(22, 65, 148, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(198, 174, 112, 0.12), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  line-height: 0;
}

.brand__logo {
  width: clamp(9.5rem, 22vw, 12.5rem);
  height: auto;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.25));
}

.site-header.is-scrolled .brand__logo {
  filter: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav__links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.site-header.is-scrolled .nav__links a { color: var(--ink); }

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.2rem;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after { right: 0; }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  border-radius: 0;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  color: var(--blue-deep);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--dark {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--dark:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn--whatsapp {
  background: #1f9e53;
  color: var(--white);
  border-color: #1f9e53;
}

.btn--whatsapp:hover {
  background: #188445;
  border-color: #188445;
}

.btn--header {
  padding: 0.55rem 1rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 75svh;
  max-height: 75svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease) forwards;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 24, 55, 0.9) 8%, rgba(22, 65, 148, 0.55) 48%, rgba(10, 24, 55, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 16, 28, 0.35) 0%, rgba(10, 16, 28, 0.72) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2.5rem) 0 3.25rem;
  max-width: 50%;
}

.hero__brand {
  margin: 0 0 1.35rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__logo {
  height: auto;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.4));
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  font-weight: 600;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero__support {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section__head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  color: var(--blue-deep);
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section__head--compact {
  margin-bottom: 1.25rem;
}

/* Pillars — no decorative cards */
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
}

.pillar:first-of-type { border-top: none; padding-top: 0; }
.pillar--flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.pillar--flip .pillar__media { order: 2; }

.pillar__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #222;
}

.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.pillar:hover .pillar__media img { transform: scale(1.04); }

.pillar__body h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--blue);
}

.pillar__body p { margin: 0 0 1rem; color: var(--ink); }

.pillar__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.pillar__list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
}

.pillar__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  border-radius: 1px;
}

/* Method */
.method {
  background: #efe4c9;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  counter-reset: step;
}

.step {
  border: 1px solid var(--white);
  padding: 1.35rem 1.25rem 1.5rem;
  background: transparent;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0;
  text-align: right;
}

.step h3 {
  margin: 0.65rem 0 0.45rem;
  font-size: 1.5rem;
  color: var(--blue-deep);
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about__photo {
  overflow: hidden;
  aspect-ratio: 1;
  background: #1a1a1a;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__copy p { margin: 0 0 1rem; }
.about__bio {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-style: italic;
  color: var(--muted);
}

/* Mid CTA */
.mid-cta {
  position: relative;
  color: var(--white);
  overflow: hidden;
  padding: clamp(4rem, 9vw, 6rem) 0;
}

.mid-cta__media {
  position: absolute;
  inset: 0;
}

.mid-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mid-cta__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 24, 55, 0.92) 0%, rgba(22, 65, 148, 0.78) 55%, rgba(10, 24, 55, 0.55) 100%);
}

.mid-cta .wrap { position: relative; z-index: 1; max-width: 40rem; }

.mid-cta h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--white);
}

.mid-cta p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
}

.mid-cta__phone {
  margin: 1rem 0 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
}

.mid-cta__phone a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.mid-cta__phone a:hover { border-bottom-color: var(--gold-soft); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-data .label {
  display: block;
  margin-top: 1.1rem;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-data p { margin: 0; }
.contact-data a {
  color: var(--blue);
  text-decoration: none;
}
.contact-data a:hover { text-decoration: underline; }

.wa-panel {
  background:
    linear-gradient(160deg, rgba(22, 65, 148, 0.08), transparent 50%),
    var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
  box-shadow: var(--shadow);
}

.wa-panel h3 {
  margin: 0;
  font-size: 1.55rem;
  color: var(--blue-deep);
}

.wa-panel p {
  margin: 0;
  color: var(--muted);
}

.wa-panel .btn { align-self: flex-start; margin-top: 0.35rem; }

.wa-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: #101820;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0 1.75rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.footer__logo img {
  width: min(220px, 70vw);
  height: auto;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer__nav a:hover { color: var(--gold-soft); }

.footer__legal {
  padding-top: 1.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer__legal p {
  margin: 0;
}

.footer__legal a {
  color: var(--gold-soft);
  text-decoration: none;
}

.footer__legal a:hover { text-decoration: underline; }

.footer__credit {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer__credit a:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img,
  .hero__brand,
  .hero h1,
  .hero__support,
  .hero__actions,
  .reveal,
  .pillar__media img,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hero__content { max-width: 66.666%; }

  .pillar,
  .pillar--flip {
    grid-template-columns: 1fr;
  }
  .pillar--flip .pillar__media { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 22rem; }
}

@media (max-width: 780px) {
  .hero {
    min-height: 100svh;
    max-height: 100svh;
  }

  .nav-toggle { display: inline-block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.25rem;
    background: rgba(247, 246, 243, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links {
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  .nav__links a,
  .site-header.is-scrolled .nav__links a,
  .site-header .nav__links a {
    color: var(--ink);
  }

  .btn--header { width: 100%; }

  .hero__content {
    max-width: 100%;
    padding-bottom: 2.5rem;
  }
}
