/*
Theme Name: HelpAulas
Theme URI: https://helpaulas.com.br
Author: HelpAulas
Author URI: https://helpaulas.com.br
Description: Tema personalizado para HelpAulas - Plataforma de aulas particulares
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: helpaulas
Tags: education, tutoring, responsive, custom-menu
*/

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #374151;
  background: #ffffff;
}

/* Container */
.max-w-7xl {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.max-w-4xl {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
  .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  color: #111827;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
}

.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: #059669;
  color: white;
}

.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: white;
  color: #059669;
  border: 2px solid #059669;
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* Header */
.site-header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-nav {
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  gap: 2rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  display: block;
}

.menu-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-menu li {
  position: relative;
}

.main-menu > li > a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.main-menu a:hover {
  color: #059669;
}

.menu-item-has-children {
  position: relative;
}

.dropdown-icon {
  font-size: 0.75rem;
  transition: transform 0.3s;
}

.menu-item-has-children:hover .dropdown-icon {
  transform: rotate(180deg);
}

.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  z-index: 1001;
}

.menu-item-has-children:hover .sub-menu {
  display: block;
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.sub-menu a:hover {
  background: #d1fae5;
  color: #059669;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.bg-gray-50 {
  background: #f9fafb;
}

.bg-blue-50 {
  background: #eff6ff;
}

.bg-gradient-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
}

.bg-gradient-cta {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
}

.bg-blue-600 {
  background: #2563eb;
  color: white;
}

.bg-gray-900 {
  background: #111827;
  color: white;
}

/* Cards */
.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-with-image {
  overflow: hidden;
}

.card-with-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Forms */
input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #111827;
}

/* Footer */
footer {
  background: #111827;
  color: white;
  padding: 3rem 0;
}

footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #10b981;
}

footer h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .main-menu {
    display: none;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .md-grid-cols-2,
  .md-grid-cols-3,
  .md-grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Icons */
.icon-circle {
  width: 80px;
  height: 80px;
  background: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s;
}

.icon-circle:hover {
  background: #2563eb;
  transform: scale(1.1);
}

.icon-circle svg {
  width: 40px;
  height: 40px;
  stroke: #2563eb;
}

.icon-circle:hover svg {
  stroke: white;
}

/* Stars */
.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  width: 20px;
  height: 20px;
  fill: #fbbf24;
  color: #fbbf24;
}

/* Special Effects */
.transform-rotate {
  transform: rotate(2deg);
  transition: transform 0.3s;
}

.transform-rotate:hover {
  transform: rotate(0deg);
}

.shadow-xl {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}
