/* ==========================
   CSS VARIABLES - Design Inspirado em Sites SST
   ========================== */
:root {
  /* Colors - Azul MedSeg - Design Clean e Moderno */
  --primary-color: #0B1E40;        /* Azul marinho escuro MedSeg */
  --primary-dark: #050E1F;         /* Azul marinho ultra escuro */
  --primary-light: #1a3a5c;        /* Azul marinho médio */
  --primary-lighter: #2d4f73;      /* Azul marinho claro */
  --primary-blue: #0066CC;         /* Azul corporativo MedSeg */

  --secondary-color: #0066CC;      /* Azul para CTAs (cor da MedSeg) */
  --secondary-dark: #0052A3;
  --secondary-light: #3385D6;

  --accent-color: #0066CC;         /* Azul para destaques */
  --accent-light: #E6F2FF;         /* Azul muito claro para backgrounds */

  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #7f8c8d;
  --text-white: #ffffff;

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafb;        /* Background clean e suave */
  --bg-dark: #0B1E40;
  --bg-blue: #0B1E40;              /* Fundo azul escuro */

  --border-color: #e1e8ed;
  --shadow-sm: 0 2px 8px rgba(11, 30, 64, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 30, 64, 0.12);
  --shadow-lg: 0 10px 30px rgba(11, 30, 64, 0.15);
  --shadow-blue: 0 4px 20px rgba(0, 102, 204, 0.15);

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius: 8px;
}

/* ==========================
   GLOBAL STYLES
   ========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* ==========================
   UTILITY CLASSES
   ========================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================
   BUTTONS
   ========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  vertical-align: middle;
}

.btn svg {
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-white);
  border-color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  transition: all var(--transition-base);
}

.btn-primary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
}

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

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--text-white);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-whatsapp {
  background-color: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background-color: #1da851;
  border-color: #1da851;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ==========================
   HEADER / NAVIGATION
   ========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(15px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo img {
  height: 50px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--secondary-color);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
}

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

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-menu li {
  padding: 0;
}

.nav__dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.nav__dropdown-menu a:hover {
  background-color: var(--bg-secondary);
  color: var(--secondary-color);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all var(--transition-base);
}

/* ==========================
   HERO SECTION - Design Moderno com Degradê Azul
   ========================== */
.hero {
  padding-top: var(--header-height);
  padding-bottom: var(--spacing-xl);
  background: url('../img/pexels-pavel-danilyuk-7108344.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  height: 100dvh;
  min-height: 100vh; /* Fallback para browsers antigos */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay muito sutil apenas para melhorar legibilidade do texto */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2); /* Overlay muito sutil - apenas para contraste */
  z-index: 0;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.hero__container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: var(--spacing-xl);
  font-weight: 400;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6), 0 1px 5px rgba(0, 0, 0, 0.4);
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--spacing-md);
}

/* ==========================
   ABOUT SECTION - Design Clean com Fundo Azul
   ========================== */
.about {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #0B1E40 0%, #1a3a5c 50%, #2d4f73 100%);
  position: relative;
}

.about .section__title {
  color: var(--text-white);
}

.about .section__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.about__content {
  display: grid;
  gap: var(--spacing-lg);
}

.about__intro-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.about__intro-subtitle {
  font-size: 1.375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.about__text p {
  margin-bottom: var(--spacing-md);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-card__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card__number--text {
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__certifications {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.cert-badge {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
}

.cert-badge:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.cert-badge strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.cert-badge span {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ==========================
   SERVICES - Design Clean e Azul
   ========================== */
.services-preview {
  background-color: var(--bg-secondary);
  padding: var(--spacing-xl) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

/* Otimização para 6 cartões */
@media (min-width: 1200px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.service-card {
  background-color: var(--bg-primary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.service-card:hover {
  box-shadow: var(--shadow-blue);
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  background-color: var(--accent-light);
}

.service-card__icon {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
}

.service-card__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.service-card__description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.service-card__link {
  color: var(--secondary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.service-card__link:hover {
  color: var(--secondary-dark);
}

.services__cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* ==========================
   CTA SECTION
   ========================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  padding: var(--spacing-xl) 0;
}

.cta-box {
  text-align: center;
  color: var(--text-white);
}

.cta-box__title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.cta-box__text {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.95;
}

.cta-box__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================
   WELCOME SECTION
   ========================== */
.welcome-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.welcome-box__title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.welcome-box__text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

/* ==========================
   PAGE HERO (Internal Pages)
   ========================== */
.page-hero {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-white);
}

.page-hero__content {
  max-width: 800px;
}

.page-hero__title {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.page-hero__description {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  opacity: 0.95;
}

.page-hero__text {
  font-size: 1.125rem;
  line-height: 1.8;
  opacity: 0.9;
}

.page-hero__image {
  margin-top: var(--spacing-md);
}

/* ==========================
   SERVICE DETAIL PAGE
   ========================== */
.service-detail__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.service-detail__icon {
  color: var(--secondary-color);
  flex-shrink: 0;
}

.service-detail__title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.service-detail__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.service-detail__content {
  display: grid;
  gap: var(--spacing-lg);
}

.service-detail__text p {
  margin-bottom: var(--spacing-md);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.service-detail__text--center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.service-box {
  background-color: var(--bg-primary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.service-box h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.services-list {
  list-style: none;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.services-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.services-list svg {
  flex-shrink: 0;
  color: var(--accent-color);
  margin-top: 2px;
}

.services-list span {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================
   CAREERS PAGE
   ========================== */
.careers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.career-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.career-card__image {
  height: 250px;
  overflow: hidden;
}

.career-card__content {
  padding: var(--spacing-md);
  text-align: center;
}

.career-card__title {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.career-card__description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-size: 1.0625rem;
}

/* ==========================
   CONTACT PAGE
   ========================== */
.contact-page__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-lg);
}

.contact-page__form h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.contact__form {
  background-color: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
}

.form__group {
  margin-bottom: var(--spacing-md);
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Image styles */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.hero-image:hover {
  transform: scale(1.05);
}

.service-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* Form validation styles - Maximum priority */
.form__group--error .form__input,
.form__group--error .form__textarea {
  border: 2px solid #f44336 !important;
  background-color: #ffebee !important;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.form__group--error .form__label::after {
  content: ' ⚠️';
  color: #f44336;
  font-weight: bold;
}

.form__group--success .form__input,
.form__group--success .form__textarea {
  border: 2px solid #4caf50 !important;
  background-color: #e8f5e8 !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
}

.form__error-message {
  color: #f44336;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.form__success-message {
  color: #4caf50;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Character counter */
.char-counter {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 0.25rem;
}

.char-counter--warning {
  color: #ff9800;
}

.char-counter--error {
  color: #f44336;
}

.contact-info-card {
  background-color: var(--bg-primary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-md);
  display: flex;
  gap: var(--spacing-sm);
}

.contact-info-card__icon {
  color: var(--secondary-color);
  flex-shrink: 0;
}

.contact-info-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.contact-info-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-info-card a {
  color: var(--secondary-color);
  font-weight: 500;
}

.contact-info-card a:hover {
  color: var(--secondary-dark);
}

.contact-info-card--highlight {
  background-color: var(--secondary-color);
  color: var(--text-white);
  display: block;
}

.contact-info-card--highlight h3,
.contact-info-card--highlight p {
  color: var(--text-white);
}

/* Map Section */
.map-section {
  background-color: var(--bg-secondary);
  padding: var(--spacing-lg) 0;
}

.map-section__title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.map-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 400px;
}

.map-address {
  text-align: center;
  margin-top: var(--spacing-md);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.map-address strong {
  color: var(--primary-color);
}

/* Responsive Map */
@media (max-width: 768px) {
  .map-wrapper iframe {
    min-height: 300px;
  }

  .map-section__title {
    font-size: 1.5rem;
  }
}

/* ==========================
   FOOTER
   ========================== */
.footer {
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer__logo {
  max-width: 150px;
  margin-bottom: var(--spacing-sm);
}

.footer__text {
  font-size: 0.9375rem;
  opacity: 0.9;
  line-height: 1.6;
}

.footer__title {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.footer__links li,
.footer__contact li {
  margin-bottom: 0.75rem;
}

.footer__links a,
.footer__contact a {
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.footer__links a:hover,
.footer__contact a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer__copyright {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer__dev {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer__dev a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer__dev a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==========================
   PHONE COPY TO CLIPBOARD
   ========================== */
.phone-copy {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.phone-copy:hover {
  color: var(--secondary-color);
  transform: translateY(-1px);
}

.phone-copy:active {
  transform: translateY(0);
}

.nav__phone.phone-copy {
  cursor: pointer;
}

.nav__phone.phone-copy:hover {
  opacity: 0.8;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* ==========================
   WHATSAPP FLOATING BUTTON
   ========================== */
.whatsapp-float {
  position: fixed;
  bottom: 90px; /* Acima do Tawk.to */
  right: 24px; /* Alinhado com o Tawk.to (mesmo right) */
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999; /* Abaixo do chat do Tawk.to quando aberto */
  transition: all var(--transition-base);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 80px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==========================
   IMAGE PLACEHOLDERS
   ========================== */
.image-placeholder {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #e1e8ed 100%);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  border-radius: var(--border-radius);
  border: 2px dashed var(--border-color);
  text-align: center;
}

.image-placeholder p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.map-placeholder {
  background-color: var(--bg-secondary);
  padding: var(--spacing-xl);
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
}

.map-placeholder p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */

/* Tablet */
@media (max-width: 968px) {
  :root {
    --header-height: 70px;
    --spacing-xl: 4rem;
    --spacing-lg: 3rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .hero__container,
  .contact-page__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .page-hero__title {
    font-size: 2.5rem;
  }

  .service-detail__header {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-base);
    overflow-y: auto;
    z-index: 999;
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .nav__item {
    border-bottom: 1px solid var(--border-color);
  }

  .nav__item:last-child {
    border-bottom: none;
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
  }

  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0.5rem var(--spacing-sm);
    margin-top: 0;
    background-color: transparent;
    min-width: auto;
    border-radius: 0;
  }

  .nav__dropdown-menu li {
    border-bottom: none;
  }

  .nav__dropdown-menu a {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
  }

  .nav__dropdown-menu a:hover {
    background-color: transparent;
    color: var(--secondary-color);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__actions {
    display: none;
  }

  .hero {
    height: 100dvh;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--spacing-md);
    background-attachment: scroll; /* Melhor performance no mobile */
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
  }

  .hero__subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: var(--spacing-lg);
  }

  .hero__buttons {
    margin-top: var(--spacing-md);
  }

  .about__intro-title {
    font-size: 1.75rem;
  }

  .about__intro-subtitle {
    font-size: 1.25rem;
  }

  .hero__description {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
  }

  .hero__buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .services__grid,
  .careers__grid {
    grid-template-columns: 1fr;
  }

  .cta-box__title {
    font-size: 1.75rem;
  }

  .cta-box__buttons {
    flex-direction: column;
  }

  .footer__content {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__dev {
    margin-top: 0.5rem;
  }

}

/* Small Mobile */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .section__title {
    font-size: 1.75rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .page-hero__title {
    font-size: 2rem;
  }
}

/* ==========================
   ANIMATIONS
   ========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ==========================
   PRINT STYLES
   ========================== */
@media print {
  .header,
  .footer,
  .whatsapp-float,
  .nav__toggle {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }
}
