/*
Theme Name: Perito Magno Oliveira
Description: Tema personalizado de perícia digital
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary-bg: #0A1628;
  --color-secondary: #3B82F6; /* Lighter Blue */
  --color-accent: #00E5FF;
  --color-neutral-light: #F4F6FA;
  --color-neutral-text: #9CA3AF;
  --color-alert: #EF4444;
  --color-success: #10B981;
  --font-base: 'Inter', sans-serif;
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body.dark-theme {
  background-color: var(--color-primary-bg);
  color: var(--color-neutral-light);
  font-family: var(--font-base);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  margin-top: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fff;
}

/* Header & Nav */
header {
  padding: 1rem 5%;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo a {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-neutral-light);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-neutral-light);
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), #60A5FA);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
  color: var(--color-accent);
}

/* Main Layout */
main {
  margin-top: 80px;
}

/* Hero Section */
.hero-section {
  padding: 8rem 5% 6rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27,79,216,0.15) 0%, rgba(10,22,40,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-section h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text; /* fix linting var */
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--color-neutral-text);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

/* Services Grid */
.services-section {
  padding: 5rem 5%;
  background: #10213E;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.services-section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1500px;
  margin: 0 auto;
}

.service-card img {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: rgba(255,255,255,0.08);
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  opacity: 0.9;
}

.service-card__title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card__description {
  color: var(--color-neutral-text);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-card__cta {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.service-card__cta:hover {
  gap: 0.8rem;
}

/* Features */
.features-section {
  padding: 6rem 5%;
  max-width: 900px;
  margin: 0 auto;
}

.features-section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3rem;
}

.features-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.features-section li {
  background: var(--glass-bg);
  padding: 2rem;
  border-radius: 10px;
  border-left: 3px solid var(--color-accent);
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  transition: transform 0.3s ease;
}

.features-section li:hover {
  transform: translateX(10px);
}

/* CTA Section */
.cta-section {
  padding: 7rem 5%;
  text-align: center;
  background: linear-gradient(to top, rgba(27, 79, 216, 0.05), rgba(10, 22, 40, 0));
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: var(--color-neutral-text);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid var(--glass-border);
  color: var(--color-neutral-text);
  font-size: 0.95rem;
  background: rgba(0,0,0,0.3);
}

/* About Section */
.about-section {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: var(--glass-bg);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}
.about-image {
  flex: 1;
  text-align: center;
}
.about-text {
  flex: 1.5;
}
.about-text h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}
.about-text p {
  font-size: 1.1rem;
  color: var(--color-neutral-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 4px;
}

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

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
    transition: left 0.3s ease;
    overflow-y: auto;
    margin: 0;
    justify-content: flex-start;
  }
  .nav-links.active { left: 0; }

  .dropdown-menu {
    position: static;
    display: none;
    background: transparent;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    border-left: 1px solid var(--glass-border);
  }
  .dropdown.active .dropdown-menu,
  .dropdown:hover .dropdown-menu { display: block; }

  .hero-section { padding-top: 6rem; padding-bottom: 4rem; }
  .hero-section h1 { font-size: 2.5rem; }
  .hero-section p { font-size: 1.1rem; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  .features-section ul { grid-template-columns: 1fr; }
  .services-section h2, .features-section h2, .cta-section h2 { font-size: 2rem; }
}

/* WPForms - Estilos personalizados */
.wpforms-field-label,
.wpforms-field-sublabel {
  color: #F4F6FA !important;
  font-family: 'Inter', sans-serif !important;
}

.wpforms-field input,
.wpforms-field select,
.wpforms-field textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #F4F6FA !important;
  border-radius: 6px !important;
  padding: 0.8rem !important;
  font-family: 'Inter', sans-serif !important;
}

.wpforms-field input:focus,
.wpforms-field select:focus,
.wpforms-field textarea:focus {
  border-color: #00E5FF !important;
  outline: none !important;
}

.wpforms-field select option {
  background: #0A1628 !important;
  color: #F4F6FA !important;
}

.wpforms-submit-container .wpforms-submit {
  background: linear-gradient(135deg, #3B82F6, #60A5FA) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.8rem 1.8rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: 100% !important;
  font-family: 'Inter', sans-serif !important;
}
/* WPForms - fundo do formulário */
.wpforms-container,
.wpforms-form,
.wpforms-field {
  background: transparent !important;
}