
/*
Theme Name: IV8 Theme
Theme URI: https://iv8.com.br
Author: IV8
Author URI: https://iv8.com.br
Description: Tema WordPress customizado para o ecossistema IV8. Design futurista premium com modos claro e escuro.
Version: 1.0
License: MIT
Text Domain: iv8-theme
*/

/* Base styles */
:root {
  --primary-color: #00e4d0;
  --secondary-color: #00a2ff;
  --font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
}

body.light-mode {
  /* Variables for light mode will be set via CSS variables below */
}

/* Colour variables with fallbacks - dark mode default */
body {
  --bg: #051d32;
  --bg-secondary: #0a2640;
  --card-bg: #0f3868;
  --text: #ffffff;
  --text-muted: #a8b8c7;
}
body.light-mode {
  --bg: #ffffff;
  --bg-secondary: #f5f7fa;
  --card-bg: #e3ecf3;
  --text: #051d32;
  --text-muted: #586580;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(5, 29, 50, 0.8);
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}
body.light-mode .site-header {
  background: rgba(255, 255, 255, 0.8);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.logo img {
  height: 50px;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
}
.nav-menu li {
  position: relative;
}
.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--primary-color);
}

/* Theme toggle button */
#theme-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 20px;
}
#theme-toggle i {
  pointer-events: none;
}

/* Hero section */
.hero {
  /* Expand the hero to fill the viewport for a more immersive first impression */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Further lighten the overlay so the background does not overpower the tagline */
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
  z-index: 0;
}
body.light-mode .hero::after {
  /* Light mode overlay tuned to improve readability on bright backgrounds */
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6));
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}
.hero h1 {
  /* Reduce the base font size since we now break the tagline into lines */
  /* Increase the size of the headline to make it more prominent */
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 25px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 45px;
  /* Use a light color for better contrast over the dark overlay */
  color: rgba(255, 255, 255, 0.85);
}

/* Ensure each tagline line in the hero is stacked vertically */
.hero h1 span {
  display: block;
  /* Provide a little spacing between lines */
  margin-bottom: 5px;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.btn {
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s, box-shadow 0.3s;
}
.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #0a2640;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-outline:hover {
  background: var(--primary-color);
  color: #0a2640;
}

section {
  padding: 80px 20px;
}
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}
.service-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.service-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-muted);
}
.service-card a {
  display: inline-block;
  margin-top: auto;
  color: var(--secondary-color);
  font-weight: 500;
}

/* About section */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  align-items: center;
}
.about-section img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  object-fit: cover;
}
.about-content {
  flex: 1;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Ecosystem grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}
.eco-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.eco-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.eco-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA section */
.cta-section {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #0a2640;
  text-align: center;
  padding: 80px 20px;
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  padding: 40px 20px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}
.footer-grid h4 {
  margin-bottom: 10px;
  color: var(--text);
}
.footer-grid a {
  color: var(--text-muted);
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Contact form */
.contact-form {
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}
.contact-form button {
  padding: 14px;
  border: none;
  border-radius: 30px;
  background: var(--primary-color);
  color: #0a2640;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}
.contact-form button:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    width: 200px;
    height: calc(100vh - 70px);
    transform: translateX(100%);
    transition: transform 0.3s;
    padding-top: 20px;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .menu-toggle {
    display: block;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
  }
  .nav-menu li {
    margin-bottom: 15px;
  }
}

.menu-toggle {
  display: none;
}

