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

/* Color Variables */
:root {
  --cdl-blue: #10488c; /* Cor azul exata do logotipo CDL */
  --cdl-yellow: #FFCD00; /* Cor amarela oficial da CDL */
  --primary-gradient: linear-gradient(135deg, #000529 0%, #001740 35%, #004880 75%, #0074d9 100%);
  --blue-gradient: linear-gradient(90deg, var(--cdl-blue) 0%, #0074d9 100%);
  --primary-blue: #0074d9;
  --cdl-green: #00A651;
  --dark-navy: #000529;
  --heading-color: #0c1c30;
  --body-color: #6a768c;
  --border-light: #eef2f6;
  --bg-light: #f9fbff;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--body-color);
  line-height: 1.65;
  background: #ffffff;
  overflow-x: hidden;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 600;
  line-height: 1.25;
}

/* Typography Helpers */
.text-white { color: #ffffff !important; }
.text-center { text-align: center !important; }
.font-weight-bold { font-weight: 700 !important; }

/* Spacing */
.ptb-90 {
  padding-top: 90px;
  padding-bottom: 90px;
}

.pb-90 {
  padding-bottom: 90px;
}

/* Header & Menu */
header.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.header.header-fixed {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
}

.logo {
  margin-left: max(50px, calc((100% - 1200px) / 2));
  transition: all 0.3s ease;
}

.logo img {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
}

header.header.header-fixed .logo img {
  height: 70px;
}

.mainmenu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: max(50px, calc((100% - 1200px) / 2));
  transition: all 0.3s ease;
}

.mainmenu ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 12px;
}

.mainmenu ul li a {
  color: #0c1c30;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1.5px solid transparent;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.mainmenu ul li a:hover,
.mainmenu ul li a.active {
  color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
  background: transparent !important;
}

.nav-buttons .appao-btn {
  border-color: var(--primary-blue) !important;
  color: var(--primary-blue) !important;
}

.nav-buttons .appao-btn:hover {
  background: var(--primary-blue) !important;
  color: #ffffff !important;
}

/* Appao Buttons */
.appao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border: 2px solid #ffffff;
  border-radius: 50px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.appao-btn:hover {
  background: #ffffff;
  color: var(--primary-blue) !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.appao-btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--blue-gradient);
  transition: all 0.3s ease;
  cursor: pointer;
}

.appao-btn2:hover {
  background: transparent;
  color: var(--primary-blue) !important;
  box-shadow: 0 8px 24px rgba(0, 116, 217, 0.15);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-area {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding: 120px 50px 80px;
  overflow: hidden;
  background: var(--primary-gradient);
}

.hero-area video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 5, 41, 0.88) 0%, rgba(0, 23, 64, 0.8) 50%, rgba(0, 116, 217, 0.6) 100%);
  z-index: 1;
}

.hero-container-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-area-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-area-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.stat-item h3 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.stat-item p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.mockup-container {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 570px;
  background: #000;
  border: 12px solid #1a1a1a;
  border-radius: 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-screen {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* Section Title */
.sec-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.sec-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  padding-bottom: 24px;
}

.sec-title-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 140px;
  height: 2px;
  background: var(--primary-blue);
  transform: translateX(-50%);
}

.sec-title-border span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--primary-blue);
  border: 2px solid #ffffff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.sec-title p {
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
  color: var(--body-color);
}

/* Grid Layouts */
.grid-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

/* About Box */
.single-about-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  position: relative;
}

.single-about-box:hover,
.single-about-box.active {
  box-shadow: 0 16px 40px rgba(0, 116, 217, 0.08);
  border-color: transparent;
  transform: translateY(-5px);
}

.single-about-box i {
  font-size: 40px;
  color: var(--primary-blue);
  margin-bottom: 24px;
  display: inline-block;
}

.single-about-box h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.single-about-box p {
  font-size: 14px;
  color: var(--body-color);
}

/* Feature Split Layout */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.feature-split-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feature-split-list.align-right {
  align-items: flex-end;
  text-align: right;
}

.feature-split-list.align-left {
  align-items: flex-start;
  text-align: left;
}

.single-feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-split-list.align-right .single-feature-item {
  flex-direction: row-reverse;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.single-feature-item:hover .feature-icon {
  background: var(--blue-gradient);
  border-color: transparent;
  color: #ffffff !important;
  transform: scale(1.1);
}

.feature-icon i {
  font-size: 20px;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.single-feature-item:hover .feature-icon i {
  color: #ffffff;
}

.feature-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 13px;
  color: var(--body-color);
  max-width: 280px;
}

/* Youtube Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.video-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.video-info {
  padding: 24px;
}

.video-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.video-info p {
  font-size: 13px;
  color: var(--body-color);
}

/* News Section styling */
.news-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.news-img {
  aspect-ratio: 16/10;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #7a8a9e;
}

.news-content {
  padding: 24px;
  flex: 1;
}

.news-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.news-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.35;
}

.news-content p {
  font-size: 13px;
  color: var(--body-color);
}

/* Contact Overlap Styling */
.contact-outer-container {
  position: relative;
  z-index: 10;
  background: var(--bg-light);
  padding-bottom: 60px;
}

.contact-overlap-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 5, 41, 0.08);
  border: 1px solid var(--border-light);
  margin-top: -120px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 12;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 116, 217, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-text span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-text p {
  font-size: 14px;
  font-weight: 500;
  color: var(--heading-color);
  margin-top: 2px;
}

/* Form Styling */
.contact-form-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d8dfe8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--heading-color);
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary-blue);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Map frame */
.map-frame {
  height: 380px;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer Section */
footer.footer-area {
  background: var(--dark-navy);
  padding: 60px 50px 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer.footer-area .footer-logo img {
  height: 52px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

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

.copyright {
  font-size: 12px;
}

/* Hamburger mobile menu button */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  margin-right: max(50px, calc((100% - 1200px) / 2));
  transition: all 0.3s ease;
}

.hamburger-menu span {
  width: 28px;
  height: 3px;
  background: var(--dark-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  header.header {
    padding: 10px 0;
  }
  .logo {
    margin-left: max(30px, calc((100% - 1200px) / 2));
  }
  .mainmenu {
    margin-right: max(30px, calc((100% - 1200px) / 2));
  }
  .hamburger-menu {
    margin-right: max(30px, calc((100% - 1200px) / 2));
  }
  .hero-container-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-area-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .trust-stats {
    justify-content: center;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-split {
    grid-template-columns: 1fr;
  }
  .feature-split-list.align-right {
    align-items: flex-start;
    text-align: left;
  }
  .feature-split-list.align-right .single-feature-item {
    flex-direction: row;
  }
  .contact-overlap-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
  .mainmenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-navy);
    flex-direction: column;
    justify-content: center;
    padding: 50px 30px;
    transition: all 0.4s ease;
    z-index: 999;
  }
  .mainmenu.active {
    right: 0;
  }
  .mainmenu ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .mainmenu ul li a {
    display: block;
    font-size: 16px;
    padding: 12px 16px;
  }
  .hero-area-content h1 {
    font-size: 36px;
  }
  .grid-3, .grid-2, .videos-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth Scroll and Nav offset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Video Parallax Area */
.video-parallax-area {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1200');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}

.video-parallax-area .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 5, 41, 0.78);
  z-index: 1;
}

.popup-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 50%;
  color: var(--primary-blue);
  font-size: 28px;
  padding-left: 6px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  animation: pulse-glow 2s infinite;
  position: relative;
  z-index: 5;
  cursor: pointer;
}

.popup-play-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: scale(1.05);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Diferenciais Section Styling (CDL Blue Background) */
#diferenciais {
  background: var(--dark-navy) !important;
  color: #ffffff;
}

#diferenciais .sec-title h2 {
  color: #ffffff;
}

#diferenciais .sec-title p {
  color: rgba(255, 255, 255, 0.85);
}

#diferenciais .sec-title-border {
  background: #ffffff;
}

#diferenciais .sec-title-border span {
  background: #ffffff;
  border-color: var(--cdl-blue);
}

#diferenciais .feature-text h4 {
  color: #ffffff;
}

#diferenciais .feature-text p {
  color: rgba(255, 255, 255, 0.8);
}

#diferenciais .feature-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  align-self: flex-start;
  margin-top: 4px;
}

#diferenciais .feature-icon i {
  color: var(--cdl-yellow);
  font-size: 32px;
  transition: all 0.3s ease;
}

#diferenciais .single-feature-item:hover .feature-icon {
  background: transparent !important;
  border: none !important;
}

#diferenciais .single-feature-item:hover .feature-icon i {
  color: #ffffff !important;
  transform: scale(1.15);
}

/* Video Modal Lightbox */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 5, 41, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-content {
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  position: relative;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #ffffff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2001;
}

.video-modal-close:hover {
  color: var(--primary-blue);
  transform: scale(1.1);
}
