/* =========================================================
   Projeto Olhinhos Atentos — IA Atento
   ========================================================= */

:root {
  --blue-600: #0072BC;
  --blue-700: #045386;
  --blue-900: #072844;
  --green-500: #6FBE44;
  --green-600: #59A331;
  --yellow-500: #FFC629;
  --yellow-600: #E6A800;
  --pink-500: #F2568C;
  --pink-600: #D63D72;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(7, 40, 68, .08);
  --shadow-md: 0 12px 30px rgba(7, 40, 68, .12);
  --shadow-lg: 0 20px 45px rgba(7, 40, 68, .18);

  --font-head: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --header-h: 76px;

  /* Light theme (default) */
  --bg: #F7FBFF;
  --surface: #FFFFFF;
  --surface-alt: #EFF7FC;
  --text: #14283D;
  --text-muted: #52697F;
  --border: rgba(7, 40, 68, .10);
  --header-bg: rgba(255, 255, 255, .82);
}

:root[data-theme="dark"] {
  --bg: #071A2C;
  --surface: #0F2740;
  --surface-alt: #0B2036;
  --text: #EAF3FB;
  --text-muted: #9FB7CC;
  --border: rgba(255, 255, 255, .10);
  --header-bg: rgba(7, 26, 44, .78);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, .40);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, .45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071A2C;
    --surface: #0F2740;
    --surface-alt: #0B2036;
    --text: #EAF3FB;
    --text-muted: #9FB7CC;
    --border: rgba(255, 255, 255, .10);
    --header-bg: rgba(7, 26, 44, .78);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, .40);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue-600); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--text); }
.brand-text small { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem;
  padding: 9px 16px; border-radius: 999px; position: relative;
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.nav-link:hover { background: var(--surface-alt); transform: translateY(-1px); }
.nav-btn:hover { color: var(--blue-600); }

.nav-login {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(120deg, var(--blue-600), var(--green-500) 130%);
  background-size: 180% 180%;
  box-shadow: var(--shadow-sm);
  transition: background-position .4s ease, box-shadow .25s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.nav-login:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--blue-600), var(--green-500) 130%);
  background-size: 180% 180%;
  background-position: 100% 0;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.03);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-6deg); box-shadow: var(--shadow-sm); }
.icon-sun, .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .icon-sun { display: none; }
  :root:not([data-theme]) .icon-moon { display: block; }
}

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease, background-position .5s ease;
  will-change: transform;
}
.btn svg { transition: transform .25s ease; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue-600), var(--green-500) 130%);
  background-size: 180% 180%;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--surface-alt); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px; }
.hero-blobs { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(10px);
  opacity: .35; animation: float 12s ease-in-out infinite;
}
:root[data-theme="dark"] .blob { opacity: .22; }
.blob-blue   { width: 340px; height: 340px; background: var(--blue-600); top: -80px; left: -80px; }
.blob-green  { width: 260px; height: 260px; background: var(--green-500); bottom: -60px; left: 20%; animation-delay: -3s; }
.blob-yellow { width: 180px; height: 180px; background: var(--yellow-500); top: 10%; right: 8%; animation-delay: -6s; }
.blob-pink   { width: 220px; height: 220px; background: var(--pink-500); bottom: 5%; right: -60px; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.06); }
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 700; color: var(--blue-600);
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.text-gradient {
  background: linear-gradient(100deg, var(--blue-600), var(--green-600) 60%, var(--yellow-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.hero-desc { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }
.hero-note { font-size: .82rem; color: var(--text-muted); opacity: .85; }
.hero-art img { margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(7,40,68,.20)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.kicker {
  display: inline-block; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  font-size: .78rem; color: var(--pink-500); margin-bottom: 10px;
}
.section-lead { margin-top: 10px; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-text { font-size: 1.05rem; }
.value-list { display: flex; flex-direction: column; gap: 22px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item p { margin: 2px 0 0; font-size: .92rem; }
.value-item strong { font-family: var(--font-head); color: var(--text); }
.value-icon {
  --c: var(--blue-600);
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
}

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--blue-600) 30%, var(--border)); }
.card-icon {
  --c: var(--blue-600);
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .92rem; margin: 0; }
.card-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.badge-ok { background: color-mix(in srgb, var(--green-500) 20%, transparent); color: var(--green-600); }
.badge-soon { background: color-mix(in srgb, var(--yellow-500) 25%, transparent); color: var(--yellow-600); }
:root[data-theme="dark"] .badge-soon { color: var(--yellow-500); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.contact-card {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card strong { display: block; font-family: var(--font-head); color: var(--text); font-size: .95rem; }
.contact-card p { margin: 2px 0 0; font-size: .92rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0 22px; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-credit { margin: 0; font-size: .82rem; color: var(--text-muted); }
.footer-credit a { color: var(--blue-600); text-decoration: none; font-weight: 700; }
.footer-credit a:hover { text-decoration: underline; }
.footer-info { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-info a { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; text-decoration: none; color: var(--text-muted); transition: color .2s ease; }
.footer-info a:hover { color: var(--blue-600); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); border: 1px solid var(--border); opacity: .7;
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}
.footer-social a:hover { opacity: 1; transform: translateY(-2px); color: var(--pink-500); }
.footer-copy { text-align: center; font-size: .76rem; color: var(--text-muted); margin: 22px 0 0; opacity: .8; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .hero-art img { animation: none; }
  .btn, .card, .icon-btn, .contact-card { transition: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 16px auto 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; padding: 10px;
    transform: translateY(-12px) scale(.98); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .main-nav.is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
  .nav-link { text-align: center; }
  .nav-toggle { display: inline-flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}
