/*
Theme Name: Tecmed Radioproteção
Description: Tema WordPress para Tecmed Radioproteção - Radioproteção com responsabilidade e precisão
Version: 1.0
Author: Tecmed
Text Domain: tecmed
*/

/* CSS Variables - Design System */
:root {
  /* Brand tokens (HSL) */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(222, 47%, 11%);
  
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(222, 47%, 11%);
  
  /* Primary cobalt blue */
  --primary: hsl(215, 100%, 33%);
  --primary-foreground: hsl(210, 40%, 98%);
  --primary-600: hsl(214, 86%, 38%);
  --primary-200: hsl(215, 78%, 89%);
  
  /* Muted surfaces */
  --secondary: hsl(220, 14%, 96%);
  --secondary-foreground: hsl(222, 47%, 11%);
  
  --muted: hsl(220, 14%, 96%);
  --muted-foreground: hsl(215, 20%, 65%);
  
  --accent: hsl(215, 78%, 89%);
  --accent-foreground: hsl(222, 47%, 11%);
  
  /* States */
  --destructive: hsl(0, 72%, 51%);
  --destructive-foreground: hsl(210, 40%, 98%);
  --success: hsl(142, 76%, 36%);
  --warning: hsl(28, 92%, 44%);
  
  /* Surfaces & borders */
  --border: hsl(220, 14%, 90%);
  --input: hsl(220, 14%, 90%);
  --ring: hsl(215, 100%, 33%);
  
  --radius: 1rem; /* 16px cards / rounded-xl buttons */
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

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

a:hover {
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.25rem;
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img {
  height: 64px;
  width: auto;
}

.main-nav {
  display: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.current-page {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

/* Footer */
.site-footer {
  background-color: var(--muted);
  color: var(--muted-foreground);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 0.5rem;
}

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

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

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

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

/* Spacing */
.py-12 { padding: 3rem 0; }
.py-16 { padding: 4rem 0; }
.mb-6 { margin-bottom: 1.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Animations */
@keyframes fade-in {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

/* Fixed WhatsApp Button (Mobile) */
.mobile-whatsapp {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 0.75rem;
  backdrop-filter: blur(10px);
}

/* Responsive */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .mobile-whatsapp {
    display: none;
  }
  
  .grid-md-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-md-3 { grid-template-columns: repeat(3, 1fr); }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  h1 {
    font-size: 3.5rem;
  }
}

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

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-image {
  background-color: var(--muted);
  border-radius: var(--radius);
  height: 16rem;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-image {
    height: 20rem;
  }
}

/* Services */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

/* Blog */
.blog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

/* Social Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Page Content */
.page-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ring);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.rounded-xl { border-radius: var(--radius); }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }