/* ==========================================================================
   LSLOG - Modern Light Corporate CSS (Official Brand Color #ef5037)
   ========================================================================== */

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

:root {
  /* Official Brand Colors (Synchronized with Portal #ef5037) */
  --bg-body: #ffffff;
  --bg-alt: #f9fafb;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-input: #ffffff;
  
  --primary-500: #ef5037; /* Official LSLOG Coral Orange/Red */
  --primary-600: #d43d25;
  --primary-700: #c0301a;
  --primary-50: #fff5f3;
  
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  
  --text-main: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  
  --border-subtle: #e5e7eb;
  --border-active: #ef5037;
  --border-glow: rgba(239, 80, 55, 0.25);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 12px 30px rgba(239, 80, 55, 0.15);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--primary-500);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
}

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

.section-padding {
  padding: 5.5rem 0;
}

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

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .lead {
  margin: 0.8rem auto 0;
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-500);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 80, 55, 0.35);
}

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(239, 80, 55, 0.45);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary-500);
  color: var(--primary-500);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary-50);
  color: var(--primary-500);
  border: 1px solid rgba(239, 80, 55, 0.25);
}

.badge-emerald {
  background: #ecfdf5;
  color: var(--accent-emerald);
  border-color: rgba(5, 150, 105, 0.25);
}

/* Cards & Surfaces */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  height: 64px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

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

.logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav Menu Container (Desktop) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-500);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1002;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5.5rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 80, 55, 0.07) 0%, transparent 70%);
  top: 0;
  right: -100px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin: 1rem 0;
  line-height: 1.15;
  color: var(--text-main);
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.hero-card-visual {
  width: 100%;
}

.main-visual-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

/* Image Wrapper with Frosted Overlay Badge */
.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.hero-image-wrapper img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  display: block;
}

.image-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  z-index: 2;
  max-width: calc(100% - 24px);
}

.image-overlay-badge-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--primary-50);
  color: var(--primary-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stats Section */
.stats-section {
  background: var(--bg-alt);
  border-y: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-500);
  display: block;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Icon Box */
.icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(239, 80, 55, 0.2);
  transition: all var(--transition-fast);
}

.glass-card:hover .icon-box {
  background: var(--primary-500);
  color: #ffffff;
}

/* Segment Pill */
.segment-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.segment-pill:hover {
  border-color: var(--primary-500);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.segment-pill-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA Banner - Official Brand Gradient in #ef5037 with White Button */
.cta-banner {
  background: linear-gradient(135deg, #ef5037 0%, #c0301a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(239, 80, 55, 0.3);
  border: none;
}

.cta-banner h2, .cta-banner h3 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

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

.cta-banner .btn-primary {
  background: #ffffff;
  color: #ef5037;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-primary:hover {
  background: #fff5f3;
  color: #d43d25;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(239, 80, 55, 0.15);
}

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

/* Accordion */
.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  padding: 1.2rem 1.4rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-icon {
  transition: transform var(--transition-fast);
  color: var(--primary-500);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.accordion-item.active .accordion-content {
  padding: 0 1.4rem 1.4rem 1.4rem;
  max-height: 300px;
}

/* Certificacoes 3-Card List with PDF Icons */
.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.cert-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cert-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cert-links-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.cert-links-list li a:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-500);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(239, 80, 55, 0.12);
}

.cert-links-list li a .pdf-tag {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: auto;
  flex-shrink: 0;
}

/* Footer - Official Primary Brand Gradient #ef5037 -> #b82d17 */
.site-footer {
  background: linear-gradient(135deg, #ef5037 0%, #b82d17 100%);
  color: rgba(255, 255, 255, 0.92);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  margin-top: 5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
  color: #ffffff;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
  text-decoration: underline;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-fast);
}

.map-link:hover {
  background: #ffffff !important;
  color: #ef5037 !important;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .logo img {
    height: 28px;
  }

  .mobile-toggle {
    display: block;
  }

  /* Unified Mobile Drawer overlay */
  .nav-menu {
    display: none;
  }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    padding: 1.8rem 1.5rem 2.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
    align-items: stretch;
  }

  .nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    background: var(--bg-alt);
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    background: var(--primary-50);
    color: var(--primary-500);
    border: 1px solid rgba(239, 80, 55, 0.25);
  }

  .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-actions .btn {
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
  }

  /* Mobile Spacing & Typography */
  .container {
    padding: 0 1.25rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  /* SLA Stats Grid in 2 Columns on Mobile */
  .stats-section .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem 0.85rem;
  }

  .stat-number {
    font-size: 2.1rem;
  }

  .stat-label {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3.5rem;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .hero-image-wrapper img {
    height: 220px;
  }

  .image-overlay-badge {
    position: static;
    margin-top: 0.75rem;
    max-width: 100%;
    background: #ffffff;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  /* CTA Banners with Side Margins and Reduced Distance to Footer */
  .cta-banner {
    padding: 2.2rem 1.25rem;
    margin: 0 0.5rem;
    border-radius: var(--radius-lg);
  }

  .cta-banner h2, .cta-banner h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .cta-banner p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .cta-banner .btn {
    width: 100%;
  }

  .site-footer {
    margin-top: 2rem;
    padding-top: 3rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }
}
