/*
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f6f6;
    color: #111;
}

/* NAVBAR fixo 
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 14px 18px;
    z-index: 999;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand h1 {
    font-size: 20px;
    margin-bottom: 4px;
}

.brand p {
    font-size: 12px;
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 14px;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Empurra o conteúdo pra baixo do navbar 
.page {
    display: flex;
    gap: 18px;
    padding: 110px 18px 18px;
}

/* Sidebar 
.sidebar {
    width: 220px;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
}

.sidebar h3 {
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.sidebar a {
    text-decoration: none;
    color: #111;
}

.sidebar a:hover {
    text-decoration: underline;
}

.content {
    flex: 1;
    background: #fff;
    padding: 18px;
    border-radius: 10px;
}

.content h2 {
    margin: 18px 0 10px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    background: #fafafa;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.contato-box {
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    background: #fafafa;
}
 */

/* Aplicando FLEXBOX
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f6f6;
  color: #111;
}

/* NAVBAR fixo 
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 14px 18px;
  z-index: 999;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap; /* quebra em telas menores 
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand h1 {
  font-size: 20px;
}

.brand p {
  font-size: 12px;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  flex-wrap: wrap; /* não estoura 
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Empurra o conteúdo pra baixo do navbar 
.page {
  display: flex;              
  align-items: flex-start;    /* topo alinhado 
  gap: 18px;
  padding: 110px 18px 18px;
}

/* Sidebar 
.sidebar {
  width: 220px;
  background: #fff;
  padding: 16px;
  border-radius: 10px;

  display: flex;             
  flex-direction: column;
  gap: 10px;
}

.sidebar h3 {
  margin-bottom: 6px;
}

.sidebar ul {
  list-style: none;

  display: flex;             
  flex-direction: column;
  gap: 10px;
}

.sidebar a {
  text-decoration: none;
  color: #111;
}

.sidebar a:hover {
  text-decoration: underline;
}

.content {
  flex: 1;
  background: #fff;
  padding: 18px;
  border-radius: 10px;

  display: flex;             
  flex-direction: column;
  gap: 14px;
}

.content h2 {
  margin: 10px 0 6px;
}

.cards {
  display: flex;              
  flex-wrap: wrap;            /* quebra linha 
  gap: 12px;
}

.card {
  flex: 1 1 160px;            /* cresce, encolhe, base 160px 
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;

  display: flex;             
  flex-direction: column;
  gap: 8px;
}

.card h3 {
  font-size: 16px;
}

.contato-box {
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;

  display: flex;             
  flex-direction: column;
  gap: 8px;
}
  */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bgTop: #070a10;
    --bgMid: #0b0f17;
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.68);
    --stroke: rgba(255, 255, 255, 0.14);
    --panel: rgba(255, 255, 255, 0.06);
    --panel2: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    min-height: 100vh;
    padding: 18px;

    background:
        radial-gradient(900px 500px at 20% 12%, rgba(122, 252, 255, 0.14), transparent 60%),
        radial-gradient(800px 520px at 80% 18%, rgba(255, 122, 217, 0.12), transparent 62%),
        radial-gradient(900px 620px at 50% 90%, rgba(255, 216, 107, 0.10), transparent 65%),
        linear-gradient(180deg, var(--bgTop), var(--bgMid) 55%, var(--bgTop));

    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "cabecalho cabecalho"
        "menu      conteudo"
        "rodape    rodape";
    gap: 18px;
}

.navbar {
    grid-area: cabecalho;
    padding: 14px 18px;
    border-radius: var(--radius);

    background: var(--panel2);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);

    position: sticky;
    top: 18px;
    z-index: 10;

    overflow: hidden;
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 45%);
    opacity: .7;
}

.navbar-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
}

.brand h1 {
    font-size: 18px;
    letter-spacing: .4px;
    margin-bottom: 4px;
}

.brand p {
    font-size: 12px;
    color: var(--muted);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;

    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.nav-links a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.26);
}

.sidebar {
    grid-area: menu;
    padding: 16px;
    border-radius: var(--radius);

    background: var(--panel);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);

    position: sticky;
    top: 98px;
    align-self: start;

    overflow: hidden;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 45%);
    opacity: .6;
}

.sidebar>* {
    position: relative;
}

.sidebar h3 {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.sidebar a {
    display: block;
    text-decoration: none;
    color: var(--text);

    padding: 10px 12px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);

    transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.sidebar a:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

#servicos:target,
#sobre:target,
#contato:target {
    scroll-margin-top: 120px;
    border-radius: 16px;
}

.content {
    grid-area: conteudo;
    padding: 18px;
    border-radius: var(--radius);

    background: var(--panel);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);

    display: grid;
    gap: 18px;

    position: relative;
    overflow: hidden;
}

.content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 45%);
    opacity: .6;
}

.content::after {
    content: "";
    position: absolute;
    inset: -50px;
    background:
        radial-gradient(650px 320px at 25% 15%, rgba(122, 252, 255, 0.10), transparent 60%),
        radial-gradient(650px 320px at 70% 30%, rgba(255, 122, 217, 0.08), transparent 62%);
    filter: blur(12px);
    opacity: .85;
    pointer-events: none;
}

.content>* {
    position: relative;
    z-index: 1;
}

.content h2 {
    font-size: 26px;
    letter-spacing: .2px;
    margin-bottom: 6px;
}


.content p {
    color: var(--muted);
    max-width: 75ch;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.card {
    position: relative;
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 180deg,
            rgba(122, 252, 255, 0.35),
            rgba(255, 122, 217, 0.35),
            rgba(255, 216, 107, 0.28),
            rgba(122, 252, 255, 0.35));
    opacity: 0;
    transition: opacity .25s ease;
}

.card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 15px;
    background: rgba(11, 15, 23, 0.70);
    backdrop-filter: blur(12px);
}

.card>* {
    position: relative;
    z-index: 1;
}

.card h3 {
    margin-bottom: 6px;
    font-size: 16px;
}

.card p {
    font-size: 13px;
    color: var(--muted);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card:hover::before {
    opacity: 1;
}

.contato-box {
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.contato-box strong {
    color: var(--text);
}

.contato-box a {
    color: rgba(122, 252, 255, 0.9);
    text-decoration: none;
    font-weight: 700;
}

.contato-box a:hover {
    text-decoration: underline;
}

.footer {
    grid-area: rodape;
    padding: 12px 18px;
    border-radius: var(--radius);
    text-align: center;

    background: var(--panel);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    color: var(--muted);

    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 45%);
    opacity: .55;
}

.footer p {
    position: relative;
}

@media (max-width: 900px) {
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "cabecalho"
            "menu"
            "conteudo"
            "rodape";
    }

    .sidebar {
        position: static;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 520px) {
    .navbar-inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .content h2 {
        font-size: 22px;
    }
}