/* Reset CSS minimal moderno
    Arquivo: css/styles.css
*/

:root {
  --focus-color: #005fcc;
}

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

/* Reset de elementos básicos */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font: inherit;
  color: inherit;
  background: transparent;
}

/* HTML5 display fix */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* Base do body */
html,
body {
  height: 100%;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif;
  background: #fff;
  color: #111;
}

/* Lists */
ol,
ul {
  list-style: none;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Forms */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
button {
  cursor: pointer;
}
[disabled],
:disabled {
  cursor: default;
  opacity: 0.6;
  pointer-events: none;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Quotes */
blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

/* Accessibility: foco visível */
:focus {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
  box-shadow: none;
}

/* Placeholders */
::placeholder {
  color: currentColor;
  opacity: 0.7;
}

/* SVGs adotam a cor corrente */
svg {
  fill: currentColor;
}

/* Reduz animações para usuários que preferem isso */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Keep footer sized to its content */
body > footer {
  flex: 0 0 auto;
}

/* Full-screen background and centered logo */
.conteudo {
  position: relative;
  min-height: 0;
  flex: 1 0 auto;
}
.background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}
.logo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.logo img {
  width: min(300px, 40%);
  max-width: 80%;
  height: auto;
  pointer-events: auto;
}

.logo .text {
  padding: 0 16px;
}
.logo .text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.25px;
  max-width: 920px;
  padding: 0;
  color: #fff;
  font-family: "Caesar Dressing", cursive;
}
.logo .text p {
  font-size: 1rem;
  opacity: 0.95;
  margin-top: 4px;
  color: #fff;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

@media (max-width: 520px) {
  .logo img {
    width: min(260px, 70%);
  }
  .logo .text h1 {
    font-size: 1rem;
    line-height: 1.4;
  }
  .logo .text p {
    font-size: 0.95rem;
  }
}

@media (min-width: 1200px) {
  .logo {
    gap: 28px;
  }
  .logo img {
    width: min(440px, 36%);
  }
  .logo .text h1 {
    font-size: 1.45rem;
    line-height: 1.4;
    max-width: 760px;
  }
  .logo .text p {
    font-size: 1.08rem;
  }
}

@media (max-width: 768px) {
  /* Allow normal document flow (enable scrolling) on small screens */
  body {
    min-height: initial;
  }
  /* Make the main container fill the viewport height on small screens */
  .conteudo {
    height: 100vh;
    min-height: auto;
    box-sizing: border-box;
    overflow: auto;
  }

  /* Apply smaller logos for the footer 'régua' starting at this breakpoint */
  .regua_logos {
    padding: 12px 16px;
    gap: 12px;
  }
  .regua_logos img {
    max-height: 24px;
    width: auto;
  }
}

/* Footer logos bar (régua de logos) */
footer .conteudo {
  width: 100%;
  min-height: 0;
  position: static;
}
.regua_logos {
  width: 100%;
  background: #fff;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.regua_logos img {
  max-height: 56px;
  height: auto;
  width: auto;
  display: block;
}
