/*
Theme Name: Hueman Child Redesign
Theme URI: http://alxmedia.se/themes/hueman/
Description: Clone seguro do tema filho da FAK para redesign com rollback rapido.
Author: Alexander Agnarson
Author URI: http://alxmedia.se
Template: hueman
Version: 1.4.1-redesign
Text Domain: hueman-child-redesign
*/

@import url("../hueman/style.css");

:root {
  --fak-bg: #f6f1e7;
  --fak-surface: #fffdf8;
  --fak-surface-soft: #f3ebdb;
  --fak-ink: #20312c;
  --fak-ink-soft: #556760;
  --fak-brand: #1d5a49;
  --fak-brand-deep: #163b33;
  --fak-accent: #c58d4f;
  --fak-line: rgba(32, 49, 44, 0.12);
  --fak-shadow: 0 20px 50px rgba(18, 40, 34, 0.12);
  --fak-radius-lg: 24px;
  --fak-radius-md: 18px;
  --fak-radius-sm: 12px;
}

html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at top left, rgba(197, 141, 79, 0.20), transparent 30%), linear-gradient(180deg, #f8f4ea 0%, #f3eee4 100%);
  color: var(--fak-ink);
  font-family: "Titillium Web", "Segoe UI", sans-serif;
}
body.custom-background { background-color: var(--fak-bg); }
a, a > span.hu-external::after, .themeform label .required, .post-title a:hover, .post-hover:hover .post-title a, .post-related a:hover, .sidebar.s1 .post-nav li a:hover i, .content .post-nav li a:hover i, .wp-pagenavi a { color: var(--fak-brand); }
a:hover { color: var(--fak-brand-deep); }
#wrapper, .main, .sidebar { background: transparent; }
#header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(22, 59, 51, 0.96), rgba(29, 90, 73, 0.92)), linear-gradient(180deg, #1d5a49 0%, #163b33 100%);
  box-shadow: 0 18px 40px rgba(17, 35, 30, 0.16);
}
#header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(236, 215, 187, 0.22), transparent 26%), radial-gradient(circle at bottom left, rgba(197, 141, 79, 0.18), transparent 20%);
  pointer-events: none;
}
#nav-topbar.nav-container, #nav-header.nav-container, .search-expand { background: transparent !important; }
#nav-topbar { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
#nav-topbar .container-inner { display: flex; align-items: center; justify-content: flex-end; }
#nav-topbar .toggle-search, #nav-topbar .toggle-search:hover { background: rgba(255, 255, 255, 0.08); border-radius: 999px; }
#header .container-inner { position: relative; z-index: 1; }
.site-branding-shell {
  max-width: 780px;
  margin: 2.25rem auto 1.75rem;
  padding: 2.25rem 2.5rem;
  text-align: center;
  background: rgba(255, 253, 248, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(8, 22, 19, 0.18);
  backdrop-filter: blur(6px);
}
.site-branding-shell .site-title { float: none; display: block; margin: 0; }
.site-title a img { max-height: 118px; margin: 0 auto 1rem; }
.site-title a { display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem; color: #fff; }
.site-title, .site-title a, .site-description, .site-tagline-kicker { color: #fff; }
.site-tagline-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(236, 215, 187, 0.16);
  border: 1px solid rgba(236, 215, 187, 0.28);
  border-radius: 999px;
}
.site-description { max-width: 560px; margin: 0.85rem auto 0; font-size: 1.15rem; line-height: 1.7; color: rgba(255, 255, 255, 0.82); }
#nav-header { margin: 0 auto 1.8rem; }
#nav-header .nav { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
#nav-header .nav > li > a { border-radius: 999px; color: #f8f1e4; font-weight: 600; letter-spacing: 0.02em; padding: 0.85rem 1.2rem; }
#nav-header .nav > li > a:hover, #nav-header .nav > li.current-menu-item > a, #nav-header .nav > li.current_page_item > a { background: rgba(255, 255, 255, 0.12); color: #fff; }
#page { padding-top: 2rem; }
.content, .sidebar .widget, .alx-posts li, .alx-tab li, #footer .widget, .author-bio, .post-nav, .post-related, .comment-tabs, #respond {
  background: var(--fak-surface);
  border: 1px solid var(--fak-line);
  border-radius: var(--fak-radius-lg);
  box-shadow: var(--fak-shadow);
}
.content { overflow: hidden; }
.pad { padding: 2rem; }
.featured, #flexslider-featured { border-radius: 28px; overflow: hidden; box-shadow: 0 28px 60px rgba(22, 59, 51, 0.18); }
#flexslider-featured .entry, .featured .entry { background: linear-gradient(180deg, rgba(17, 39, 34, 0.08), rgba(17, 39, 34, 0)); }
.post-title, .entry h1, .entry h2, .entry h3, .entry h4, .widget-title, .page-title { color: var(--fak-brand-deep); font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
.post-title { font-size: clamp(1.9rem, 2.5vw, 2.8rem); line-height: 1.15; }
.post-byline, .entry-meta, .page-title span, .widget > h3 { color: var(--fak-ink-soft); }
.entry { font-size: 1.08rem; line-height: 1.85; }
.entry p, .entry li { color: #31433e; }
.entry blockquote { padding: 1.2rem 1.5rem; background: var(--fak-surface-soft); border-left: 4px solid var(--fak-accent); border-radius: 0 var(--fak-radius-sm) var(--fak-radius-sm) 0; }
button, input[type="submit"], .themeform button[type="submit"], .post-tags a:hover, .wp-block-button__link, .read-more {
  background: linear-gradient(135deg, var(--fak-accent), #b97732) !important;
  color: #fff !important;
  border-radius: 999px;
  border: none;
  box-shadow: 0 12px 24px rgba(181, 120, 55, 0.24);
}
input[type="submit"], .themeform button[type="submit"], .wp-block-button__link { padding-left: 1.2rem; padding-right: 1.2rem; }
.sidebar .widget, #footer .widget { padding: 1.4rem 1.5rem; }
.sidebar .widget-title, #footer .widget-title { margin-bottom: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--fak-line); }
.sidebar.s1 .sidebar-top, .sidebar.s2 .sidebar-top, .sidebar.s1 .sidebar-toggle, .sidebar.s2 .sidebar-toggle, .post-comments, .jp-play-bar, .jp-volume-bar-value, .sidebar.s2 .widget_calendar caption, .sidebar.s1 .widget_calendar caption, #footer .widget_calendar caption { background: var(--fak-brand) !important; }
.format-gallery .post-format, .format-image .post-format, .image-container img, .flexslider .slides img, .entry img, .entry-inner img { border-radius: 18px; }
#footer-bottom { background: #14362f; }
#footer-bottom, #footer-bottom a, #footer-bottom .social-links a { color: rgba(255, 255, 255, 0.82); }
.search-expand { border-radius: 18px; }
.search-expand .searchform { padding: 0.75rem; }
@media only screen and (max-width: 719px) {
  .site-branding-shell { margin: 1.25rem 1rem 1rem; padding: 1.5rem 1.2rem; border-radius: 24px; }
  .site-title a img { max-height: 96px; }
  .site-description { font-size: 1rem; line-height: 1.6; }
  .pad { padding: 1.25rem; }
  #page { padding-top: 1.2rem; }
  .content, .sidebar .widget, #footer .widget, .author-bio, .post-nav, .post-related, #respond { border-radius: 18px; }
}
.image-container img { display: block; width: auto; height: auto; margin: 0 auto; }
.flexslider .slides img { width: auto; height: auto; display: block; margin: 0 auto; }
/* Ajustes da marca FAK e remoção de cantos arredondados */
:root {
  --fak-radius-lg: 0;
  --fak-radius-md: 0;
  --fak-radius-sm: 0;
}

#header {
  box-shadow: none;
}

#header .group.pad {
  max-width: 980px;
  margin: 2.5rem auto 1.5rem;
  padding: 1.5rem 0 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

#header .site-title {
  float: none;
  display: block;
  margin: 0;
}

#header .site-title a {
  display: block;
  width: min(446px, calc(100vw - 3rem));
  aspect-ratio: 446 / 233;
  margin: 0 auto;
  background-image: url("https://www.faknet.org.br/wp-content/uploads/2019/05/LogoFAK.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: transparent !important;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
}

#header .site-description {
  max-width: 680px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

#nav-topbar,
#nav-header {
  border-radius: 0 !important;
}

#nav-header .nav > li > a,
#nav-topbar .nav > li > a,
button,
input[type="submit"],
.themeform button[type="submit"],
.post-tags a,
.wp-block-button__link,
.read-more,
.search-expand,
#nav-topbar .toggle-search,
#nav-topbar .toggle-search:hover,
#nav-topbar .nav li a,
#nav-header .nav li a,
.sidebar .widget,
#footer .widget,
.content,
.featured,
#flexslider-featured,
.author-bio,
.post-nav,
.post-related,
.comment-tabs,
#respond,
.entry blockquote,
.format-gallery .post-format,
.format-image .post-format,
.image-container img,
.flexslider .slides img,
.entry img,
.entry-inner img,
.sidebar.s1 .sidebar-top,
.sidebar.s2 .sidebar-top,
.sidebar.s1 .sidebar-toggle,
.sidebar.s2 .sidebar-toggle {
  border-radius: 0 !important;
}

button,
input[type="submit"],
.themeform button[type="submit"],
.post-tags a:hover,
.wp-block-button__link,
.read-more {
  box-shadow: none !important;
}

.content,
.sidebar .widget,
.alx-posts li,
.alx-tab li,
#footer .widget,
.author-bio,
.post-nav,
.post-related,
.comment-tabs,
#respond,
.featured,
#flexslider-featured {
  box-shadow: none;
}

@media only screen and (max-width: 719px) {
  #header .group.pad {
    margin: 1.5rem 1rem 1rem;
    padding: 1rem 0 0.75rem;
  }

  #header .site-title a {
    width: min(360px, calc(100vw - 2rem));
  }
}
/* Header institucional com o logo em destaque e cantos retos */
#header .group.pad {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.fak-brand-row {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(280px, 1fr);
  align-items: stretch;
  gap: 2.5rem;
  padding: 2.25rem 0 1.75rem;
}

.fak-brand-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 1.5rem 1.75rem;
  background: #f4efe3;
  border: 1px solid rgba(14, 29, 24, 0.12);
}

.fak-brand-logo-link {
  display: block;
  width: 100%;
}

.fak-brand-logo {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
}

.fak-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0.25rem 0;
  text-align: left;
}

.fak-brand-kicker {
  margin: 0 0 0.9rem;
  color: #d0e35e;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fak-brand-title {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 3vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.fak-brand-title a,
.fak-brand-title a:hover {
  color: #fff;
}

.fak-brand-description,
#header .site-description.fak-brand-description {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
  line-height: 1.75;
}

#header .site-title,
#header .site-title a {
  all: unset;
}

#nav-header {
  margin-top: 0.25rem;
}

#nav-header .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
}

#nav-header .nav > li > a {
  padding-left: 1.05rem;
  padding-right: 1.05rem;
}

#nav-topbar,
#nav-header,
#nav-header .nav > li > a,
#nav-topbar .nav > li > a,
button,
input[type="submit"],
.themeform button[type="submit"],
.post-tags a,
.wp-block-button__link,
.read-more,
.search-expand,
#nav-topbar .toggle-search,
#nav-topbar .toggle-search:hover,
#nav-topbar .nav li a,
#nav-header .nav li a,
.sidebar .widget,
#footer .widget,
.content,
.featured,
#flexslider-featured,
.author-bio,
.post-nav,
.post-related,
.comment-tabs,
#respond,
.entry blockquote,
.format-gallery .post-format,
.format-image .post-format,
.image-container img,
.flexslider .slides img,
.entry img,
.entry-inner img,
.sidebar.s1 .sidebar-top,
.sidebar.s2 .sidebar-top,
.sidebar.s1 .sidebar-toggle,
.sidebar.s2 .sidebar-toggle {
  border-radius: 0 !important;
}

.content,
.sidebar .widget,
.alx-posts li,
.alx-tab li,
#footer .widget,
.author-bio,
.post-nav,
.post-related,
.comment-tabs,
#respond,
.featured,
#flexslider-featured,
button,
input[type="submit"],
.themeform button[type="submit"],
.post-tags a:hover,
.wp-block-button__link,
.read-more {
  box-shadow: none !important;
}

@media only screen and (max-width: 980px) {
  .fak-brand-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0 1.25rem;
  }

  .fak-brand-logo-panel {
    min-height: 0;
    padding: 1.25rem;
  }

  .fak-brand-copy {
    align-items: center;
    text-align: center;
  }

  .fak-brand-description,
  #header .site-description.fak-brand-description {
    margin-left: auto;
    margin-right: auto;
  }

  #nav-header .nav {
    justify-content: center;
  }
}
/* Header tipográfico sem imagem */
.fak-brand-row {
  display: block;
  padding: 2rem 0 1.5rem;
}

.fak-brand-row-text-only {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.fak-brand-copy,
.fak-brand-copy-full {
  display: block;
  max-width: 820px;
  margin: 0 auto;
  padding: 0.35rem 0;
  text-align: center;
}

.fak-brand-kicker {
  margin: 0 0 0.8rem;
  color: #d0e35e;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.fak-brand-title {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.fak-brand-title a,
.fak-brand-title a:hover {
  color: #fff;
}

.fak-brand-description,
#header .site-description.fak-brand-description {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.75;
}

.fak-brand-logo-panel,
.fak-brand-logo-link,
.fak-brand-logo {
  display: none !important;
}

#nav-header {
  margin-top: 0.35rem;
}

#nav-header .nav {
  justify-content: center;
}

@media only screen and (max-width: 980px) {
  .fak-brand-row {
    padding: 1.6rem 0 1.1rem;
  }

  .fak-brand-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}
/* Refinos solicitados para o cabeçalho textual */
.fak-brand-copy,
.fak-brand-copy-full {
  max-width: 980px;
  margin: 0;
  text-align: left;
}

.fak-brand-row-text-only {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.fak-brand-kicker {
  text-align: left;
}

.fak-brand-title {
  font-family: "Titillium Web", "Segoe UI", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.02;
}

.fak-brand-description,
#header .site-description.fak-brand-description {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

#nav-header .nav {
  justify-content: flex-start;
}

@media only screen and (max-width: 980px) {
  .fak-brand-copy,
  .fak-brand-copy-full,
  .fak-brand-kicker,
  .fak-brand-description,
  #header .site-description.fak-brand-description {
    text-align: left;
  }

  #nav-header .nav {
    justify-content: flex-start;
  }
}
/* Alívio do peso do título institucional */
.fak-brand-title {
  font-weight: 400;
  letter-spacing: 0.05em;
}
/* Redução do tamanho do título institucional */
.fak-brand-title {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
}
