/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap');

/* ========== General Styles ========== */
html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #454545;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito Sans', sans-serif;
}

/* ========== Top Bar ========== */
.top-bar {
    width: 100%;
    background: #0c1b50;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 0;
    position: relative;
}

.top-bar-title {
    color: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 2.2em;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-left: 10%;
}

/* Navigation below top bar */
.main-nav {
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
    min-height: 56px;
    padding: 0;
    position: relative;
}
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 10%;
}
.main-nav ul li {
    margin: 0 16px;
}
.main-nav ul li a {
    color: #0c1b50;
    background: none;
    font-size: 1em;
    padding: 10px 12px;
    text-decoration: none;
    transition: color 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #dc337d;
}
.main-nav ul li .contact-btn {
    background: #748938;
    color: #fff;
    border-radius: 20px;
    padding: 8px 20px;
    margin-left: 10px;
    font-size: 1em;
}
.main-nav ul li .contact-btn:hover {
    background: #4b6576;
    color: #fff;
}

/* Dropdown styles */
.main-nav ul li.dropdown {
    position: relative;
}
.main-nav ul li .dropdown-toggle::after {
    content: " ▼";
    font-size: 0.7em;
}
.main-nav ul li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 0;
    margin: 0;
}
.main-nav ul li .dropdown-menu li a {
    color: #0c1b50;
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    font-size: 16px;
}
.main-nav ul li.dropdown:hover .dropdown-menu,
.main-nav ul li.dropdown:focus-within .dropdown-menu {
    display: block;
}

/* Divider under nav */
.nav-divider {
    width: 100%;
    height: 1px;
    background: #ccc;
    margin: 0;
}

/* ========== Navigation ========== */
nav {
    background-color: #fff;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 8%;
    box-sizing: border-box;
    border-bottom: 1px solid #ccc;
}

.nav-logo {
    color: #0c1b50;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 2.2em;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 20px;
    display: flex;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: #0c1b50;
    font-size: 16px;
    padding: 10px 15px;
    position: relative;
}

nav ul li a.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background-color: #dc337d;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav ul li .contact-btn {
    margin-left: 10px;
    padding: 10px 26px;
    font-size: 1em;
    margin-top: 0;
}

/* ========== Main Section ========== */
.section-wrapper {
    width: 100%;
}

.section-content {
    width: 70%;
    max-width: 1080px;
    min-width: 280px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: left;
}

/* ========== Contact Section ========== */
.contact-flex {
  display: flex;
  gap: 2.5em;
  max-width: 900px;
  margin: 2.5em auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 2.5em 2em;
}
.contact-info-col {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5em;
  border-right: 1px solid #eee;
  padding-right: 2em;
}
.contact-info-col h1 {
  margin-top: 0;
  font-size: 2.2em;
  font-weight: 700;
  color: #0077b6;
  margin-bottom: 1.2em;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 1.15em;
  color: #2a2a2a;
  margin-bottom: 0.2em;
}
.contact-detail svg {
  width: 1.5em;
  height: 1.5em;
  fill: #0077b6;
  flex-shrink: 0;
}
.contact-form-col {
  flex: 1 1 320px;
  padding-left: 2em;
  padding-right: 2em;
}
.contact-form-col form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.contact-form-col label {
  font-weight: 600;
  margin-bottom: 0.3em;
  color: #333;
}
.contact-form-col input,
.contact-form-col textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.1em;
  font-family: inherit;
  background: #fafbfc;
  transition: border 0.2s;
  margin-bottom: 0.8em;
}
.contact-form-col input:focus,
.contact-form-col textarea:focus {
  border-color: #0077b6;
  outline: none;
}
.contact-form-col textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-btn {
  background: #e94e77; /* Use your nav highlight pink */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.9em 2.2em;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5em;
  display: block;
  width: 100%;
}
.contact-btn:hover {
  background: #c13c61; /* A darker shade for hover, optional */
}

/* Responsive adjustments */
@media (max-width: 900px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 0 4%;
    }
    .section-content {
        width: 98%;
        padding: 16px 0;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        width: 95%;
    }
    .footer {
        height: auto;
        padding: 40px 0;
    }
    .contact-flex {
      flex-direction: column;
      padding: 1.5em 0.5em;
    }
    .contact-info-col {
      border-right: none;
      border-bottom: 1px solid #eee;
      padding-right: 0;
      padding-bottom: 2em;
    }
    .contact-form-col {
      padding-left: 0;
      padding-right: 0;
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    nav ul li {
        margin: 10px 0;
    }
    .section-content {
        width: 100%;
        padding: 8px 0;
    }
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }
    .footer {
        padding: 24px 0;
    }
    h2, h1 {
        font-size: 1.3em;
    }
}

/* ========== Button Styles ========== */
.contact-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background-color: #e94e77; /* Pink highlight */
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-family: 'Nunito Sans', 'Poppins', sans-serif;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
    cursor: pointer;
}

.contact-btn:hover {
    background-color: #c13c61;
}

/* ========== Footer ========== */
.footer {
    background: #222;
    color: #fff;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 80%;
    max-width: 1200px;
    gap: 40px;
}

.footer-col {
    font-family: 'Nunito Sans', 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 2;
}

/* ========== Bottom Bar ========== */
.bottom-bar {
    height: 50px;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito Sans', 'Poppins', sans-serif;
    font-size: 1rem;
}

/* Navigation placeholder */
#nav-placeholder {
    display: none;
}
#nav-placeholder.loaded {
    display: block;
}

/* ========== Slider & Video Containers ========== */
.slider-map-container,
.video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 0.2em auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.slider-map-container iframe,
.video-container video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
  height: auto;
  min-height: 180px;
  max-width: 900px;
  border: none;
}

/* ========== Juxtapose Slider Responsive ========== */
#juxtapose-slider {
  width: 100vw;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 180px;
  margin: 0 auto;
}

/* ========== Embed Button & Popup ========== */
.embed-btn-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 1em auto;
  position: relative;
  gap: 0.5em;
}

.embed-popup {
  display: none;
  position: absolute;
  right: 0;
  top: 42px;
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: 320px;
  min-width: 180px;
  box-sizing: border-box;
}

.embed-btn {
  background: #dc337d;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 1em;
  cursor: pointer;
  opacity: 0.85;
  z-index: 10;
}

@supports not (aspect-ratio: 16 / 9) {
  #brumadinho-iframe,
  #mariana-iframe,
  #linhares-iframe {
    height: calc(900px * 0.5625);
    max-width: 900px;
  }
}
