/*---------------------------------------
          FONT FACES
        -----------------------------------------*/
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis/Metropolis-Regular.woff2') format('woff2'),
    url('../fonts/Metropolis/Metropolis-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis/Metropolis-Light.woff2') format('woff2'),
    url('../fonts/Metropolis/Metropolis-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis/Metropolis-SemiBold.woff2') format('woff2'),
    url('../fonts/Metropolis/Metropolis-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis/Metropolis-Bold.woff2') format('woff2'),
    url('../fonts/Metropolis/Metropolis-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/*---------------------------------------
          CSS VARIABLES
        -----------------------------------------*/
:root {
  --white-color: #ffffff;
  --primary-color: #8FC9E2;
  --secondary-color: #184A61;
  --section-bg-color: #8FC9E2;
  --site-footer-bg-color: #184A61;
  --custom-btn-bg-color: #184A61;
  --custom-btn-bg-hover-color: #ffffff;
  --dark-color: #184A61;
  --p-color: #184A61;
  --border-color: #ffffff;

  --body-font-family: 'Metropolis', sans-serif;
  --h1-font-size: 52px;
  --h2-font-size: 46px;
  --h3-font-size: 32px;
  --h4-font-size: 28px;
  --h5-font-size: 24px;
  --h6-font-size: 22px;
  --p-font-size: 16px;
  --btn-font-size: 18px;
  --copyright-font-size: 14px;

  --border-radius-large: 100px;
  --border-radius-medium: 20px;
  --border-radius-small: 10px;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/*---------------------------------------
          GLOBAL STYLES
        -----------------------------------------*/
body {
  background-color: var(--white-color);
  font-family: var(--body-font-family);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -1px;
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: -2px;
}

h2 {
  color: var(--secondary-color);
  font-size: var(--h2-font-size);
  letter-spacing: -2px;
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  color: var(--primary-color);
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a {
  color: var(--p-color);
  text-decoration: none;
  touch-action: manipulation;
  transition: all 0.3s;
}

a:hover {
  color: var(--primary-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

.section-bg {
  background-color: var(--section-bg-color);
}

/*---------------------------------------
          NAVIGATION
        -----------------------------------------*/
.navbar {
  background: var(--white-color);
  z-index: 9;
  padding-top: 0;
  padding-bottom: 0;
}

.logo {
  padding-top: 5%;
  padding-bottom: 5%;
  flex: auto;
  width: 150px;
  height: auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
  margin-right: 0;
  margin-left: 0;
  padding: 20px;
}

.navbar-nav .nav-link {
  display: inline-block;
  color: var(--p-color);
  font-size: var(--p-font-size);
  position: relative;
  padding-top: 15px;
  padding-bottom: 15px;
}

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

/*---------------------------------------
          HERO SECTION
        -----------------------------------------*/
.hero-section {
  height: 680px;
  min-height: 680px;
  position: relative;
}

#hero-slide .carousel-item {
  height: 680px;
  min-height: 680px;
  position: relative;
}

.hero-image {
  width: 100%;
  min-height: 680px;
  object-fit: cover;
  object-position: top;
  border-radius: 0 !important;
}

.hero-text-overlay {
  position: absolute;
  bottom: 60px;
  left: 60px;
  color: white;
  text-align: left;
  z-index: 2;
}

.hero-text-overlay h1 {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 0.2rem;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  color: white;
}

.hero-text-overlay h2 {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1.3;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  color: white;
}

/*---------------------------------------
          CTA SECTION
        -----------------------------------------*/
.cta-section {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
}

.cta-section::before {
  content: "";
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: -100px;
  left: -30px;
  margin: auto;
  width: 200px;
  height: 200px;
}

.cta-section::after {
  content: "";
  border: 20px solid var(--custom-btn-bg-color);
  border-radius: 50%;
  position: absolute;
  bottom: -100px;
  right: 0;
  left: 0;
  margin: auto;
  width: 150px;
  height: 150px;
}

/*---------------------------------------
          FEATURED PRODUCTS SECTION
        -----------------------------------------*/
.featured-section {
  background-color: var(--white-color);
  padding-top: 100px;
  padding-bottom: 100px;
}

.featured-block {
  text-align: center;
  transition: all 0.5s ease;
  min-height: 256px;
  padding: 15px;
}

.featured-block:hover {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
}

.featured-block:hover .featured-block-image {
  transform: scale(0.75);
}

.featured-block-image {
  display: block;
  margin: auto;
  transition: all 0.5s;
}

.featured-block:hover .featured-block-text {
  margin-top: 0;
}

.featured-block-text {
  color: var(--primary-color);
  font-size: var(--h5-font-size);
  margin-top: 20px;
  transition: all 0.5s;
}

/*--------------------------------------- GALLERY SECTION (CAROUSEL) -----------------------------------------*/
.gallery-section {
  background-color: var(--section-bg-color);
  padding: 80px 0;
}

/* Main carousel container with side thumbnails */
.carousel-with-thumbnails {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Side thumbnail containers */
.thumbnail-preview {
  flex: 0 0 150px;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.thumbnail-preview:hover {
  opacity: 0.8;
}

.thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease-in-out;
  opacity: 0.6;
  /* base opacity */
}

.thumbnail-preview img.fade {
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}


/* Main carousel styling */
.main-carousel {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.carousel-item {
  text-align: center;
}

.carousel-item img.carousel-img {
  max-height: 70vh;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
  transition: height .3s ease;
}

/* Smooth slide transitions */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Custom navigation buttons */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: -60px;
}

.carousel-control-next {
  right: -60px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/*---------------------------------------
          CTT SERVICES SECTION
        -----------------------------------------*/
.ctt-services-section {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  padding: 80px 0;
}

.ctt-services-section h2 {
  color: var(--white-color);
}

.ctt-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.ctt-description-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
}

.ctt-services-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
}

.text-white {
  color: #ffffff !important;
}

.ctt-service-list {
  list-style: none;
  padding: 0;
}

.ctt-service-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  border-left: 4px solid #fff;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
}

.ctt-service-list li:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ctt-service-icon {
  font-size: 24px;
  margin-right: 20px;
  color: #fff;
  margin-top: 3px;
  flex-shrink: 0;
}

.ctt-service-content {
  flex-grow: 1;
}

.ctt-advantages-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

/*---------------------------------------
          HISTORY SECTION
        -----------------------------------------*/
.history-section {
  background-color: var(--section-bg-color);
  padding-top: 100px;
  padding-bottom: 100px;
}

.history-text-box {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  margin-bottom: 24px;
  padding: 40px;
}

.history-image {
  border-radius: var(--border-radius-medium);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-list {
  margin-bottom: 0;
  padding-left: 0;
}

.history-list-item {
  list-style: none;
  margin-top: 10px;
  margin-bottom: 10px;
}

.history-text-box-icon {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-large);
  color: var(--secondary-color);
  font-size: var(--h6-font-size);
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  width: 25px;
  height: 25px;
  line-height: 30px;
}

/*---------------------------------------
          ABOUT SECTION (CILA CUNHA)
        -----------------------------------------*/
.about-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.about-image {
  border-radius: var(--border-radius-medium);
  display: block;
  width: 350px;
  height: 400px;
  object-fit: cover;
}

.about-text-block {
  padding: 60px 40px;
}

.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--site-footer-bg-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--copyright-font-size);
  display: block;
  margin-right: 5px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 38px;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/*---------------------------------------
          LOCATION SECTION (MAP)
        -----------------------------------------*/
.location-section {
  background-color: var(--section-bg-color);
  padding: 80px 0;
}

.map-container {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/*---------------------------------------
          CONTACT SECTION
        -----------------------------------------*/
.contact-section {
  background: var(--white-color);
  padding-top: 100px;
  padding-bottom: 100px;
}

.contact-form {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  padding: 40px;
}

.contact-info-wrap {
  padding-top: 40px;
}

.custom-btn {
  background: var(--secondary-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-normal);
  line-height: normal;
  padding: 15px 25px;
}

.custom-btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/*---------------------------------------
          FORM STYLES
        -----------------------------------------*/
.custom-form .form-control {
  background-color: var(--section-bg-color);
  box-shadow: none;
  border: 0;
  color: var(--p-color);
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  outline: none;
}

.custom-form .form-control:hover,
.custom-form .form-control:focus {
  border-color: var(--secondary-color);
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s;
  margin-bottom: 0;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}

.contact-form .form-control {
  background: var(--white-color);
}

/*---------------------------------------
          FOOTER
        -----------------------------------------*/
.site-footer {
  background-color: var(--site-footer-bg-color);
  padding-top: 70px;
}

.footer-menu {
  column-count: 2;
  margin: 0;
  padding: 0;
}

.footer-menu-item {
  list-style: none;
  display: block;
}

.footer-menu-link {
  font-size: var(--p-font-size);
  color: var(--white-color);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 5px;
}

.site-footer-link {
  color: var(--white-color);
}

/*---------------------------------------
          RESPONSIVE STYLES
-----------------------------------------*/

/* Extra Large / Desktop */
@media screen and (max-width: 991px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .cta-section,
  .featured-section,
  .history-section,
  .about-section,
  .contact-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .navbar {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .navbar-expand-lg .navbar-nav {
    padding-bottom: 30px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 8px 20px;
  }

  .hero-section,
  #hero-slide .carousel-item {
    height: inherit;
  }

  .cta-section::before {
    width: 150px;
    height: 150px;
  }

  .cta-section::after {
    bottom: -60px;
    width: 100px;
    height: 100px;
  }

  .cta-section .row {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .about-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto 30px auto;
    display: block;
  }

  .about-text-block {
    padding: 20px 0 0 0;
  }

  .history-text-box {
    padding: 30px;
  }

  .contact-info-wrap {
    padding-top: 0;
  }

  .site-footer {
    padding-top: 50px;
  }
}

/* Medium devices (tablet) */
@media (max-width: 768px) {

  .hero-section,
  #hero-slide .carousel-item {
    height: 500px;
    min-height: 500px;
  }

  .hero-image {
    min-height: 500px;
  }

  .hero-text-overlay {
    bottom: 40px;
    left: 40px;
  }

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

  .hero-text-overlay h2 {
    font-size: 1.1rem;
  }

  .about-text-block {
    padding: 30px 20px;
    text-align: center;
  }

  .about-image {
    width: 80%;
    max-width: 350px;
    height: auto;
    margin: 0 auto 30px auto;
  }

  .carousel-with-thumbnails {
    flex-direction: column;
    gap: 15px;
  }

  .thumbnail-preview {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
  }

  .main-carousel {
    order: -1;
    max-width: 100%;
  }

  .carousel-control-prev,
  .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* Small devices (mobile) */
@media (max-width: 576px) {
  .gallery-section {
    padding: 60px 0;
  }

  .thumbnail-preview {
    flex: 0 0 60px;
    width: 60px;
    height: 45px;
  }

  .about-image {
    width: 85%;
    max-width: 350px;
    height: auto;
    margin: 0 auto 25px auto;
  }

  .hero-text-overlay {
    bottom: 30px;
    left: 30px;
  }

  .hero-text-overlay h1 {
    font-size: 2.2rem;
  }

  .hero-text-overlay h2 {
    font-size: 1rem;
  }

  .about-text-block {
    padding: 20px 15px;
    text-align: center;
  }

  .about-text-block h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .about-text-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .about-text-block .text-muted {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .social-icon {
    text-align: center;
    margin-top: 1.5rem;
  }

  .social-icon-link {
    width: 40px;
    height: 40px;
    line-height: 42px;
    margin: 0 8px;
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .thumbnail-preview { display: none; }
  .main-carousel { max-width: 100%; }

  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 26px; }
  h4 { font-size: 22px; }
  h5 { font-size: 20px; }

  .about-image {
    width: 70%;       /* smaller than before */
    max-width: 250px; /* reduce max width */
    height: auto;
    margin: 0 auto 20px auto;
  }
}
