/* ============================================
   SOMAR FACILITIES - CSS PRINCIPAL
   Design: Minimalismo Corporativo Moderno
   Cores: Azul Escuro (#1a3a52), Cinza, Branco
   ============================================ */

/* Reset e Variáveis */
:root {
  --primary: #1a3a52;
  --primary-light: #2563eb;
  --gray-dark: #6b7280;
  --gray-light: #f3f4f6;
  --gray-border: #e5e7eb;
  --white: #ffffff;
  --text-primary: #1a3a52;
  --text-secondary: #6b7280;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* 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;
  }
}

/* Seções */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

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

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  margin: 2rem 0;
}

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

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

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

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

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

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

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
  background-color: #0f2438;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 42px;          /* ajuste fino: 36–48px conforme preferir */
  width: auto;
  display: block;
}


/* Navegação */
nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Menu Mobile */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--gray-border);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: var(--transition);
}

.mobile-nav a:hover {
  background-color: var(--gray-light);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2438 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: #e5e7eb;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image {
  display: none;
}

@media (min-width: 1024px) {
  .hero-image {
    display: block;
  }
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

/* Cards */
.card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;

  /* cor do ícone */
  color: var(--primary-light);

  /* garante ícone “outline” */
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;

  display: block;
}


.card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
}

/* Seção About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  order: 2;
}

@media (min-width: 1024px) {
  .about-image {
    order: 1;
  }
}

.about-content {
  order: 1;
}

@media (min-width: 1024px) {
  .about-content {
    order: 2;
  }
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
}

.check-item{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

/* Zera qualquer marcador/bullet “fantasma” vindo de CSS antigo */
.check-item::before{
  content: none !important;
}

.check-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  
  fill: none;                 /* importante: não preencher o círculo */
  stroke: #256DFF;            /* azul */
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-item p {
  margin: 0;
}

/* Seção Services */
.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-header h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.accent-line {
  width: 4rem;
  height: 4px;
  background-color: var(--primary-light);
  margin: 0 auto 1.5rem;
}

.services-header p {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Seção Solutions */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.solution-item {
  border-left: 4px solid var(--primary-light);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.solution-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.solution-item p {
  margin: 0;
  color: var(--text-secondary);
}

/* Seção Stats */
.stats {
  background-color: var(--primary);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: center;
}

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

.stat-number {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;

  direction: ltr;              /* força leitura esquerda → direita */
  unicode-bidi: isolate;       /* impede reordenação do / */
}


.stat-label {
  color: #d1d5db;
  font-size: 1.125rem;
}

/* Seção CTA */
.cta {
  background-color: var(--gray-light);
}

.cta-content {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
}

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

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

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

.footer-section p {
  color: #d1d5db;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--white);
}

/* Utilitários */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.flex {
  display: flex;
}

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

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Responsivo */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* Imagem da seção Solutions */
.solutions-image img{
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  object-fit: cover;          /* mantém corte bonito se você limitar altura */
}

/* Se você quiser limitar a altura para ficar como na imagem 1 */
@media (min-width: 1024px){
  .solutions-image img{
    max-height: 360px;        /* ajuste fino: 320–420 conforme preferência */
  }
}

/* ===== Ícones sociais: outline (vazado) e sem corte ===== */
.social-links a{
  overflow: visible; /* evita corte no container */
}

.social-links svg{
  width: 1.25rem;
  height: 1.25rem;

  /* estilo vazado */
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;

  /* evita clipping do próprio SVG */
  overflow: visible !important;
  display: block;
}

/* Página: Gestão e Estrutura */
.page-hero {
  background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 60%);
  border-bottom: 1px solid var(--gray-border);
  padding: 3rem 0;
}

.page-hero .accent-line {
  margin: 0 0 1.25rem 0;
}

.page-hero p {
  max-width: 56rem;
}

.structure-grid {
  margin-top: 1.5rem;
}

.structure-card {
  position: relative;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
}

.structure-card:hover {
  box-shadow: var(--shadow-md);
}

.structure-icon {
  width: 28px;          /* antes estava grande demais */
  height: 28px;
  margin-bottom: 0.75rem;
  color: var(--primary-light);
}

.structure-card h3 {
  margin-bottom: .75rem;
}

.structure-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.structure-card li {
  margin-bottom: .5rem;
}

.structure-aside {
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-border);
  max-height: 420px;          /* limite visual */
}

.structure-aside img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

@media (min-width: 1024px) {
  .structure-icon {
    width: 26px;
    height: 26px;
  }
}

@media (min-width: 1280px) {
  .structure-aside {
    max-height: 380px;
  }
}

/* CTA final com “peso” visual */
.page-cta {
  background: var(--gray-light);
  border-top: 1px solid var(--gray-border);
}

/* HERO CONTATO */
.page-hero--contact {
  position: relative;
  background-image: url('/assets/images/contact-center.webp'); /* coloque a imagem anexa aqui */
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  color: var(--white);
}

.page-hero--contact .page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 58, 82, 0.9),
    rgba(26, 58, 82, 0.6)
  );
}

.page-hero--contact .container {
  position: relative;
  max-width: 720px;
}

.page-hero--contact h1 {
  color: var(--white);
}

.page-hero--contact p {
  color: #e5e7eb;
}

/* CONTATO */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-info h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info p {
  max-width: 32rem;
}

/* FORM */
.contact-form {
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--gray-border);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.services-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .services-cta {
    justify-content: flex-start;
  }
}
