/* ============================================================
   ALD INFORMÁTICA / INFRANOTE — Design System
   Site estático (HTML + CSS + JS) compatível com HestiaCP
   ============================================================ */

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

:root {
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", "SF Mono", monospace;

  --brand: #0d2b46;
  --brand-2: #1b4f72;
  --accent: #ff6b35;
  --accent-soft: #ffd7c2;
  --teal: #14b8a6;
  --gold: #f2c14e;

  --bg: #f4f6fb;
  --bg-alt: #e9eef6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #12233a;
  --muted: #5f7085;
  --line: #d7e0ea;
  --shadow: 0 10px 30px rgba(13, 43, 70, .10);
  --shadow-lg: 0 24px 60px rgba(13, 43, 70, .18);

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --header-h: 68px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #101a2b;
  --surface: #141f31;
  --surface-2: #17233a;
  --text: #e8eef6;
  --muted: #93a4b8;
  --line: #24324a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --accent-soft: #3a2a24;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
[data-theme="dark"] a { color: var(--teal); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 2.5rem 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 6px; }
.skip-link:focus { left: 1rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 53, .35); }
.btn-secondary { background: var(--brand); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost { background: var(--surface-2); border-color: var(--line); color: var(--text); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 43, 70, .92);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}
[data-theme="dark"] .site-header { background: rgba(9, 16, 27, .92); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; letter-spacing: .02em; }
.logo img, .logo svg { width: 34px; height: 34px; }
.logo span small { display: block; font-size: .7rem; font-weight: 500; color: #b9c8d8; letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; gap: .35rem; margin-left: auto; align-items: center; }
.nav a, .nav button {
  color: #e6eef7; background: transparent; border: 0; font: inherit; font-size: .92rem;
  padding: .5rem .8rem; border-radius: 8px; cursor: pointer;
}
.nav a:hover, .nav button:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.nav a.active, .nav button.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, .35);
}
.nav .dropdown-toggle.active { color: #fff; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: .5rem;
  display: none;
}
.dropdown-menu a { display: block; padding: .45rem .6rem; border-radius: 6px; color: var(--text); font-size: .9rem; }
.dropdown-menu a:hover { background: var(--bg-alt); }
.dropdown-menu a.active { background: var(--accent); color: #fff; }
.dropdown.open .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown.open .dropdown-toggle { background: var(--accent); color: #fff; }

.theme-toggle { border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: .45rem .7rem; }

.burger { display: none; background: transparent; color: #fff; border: 0; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; }
  .nav.mobile-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--brand); padding: 1rem; }
  .dropdown-menu { position: static; background: transparent; border: 0; box-shadow: none; color: #fff; }
  .dropdown-menu a { color: #fff; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(255, 107, 53, .25), transparent 60%),
              linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 55%, #0b1c2e 100%);
  color: #fff; padding: 3rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.hero h1 { color: #fff; }
.hero p { color: #c3d3e2; max-width: 46ch; }
.badge { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------------- Phone mockup ---------------- */
.phone {
  position: relative; width: 260px; border-radius: 22px; background: #0a1421;
  padding: 12px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14);
}
.phone::before { content: ""; position: absolute; inset: 8px; border-radius: 16px; background: #1b2a3b; }
.phone .screen { position: relative; border-radius: 14px; overflow: hidden; background: #fff; }
.phone img { width: 100%; height: auto; }
.phone-stack { display: flex; gap: 1rem; justify-content: center; }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: .9rem 1rem; }
.stat b { font-size: 1.4rem; display: block; color: #fff; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Cards ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card h3 { margin-bottom: .35rem; }
.card .icon { width: 64px; height: 64px; border-radius: 12px; margin-bottom: .8rem; }
.tag { display: inline-block; font-size: .75rem; padding: .25rem .6rem; border-radius: 999px; background: var(--bg-alt); color: var(--muted); margin-right: .4rem; }
.tag.ok { background: rgba(20, 184, 166, .15); color: #0b7c6e; }
.tag.warn { background: rgba(255, 107, 53, .15); color: #9c3d16; }

.filters { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
input[type="search"], input[type="text"], input[type="email"], textarea, select {
  font: inherit; padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: .6rem; }

/* ---------------- Gallery ---------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.shot { border: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; overflow: hidden; }
.shot img { width: 100%; height: 260px; object-fit: cover; }
.shot figcaption { font-size: .8rem; color: var(--muted); padding: .5rem .7rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(6, 12, 20, .92); display: none;
  z-index: 100; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-meta { color: #cfd9e4; font-size: .9rem; margin-top: .8rem; text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  padding: .6rem .9rem; border-radius: 8px; cursor: pointer; font-size: 1rem;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }

/* ---------------- Accordion FAQ ---------------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; padding: .9rem 1.1rem; font-weight: 600; cursor: pointer; color: var(--text); font-size: .95rem; }
.faq-q:hover { background: var(--surface-2); }
.faq-a { padding: 0 1.1rem 1rem; display: none; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ---------------- Privacy pages ---------------- */
.policy { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; }
.toc { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.toc a { display: block; padding: .35rem .5rem; font-size: .86rem; border-radius: 6px; }
.toc a:hover { background: var(--bg-alt); }
.policy-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.policy-body h2 { margin-top: 1.4rem; font-size: 1.05rem; color: var(--brand-2); }
[data-theme="dark"] .policy-body h2 { color: var(--teal); }
.policy-body ul { padding-left: 1.2rem; }
.callout { border-left: 4px solid var(--accent); background: var(--surface-2); padding: .8rem 1rem; border-radius: 8px; margin: 1rem 0; }
@media (max-width: 800px) { .policy { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------------- LGPD ---------------- */
.lgpd-table { width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .9rem; }
.lgpd-table th, .lgpd-table td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.lgpd-table thead th { background: var(--bg-alt); color: var(--text); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.lgpd-table tbody tr:nth-child(even) { background: var(--surface-2); }
.lgpd-strip { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
.lgpd-chip { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .85rem; font-size: .82rem; background: var(--surface-2); color: var(--muted); }
.lgpd-chip b { color: var(--text); }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--brand); color: #fff; padding: .8rem 1.2rem; border-radius: 10px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 90; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b0342b; }

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface);
  border-top: 1px solid var(--line); padding: 1rem 1.25rem; display: none; z-index: 80;
  box-shadow: var(--shadow-lg); gap: .8rem; align-items: center; flex-wrap: wrap; font-size: .9rem;
}
.cookie-banner.show { display: flex; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--brand); color: #d7e3ee; margin-top: 2rem; padding: 2rem 0 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .6rem; }
.site-footer a { color: #d7e3ee; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; font-size: .82rem; color: #9fb0c2; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- Breadcrumb ---------------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* ---------------- Back to top ---------------- */
.to-top { position: fixed; right: 1rem; bottom: 1.2rem; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: .55rem .8rem; cursor: pointer; opacity: 0; transform: translateY(10px); transition: all .3s ease; }
.to-top.show { opacity: 1; transform: none; }

/* ---------------- Utility ---------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.store-links { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.store-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; font-size: .88rem; font-weight: 600; }
.store-badge svg { width: 18px; height: 18px; }
