/* style.css
   Ceilândia no Positivo — Estilos principais
   Mobile-first, responsivo e acessível
   Paleta: verdes (primário), cinzas neutros, destaque suave
*/

/* =========================
   Variáveis (cores e espaçamento)
   ========================= */
:root{
  /* Cores */
  --bg: #fbfdfb;
  --surface: #ffffff;
  --muted: #64748b;       /* texto secundário */
  --text: #0f1724;        /* texto principal (quase preto) */
  --primary: #2f9d63;     /* verde principal */
  --primary-600: #2b8f58;
  --primary-700: #256f46;
  --accent: #18a999;      /* verde-água para CTAs secundários */
  --danger: #d64545;
  --success: #2f9d63;
  --soft: #edf9f3;        /* fundo suave relacionado ao verde */
  --muted-bg: #f4f6f8;    /* seções neutras */
  --card-shadow: rgba(15,23,36,0.06);
  --card-shadow-strong: rgba(15,23,36,0.10);

  /* Tipografia */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --base-font-size: 16px;
  --scale-ratio: 1.125;

  /* Espaçamento */
  --gap-xs: 0.4rem;
  --gap-sm: 0.6rem;
  --gap-md: 1rem;
  --gap-lg: 1.6rem;
  --gap-xl: 2.4rem;
  --container-max: 1100px;

  /* Radius */
  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-lg: 14px;
}

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

html,body{
  height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:var(--base-font-size);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--primary);text-decoration:none}
a:hover,a:focus{text-decoration:underline}
button{font:inherit}
ul,ol{padding-left:1.25rem;margin:0 0 1rem 0}

/* =========================
   Accessibility helpers
   ========================= */
:focus{outline: none}
:focus-visible{
  outline:3px solid color-mix(in srgb, var(--primary) 40%, transparent);
  outline-offset:3px;
  border-radius:6px;
}
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:1rem;
  top:1rem;
  width:auto;height:auto;
  padding:.5rem .75rem;
  background:var(--primary);
  color:white;
  border-radius:6px;
  z-index:9999;
}

/* =========================
   Layout container
   ========================= */
.container{
  width:calc(100% - 2rem);
  max-width:var(--container-max);
  margin-left:auto;
  margin-right:auto;
  padding-left:1rem;
  padding-right:1rem;
}

/* =========================
   Header / Nav
   ========================= */
header{
  background:linear-gradient(180deg,var(--soft),transparent);
  border-bottom:1px solid rgba(15,23,36,0.04);
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(4px);
}

.header-inner{
  display:flex;
  gap:var(--gap-md);
  align-items:center;
  justify-content:space-between;
  padding:0.9rem 0;
}

.brand .site-title{
  font-size:1.125rem;
  margin:0;
  color:var(--primary-700);
  letter-spacing:0.2px;
}
.brand .site-tag{
  margin:0;
  font-size:.85rem;
  color:var(--muted);
}

/* Nav */
.nav-list{
  list-style:none;
  display:flex;
  gap:1rem;
  align-items:center;
  margin:0;
  padding:0;
}
.nav-item a{
  display:inline-block;
  padding:.55rem .7rem;
  border-radius:8px;
  color:var(--text);
  font-weight:600;
  font-size:.95rem;
}
.nav-item a:hover,
.nav-item a:focus{
  background:rgba(47,157,99,0.08);
  color:var(--primary-700);
}

/* Mobile nav collapse */
@media (max-width:820px){
  .header-inner{padding:.8rem 0}
  .nav-list{
    gap:.5rem;
    overflow:auto;
  }
  .brand .site-title{font-size:1rem}
}

/* =========================
   Hero / Intro
   ========================= */
.inicio{
  padding:1.4rem 0;
  margin-top:.5rem;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--gap-md);
  align-items:start;
}
.hero-text h3{margin-top:0.25rem;color:var(--primary-700)}
.lead{font-size:1rem;color:var(--muted);margin-bottom:1rem}

/* Hero media styling */
.hero-media{
  border-radius:var(--rounded-md);
  overflow:hidden;
  box-shadow:0 6px 18px var(--card-shadow-strong);
  background:linear-gradient(180deg, #ffffff, #fbfbfb);
}
.hero-media .caption{
  font-size:.8rem;color:var(--muted);padding:.6rem;
}

/* Call to action */
.call-to-actions{display:flex;gap:.75rem;margin-top:1rem;flex-wrap:wrap}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.6rem .9rem;
  border-radius:10px;
  background:transparent;
  color:var(--primary-700);
  border:1px solid rgba(47,157,99,0.12);
  font-weight:600;
  text-decoration:none;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{
  background:var(--primary);
  color:white;
  border:none;
  box-shadow:0 6px 18px rgba(47,157,99,0.12);
}
.btn.primary:active{transform:translateY(0)}
.btn:focus{box-shadow:0 0 0 4px rgba(47,157,99,0.08)}

/* =========================
   Section base and headings
   ========================= */
.section{
  padding:1.4rem 0;
  margin-top:.4rem;
}
.section h2{
  font-size:1.15rem;
  margin:0 0 .6rem 0;
  color:var(--primary-700);
}
.section p{margin:0 0 1rem 0;color:var(--muted)}
.bloco{background:var(--surface);padding:1rem;border-radius:12px;margin-bottom:1rem;box-shadow:0 6px 18px var(--card-shadow)}
.bloco h3{margin-top:0;color:var(--primary-600)}
.dica p, .rd-intro p{color:var(--muted)}

/* Typography helpers */
.lead{font-size:1.02rem}
small{font-size:.85rem;color:var(--muted)}

/* =========================
   Lists, tables, pre
   ========================= */
.table-exemplo{
  width:100%;
  border-collapse:collapse;
  margin:0.6rem 0;
  font-size:.95rem;
}
.table-exemplo th,
.table-exemplo td{
  padding:.55rem .6rem;
  border:1px solid rgba(15,23,36,0.06);
  text-align:left;
}
.table-exemplo thead th{
  background:rgba(47,157,99,0.06);
  color:var(--primary-700);
  font-weight:700;
}

/* Preformatted */
pre{
  background:var(--muted-bg);
  padding:0.8rem;
  border-radius:8px;
  overflow:auto;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,monospace;
  font-size:.88rem;
}

/* =========================
   Apps / cards / desenvolvedor
   ========================= */
.app{border-left:4px solid rgba(47,157,99,0.08);padding-left:1rem}
.card{
  background:var(--surface);
  border-radius:12px;
  box-shadow:0 10px 30px var(--card-shadow);
  padding:1rem;
}

/* Desenvolvedor card layout */
.desenvolvedor-card{
  display:flex;
  gap:1rem;
  align-items:center;
  padding:1rem;
  border-radius:12px;
  background:linear-gradient(180deg,#ffffff,#fbfff9);
  box-shadow:0 10px 24px var(--card-shadow);
}
.desenvolvedor-foto{
  width:96px;height:96px;border-radius:12px;object-fit:cover;border:2px solid rgba(15,23,36,0.04);
}
.desenvolvedor-text p{margin:0 0 .6rem 0}
.desenvolvedor-btn{background:var(--accent);color:white;padding:.6rem .8rem;border-radius:8px;border:none}

/* =========================
   Responsive layout adjustments
   ========================= */
@media (min-width:840px){
  .hero-grid{grid-template-columns:1fr 360px}
  .bloco{padding:1.2rem}
  .section{padding:2rem 0}
  .call-to-actions{gap:1rem}
  .nav-list{gap:1.1rem}
}

/* Larger screens */
@media (min-width:1100px){
  .container{padding-left:1.6rem;padding-right:1.6rem}
  .hero-text h3{font-size:1.05rem}
}

/* =========================
   FAQ styles
   ========================= */
.faq-item{margin-bottom:.6rem}
.faq-question{
  width:100%;
  text-align:left;
  padding:.65rem .75rem;
  background:var(--muted-bg);
  border:none;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
}
.faq-answer{padding:.6rem .8rem;margin-top:.5rem;border-left:3px solid var(--primary);background:linear-gradient(180deg,#fff,#fcfffb);border-radius:8px}

/* =========================
   Footer
   ========================= */
.footer{
  margin-top:2rem;
  padding:1.2rem 0;
  background:linear-gradient(180deg,#f8faf7,transparent);
  border-top:1px solid rgba(15,23,36,0.04);
}
.footer-grid{
  display:grid;
  gap:1rem;
}
.footer-about p, .footer-contacts p{color:var(--muted)}
.footer a{color:var(--primary-700)}
.footer-credits p{font-size:.9rem;color:var(--muted)}

/* Footer responsive columns */
@media (min-width:820px){
  .footer-grid{grid-template-columns:1fr auto auto;align-items:start}
}

/* =========================
   Utilities
   ========================= */
.text-center{text-align:center}
.kicker{font-size:.85rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.muted{color:var(--muted)}
.space-y > * + *{margin-top:var(--gap-md)}

/* Buttons small / ghost */
.btn.ghost{background:transparent;border:1px solid rgba(15,23,36,0.06);color:var(--text)}

/* Badges */
.badge{
  display:inline-block;padding:.25rem .45rem;border-radius:999px;font-weight:700;font-size:.82rem;background:rgba(47,157,99,0.1);color:var(--primary-700)
}

/* =========================
   Print styles (simples)
   ========================= */
@media print{
  header, .call-to-actions, .btn, .footer{display:none}
  body{background:white;color:black}
}

/* =========================
   Reduced motion preference
   ========================= */
@media (prefers-reduced-motion: reduce){
  *{transition:none!important;animation:none!important}
}

/* =========================
   Small helper classes for layouts used in HTML
   ========================= */
.hero-media img{width:100%;height:auto;display:block}
.hero-grid .hero-media, .hero-grid .hero-text{padding:.6rem}
.card-desenvolvedor{display:flex;flex-direction:column;gap:.6rem;align-items:center;text-align:center}
@media (min-width:820px){
  .card-desenvolvedor{flex-direction:row;text-align:left}
}

/* =========================
   Form controls (for future use)
   ========================= */
input[type="text"], input[type="number"], textarea, select{
  width:100%;
  padding:.6rem .7rem;
  border-radius:8px;
  border:1px solid rgba(15,23,36,0.08);
  background:var(--surface);
  font-size:1rem;
  color:var(--text);
  box-shadow:none;
}
input:focus, textarea:focus, select:focus{
  border-color:var(--primary-600);
  box-shadow:0 6px 18px rgba(47,157,99,0.06);
  outline:none;
}

/* =========================
   Tiny helpers for alignment in cards/tables
   ========================= */
.flex{display:flex}
.flex-col{display:flex;flex-direction:column}
.center{display:flex;align-items:center;justify-content:center}
.space-between{display:flex;justify-content:space-between;align-items:center}

/* =========================
   End of file
   ========================= */
