/* =========================================================
   S R Miranda LTDA — Site Institucional
   Design System (tema escuro multi-vertical)
   ========================================================= */

:root {
  /* Base / superfícies */
  --bg: #0a0e1a;
  --bg-elev: #111726;
  --bg-elev-2: #161d30;
  --surface-border: #232c45;
  --surface-border-soft: #1b2238;

  /* Texto */
  --text: #eef1f8;
  --text-soft: #aab2c8;
  --text-dim: #7682a0;

  /* Marca */
  --brand: #6d8bff;
  --brand-2: #9b6dff;
  --brand-grad: linear-gradient(135deg, #6d8bff 0%, #9b6dff 55%, #c86dff 100%);

  /* Verticais */
  --petshop: #2dd4a7;
  --petshop-soft: rgba(45, 212, 167, .12);
  --farmacia: #38b6ff;
  --farmacia-soft: rgba(56, 182, 255, .12);
  --mercado: #ffb454;
  --mercado-soft: rgba(255, 180, 84, .12);

  /* Feedback */
  --danger: #ff6b6b;
  --success: #3ad29f;

  /* Tipografia */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);
  --shadow-soft: 0 12px 30px -16px rgba(0, 0, 0, .6);
  --ring: 0 0 0 3px rgba(109, 139, 255, .35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

::selection { background: rgba(155, 109, 255, .35); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ----------------------- Layout ----------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 16px;
}
.section-lead {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 620px;
}
.section-head { margin-bottom: 56px; }
.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(124, 109, 255, .8);
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 40px -10px rgba(124, 109, 255, .9); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--surface-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--text); }

/* ----------------------- Header ----------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--surface-border-soft);
  background: rgba(10, 14, 26, .9);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 8px 20px -8px rgba(124, 109, 255, .9);
}
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-dim); letter-spacing: .02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 9px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------- Hero ----------------------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(620px 320px at 18% 12%, rgba(109, 139, 255, .22), transparent 60%),
    radial-gradient(560px 300px at 82% 0%, rgba(200, 109, 255, .18), transparent 60%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 1.18rem;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap;
}
.hero-meta .stat strong {
  display: block;
  font-size: 1.7rem;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-meta .stat span { color: var(--text-dim); font-size: .9rem; }

/* Hero visual — cartões flutuantes */
.hero-visual { position: relative; min-height: 420px; }
.float-card {
  position: absolute;
  background: linear-gradient(160deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  width: 250px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  font-size: 1.4rem;
}
.float-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.float-card p { font-size: .86rem; color: var(--text-dim); margin: 0; }
.float-card.fc-1 { top: 8px; left: 0; --accent: var(--petshop); }
.float-card.fc-2 { top: 150px; right: 0; animation-delay: 1.2s; --accent: var(--farmacia); }
.float-card.fc-3 { bottom: 0; left: 40px; animation-delay: 2.4s; --accent: var(--mercado); }
.float-card .fc-icon { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.float-card { border-top: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ----------------------- Verticais ----------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.vcard {
  position: relative;
  background: linear-gradient(165deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.vcard::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent);
  opacity: .85;
}
.vcard:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--surface-border));
  box-shadow: 0 26px 50px -28px color-mix(in srgb, var(--accent) 70%, transparent);
}
.vcard .v-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 22px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.vcard h3 { font-size: 1.35rem; margin-bottom: 10px; }
.vcard p { color: var(--text-soft); font-size: .98rem; }
.vcard .v-list { list-style: none; margin: 18px 0 0; padding: 0; }
.vcard .v-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; color: var(--text-soft); padding: 6px 0;
}
.vcard .v-list li::before {
  content: "✓"; color: var(--accent); font-weight: 700; flex: none;
}
.vcard--petshop { --accent: var(--petshop); }
.vcard--farmacia { --accent: var(--farmacia); }
.vcard--mercado { --accent: var(--mercado); }

/* ----------------------- Features ----------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-sm);
  padding: 26px;
  transition: border-color .25s ease, transform .25s ease;
}
.feature:hover { border-color: var(--surface-border); transform: translateY(-4px); }
.feature .f-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px;
  background: rgba(109, 139, 255, .12); color: var(--brand);
}
.feature h4 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--text-soft); font-size: .94rem; margin: 0; }

/* ----------------------- Split / Sobre ----------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.panel {
  background: linear-gradient(165deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--surface-border-soft); }
.panel-list li:last-child { border-bottom: none; }
.panel-list .pl-icon {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--brand-grad); color: #fff;
}
.panel-list h4 { font-size: 1.02rem; margin: 0 0 2px; }
.panel-list p { margin: 0; font-size: .9rem; color: var(--text-dim); }

/* ----------------------- CTA band ----------------------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, rgba(109, 139, 255, .14), rgba(200, 109, 255, .14));
  border: 1px solid var(--surface-border);
  border-radius: 26px;
  padding: 56px;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 50% -20%, rgba(155, 109, 255, .25), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta-band p { color: var(--text-soft); max-width: 540px; margin: 0 auto 28px; }

/* ----------------------- Footer ----------------------- */
.site-footer {
  border-top: 1px solid var(--surface-border-soft);
  background: #070b14;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-grid h5 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim); margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-soft); font-size: .94rem; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-soft); font-size: .94rem; max-width: 320px; }
.footer-contact li { color: var(--text-soft); font-size: .94rem; display: flex; gap: 10px; align-items: flex-start; }
.footer-bottom {
  border-top: 1px solid var(--surface-border-soft);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-dim); font-size: .86rem;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text); }

/* ----------------------- Páginas legais ----------------------- */
.page-hero {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--surface-border-soft);
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 100%;
  background: radial-gradient(600px 240px at 20% 0%, rgba(109, 139, 255, .16), transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero .updated { color: var(--text-dim); font-size: .92rem; }

.legal {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 64px 0 96px;
  align-items: start;
}
.legal-toc {
  position: sticky; top: 96px;
  background: var(--bg-elev);
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.legal-toc h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); margin-bottom: 14px; }
.legal-toc ol { margin: 0; padding-left: 18px; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { color: var(--text-soft); font-size: .9rem; }
.legal-toc a:hover { color: var(--brand); }

.legal-body h2 {
  font-size: 1.45rem;
  margin: 44px 0 14px;
  padding-top: 10px;
  scroll-margin-top: 96px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.1rem; margin: 26px 0 10px; color: var(--text); }
.legal-body p, .legal-body li { color: var(--text-soft); }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 16px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); }
.legal-note {
  background: var(--bg-elev);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
}
.legal-note p:last-child { margin-bottom: 0; }

/* ----------------------- Contato ----------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info .ci-item {
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--surface-border-soft);
}
.contact-info .ci-item:last-child { border-bottom: none; }
.contact-info .ci-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: rgba(109, 139, 255, .12); color: var(--brand);
}
.contact-info h4 { font-size: 1rem; margin: 0 0 2px; }
.contact-info a, .contact-info p { color: var(--text-soft); margin: 0; font-size: .96rem; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: 11px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: .98rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field textarea:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ----------------------- Animação de entrada ----------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------- Responsivo ----------------------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; margin-top: 20px; }
  .cards, .features { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(10, 14, 26, .98);
    border-bottom: 1px solid var(--surface-border);
    padding: 16px 24px 22px;
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .section { padding: 72px 0; }
  .cards, .features, .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta { gap: 24px; }
}
