/* GoodGround — styles.css
   Correção da estrutura de cabeçalho e dos estilos responsivos.
   Mantém as regras responsivas existentes no repositório. */

:root {
  --gg-green: #194f3d;
  --gg-dark: #203b28;
  --gg-cream: #fafaf7;
  --gg-border: #e3e9e3;
}

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

html { scroll-behavior: smooth; }

body { margin: 0; }

img { max-width: 100%; }

.wrap {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}


/* Base visual compartilhada pelas páginas internas */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #203b28;
  background: #fff;
  line-height: 1.65;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
  color: #203b28;
}
a { color: #194f3d; }
.brand-text span {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #64736a;
}
.language-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64736a;
  font-weight: 700;
  cursor: pointer;
}
.language-link.active { color: #194f3d; }
.article-body, .legal { overflow-wrap: anywhere; }
.article-body h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.article-body h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.article-body p, .article-body li { color: #33473b; }
.article-body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal { max-width: 880px; padding-bottom: 70px; }
.legal h1 { margin: 65px 0 25px; font-size: clamp(2rem, 5vw, 3.25rem); }
.legal h2 { margin: 32px 0 10px; font-size: 1.65rem; }
.legal p, .legal li { color: #45584b; }
header:not(.site-header) {
  background: #fff;
  border-bottom: 1px solid #e3e9e3;
}
header:not(.site-header) > nav.wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}
header:not(.site-header) > nav.wrap > .links { margin-left: auto; }
footer:not(.footer) {
  padding: 28px 0;
  border-top: 1px solid #e3e9e3;
}
footer:not(.footer) > .wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
@media(max-width:760px) {
  header:not(.site-header) > nav.wrap {
    flex-wrap: wrap;
    padding: 14px 0;
  }
  header:not(.site-header) > nav.wrap > .links {
    width: 100%;
    order: 3;
    margin-left: 0;
  }
}

/* CABEÇALHO — evita o logotipo sem limite de tamanho */
.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--gg-border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  min-width: 0;
  color: var(--gg-dark);
  text-decoration: none;
}

.brand img {
  display: block;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 20px; line-height: 1.15; }
.brand-text small { font-size: 11px; letter-spacing: .09em; }

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-left: auto;
}

.links a {
  color: var(--gg-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.links a:hover, .links a:focus-visible {
  color: var(--gg-green);
  text-decoration: underline;
}

.languages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.languages button {
  cursor: pointer;
  border: 1px solid var(--gg-border);
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  color: var(--gg-dark);
}

.languages button:hover,
.languages button:focus-visible {
  border-color: var(--gg-green);
}

/* TABLET — preserva as regras originais */
@media (min-width: 761px) and (max-width: 1024px) {
  .content-grid { gap: 50px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-layout { gap: 35px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* MOBILE — preserva as regras originais */
@media (max-width: 760px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .site-header { position: relative; }
  .nav {
    min-height: auto;
    padding: 17px 0;
    flex-wrap: wrap;
  }
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 18px; }
  .languages { margin-left: auto; }
  .links {
    width: 100%;
    order: 3;
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-left: 0;
    padding: 12px 0 3px;
  }
  .links a { white-space: nowrap; font-size: 13px; }
  .hero { min-height: 610px; }
  .hero-content { padding: 75px 0; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-text { font-size: 17px; }
  .section { padding: 72px 0; }
  .content-grid, .contact-layout { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .contact-cta { padding: 80px 0; }
  .contact-info h2 { font-size: 48px; }
  .contact-form-card { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; }
}


/* PÁGINA DE CONTATO — layout e formulário bilingue */
.contact-section { padding: 72px 0 92px; background: #f8faf6; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 62px; align-items: start; }
.contact-info { min-width: 0; }
.contact-info .eyebrow { color: #557260; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.contact-info h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); margin: 15px 0 22px; }
.contact-info > p { max-width: 530px; color: #4d6053; font-size: 17px; }
.contact-method { margin-top: 30px; display: flex; flex-direction: column; gap: 7px; }
.contact-method-label { color: #64756a; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.contact-method-link { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.contact-social-text { margin-top: 24px; color: #4d6053; }
.social-icons { display: flex; align-items: center; gap: 14px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; color: #194f3d; text-decoration: none; }
.social-icon:hover, .social-icon:focus-visible { color: #307a58; }
.contact-form-card { background: #fff; border: 1px solid #e2e9e0; border-radius: 20px; padding: 34px; box-shadow: 0 14px 42px rgba(24, 61, 40, .07); min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; min-width: 0; }
.form-group label { color: #294736; font-size: 14px; font-weight: 700; }
.form-group input, .form-group textarea { display: block; width: 100%; max-width: 100%; padding: 13px 14px; border: 1px solid #cdd9cf; border-radius: 9px; background: #fff; color: #203b28; font: inherit; line-height: 1.4; }
.form-group textarea { resize: vertical; min-height: 154px; }
.form-group input:focus, .form-group textarea:focus { outline: 2px solid #3d8963; outline-offset: 1px; border-color: #3d8963; }
.form-submit { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 9px; background: #194f3d; color: #fff; padding: 13px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.form-submit:hover, .form-submit:focus-visible { background: #286d50; }
.form-submit:disabled { opacity: .65; cursor: wait; }
.form-privacy { font-size: 13px; color: #66796b; margin: 18px 0 0; }
.form-privacy a { font-weight: 700; }

/* RODAPÉ — impedir imagem gigante e links sem organização */
.footer { background: #123c2d; color: #f4f5ed; padding-top: 58px; }
.footer a, .footer p, .footer h4, .footer strong, .footer span { color: inherit; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 50px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; min-width: 0; }
.footer-column h4 { font: 800 13px/1.4 Arial,Helvetica,sans-serif; letter-spacing: .09em; margin: 0 0 10px; }
.footer-column > a { font-size: 14px; line-height: 1.5; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-brand img { display: block; width: 52px; height: 52px; max-width: 52px; object-fit: contain; flex: 0 0 52px; }
.footer-brand > div { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { font-size: 18px; line-height: 1.15; }
.footer-brand span { font-size: 10px; letter-spacing: .12em; }
.footer-about p { margin: 0; color: #d9e6db; font-size: 14px; line-height: 1.7; }
.footer-connect .social-icons { margin-top: 2px; }
.footer-connect .social-icon { color: #f4f5ed; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding: 22px 0 30px; }
.footer-bottom p { margin: 0 0 12px; color: #dce8dc; font-size: 12px; line-height: 1.7; max-width: 850px; }
.footer-bottom p:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .contact-layout { gap: 30px; }
  .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .contact-section { padding: 46px 0 64px; }
  .contact-layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .contact-info h2 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .contact-form-card { padding: 24px 18px; }
  .form-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .footer-main { grid-template-columns: minmax(0,1fr); gap: 35px; }
  .footer { padding-top: 42px; }
}

/* Contact and confirmation pages: correct document heading hierarchy */
.contact-info h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); margin: 15px 0 22px; }
@media (max-width:760px) { .contact-info h1 { font-size: clamp(2rem, 8vw, 2.7rem); } }


/* Guide navigation: consistent across the three educational articles */
.guide-path { padding: 22px 0 12px; }
.guide-path-label { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #52705d; }
.guide-path-links { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-path-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 14px; border: 1px solid #cfded1; border-radius: 999px; color: #1a4c37; background: #f8faf6; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.guide-path-links a:hover, .guide-path-links a:focus-visible { background: #e3efe5; border-color: #7a9e83; }
.guide-path-links a[aria-current="page"] { background: #194f3d; border-color: #194f3d; color: #fff; }
.guide-path-links a:focus-visible { outline: 2px solid #337b55; outline-offset: 2px; }
@media (max-width: 600px) { .guide-path { padding-top: 16px; } .guide-path-links a { font-size: 12px; } }

/* Mobile article usability audit: 2026-10-09 */
@media (max-width: 760px) {
  .nav { min-width: 0; }
  .nav .links { scrollbar-width: thin; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .nav .links a { display: inline-flex; align-items: center; min-height: 42px; scroll-snap-align: start; }
  body .article-hero { padding: 52px 0 40px; }
  .article-hero .article-wrap h1 { font-size: clamp(2rem,8.5vw,3.3rem); line-height: 1.08; overflow-wrap: break-word; }
  .article-hero .article-deck { font-size: 1.06rem; }
  body .article-body { padding: 36px 0 62px; }
  body .article-body h2 { margin-top: 36px; }
  .article-body .quick-answer, .article-body .truth-box, .article-body .warning-box, .article-body .source-box { padding: 20px; }
  .article-body .next-step { padding: 24px 20px; }
  .guide-path-links a { min-height: 44px; }
  .article-footer nav a { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 420px) {
  .brand-text strong { font-size: 16px; }
  .brand-text span { font-size: 9px; letter-spacing: .08em; }
  .article-hero .article-wrap h1 { font-size: clamp(1.9rem,8.5vw,2.3rem); }
  .guide-path-links { gap: 8px; }
}
