/*
Theme Name: CAPA TRADING CORP
Description: Professional trading theme for CAPA TRADING CORP  - International Trading Solutions
Author: CAPA TRADING Team
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-blue: #4a6fa5;
  --primary-green: #2d5a3d;
  --accent-blue: #6b8ec7;
  --accent-green: #4a7c59;
  --dark-blue: #2c3e50;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --gold: #d4af37;
  --white: #ffffff;
}

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === CAPA TRADING HEADER FIXO E LINGUA === */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #0a1c2b !important;
  color: #ffffff;
  padding: 1rem 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  z-index: 9999;
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-header.is-scrolled,
.site-header.scrolled,
.site-header.shrink,
.site-header.hide,
.admin-bar .site-header {
  padding: 1rem 0 !important;
  background-color: #0a1c2b !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

.site-header[style*="transform"],
.site-header[style*="translateY"],
.site-header[style*="opacity: 0"],
.site-header[style*="display: none"] {
  transform: none !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}

/* --- CABEÇALHO CORRIGIDO --- */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.site-logo {
  max-width: 200px;
  flex-shrink: 0;
}

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

.header-right {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  min-width: 0;
  margin-left: 2rem; /* espaço fixo entre logo e nav */
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a.current {
  background-color: rgba(255,255,255,0.1);
  border-color: #d4af37;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 2rem;
}


.language-switch a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s;
  padding: 0.25rem;
}

.language-switch a:hover {
  opacity: 0.8;
}

.flag-icon {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
}




/* =================================================================
   Estilos Específicos para a Seção de Padrões de Qualidade
   ================================================================= */

/* O card principal para esta seção */
.int-quality-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.int-quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.int-quality-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* A lista de itens dentro do card */
.int-quality-list {
    margin-top: 1.5rem;
}

/* Cada item individual da lista (ex: a linha do ISO) */
.int-quality-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.int-quality-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* O ícone adicionado via CSS */
.int-quality-item::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-green);
    background-color: rgba(45, 90, 61, 0.1);
    border-radius: 50%;
    margin-top: 2px;
}

/* O título do item (ex: "ISO 22000") */
.int-quality-item-title {
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 1rem;
}

/* A descrição do item */
.int-quality-item-desc {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  margin-top: 70px;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-family: 'Open Sans', sans-serif;
}

.hero-section p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  font-weight: 400;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark-blue);
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  font-family: 'Open Sans', sans-serif;
}

.btn-primary:hover {
  background: #c19b26;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Content Sections */
.content-section {
  padding: 80px 0;
}

.content-section:nth-child(even) {
  background-color: var(--light-gray);
}

.content-section h2 {
  font-size: 2.5rem;
  color: var(--dark-blue);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
}

.content-section h3 {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
}

.content-section h4 {
  font-size: 1.4rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

/* Cards */
.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column; /* Empilha os itens verticalmente */
  align-items: center;   /* Centraliza tudo horizontalmente */
  text-align: center;    /* Garante que o texto dentro dos itens também seja centralizado */
}

.card-heading {
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.card-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-item {
  display: flex;
  gap: 0.5rem;
  line-height: 1.4
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card .btn-primary {
  display: block;
  margin: 2rem auto 0;
  text-align: center
}

.card p {
  text-align: center;
  max-width: 400px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

.temporary-admission-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.temporary-admission-card p {
  max-width: 400px;
  margin: 1rem auto 0;
  line-height: 1.6;
  text-align: center;
}

.temporary-admission-card .duration {
  margin: 0 auto 1rem;
  display: inline-block;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
  font-family: 'Open Sans', sans-serif;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.process-step {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  border-top: 4px solid var(--primary-green);
}

.process-number {
  background: var(--primary-green);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  font-family: 'Open Sans', sans-serif;
}

/* Tables */
.wp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wp-table th {
  background: var(--primary-blue);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
}

.wp-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  font-weight: 400;
}

.wp-table tr:hover {
  background-color: var(--light-gray);
}

/* Footer */
.site-footer {
  background-color: #0D1B2A;
  color: #ffffff;
  padding: 3rem 1rem 2rem;
  font-family: 'Open Sans', sans-serif;
}

.site-footer h3,
.site-footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer a,
.site-footer li,
.site-footer span {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  line-height: 1.8;
  font-weight: 400;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: #d4af37;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  text-align: left;
}

.company-info p {
  margin: 0.3rem 0;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #d4af37;
}

.contact-info p {
  margin: 0.25rem 0;
}

.services-info ul,
.specialties-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-info li,
.specialties-info li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.services-info li::before,
.specialties-info li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #d4af37;
  font-size: 1rem;
}

.stats-info .footer-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.footer-stat .stat-number {
  font-size: 1.4rem;
  color: #d4af37;
  font-weight: 700;
}

.footer-stat .stat-label {
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

.footer-navigation {
  margin-top: 2rem;
  text-align: center;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
}

.footer-menu a:hover {
  color: #d4af37;
}

.site-info {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2rem;
}

.site-info p {
  margin: 0.3rem 0;
}

.contact-links {
  margin-top: 0.5rem;
}

.contact-links a {
  margin: 0 0.5rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
}

.contact-links a:hover {
  color: #d4af37;
}


/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-blue);
  font-family: 'Open Sans', sans-serif;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

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

/* Temporary Admission Styles */
.temporary-admission-section h4 {
  font-size: 1.4rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
}

.temporary-admission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.temporary-admission-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left: 4px solid var(--accent-blue);
  transition: all 0.3s ease;
}

.temporary-admission-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.temporary-admission-card h4 {
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.duration {
  background: var(--accent-blue);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.benefits {
  background: rgba(74, 111, 165, 0.1);
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.benefits h5 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-weight: 600;
}


/* WordPress Specific */
.wp-block-group,
.wp-block-columns {
  margin: 0;
}

.alignwide,
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Custom Post Types */
.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left: 4px solid var(--primary-green);
  margin-bottom: 2rem;
}

.commodity-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  border-top: 3px solid var(--primary-green);
}

.commodity-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-family: 'Open Sans', sans-serif;
}

.commodity-volume {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.3rem;
  font-family: 'Open Sans', sans-serif;
}

.commodity-share {
  font-size: 0.9rem;
  color: var(--medium-gray);
  font-weight: 500;
}

/* Call to Action Section */
.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
}

.cta-container .btn-primary {
  display: inline-block;
  margin-top: 2rem;
  text-align: center;
  max-width: 280px;
  width: 100%;
}

.cta-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--dark-gray);
  font-weight: 400;
}

/* === DESIGN RESPONSIVO === */

/* Telas de Tablet */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    .hero-section p { font-size: 1.1rem; }
    .content-section { padding: 60px 0; }
    .content-section h2 { font-size: 2rem; }
    .temporary-admission-grid { grid-template-columns: 1fr; }
    .main-navigation ul { gap: 1rem; }
}

/* Telas de Celular */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .header-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1rem;
        gap: 1rem;
    }
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .main-navigation a {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    .language-switch {
        width: 100%;
        justify-content: flex-start;
    }
    .flag-icon {
        width: 16px;
        height: 16px;
    }
    .cta-container .btn-primary {
        max-width: 100%;
        padding: 0.75rem 1.25rem;
    }
    .cta-container h2 {
        font-size: 2rem;
    }
    .cta-lead {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
    .temporary-admission-card {
        padding: 1.5rem 1rem;
    }
    .temporary-admission-card p {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    .card p {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-info, .services-info, .specialties-info, .stats-info {
        margin-top: 2rem;
    }
    .footer-stat {
        justify-content: center;
    }
    .footer-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
}


/* =================================================================
   AJUSTES DE TAMANHO DE TEXTO (REGRAS FORTES)
   ================================================================= */

main#main .content-section p,
main#main .content-section .lead {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}

main#main .card p,
main#main .card li {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

main#main .hero-section p {
    font-size: 1.25rem !important;
}

main#main .temporary-admission-card p {
    font-size: 1rem !important;
}