/* Custom overrides to match the provided design (full page + responsive) */

/* Base */
html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #23343f;
  -webkit-font-smoothing: antialiased;
}

/* Make box-sizing consistent to avoid overflow calculations */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Ensure containers respect page padding and don't allow children overflow */
.container,
.container-fluid {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Prevent long words/URLs from overflowing their parent boxes */
p,
li,
h1,
h2,
h3,
h4,
h5,
h6,
.icon-box p,
.info-box p,
.section-title p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Make sure icon and info boxes don't overflow on small screens */
.icon-box,
.info-box {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure iframe (map) scales within column */
iframe {
  max-width: 100%;
}

/* Clip any accidental overflow horizontally while preserving vertical scroll */
body {
  overflow-x: hidden;
}

/* Top bar (thin blue strip) */
#topbar {
  background: #014B7A;
  color: #ffffff;
  padding: 6px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

#topbar .contact-info a,
#topbar .contact-info span {
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
}

#topbar .social-links a {
  color: #ADC8E1;
  margin-left: 8px;
  transition: color 0.15s ease;
}

#topbar .social-links a:hover {
  color: #7696A8;
}

/* Footer social icons - same style as topbar */
#footer .social-links a {
  color: #547C92;
  margin-right: 0.75rem;
  transition: color 0.15s ease;
}

#footer .social-links a:hover {
  color: #7696A8;
}

/* Header below topbar */
header#header {
  background: #ffffff;
  padding: 12px 0;
  box-shadow: none;
  position: fixed;
  top: 35px;
  /* height of topbar */
  left: 0;
  right: 0;
  z-index: 1029;
  border-bottom: 1px solid rgba(35, 52, 63, 0.06);
}

header#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header#header .logo img {
  max-height: 55px;
  width: auto;
}

/* Navigation */
nav.navbar {
  padding: 0;
}

nav.navbar ul {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav.navbar ul li a {
  color: #23343f;
  font-weight: 600;
  padding: 8px 6px;
  text-decoration: none;
}

/* make sure nav links are dark and override other rules */
nav.navbar ul li a {
  color: #23343f !important;
}

nav.navbar ul li a:hover {
  color: #016d96;
}

nav.navbar ul li a.active {
  color: #014B7A;
  border-bottom: 3px solid #014B7A;
  padding-bottom: 5px;
}

.contact-info i {
  font-style: normal !important;
  column-gap: .5rem;
}

/* Hero (large banner) */
#hero {
  position: relative;
  /* background image is relative to this CSS file: go up one folder to assets/img */
  background-image: url("../img/background_inicial.png");
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 800px;
  display: flex;
  align-items: center;
  padding-top: 120px;
  /* account for topbar + header fixed */
  box-sizing: border-box;
  overflow: hidden;
}

/* soft white gradient overlay on left so text is readable */
#hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

#hero .container {
  max-width: 1200px;
  position: relative;
  z-index: 2;
  padding-left: 60px;
}

#hero h1 {
  font-size: 72px;
  font-weight: 800;
  color: #111111;
  margin: 0 0 8px 0;
  line-height: 1.02;
}

#hero h1 span {
  color: #014B7A;
}

#hero h2 {
  font-size: 20px;
  color: #6b6b6b;
  margin-bottom: 20px;
}
#hero .hero-subtitle {
  font-size: 24px; /* um pouco maior */
  color: #6b6b6b !important; /* cinza escuro */
  margin-bottom: 20px;
}

/* ensure hero headings are dark even if other rules apply */
#hero h1,
#hero h2 {
  color: inherit !important;
}

.btn-get-started {
  background: #014B7A;
  color: #fff;
  padding: 12px 22px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
}

/* Ensure nav buttons keep white text and button padding (override nav link rule) */
.navbar .btn-get-started {
  color: #fff !important;
  background: var(--primary);
  padding: 12px 22px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
}

/* Page main spacing - push content below fixed header */
main#main {
  margin-top: 200px;
  /* topbar + header + some spacing */
}

/* Smaller components tweaks */
.section-title h2,
.section-title h3 {
  color: #23343f;
}

/* Responsiveness */
@media (max-width: 1200px) {
  #hero {
    height: 520px;
  }

  #hero .container {
    padding-left: 40px;
  }

  #hero h1 {
    font-size: 60px;
  }
}

@media (max-width: 992px) {

  /* collapse fixed header spacing on tablets */
  #topbar {
    position: relative;
  }

  /* Make header fixed on mobile so it's always visible */
  header#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
  }

  #hero {
    padding-top: 40px;
    height: 460px;
  }

  #hero::before {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0) 60%);
  }

  #hero .container {
    padding-left: 20px;
  }

  #hero h1 {
    font-size: 44px;
  }

  nav.navbar ul {
    gap: 12px;
  }
}

@media (max-width: 576px) {
  #hero {
    height: 420px;
  }

  #hero .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  #hero h1 {
    font-size: 32px;
    text-align: left;
  }

  #hero h2 {
    font-size: 16px;
  }

  .btn-get-started {
    padding: 10px 16px;
  }

  nav.navbar ul {
    display: none;
  }

  /* mobile nav will show via template JS */
  /* Account for fixed header height on mobile */
  main#main {
    margin-top: 64px;
  }
}

/* Theme variables */
:root {
  --primary: #014B7A;
  --primary-variant: #016d96;
  --accent: #547C92;
  --muted: #6b6b6b;
  --light-bg: #f7f9fb;
  --card-bg: #ffffff;
}

/* Section titles */
.section-title {
  text-align: left;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 6px 0;
}

.section-title h3 {
  font-size: 18px;
  color: #38515c;
  font-weight: 500;
  margin: 0 0 6px 0;
}

/* Services / Icon boxes */
.services .icon-box {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 6px 20px rgba(1, 75, 122, 0.06);
  transition: none;
  height: 100%;
}

.services .icon-box:hover {
  /* animações removidas */
  transform: none;
  box-shadow: 0 6px 20px rgba(1, 75, 122, 0.06);
}

.services .icon-box .icon {
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 14px;
}

.services .icon-box h4.title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.services .icon-box p.description {
  color: var(--muted);
  font-size: 14px;
}

/* About */
.about .content h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.about img.img-fluid {
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(1, 75, 122, 0.06);
}

.about .font-italic {
  font-size: 15px;
  color: #374b53;
}

/* Improve design for About list (Missão / Valores / Visão) */
.about ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about ul li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card-bg);
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(1,75,122,0.04);
  transition: none;
}
.about ul li i {
  font-size: 26px;
  color: var(--primary);
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about ul li div h5 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #23343f;
}
.about ul li div p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.about ul li:hover {
  /* animações removidas */
  transform: none;
  box-shadow: 0 8px 20px rgba(1,75,122,0.04);
  background: var(--card-bg);
}

@media (max-width: 768px) {
  .about ul li { flex-direction: row; }
}

/* FAQ */
.faq .question {
  background: transparent;
  padding: 18px 20px;
  border: 1px solid rgba(3, 75, 122, 0.06);
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin-bottom: 10px;
  color: #1f3b45;
}

.faq .question i {
  float: right;
  color: var(--primary-variant);
}

.faq .collapse p {
  padding: 12px 20px 20px 20px;
  margin: 0 0 12px 0;
  color: var(--muted);
}

/* Contact info boxes */
.info-box {
  background: var(--card-bg);
  padding: 18px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(1, 75, 122, 0.04);
}

.info-box i {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 8px;
}

/* Ensure contact info boxes in the Contact section have equal height */
#contact .row>[class*="col-"] {
  display: flex;
  align-items: stretch;
}

#contact .info-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
}

/* Contact form */
.php-email-form .form-control {
  border-radius: 6px;
  padding: 14px 16px;
  border: 1px solid #e6eef2;
}

.php-email-form button[type="submit"] {
  background: var(--primary);
  border: 0;
  padding: 12px 20px;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
}

.php-email-form button[type="submit"]:hover {
  background: var(--primary-variant);
}

/* Footer */
#footer {
  background: linear-gradient(180deg, #f6f9fb 0%, #eef6fa 100%);
  padding: 40px 0 16px 0;
  color: #234047;
}

#footer .footer-top {
  padding-bottom: 24px;
}

#footer h3 {
  color: var(--primary);
  font-size: 18px;
}

#footer .footer-links ul {
  list-style: none;
  padding: 0;
}

#footer .footer-links ul li a {
  color: #28515b;
  text-decoration: none;
}

#footer .footer-links ul li a:hover {
  color: var(--primary-variant);
}

/* Small helpers */
.text-muted-custom {
  color: var(--muted);
}

/* Utility: prevent line breaks inside the element */
.no-wrap {
  white-space: nowrap;
  display: inline-block;
}

/* Keep contact links visually identical to surrounding text */
.contact-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

/* Responsive tweaks for lists and spacing */
@media (max-width: 768px) {
  .services .icon-box {
    padding: 20px;
  }

  .section-title {
    text-align: center;
  }

  .section-title h2 {
    font-size: 24px;
  }
}

/* Remove default bullets for lists in main content and footer */
main#main ul,
#footer ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* ensure list items do not show any marker */
main#main ul li,
#footer ul li {
  list-style: none;
}

/* Mobile navbar behavior */
@media (max-width: 991px) {
  nav.navbar .mobile-nav-toggle {
    display: inline-block;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
  }

  nav.navbar ul {
    display: none;
    flex-direction: column;
    gap: 0;
  }

  nav.navbar.navbar-mobile ul {
    display: block;
    background: #fff;
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    padding: 12px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(1, 75, 122, 0.08);
    z-index: 2000;
    max-width: 100%;
    box-sizing: border-box;
    height: calc(100vh - 64px);
    overflow-y: auto;
  }

  nav.navbar.navbar-mobile ul li {
    margin: 0;
  }

  nav.navbar.navbar-mobile ul li a {
    display: block;
    padding: 10px 12px;
  }
}

@media (min-width: 992px) {
  nav.navbar .mobile-nav-toggle {
    display: none;
  }
}

/* Contact section background image and contrast helpers */
#contact {
  position: relative;
  background: rgba(1, 75, 122, 0.45);
  /* subtle blue overlay for legibility */
  background-size: cover;
  background-position: center center;
  padding: 60px 0;
  color: #fff;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../img/map-image.png");
  z-index: 0;
}

/* Keep container content above overlay */
#contact .container {
  position: relative;
  z-index: 1;
}

/* Make section title readable on the image */
#contact .section-title h2,
#contact .section-title h3 {
  color: #ffffff;
}

/* Info boxes should remain light for readability */
#contact .info-box {
  background: rgba(255, 255, 255, 0.96);
  color: #23343f;
}

#contact .info-box i {
  color: var(--primary);
}

/* Contact form inputs: keep them light on dark background */
#contact .php-email-form .form-control {
  background: rgba(255, 255, 255, 0.98);
  color: #23343f;
}

#contact .php-email-form button[type="submit"] {
  background: var(--primary);
}

@media (max-width: 768px) {
  #contact {
    padding: 40px 0;
  }
}