:root {
  /* Palette - Light & Delicate */
  --primary-color: #0B4F63;
  /* Azul petróleo - Texto/Forte */
  --secondary-color: #2E7A8A;
  /* Azul médio - Botões */
  --accent-color: #6FA6B2;
  /* Azul claro técnico */
  --accent-soft: #DDEEF0;
  /* Azul muito claro - Fundos */
  --bg-white: #FFFFFF;
  --bg-soft: #F5F9FA;
  /* Off-white azulado */
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;

  --shadow-soft: 0 10px 30px rgba(11, 79, 99, 0.08);
  --shadow-hover: 0 15px 40px rgba(11, 79, 99, 0.15);

  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --radius-soft: 12px;
  --radius-pill: 50px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-soft);
  color: var(--text-gray);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 300;
}

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 600;
  /* Lighter weight for elegance */
  line-height: 1.3;
}

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

/* Header - Glassmorphism Light */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
  transition: padding 0.3s;
}

.header.scrolled {
  padding: 15px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.nav-links li a:hover {
  color: var(--secondary-color);
}

/* Updated Buttons - Softer */
.btn-cta {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid var(--secondary-color);
  box-shadow: 0 5px 15px rgba(46, 122, 138, 0.2);
}

.btn-cta:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 79, 99, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary-color);
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid var(--secondary-color);
}

.btn-outline:hover {
  background-color: var(--accent-soft);
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Carousel */
.hero-carousel {
  padding: 0;
  /* Full width/height, no padding */
  margin-top: 90px;
  /* Space for fixed header */
  position: relative;
  width: 100%;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Custom Navigation Colors */
.swiper-button-next,
.swiper-button-prev {
  color: var(--bg-white);
  /* White arrows */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.swiper-pagination-bullet-active {
  background: var(--bg-white);
}

/* Reduce general section padding to balance the big hero */
section {
  padding: 80px 0;
}

/* Sections General */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 400;
  color: var(--primary-color);
}

.section-title p {
  color: var(--text-light);
  font-weight: 400;
}

/* About Section */
.about {
  background-color: var(--bg-white);
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-gray);
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
}

/* Features/Offers Section - Soft Cards */
.features {
  background-color: var(--bg-soft);
}

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

.feature-card {
  background: var(--bg-white);
  padding: 50px 30px;
  border-radius: var(--radius-soft);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  /* Very subtle shadow */
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
  background: var(--accent-soft);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 500;
}

/* Segments Section - Redesigned */
.segments {
  background-color: var(--bg-white);
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.segment-card {
  background: var(--bg-white);
  border: 1px solid #EAEAEA;
  border-radius: var(--radius-soft);
  padding: 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.segment-card:hover {
  border-color: var(--secondary-color);
  background: var(--bg-soft);
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.segment-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--accent-soft);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.segment-card:hover .segment-icon-wrapper {
  background: var(--primary-color);
  color: var(--bg-white);
}

.segment-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

/* History Section */
.history {
  background-color: var(--bg-soft);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-left: 1px solid #D1D1D1;
  padding-left: 40px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -50px;
  top: 5px;
  width: 14px;
  height: 14px;
  background-color: var(--bg-white);
  border: 3px solid var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(46, 122, 138, 0.1);
}

.timeline-year {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 300;
  margin-bottom: 10px;
}

/* Authority Section */
.authority {
  background: var(--primary-color);
  /* Solid Primary */
  color: var(--bg-white);
  text-align: center;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 4rem;
  color: var(--bg-white);
  margin-bottom: 5px;
  font-weight: 300;
}

.stat-item p {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}

/* CTA Footer */
.final-cta {
  background-color: var(--bg-white);
  text-align: center;
}

.final-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.final-cta h2 {
  margin-bottom: 20px;
  font-weight: 300;
}

.final-cta h2 strong {
  font-weight: 600;
  color: var(--primary-color);
}

.final-cta p {
  margin-bottom: 40px;
  font-size: 1.2rem;
  color: var(--text-gray);
}

/* Footer - Clean Light Footer */
footer {
  background-color: var(--bg-soft);
  padding: 80px 0 30px;
  border-top: 1px solid #EAEAEA;
  color: var(--text-gray);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-col .logo-footer img {
  height: 40px;
  margin-bottom: 20px;
  /* Ensure logo looks good on light bg (it is dark teal, so no filter needed) */
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-info i {
  color: var(--secondary-color);
  margin-top: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--secondary-color);
  border: 1px solid #EAEAEA;
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--bg-white);
  border-color: var(--secondary-color);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #EAEAEA;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Dimmed background */
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-white);
  padding: 40px;
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-soft);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.modal-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-body p {
  font-size: 0.95rem;
  margin-bottom: 25px;
  color: var(--text-gray);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-main);
  background: var(--bg-soft);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: var(--bg-white);
}

/* Responsive Updates */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-img-side {
    max-width: 80%;
    margin-top: 30px;
  }

  .about-grid {
    flex-direction: column;
  }

  .stats-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    background: var(--bg-white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-img-side {
    max-width: 100%;
  }

  /* Footer fixes */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}