:root {
  --color-primary: #6B4F2A;
  --color-dark: #3E2A1F;
  --color-accent: #C89B3C;
  --color-text: #333333;
  --color-bg: #E6D3A3;
  --color-bg-2: #e9e3d9;
  --color-border: rgba(30, 20, 10, 0.12);
}

/* Base typography */
body {
  font-family: "Montserrat", "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333333;
  background: #ffffff;
}

/* Links */
a {
  color: var(--color-primary);
}
a:hover,
a:focus {
  color: var(--color-accent);
  text-decoration: none;
}

/* Header / Menu */
.constructify_tm_wrapper_all .main_leftpart .menubar_wrap {
  background-color: var(--color-dark);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.constructify_tm_wrapper_all .main_leftpart .logo_wrap {
  background: linear-gradient(145deg, var(--color-primary), var(--color-dark));
  padding: 45px 0;
}

.constructify_tm_wrapper_all .main_leftpart .logo_wrap .shape {
  background-color: var(--color-primary);
}

.constructify_tm_wrapper_all .main_leftpart .nav_wrap > ul > li > a {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 14px 0;
  display: block;
}

.constructify_tm_wrapper_all .main_leftpart .nav_wrap > ul > li > a:hover,
.constructify_tm_wrapper_all .main_leftpart .nav_wrap > ul > li > a:focus {
  color: var(--color-accent);
}

.constructify_tm_wrapper_all .main_leftpart .nav_wrap > ul > li::before {
  background-color: var(--color-accent);
}

/* Mobile Menu */
.constructify_tm_mobile_menu_wrap .topbar_wrap {
  background-color: var(--color-dark);
}

.constructify_tm_mobile_menu_wrap .topbar_wrap .short_info_wrap ul li a {
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.constructify_tm_mobile_menu_wrap .topbar_wrap .short_info_wrap ul li a .svg {
  width: 22px;
  height: 22px;
}

.constructify_tm_mobile_menu_wrap .topbar_wrap .short_info_wrap ul li a:hover {
  background: rgba(200, 155, 60, 0.25);
  transform: translateY(-2px);
}

/* Ensure social icons in the mobile top bar match the same sizing + alignment */
.constructify_tm_mobile_menu_wrap .topbar_wrap .social_wrap ul li a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 0;
}

.constructify_tm_mobile_menu_wrap .topbar_wrap .social_wrap ul li a i {
  font-size: 22px;
  line-height: 1;
}

.constructify_tm_mobile_menu_wrap .menu_list_wrap {
  background-color: var(--color-dark);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.constructify_tm_mobile_menu_wrap .menu_list_wrap ul li a {
  color: #fff;
}

.constructify_tm_mobile_menu_wrap .menu_list_wrap ul li a:hover {
  color: var(--color-accent);
}

/* Buttons */
.constructify_tm_hero_header_wrap .hero_text_wrap .buttons_wrap .discover,
.constructify_tm_hero_header_wrap .hero_text_wrap .buttons_wrap .watch {
  font-family: "Montserrat", system-ui, sans-serif;
}

.constructify_tm_hero_header_wrap .hero_text_wrap .buttons_wrap .discover {
  background-color: var(--color-primary);
  color: #fff;
}

.constructify_tm_hero_header_wrap .hero_text_wrap .buttons_wrap .discover:hover {
  background-color: var(--color-accent);
  color: #1b1b1b;
}

/* Floating WhatsApp button */
.oficio-whatsapp-btn,
.whatsapp-float {
  position: fixed;
  right: 20px;
  /* Keep the button above fixed footers / mobile bars (including safe-area insets on iOS). */
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  pointer-events: auto;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.oficio-whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
}

.oficio-whatsapp-icon {
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.oficio-whatsapp-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Text and section backgrounds */
.constructify_tm_section,
.constructify_tm_wrapper_all .main_rightpart {
  background: transparent;
}

/* Enhanced typography headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", system-ui, sans-serif;
}

/* Subtle border and shadow accents */
.constructify_tm_wrapper_all .main_leftpart .nav_wrap > ul > li > a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Ensure responsive text scaling */
@media (max-width: 980px) {
  .constructify_tm_wrapper_all .main_leftpart {
    width: 100%;
    position: relative;
    height: auto;
  }

  .constructify_tm_wrapper_all .main_rightpart {
    padding-left: 0 !important;
    margin-left: 0;
  }

  .constructify_tm_wrapper_all .main_leftpart .menubar_wrap {
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  /* Hide desktop sidebar on smaller screens */
  .constructify_tm_wrapper_all .main_leftpart {
    display: none;
  }

  .constructify_tm_wrapper_all .main_rightpart {
    padding-left: 0 !important;
  }

  /* Improve mobile menu usability */
  .constructify_tm_mobile_menu_wrap {
    display: block;
  }

  .constructify_tm_mobile_menu_wrap .menu_list_wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .constructify_tm_mobile_menu_wrap .menu_list_wrap.open {
    max-height: 400px;
  }

  .constructify_tm_mobile_menu_wrap .topbar_wrap {
    padding: 14px 16px;
  }

  .constructify_tm_mobile_menu_wrap .hamburger {
    margin-right: 10px;
  }

  /* Hero section adjustments */
  .constructify_tm_hero_header_wrap .hero_text_wrap {
    padding: 24px 16px;
    max-width: 100%;
  }

  .constructify_tm_hero_header_wrap .hero_text_wrap .title h3 {
    font-size: 32px;
  }

  .constructify_tm_hero_header_wrap .hero_text_wrap .text p {
    font-size: 15px;
    line-height: 1.6;
  }

  .constructify_tm_hero_header_wrap .hero_text_wrap .buttons_wrap .discover,
  .constructify_tm_hero_header_wrap .hero_text_wrap .buttons_wrap .watch {
    font-size: 13px;
    padding: 12px 18px;
  }

  /* Section padding / layout */
  .constructify_tm_section {
    padding: 48px 16px;
  }

  .constructify_tm_services_wrap .constructify_tm_miniboxes li {
    width: 100%;
    display: block;
  }

  .constructify_tm_services_wrap .constructify_tm_miniboxes li .constructify_tm_minibox {
    padding: 18px 16px;
  }

  .constructify_tm_request_wrap .inner_wrap {
    flex-direction: column;
  }

  .constructify_tm_request_wrap .image_wrap {
    margin-top: 20px;
  }

  .constructify_tm_footer_wrap .constructify_tm_list_wrap .constructify_list {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .constructify_tm_hero_header_wrap .hero_text_wrap .title h3 {
    font-size: 28px;
  }

  .constructify_tm_hero_header_wrap .hero_text_wrap .buttons_wrap .discover,
  .constructify_tm_hero_header_wrap .hero_text_wrap .buttons_wrap .watch {
    font-size: 12px;
    padding: 10px 16px;
  }

  .constructify_tm_section {
    padding: 34px 12px;
  }

  .constructify_tm_wrapper_all .constructify_tm_totop {
    right: 12px;
    bottom: 12px;
  }
}

/* Ensure the floating WhatsApp button is always visible (especially on mobile) */
.whatsapp-float {
  display: flex !important;
}

@media (max-width: 768px) {
  .whatsapp-float {
    display: flex !important;
  }

  /* Ensure mobile bar doesn't cover the floating button */
  .constructify_tm_mobile_menu_wrap {
    z-index: 1000;
  }
}
