/*
Theme Name: Prisma Conferências
Theme URI: https://prismaconferencias.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: Tema personalizado para Prisma Conferências 
Version: 1.0.0
Requires at least: 6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prismaconferencias
*/

/* Contact Form 7 response backgrounds */
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 .wpcf7-mail-sent-ok {
  background: #46b450;
  color: #fff;
  border-color: #46b450;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng {
  background: #dc3232;
  color: #fff;
  border-color: #dc3232;
}

.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background: #dba617;
  color: #2b1c00;
  border-color: #dba617;
}

/* ==========================================
   VARIÁVEIS CSS
   ========================================== */

:root {
  --color-primary: #023869;
  --color-secondary: #e6ae2f;
  --color-tertiary: #e7ebee;
  --color-white: #ffffff;
  --color-text: #333;
  --color-text-light: #666;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #005177;
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-content {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

/* ==========================================
   TOP FLAGS
   ========================================== */

.top-flags {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 15px 0;
  z-index: 1000;
}

.top-flags-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

a.flag {
  cursor: pointer;
}

.flag span {
  line-height: 1;
}

.flag-yellow {
  background-color: var(--color-secondary);
  color: #fff;
}

div.flag-yellow {
  cursor: default;
}

.flag-blue {
  background-color: #3f89ae;
  color: #fff;
}

.flag-blue:hover {
  background-color: #2e6a87;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(63, 137, 174, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .top-flags {
    position: relative;
  }

  .top-flags-container {
    flex-direction: column;
    gap: 8px;
  }

  .flag {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
  background-color: var(--color-primary);
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.site-branding {
  flex-shrink: 0;
}

.site-branding .custom-logo-link {
  display: block;
  line-height: 0;
}

.site-branding .custom-logo {
  max-height: 60px;
  width: auto;
  height: auto;
}

.site-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.site-title a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: var(--color-secondary);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.menu-toggle-icon {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-icon:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle-icon:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-icon:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  padding: 10px 20px;
  display: block;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-secondary);
}

/* Submenu */
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-primary);
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
  border-radius: 4px;
}

.main-navigation li {
  position: relative;
}

.main-navigation li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul ul a {
  padding: 12px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-primary);
    padding: 80px 20px 20px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .main-navigation.active {
    right: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-navigation li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-navigation a {
    padding: 15px 10px;
    width: 100%;
    border-radius: 0;
  }

  .main-navigation ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: 0;
  }

  .main-navigation ul ul a {
    padding-left: 30px;
  }
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  background-color: var(--color-primary);
  padding: 40px 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1170px;
  margin: 0 auto;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-copyright {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Botão Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-secondary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .site-footer {
    padding: 30px 20px;
    margin-top: 60px;
  }
}

/* ==========================================
   POSTS & PAGES
   ========================================== */

article {
  margin-bottom: 40px;
}

.entry-header {
  margin-bottom: 30px;
}

.entry-title {
  font-size: 32px;
  margin-bottom: 15px;
  line-height: 1.2;
}

.entry-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.entry-content {
  line-height: 1.8;
}

.entry-content h2 {
  font-size: 26px;
  margin: 30px 0 15px;
}

.entry-content h3 {
  font-size: 22px;
  margin: 25px 0 15px;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

/* ==========================================
   404 PAGE
   ========================================== */

.error-404 {
  text-align: center;
  padding: 60px 20px;
}

.error-404 .page-title {
  font-size: 72px;
  margin-bottom: 20px;
  color: #ddd;
}

/* ==========================================
   UTILITIES
   ========================================== */

.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alignwide {
  max-width: 1200px;
}

.alignfull {
  max-width: 100%;
}

/* ==========================================
   HOMEPAGE
   ========================================== */

.homepage-wrapper {
  width: 100%;
}

.homepage-content {
  width: 100%;
}

/* Remove padding padrão do conteúdo na homepage */
.home .site-content {
  padding: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .main-navigation ul {
    flex-direction: column;
    gap: 10px;
  }

  .entry-title {
    font-size: 24px;
  }
}
