/* D9S Global Service – Site Styles */
/* Theme based on logo: navy + green + Brazilian energy accents */

:root {
  --navy: #001A31;
  --navy-mid: #0A2540;
  --navy-light: #143552;
  --green: #0B6E3E;
  --green-bright: #00A86B;
  --blue: #1A5FB4;
  --yellow: #E8B923;
  --bg: #F2F3F5;
  --bg-card: #FFFFFF;
  --text: #0D1B2A;
  --text-muted: #5C6B7A;
  --border: #E2E5E9;
  --shadow: 0 4px 24px rgba(0, 26, 49, 0.08);
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Language visibility */
[data-lang] {
  display: none !important;
}
body.lang-en [data-lang="en"],
body.lang-pt [data-lang="pt"] {
  display: block !important;
}
body.lang-en span[data-lang="en"],
body.lang-pt span[data-lang="pt"],
body.lang-en a[data-lang="en"],
body.lang-pt a[data-lang="pt"],
body.lang-en button[data-lang="en"],
body.lang-pt button[data-lang="pt"] {
  display: inline !important;
}
body.lang-en option[data-lang="en"],
body.lang-pt option[data-lang="pt"] {
  display: block !important;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #D1D2D4; /* matches logo background grey */
  border-bottom: 1px solid #C5C6C8;
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 26, 49, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--green);
  font-weight: 600;
}

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

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

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

.lang-switch {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  padding: 0.35rem 0.7rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--navy);
  color: white;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #F2F3F5 0%, #E8ECF0 50%, #F0F4F2 100%);
}

.hero-content {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero-text h1 .accent {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 26, 49, 0.25);
}

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

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo-video-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 26, 49, 0.12);
  background: #EDEEEF;
}

.logo-video-wrap video {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.glow-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,107,0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

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

/* Sections common */
section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 750;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Services */
.services {
  background: var(--bg-card);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--green), var(--blue));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: white;
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

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

/* Approach / Why */
.approach {
  background: var(--bg);
}

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

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

.approach-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.approach-list .num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.approach-list h4 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

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

.approach-visual {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: white;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.approach-visual h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.approach-visual p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--yellow);
}

.stat span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Case Studies - Two clear cards side by side */
.cases {
  background: #F2F3F5;
}

.cases-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
}

.case-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #E2E5E9;
  box-shadow: 0 8px 30px rgba(0, 26, 49, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-card-top {
  background: #001A31;
  color: white;
  padding: 1.75rem;
}

.case-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #E8B923;
  background: rgba(232, 185, 35, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.case-card-top h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.6rem 0;
  color: white;
}

.case-client {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.case-card-content {
  padding: 1.75rem;
  flex: 1;
}

.case-block {
  margin-bottom: 1.4rem;
}

.case-block:last-child {
  margin-bottom: 0;
}

.case-block strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #001A31;
  margin-bottom: 0.4rem;
}

.case-block p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5C6B7A;
  margin: 0;
}

.case-block.result {
  background: #F0F7F3;
  border-left: 4px solid #0B6E3E;
  padding: 1rem 1.15rem;
  border-radius: 0 8px 8px 0;
}

.case-block.result strong {
  color: #0B6E3E;
}

.case-block.result p {
  color: #0D1B2A;
  font-weight: 500;
}

@media (max-width: 700px) {
  .cases-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Contact */
.contact {
  background: var(--bg-card);
}

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

.contact-info h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.contact-form {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: white;
  transition: border-color 0.2s;
}

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

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

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Footer */
footer {
  background: var(--navy);
  color: white;
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-brand img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-brand span {
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-group {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .logo-video-wrap {
    max-width: 320px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }
  section {
    padding: 3.5rem 1rem;
  }
  .stat-row {
    flex-direction: column;
    gap: 1rem;
  }
}
