/* CSS Custom Properties */
:root {
  --primary-color: #FFB800;
  --text-gray: #9CA3AF;
  --black: #000000;
  --white: #FFFFFF;
  --bg-gray: #F9FAFB;
  /* Bootstrap theme overrides */
  --bs-primary: #FFB800;
  --header-height: 72px;
  
  --font-bebas: 'Bebas Neue', cursive;
  --font-montserrat: 'Montserrat', sans-serif;
}

/* Improve mobile menu visibility */
@media (max-width: 991.98px) {
  .navbar-dark .navbar-toggler { border-color: rgba(255,255,255,.7); }
  .navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
  .navbar-dark .navbar-collapse.show,
  .navbar-dark .navbar-collapse.collapsing {
    background: rgba(0,0,0,0.95);
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .navbar-dark .navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .navbar-dark .navbar-nav .nav-link:last-child { border-bottom: 0; }
}

/* Torn paper separators */
.torn {
  height: 54px;
  background: url('../source/transition_bg.png') center/cover repeat-x;
}
.torn.flip {
  transform: rotate(180deg);
}

/* A Lenda do Oeste */
#about.lenda {
  background: #0f0f0f;
  color: var(--white);
  padding: 5rem 0;
}
#about .lenda-title {
  font-family: var(--font-bebas);
  color: var(--primary-color);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 1px;
}
#about .lenda-text {
  color: #d1d5db;
}
#about .metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
#about .metric {
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
#about .metric .value {
  font-family: var(--font-bebas);
  color: var(--primary-color);
  font-size: 2rem;
}
#about .metric .label {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Quality banner (5 icons in bordered strip) */
.quality-banner {
  padding: 5rem 0;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url('../source/Section_3_bg.jpg') center/cover fixed;
  color: var(--white);
}
.quality-strip {
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 1.25rem;
  background: rgba(0,0,0,0.35);
}
.quality-item {
  text-align: center;
}
.quality-item .qicon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,184,0,.15);
  color: var(--primary-color);
  border-radius: 10px;
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.quality-item h4 {
  font-family: var(--font-bebas);
  color: var(--white);
  margin: .25rem 0;
}
.quality-item p {
  color: #e5e7eb;
  font-size: .95rem;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: #f3f4f6 url('../source/transition_bg.png') center/900px repeat;
}
.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  height: 100%;
}
.testimonial-card .stars { color: var(--primary-color); }
.testimonial-author { font-weight: 600; }
.testimonial-role { color: #6b7280; font-size: .9rem; }

/* Final CTA */
.cta-join {
  padding: 4rem 0;
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url('../source/Last_section_bg.jpg') center/cover fixed;
  color: var(--white);
}
.cta-join .title {
  font-family: var(--font-bebas);
  color: var(--primary-color);
  font-size: clamp(2rem, 6vw, 3rem);
}
.cta-join .form-control { height: 52px; }
.cta-join .btn { height: 52px; padding: 0 1.25rem; }

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-montserrat);
  line-height: 1.6;
  color: var(--black);
}

/* Bootstrap overrides */
.btn-primary {
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-bg: #ffd24d;
  --bs-btn-hover-border-color: #ffd24d;
  --bs-btn-color: #000;
}

.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: #000;
}

.navbar.bg-dark {
  background: transparent !important;
  border-bottom: 1px solid transparent;
}

.navbar.bg-dark.scrolled {
  background: rgba(10, 10, 10, 0.6) !important;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-translucent .navbar-brand img { filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.85);
}
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  padding-top: calc(var(--header-height) + 1rem);
}

/* Ensure vertical centering inside hero */
.hero > .container {
  min-height: calc(100vh - var(--header-height) - 2rem);
  display: flex;
  align-items: center;
}
.hero > .container .row { width: 100%; }

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.hero-badge {
  position: absolute;
  right: 18%;
  bottom: 8%;
  max-width: min(36vw, 520px);
  width: 100%;
  pointer-events: none;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--white);
}

.logo-container {
  margin-bottom: 2rem;
}

.logo {
  width: 200px;
  height: auto;
}

.hero-title {
  font-family: var(--font-bebas);
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  line-height: 0.9;
}

.hero-subtitle {
  font-family: var(--font-montserrat);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button {
  background-color: var(--primary-color);
  color: var(--black);
  font-family: var(--font-bebas);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #FFD700;
}

/* Hero utilities under banner */
.hero-utilities {
  background: #0f0f0f;
  padding: 2rem 0;
  color: var(--white);
}

.utility-card {
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
  height: 100%;
}

.utility-card .icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 0, 0.15);
  color: var(--primary-color);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.utility-card h3 {
  font-family: var(--font-bebas);
  color: var(--white);
  letter-spacing: 1px;
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

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

/* Product Showcase Section */
.product-showcase {
  padding: 5rem 0;
  background-color: var(--bg-gray);
}

.section-title {
  font-family: var(--font-bebas);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-family: var(--font-montserrat);
  color: var(--text-gray);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}


/* Product cards */
.product-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 28px rgba(0,0,0,0.12);
}

.product-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-top {
  height: 260px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-family: var(--font-bebas);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.product-description {
  font-family: var(--font-montserrat);
  color: var(--text-gray);
  margin-bottom: 1rem;
}

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

.product-price {
  font-family: var(--font-bebas);
  font-size: 1.5rem;
  color: var(--primary-color);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-color);
  color: #000;
  font-family: var(--font-bebas);
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 2;
}

.buy-button {
  background-color: var(--primary-color);
  color: var(--black);
  font-family: var(--font-bebas);
  font-size: 1.125rem;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #FFD700;
}

/* Utilities */
.object-fit-cover { object-fit: cover; }

/* Buttons rounding */
.btn { border-radius: 8px; }

/* Transition Section - paper fold */
.transition-section {
  position: relative;
  padding: 6rem 0;
  background-color: #F4E7C6; /* parchment base */
  background-image: url('../source/transition_bg.png'); /* subtle paper texture */
  background-size: 900px;
  background-repeat: repeat;
  background-position: center;
  color: #1f2937; /* dark slate for readability */
  box-shadow: inset 0 1px 0 rgba(0,0,0,.06), inset 0 -1px 0 rgba(0,0,0,.06);
}

.transition-section::before,
.transition-section::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  background: url('../source/transition_bg.png') center/cover repeat-x;
  opacity: .9;
}
.transition-section::before { top: -1px; filter: drop-shadow(0 -2px 2px rgba(0,0,0,.2)); }
.transition-section::after { bottom: -1px; transform: rotate(180deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }

/* Remove top decorative strip specifically for the #legend section */
#legend.transition-section::before { display: none !important; content: none !important; }

.transition-content { text-align: center; }

.transition-title {
  font-family: var(--font-bebas);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: .5rem;
  color: #111827; /* near-black on paper */
  letter-spacing: 1px;
}

.transition-subtitle {
  font-family: var(--font-montserrat);
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #374151;
  max-width: 720px;
  margin: 0 auto;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../source/Section_3_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

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

.feature-item {
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,184,0,.6);
  border-radius: 10px;
  background: rgba(0,0,0,.25);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon img {
  transform: scale(1.1);
}

.feature-title {
  font-family: var(--font-bebas);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.feature-description {
  font-family: var(--font-montserrat);
  color: #E5E7EB;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: #0b0b0b;
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section {
  text-align: left;
}

.footer-logo img {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand {
  font-family: var(--font-bebas);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  display: none;
}

.footer-description {
  font-family: var(--font-montserrat);
  color: var(--text-gray);
  font-size: 0.875rem;
}

.footer-title {
  font-family: var(--font-bebas);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-family: var(--font-montserrat);
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact {
  font-family: var(--font-montserrat);
  color: var(--text-gray);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-contact p {
  margin-bottom: 0.25rem;
}

.footer-qr {
  margin-top: 1rem;
}

.footer-qr img {
  width: 100px;
  height: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-montserrat);
  color: var(--text-gray);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .hero-content {
    padding: 20px;
  }
  .hero > .container { min-height: calc(100vh - var(--header-height) - 1rem); }
  .hero-badge { right: 6%; bottom: 6%; max-width: min(56vw, 420px); }
  
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  .footer-section:last-child { text-align: left; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .product-showcase,
  .features-section {
    padding: 3rem 0;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
}
