/* 
 * Planejar MEI Serviços - Main Stylesheet
 * Theme: Black, Navy Blue, Electric Blue
 */

:root {
  /* Colors */
  --primary: #001f3f; /* Navy Blue */
  --primary-dark: #001226;
  --secondary: #000000; /* Black */
  --secondary-light: #1a1a1a;
  --accent: #0074D9; /* Electric Blue - Highlights */
  --accent-hover: #0056b3;
  --text-light: #f8f9fa;
  --text-gray: #cccccc;
  --text-dark: #333333;
  --bg-light: #f4f4f4;
  --bg-white: #ffffff;
  --border-color: #dddddd;
  --success: #28a745;
  --error: #dc3545;

  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition-speed: 0.3s;
}

/* --- Reset & Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-light { color: var(--text-light); }
.section { padding: var(--spacing-xl) 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary); color: var(--text-light); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: all var(--transition-speed);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 116, 217, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 116, 217, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: white;
}

/* --- Header & Nav --- */
.main-header {
  background-color: var(--primary-dark);
  color: var(--text-light);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.9)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  min-height: 80vh; /* Full viewport height feeling */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make sure fallback background color is there if image missing */
.hero {
  background-color: var(--primary-dark);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  font-weight: 800;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-gray);
}

/* --- Cards (Services/Products) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform var(--transition-speed);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-body {
  padding: var(--spacing-md);
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
  font-weight: 700;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--secondary);
  color: var(--text-gray);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.9rem;
}

/* --- Cookie Consent --- */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 31, 63, 0.95);
  color: white;
  padding: var(--spacing-md);
  z-index: 9999;
  display: none; /* Hidden by default */
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: var(--spacing-md);
}

.cookie-text {
  flex: 1;
  min-width: 300px;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.1);
}

/* --- Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: var(--spacing-md);
    display: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}
