/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f9fafb;
  --color-bg-alt: #ffffff;
  --color-text: #192434;
  --color-muted: #6b7280;
  --color-muted-2: #838c95;
  --color-navy: #152a47;
  --color-navy-2: #1e3a63;
  --color-border: #e5e7eb;
  --color-card: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.375rem; }

p {
  color: var(--color-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

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

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

.logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav a.active {
  color: var(--color-muted-2);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--color-muted-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-navy);
  color: #f2f2f2;
}

.btn-primary:hover {
  background: var(--color-navy-2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========== Hero (Home) ========== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(21, 42, 71, 0.85), rgba(21, 42, 71, 0.55)),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 640px;
  padding: 4rem 0;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  background: var(--color-navy);
  color: #ffffff;
  padding: 5rem 0 4rem;
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  font-size: 1.0625rem;
}

/* ========== Feature Bar ========== */
.feature-bar {
  background: #7a8693;
  color: #ffffff;
  padding: 1.25rem 0;
}

.feature-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  font-size: 0.95rem;
}

.feature-bar-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.feature-bar-item svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

/* ========== Section ========== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
}

/* ========== Service Cards ========== */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(21, 42, 71, 0.08);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.center-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: var(--color-navy);
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ========== Clientes Grid ========== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.client-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.client-card img {
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(0);
  transition: filter 0.3s ease;
}

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

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Sobre / About ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-grid h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.about-grid p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-muted);
}

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

.mvv-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy);
  border-radius: var(--radius);
  padding: 2rem;
}

.mvv-card h3 {
  color: var(--color-navy);
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.mvv-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.partner-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.partner-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-serif);
  font-size: 2rem;
}

.partner-card h3 {
  margin-bottom: 0.25rem;
}

.partner-role {
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.partner-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ========== Contato Page ========== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
  max-width: 720px;
}

.info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-content {
  flex: 1;
  min-width: 0;
  padding-top: 0.125rem;
}

.info-content h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.375rem;
  color: var(--color-text);
}

.info-content p,
.info-content a {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  word-break: break-word;
}

.info-content a {
  display: inline-block;
}

.info-content a:hover {
  color: var(--color-navy);
}

.informacoes-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

/* ========== Trabalhe Conosco ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.benefit-card .card-icon {
  margin: 0 auto 1.25rem;
}

.cv-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 720px;
  margin: 3rem auto 0;
}

.cv-box h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cv-box p {
  margin-bottom: 1.5rem;
}

/* -- Formulario Curriculo -- */
.cv-form {
  text-align: left;
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-group label .required {
  color: #dc2626;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(21, 42, 71, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* File upload */
.file-upload {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-upload:hover,
.file-upload.dragover {
  border-color: var(--color-navy);
  background: rgba(21, 42, 71, 0.03);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.file-upload-content svg {
  width: 32px;
  height: 32px;
  color: var(--color-muted-2);
}

.file-upload-content span {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.file-upload.has-file {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.04);
}

.file-upload.has-file .file-upload-content svg {
  color: #16a34a;
}

.file-upload.has-file .file-upload-content span {
  color: #16a34a;
  font-weight: 500;
}

/* Submit button block */
.btn-block {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
}

.btn-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Feedback */
.form-feedback {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
}

.form-feedback.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-feedback.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ========== Clientes page ========== */
.empty-state {
  background: #ffffff;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.empty-state h3 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 1.5rem;
  margin-top: 0;
}

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

.footer-brand img {
  width: 96px;
  height: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a,
.footer-col ul li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .nav,
  .header-phone {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav.open a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav.open a:last-child {
    border-bottom: 0;
  }
  .hero {
    min-height: 540px;
  }
  .hero-content {
    padding: 3rem 0;
  }
  .section {
    padding: 3.5rem 0;
  }
  .page-hero {
    padding: 3.5rem 0 3rem;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
