/*
Theme Name: Colégio Vitória — Educação e Saúde (WooCommerce Edition)
Theme URI: https://educavitoria.com.br
Author: Wanderson Barbosa (DITA Agência)
Author URI: https://wandersonbarbosa.com.br
Description: Tema WordPress institucional e e-commerce de matrículas (WooCommerce) v6.5 para o Colégio Vitória. Paleta editorial 30 anos, Logo do Header e Rodapé, criação automática das páginas (EJA, Cursos com 12 cursos de curta duração, Corpo Docente, Oportunidades, Privacidade e Cookies), Slides CPT, Editor de Cards e Checkout WooCommerce.
Version: 6.5.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: colegio-vitoria
Tags: education, e-commerce, woocommerce, custom-menu, custom-logo, featured-images, theme-options
*/

html {
  font-size: 16px;
}

body {
  font-family: "Figtree", sans-serif;
  color: #0f172a;
  background-color: #F9F6F0;
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Outfit", sans-serif;
}

/* Custom Logo Sizing Fix */
.custom-logo-link img,
.custom-logo {
  max-height: 54px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   SLIM TOP BAR (NO DUPLICATE WHATSAPP OR PROFESSOR PORTAL)
   ========================================================================== */
.cv-puc-topbar {
  background-color: #0A224A;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Figtree", sans-serif;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(212, 155, 53, 0.25);
}

.cv-puc-topbar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.cv-puc-topbar a:hover {
  color: #D49B35;
}

.cv-topbar-divider {
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  display: inline-block;
}

/* ==========================================================================
   DESKTOP NAVIGATION & MULTI-LEVEL SUBMENU DROPDOWN
   ========================================================================== */
.cv-desktop-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  font-family: "Outfit", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: #0A224A;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-desktop-menu > li {
  position: relative;
  padding: 0.85rem 0;
}

.cv-desktop-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0A224A;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.cv-desktop-menu > li > a:hover,
.cv-desktop-menu > li.current-menu-item > a,
.cv-desktop-menu > li.current-menu-ancestor > a {
  color: #8B1E24;
}

.cv-desktop-menu > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 12px;
  color: #8B1E24;
  transition: transform 0.2s ease;
}

.cv-desktop-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* First-Level Dropdown Submenu */
.cv-desktop-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #e6dfd3;
  border-top: 3px solid #8B1E24;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 35px -8px rgba(10, 34, 74, 0.16);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.cv-desktop-menu li:hover > .sub-menu,
.cv-desktop-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cv-desktop-menu .sub-menu li {
  position: relative;
  margin: 0;
}

.cv-desktop-menu .sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.2rem;
  font-family: "Figtree", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
  border-bottom: 1px solid #f8f5ee;
}

.cv-desktop-menu .sub-menu li:last-child a {
  border-bottom: none;
}

.cv-desktop-menu .sub-menu li a:hover {
  background-color: #F9F6F0;
  color: #8B1E24;
  padding-left: 1.45rem;
}

.cv-desktop-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-radius: 10px;
}

/* ==========================================================================
   MOBILE NAVIGATION & ACCORDION SUBMENUS
   ========================================================================== */
.cv-mobile-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-mobile-menu li {
  border-bottom: 1px solid #efe9dc;
}

.cv-mobile-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.25rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0A224A;
  text-decoration: none;
}

.cv-mobile-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.65rem 1rem;
  background: #F9F6F0;
  border-left: 3px solid #8B1E24;
}

.cv-mobile-menu .sub-menu li {
  border-bottom: none;
}

.cv-mobile-menu .sub-menu li a {
  display: block;
  padding: 0.5rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

/* Footer Menu */
.cv-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.cv-footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cv-footer-menu a:hover {
  color: #D49B35;
}

/* ==========================================================================
   PRICE DISPLAY (NO LINE BREAKS!)
   ========================================================================== */
.cv-price-value,
.cv-price-value .woocommerce-Price-amount,
.cv-price-value bdi {
  white-space: nowrap !important;
  display: inline-block;
}

/* FAQ & Slider */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer.open {
  max-height: 360px;
}

.faq-icon {
  transition: transform 0.2s ease;
}

.faq-icon.open {
  transform: rotate(180deg);
}

.slide-item {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.slide-item.active {
  display: block;
  opacity: 1;
}

/* WooCommerce Custom Overrides (Checkout Clássico + Blocos + Carrinho) */
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button.wp-element-button.contained,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  background-color: #8B1E24 !important;
  color: #ffffff !important;
  font-family: "Outfit", sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  padding: 0.9rem 1.75rem !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-components-button.wp-element-button.contained:hover,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover {
  background-color: #0A224A !important;
  color: #ffffff !important;
}

.cv-wc-shell .woocommerce form .form-row label {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0A224A;
  margin-bottom: 6px;
}

.cv-wc-shell .woocommerce form .form-row input.input-text,
.cv-wc-shell .woocommerce form .form-row select,
.cv-wc-shell .woocommerce form .form-row textarea,
.cv-wc-shell .select2-container--default .select2-selection--single {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px !important;
  border: 1px solid #d7cfc2 !important;
  border-radius: 10px !important;
  background-color: #FAF8F4 !important;
  color: #0f172a !important;
  font-size: 14px !important;
}

.cv-wc-shell .woocommerce form .form-row input.input-text:focus,
.cv-wc-shell .woocommerce form .form-row select:focus,
.cv-wc-shell .woocommerce form .form-row textarea:focus {
  border-color: #0A224A !important;
  background-color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(10, 34, 74, 0.1) !important;
}

.cv-wc-shell .woocommerce-checkout #customer_details {
  margin-bottom: 2rem;
}

.cv-wc-shell .woocommerce-checkout h3,
.cv-wc-shell #order_review_heading {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0A224A;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #efe9dc;
}

.cv-wc-shell .woocommerce-checkout-review-order-table {
  border: 1px solid #e6dfd3 !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #F9F6F0;
}

.cv-wc-shell .woocommerce-checkout-review-order-table th,
.cv-wc-shell .woocommerce-checkout-review-order-table td {
  padding: 12px 16px !important;
  border-color: #e6dfd3 !important;
}

.cv-wc-shell #payment {
  background: #F9F6F0 !important;
  border: 1px solid #e6dfd3 !important;
  border-radius: 12px !important;
}

.cv-wc-shell #payment div.payment_box {
  background-color: #ffffff !important;
  border: 1px solid #e6dfd3 !important;
  color: #334155 !important;
}

.cv-wc-shell .woocommerce-info,
.cv-wc-shell .woocommerce-message {
  border-top-color: #0A224A !important;
  background-color: #F9F6F0 !important;
  border-radius: 10px;
}

.cv-wc-shell .woocommerce-error {
  border-top-color: #8B1E24 !important;
  background-color: #fef2f2 !important;
  border-radius: 10px;
}

