/*
Theme Name: FrameworkUpsites
Theme URI: https://upsites.digital
Author: Pedro Hilário
Description: Tema wordpress para melhorar o desempenho e o desenvolvimento de sites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frameworkupsites
*/

/* 
 * Este tema utiliza Tailwind CSS para estilização.
 * Os estilos compilados são carregados via functions.php
 */

/* Fonte global do tema */
* {
  box-sizing: border-box;
}

html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: transparent;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: transparent;
}

#page,
main {
  width: 100%;
  margin: 0;
  padding: 0;
}

html,
body,
button,
input,
select,
textarea {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}

/* Header global (Figma - Nav flutuante) */
.framework-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  width: min(1264px, calc(100% - 32px));
}

.framework-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
  box-sizing: border-box;
  padding: 16px 24px;
  background: #ffffff;
  box-shadow: 0 8px 12px rgba(229, 229, 229, 0.3);
}

.framework-header__brand {
  flex-shrink: 0;
}

.framework-header__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.framework-header__brand .custom-logo {
  width: auto;
  max-width: 111px;
  max-height: 42px;
  height: auto;
}

.framework-header__site-name {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.framework-header__nav {
  margin-left: auto;
}

.framework-header__menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.framework-header__menu>li {
  position: relative;
  margin: 0;
  padding: 0;
}

.framework-header__menu>li>a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #4d4648;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.framework-header__menu>li.current-menu-item>a,
.framework-header__menu>li.current-menu-ancestor>a,
.framework-header__menu>li>a:hover,
.framework-header__menu>li>a:focus-visible {
  color: #980577;
}

.framework-header__menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  list-style: none;
}

.framework-header__menu li:hover>.sub-menu,
.framework-header__menu li:focus-within>.sub-menu {
  display: block;
}

.framework-header__menu .sub-menu a {
  display: block;
  padding: 10px 14px;
  color: #4d4648;
  font-size: 14px;
  text-decoration: none;
}

.framework-header__menu .sub-menu a:hover,
.framework-header__menu .sub-menu a:focus-visible {
  background: #f7f7f8;
  color: #980577;
}

.framework-header__language {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #4d4648;
  font-size: 14px;
  line-height: 1.5;
  flex-shrink: 0;
}

.framework-header__language img {
  width: 20px;
  height: 20px;
  display: block;
}

.framework-header__language svg {
  display: block;
}

.framework-header__mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #4d4648;
  cursor: pointer;
}

.framework-header__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.framework-header__mobile-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.framework-header__mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.framework-header__mobile-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.framework-header__mobile-menu {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 1090;
}

.framework-header__mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.framework-header__mobile-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.framework-header__mobile-menu-panel {
  position: absolute;
  top: 74px;
  right: 0;
  width: min(284px, calc(100vw - 106px));
  min-height: calc(100dvh - 74px);
  padding: 80px 32px;
  box-sizing: border-box;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.framework-header__mobile-menu.is-open .framework-header__mobile-menu-panel {
  transform: translateX(0);
}

.framework-header__mobile-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.framework-header__mobile-menu-list li {
  margin: 0;
}

.framework-header__mobile-menu-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  color: #4d4648;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  text-decoration: none;
}

.framework-header__mobile-menu-list a:hover,
.framework-header__mobile-menu-list a:focus-visible {
  color: #980577;
}

.framework-header__mobile-language {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #4d4648;
  font-size: 14px;
  line-height: 1.5;
}

.framework-header__mobile-language img,
.framework-header__mobile-language svg {
  display: block;
}

#main-header.header-compact .framework-header__inner {
  height: 74px;
  padding-top: 16px;
  padding-bottom: 16px;
}

@media (max-width: 1439px) {
  .framework-header {
    width: calc(100% - 32px);
  }

  .framework-header__menu {
    gap: 10px;
  }

  .framework-header__menu>li>a {
    font-size: 15px;
    padding: 8px 6px;
  }
}

@media (max-width: 1023px) {
  .framework-header {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
  }

  .framework-header__inner {
    height: 74px;
    padding: 16px 24px 16px 16px;
    gap: 12px;
    box-shadow: 0 8px 12px rgba(229, 229, 229, 0.3);
  }

  .framework-header__mobile-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 24px;
    height: 24px;
    gap: 5px;
  }

  .framework-header__nav,
  .framework-header__language {
    display: none;
  }

  .framework-header__brand .custom-logo {
    max-width: 111px;
    max-height: 42px;
  }
}

@media (max-width: 767px) {
  .framework-header {
    width: 100%;
  }

  .framework-header__inner {
    height: 74px;
    padding: 16px 24px 16px 16px;
  }

  .framework-header__mobile-menu-panel {
    width: min(284px, calc(100vw - 96px));
    padding: 80px 32px 48px;
  }
}

/* Footer */
.framework-footer {
  background: #f5f5f5;
  border-top: 1px solid #e5e5e5;
}

.framework-footer__inner {
  width: min(1216px, calc(100% - 32px));
  margin: 0 auto;
}

.framework-footer__main {
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: 209px 95px 355px;
  justify-content: space-between;
  align-items: start;
  column-gap: 24px;
}

.framework-footer__brand img {
  width: 209px;
  height: auto;
  display: block;
}

.framework-footer__column-title {
  margin: 0;
  color: #332f30;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.framework-footer__menu {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.framework-footer__menu li {
  margin: 0;
}

.framework-footer__menu a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  color: #4d4648;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.framework-footer__menu a:hover,
.framework-footer__menu a:focus-visible {
  color: #980577;
}

.framework-footer__contact-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.framework-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #332f30;
  font-size: 16px;
  line-height: 1.5;
}

.framework-footer__contact-item--address {
  align-items: flex-start;
}

.framework-footer__contact-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.framework-footer__contact-item a,
.framework-footer__contact-item span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

.framework-footer__contact-item a:hover,
.framework-footer__contact-item a:focus-visible {
  text-decoration: underline;
}

.framework-footer__bottom {
  border-top: 1px solid #d6d6d6;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.framework-footer__copyright {
  display: flex;
  align-items: center;
  gap: 48px;
  color: #4d4d4d;
  font-size: 16px;
  line-height: 1.2;
}

.framework-footer__copyright p {
  margin: 0;
}

.framework-footer__copyright a {
  color: #4d4d4d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.framework-footer__made-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4d4d4d;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
}

.framework-footer__made-by img {
  width: 51px;
  height: 23px;
  object-fit: contain;
  display: block;
}

/* Notebook */
@media (max-width: 1439px) {
  .framework-footer__inner {
    width: calc(100% - 48px);
  }

  .framework-footer__main {
    grid-template-columns: 200px 150px minmax(0, 1fr);
    padding: 84px 0 72px;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .framework-footer__inner {
    width: calc(100% - 40px);
  }

  .framework-footer__main {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
    padding: 64px 0 56px;
  }

  .framework-footer__brand {
    grid-column: 1 / -1;
  }

  .framework-footer__brand img {
    width: 190px;
  }

  .framework-footer__contact {
    grid-column: 1 / -1;
  }

  .framework-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .framework-footer__copyright {
    gap: 24px;
    flex-wrap: wrap;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .framework-footer__inner {
    width: calc(100% - 24px);
  }

  .framework-footer__main {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 48px 0 40px;
  }

  .framework-footer__brand,
  .framework-footer__contact {
    grid-column: auto;
  }

  .framework-footer__brand img {
    width: 170px;
  }

  .framework-footer__menu {
    margin-top: 12px;
  }

  .framework-footer__menu a,
  .framework-footer__contact-item {
    font-size: 15px;
  }

  .framework-footer__copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
  }

  .framework-footer__made-by {
    font-size: 14px;
  }
}