:root {
  --color-primary: #d93b18; /* Red/Terracotta */
  --color-secondary: #f2b705; /* Yellow/Mustard */
  --color-brown: #9c5b12; /* Brown */
  --color-dark: #2c2c2c;
  --color-light: #f9f9f9;
  --color-white: #ffffff;

  --font-heading: "Merriweather", serif;
  --font-body: "Open Sans", sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-brown);
}

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

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

/* Top Bar */
.top-bar {
  background-color: var(--color-brown);
  color: var(--color-white);
  font-size: 0.9rem;
}

.top-bar a {
  color: var(--color-white);
  opacity: 0.8;
}

.top-bar a:hover {
  opacity: 1;
}

/* Navbar */
.navbar {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-brand img {
  transition: all 0.3s ease;
  max-height: 95px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
}

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

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
}

.btn-primary:hover {
  background-color: var(--color-brown);
  border-color: var(--color-brown);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
  border-radius: 50px;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--color-secondary);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hero Carousel - Responsive Styling */
.hero-carousel {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-color: var(--color-secondary);
  -webkit-mask-image: linear-gradient(to right, transparent, black);
  mask-image: linear-gradient(to right, transparent, black);
  z-index: 0;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
  .hero-carousel {
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.15; /* Imagem suave no fundo para não brigar com texto */
  }

  .hero-title {
    font-size: 2rem !important; /* Força bruta no tamanho e prioridade */
    word-wrap: normal !important; /* Impede quebra no meio da palavra */
    word-break: normal !important;
    hyphens: none !important;
    color: #ffffff !important; /* Branco forçado */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important; /* Sombra mais forte */
  }

  .hero-text {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
  }

  .hero-section {
    text-align: center;
    padding-bottom: 80px;
  }

  .hero-content {
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content .d-flex {
    justify-content: center;
  }
}

/* Ken Burns Effect & Smooth Fade */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 2s, 10s; /* 2s fade, 10s zoom */
  transition-timing-function: ease-in-out, linear;
  transform: scale(1.1); /* Zoom inicial */
  z-index: 0;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Garante que a imagem que está saindo fique por baixo da que entra */
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 2s ease-in-out, transform 10s linear;
  z-index: 0;
}

.carousel-fade .carousel-item-start.active,
.carousel-fade .carousel-item-end.active {
  opacity: 0;
  transform: scale(1.05);
}

/* Remove transform 3d to avoid glitch in some browsers during fade */
.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-start.active,
.carousel-fade .carousel-item-end.active {
  transform: translateX(0);
  transform: translate3d(0, 0, 0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--color-brown);
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

/* Organic Shapes / Dividers */
.shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.shape-fill-white {
  fill: var(--color-white);
}

.shape-fill-light {
  fill: var(--color-light);
}

/* Section Styling */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--color-brown);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: 0.5rem auto 0;
}

/* Cards */
.custom-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  background-color: var(--color-white);
  height: 100%;
}

.custom-card:hover {
  transform: translateY(-5px);
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.custom-card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-brown);
}

.card-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

/* About Section */
.about-img-wrapper {
  position: relative;
  display: inline-block; /* Garante que o wrapper envolva apenas a imagem */
}

.about-img-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  background-color: var(--color-secondary);
  z-index: -1;
  border-radius: 50%; /* Fundo circular também */
}

.about-img {
  border-radius: 50%; /* Transforma a imagem em círculo */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Common Page Hero */
.page-hero {
  position: relative;
  padding: 100px 0;
  color: #fff;
  text-align: center;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(44, 44, 44, 0.9) 0%,
    rgba(156, 91, 18, 0.8) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero .breadcrumb {
  justify-content: center;
  margin-bottom: 0;
  opacity: 0.8;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
}

.page-hero .breadcrumb-item.active {
  color: var(--color-secondary);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
  background-color: #2c2c2c; /* Dark styling like example */
  color: #fff;
  position: relative;
  /* margin-top: auto is handled by bootstrap class mt-auto in layout */
}

/* Removed the top border image that was causing visual noise */
.footer::before {
  display: none;
}

.footer-logo {
  /* Removed invert to show original logo colors if needed, or adjust brightness differently */
  /* filter: brightness(0) invert(1); */
  max-height: 80px; /* Adjust size if needed */
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Add white background for visibility */
  padding: 10px;
  border-radius: 8px;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
}

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

.footer-bottom {
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Organic blobs for background */
.blob-bg {
  position: absolute;
  z-index: -1;
  opacity: 0.1;
}
