/* Redes de Proteção Ribeirão Preto - CSS Completo */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --blue-50: #eff6ff;
  --blue-700: #1d4ed8;
  --green-600: #16a34a;
  --red-600: #dc2626;
  --yellow-700: #b45309;
  --radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

nav .menu {
  display: flex;
  gap: 1.5rem;
}

nav .menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.3s ease;
}

nav .menu a:hover,
nav .menu a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.breadcrumbs a {
  color: var(--gray-600);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 4rem 0;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  background-color: var(--gray-50);
  border-color: var(--primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Cards */
.card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-top: 0;
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

/* Sections */
section {
  padding: 4rem 0;
}

.section-white {
  background-color: var(--white);
}

.section-light {
  background-color: var(--gray-50);
}

.section-blue {
  background-color: var(--primary);
  color: var(--white);
}

.section-blue h2,
.section-blue h3 {
  color: var(--white);
}

.section-blue a {
  color: var(--white);
}

/* Info Box */
.info-box {
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  background-color: var(--blue-50);
  margin-bottom: 2rem;
}

.info-box h3 {
  margin-top: 0;
}

/* Alert Box */
.alert {
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.alert-warning {
  background-color: #fef3c7;
  border-left: 4px solid var(--yellow-700);
}

.alert-warning h3 {
  color: var(--yellow-700);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  overflow-x: auto;
}

thead {
  background-color: var(--primary);
  color: var(--white);
}

th, td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--gray-300);
}

tbody tr:hover {
  background-color: var(--gray-50);
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

.list-check {
  list-style: none;
  margin-left: 0;
}

.list-check li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.list-check li:before {
  content: "✓";
  color: var(--green-600);
  font-weight: bold;
  flex-shrink: 0;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Checkbox */
input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

footer ul {
  list-style: none;
  margin-left: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--gray-300);
}

footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Accordion/FAQ */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--gray-50);
}

.faq-answer {
  padding: 1.5rem;
  background-color: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: none;
}

.faq-answer.active {
  display: block;
}

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

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

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

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  nav .menu {
    gap: 1rem;
  }

  nav .menu a {
    font-size: 0.75rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 0.75rem;
  }

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

/* Utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-8 {
  margin-bottom: 4rem;
}

.gap-4 {
  gap: 2rem;
}

.max-w-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

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

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

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

.justify-center {
  justify-content: center;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.border-l-4 {
  border-left: 4px solid;
}

.border-l-blue {
  border-left-color: var(--primary);
}

.border-l-green {
  border-left-color: var(--green-600);
}

.border-l-red {
  border-left-color: var(--red-600);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}
