/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */
/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */

:root {
  --primary-color: #0c0c0c;
  --primary-light: #1a1a1a;
  --secondary-color: #d4af37;
  --secondary-hover: #b8860b;
  --text-color: #e0e0e0;
  --text-muted: #a0a0a0;
  --light-bg: #f8f9fa;
  --dark-bg: #121212;
  --white: #ffffff;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
  --header-height: 80px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow-dark: 0 8px 25px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: #333;
  background-color: var(--white);
  line-height: 1.6;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

::-moz-selection { background: rgba(212, 175, 55, 0.3); text-shadow: none; }
::selection { background: rgba(212, 175, 55, 0.3); text-shadow: none; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
audio, canvas, iframe, img, svg, video { vertical-align: middle; }
fieldset { border: 0; margin: 0; padding: 0; }
textarea { resize: vertical; }

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Header */
.main-header {
  background: transparent;
  color: var(--white);
  height: var(--header-height);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 70px;
  box-shadow: var(--shadow-dark);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.logo h1 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.logo span {
  color: var(--secondary-color);
  font-weight: 400;
  font-family: var(--font-serif);
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.9;
  position: relative;
  padding-bottom: 5px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  opacity: 1;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--secondary-color);
  color: var(--primary-color) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600 !important;
  opacity: 1 !important;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  position: relative;
  width: 30px;
  height: 24px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 8px; }
.mobile-menu-toggle span:nth-child(3) { top: 16px; }

.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
  margin-top: -80px; /* Compensa o padding-top do body */
}

.carousel-item {
  height: 100vh;
  min-height: 600px;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.carousel-caption h2 { text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); }
.carousel-caption p { text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); max-width: 700px; }

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 8px;
  background-color: var(--white);
  opacity: 0.5;
  border: 1px solid transparent;
  transition: var(--transition);
}

.carousel-indicators .active {
  background-color: var(--secondary-color);
  opacity: 1;
  transform: scale(1.2);
}

.carousel-control-prev, .carousel-control-next {
  width: 5%;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }

/* Sections */
.title-serif { font-family: var(--font-serif); }
.divider-orange { width: 60px; height: 3px; background-color: var(--secondary-color); }

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

.service-card-v2 {
  background: var(--white);
  padding: 35px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.service-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: #2c3e50;
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-card-v2 h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 700;
}

.service-card-v2 p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.text-gold {
  color: var(--secondary-hover) !important;
  font-weight: 600;
  transition: color 0.3s;
}
.text-gold:hover { color: #2c3e50 !important; }

/* Footer */
.main-footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo { color: var(--white); font-size: 1.5rem; margin-bottom: 1rem; }
.footer-logo span { color: var(--secondary-color); font-weight: 300; }

.main-footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.7rem;
}

.main-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s, padding-left 0.3s; }
.footer-links ul a:hover { color: var(--secondary-color); padding-left: 5px; }

.social-links { display: flex; gap: 1rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { background-color: var(--secondary-color); color: var(--primary-color); transform: translateY(-3px); }

.footer-bottom { font-size: 0.9rem; border-color: rgba(255, 255, 255, 0.1) !important; }

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 30px; height: 30px; }

/* Buttons */
.btn-primary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.8rem 1.8rem;
  transition: var(--transition);
  border-radius: 4px !important;
}

.btn-primary:hover {
  background-color: var(--secondary-hover) !important;
  border-color: var(--secondary-hover) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
.fade-in-element {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 992px) {
  .main-header {
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--primary-light);
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding-top: 100px;
    display: block;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 2rem;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    font-size: 1.1rem;
    display: block;
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .main-nav a::after { display: none; }

  .nav-cta {
    margin-top: 2rem;
    text-align: center;
    display: block;
    width: calc(100% - 4rem);
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .carousel-item { height: 80vh; min-height: 500px; }
  .carousel-caption h2 { font-size: 2.2rem; }
  .main-footer { text-align: center; }
  .main-footer h4::after { left: 50%; transform: translateX(-50%); }
  .social-links { justify-content: center; }
}

@media (max-width: 576px) {
  body { padding-top: 70px; }
  .main-header, .main-header.scrolled { height: 70px; }
  .logo h1 { font-size: 1.2rem; }
  .carousel-item { height: 70vh; }
  .carousel-caption h2 { font-size: 1.8rem; }
  .carousel-caption p { font-size: 0.9rem; }
  .btn-primary { padding: 0.7rem 1.3rem; }
}

/* ==========================================================================
   Helper & Print classes
   ========================================================================== */
.hidden, [hidden] { display: none !important; }
.visually-hidden { border: 0; clip: rect(0, 0, 0, 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.visually-hidden.focusable:active, .visually-hidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; white-space: inherit; width: auto; }
.invisible { visibility: hidden; }
.clearfix::before, .clearfix::after { content: ""; display: table; }
.clearfix::after { clear: both; }

@media print {
  *, *::before, *::after { background: #fff !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  a, a:visited { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; }
  abbr[title]::after { content: " (" attr(title) ")"; }
  a[href^="#"]::after, a[href^="javascript:"]::after { content: ""; }
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  tr, img { page-break-inside: avoid; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
  body { padding-top: 0; }
  .main-header, .hero-carousel, .whatsapp-btn, .main-footer { display: none; }
}
